I am in need of an AJAX modification of an existing vBulletin Modification.
These changes will be needed for vB version 3.73.
vBulletin is a very popular forum software and has a very active community regarding modifications at vbulletin.org.
(If you do not have a valid license you won't be able to view any of the mod code.)
The changes I need will require incorporation of some AJAX functionality to enhance the basic [url removed, login to view] works out of the box.
In vBulletin's album/gallery section, when a user navigates from one image to another he is required to use the (NEXT | PREV ) links at the top and bottom of the image.
By default vBulletin refreshes the page on every image change.
After searching [url removed, login to view] I found an add-on product that eliminates the page refresh and advances the image using AJAX.
found here: [url removed, login to view];highlight=Abe1
1. Although nicely done, this hack has 1 shortcoming. Although the images advance correctly, without a page refresh if you look in the address bar of the browser it does not change according to the image.
(So if a user were to grab the url for the image it could possibly be the url for the wrong image.) Not good.
The embed url below the image changes correctly so somewhere the code needs to be enhanced to reflect the change in the browser address bar.
I need this to work.
2. The next requirement is to include the Ajax eventhandler that will allow the navigation to be also done via the right and left arrow keys on the keyboard.
This way the user will be able to move through the album using mouseclicks on the (NEXT | PREV) links or using the arrow keys on the keyboard.
Vbulletin already handles the feature that allows any comments that have been made on the image to change as the image changes, so this shouldn't need to be touched. (However it must remain so)
This can be handled in any number of ways I'm sure, but I think the cleanest way is to use the existing product and modify it (if possible) so that it is easily installed/uninstalled as well as no template edits.
If however you have a better more efficient way I am open to suggestions. I tried to get in touch with the author of the original mod, but he did not respond. Either too busy or not interested.
If you look at the functionality of Facebook's gallery you will basically have an exactidea of what I'm trying to achieve.
I have set up a test forum at [url removed, login to view] so you can see a working example of this behavior.
found here: [url removed, login to view]