View Full Version : [AJAX] Album Next & Prev Links Use AJAX
Album Next & Prev Links Use AJAX 1.1
Click here to Nominate this Mod for Mod the Month (http://www.vbulletin.org/forum/vborg_miscactions.php?do=nominate&threadid=194628&type=1)
About this hack:
This hack should be a standard feature in vBulletin. But since it is not, enjoy this mod.
While viewing a picture in an album, this hack makes the Next & Previous Picture links AJAX. Instead of the whole page refreshing and you have to scroll back to the picture area to see the picture, just hit next and the image will change along with the comments and anything else that belong to the picture.
All you have to do is upload the product file. No template edits or ftp file uploads.
This hack will work with my Album Picture Clicks to Next Picture in Album template mod. When you click on the picture, the image will just change to the next image without refreshing the page.
This hack works on both vb 3.7 and vb 3.8.
Version 1.0 (10/26/2008):
First release of this hack.
Version 1.1 (10/26/2008):
Template Cache
Please post your comments or suggestions for this hack. I read ALL posts.
MAKE SURE YOU CLICK INSTALL (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=194628)!
You will get an email when a new version is released.
ArnyVee
26 Oct 2008, 16:39
This sounds like a very good mod. I'll be installing it later! Thanks Abe! :D
the stig
26 Oct 2008, 17:23
Subscribed. Will install when I go home. :up:
Adem GENĒ
26 Oct 2008, 17:25
Installed
Thanks
Basboss
26 Oct 2008, 17:32
Installed, thanks.
Edit: template album_pictureview_ajax_javascript not being cached.
glorify
26 Oct 2008, 17:40
Nice work Abe. Will upgrade to beta 2 when released and use it :)
Martell
26 Oct 2008, 19:41
Installed, thanks ;)
nerofix
26 Oct 2008, 20:53
Sounds interesting, what about the template cache thing?
Sounds interesting, what about the template cache thing?
oh, your right. Forgot about that.
Version 1.1 (10/26/2008):
Template Cache
ryancooper
26 Oct 2008, 21:10
will it work on 3.7.3
will it work on 3.7.3
yes
nerofix
26 Oct 2008, 21:31
hehe thank you abe, gonna install it now ;-)
glorify
26 Oct 2008, 21:33
Abe, any way to keep the table at a constant height without collapsing/expanding every time an image is loaded?
I guess I can do a template edit allowing for the max height of my images.
nerofix
26 Oct 2008, 21:41
Okay works great, the only thing now is that the browser-URL doesn't change which could be a bit irritating for the users.
ryancooper
26 Oct 2008, 22:34
will it work on 3.7.3
Thanks!
Okay works great, the only thing now is that the browser-URL doesn't change which could be a bit irritating for the users.
Well the url shows right under the picture.
tafreeh
27 Oct 2008, 07:34
demo or screenshot wuldn be a bad idea... niwayz sounds goood
nerofix
27 Oct 2008, 14:17
Well the url shows right under the picture.
I know I know :)
Another thing is that some people push the backbutton in the browser instead of the back-link in the navigation. :)
Another question: Do you think you could create a mod that turns pictures to 90° to the left or to the right? Some people are uploading pictures which needs to be turned, so I don't need to turn my head =)
Cobra-J82
27 Oct 2008, 14:52
Amazing Mod
I have 3.7.3
Works Perfect and really HelpFull.
After flipping through a few pics and going to comment on a picture it forces a page reload, even when there are already comments for that picture. Any way to avoid this?
rapidphim
27 Oct 2008, 15:49
is this mod pull picture from member album? or how is it work?
Cobra-J82
27 Oct 2008, 16:16
is this mod pull picture from member album? or how is it work?
When you View someones album pics
You open a picture
When you click next
Instead of loading the whole page
It just loads the next pic.
Thats it.
TsirhCitna
27 Oct 2008, 17:35
Another great addition that Jelsoft should have made standards.
Thanks!
abouahmed
27 Oct 2008, 19:29
nice work
i'll try it
installed
Long time no mod Abe, great one
Cheers
demo or screenshot wuldn be a bad idea... niwayz sounds goood
of what? no visable change to vb.
I know I know :)
Another thing is that some people push the backbutton in the browser instead of the back-link in the navigation. :)
trying to work this out but it doesn't look promising. I got the browser to log the moves but the picture doesn't change back when you go back.
Another question: Do you think you could create a mod that turns pictures to 90° to the left or to the right? Some people are uploading pictures which needs to be turned, so I don't need to turn my head =)
Interesting thing.
After flipping through a few pics and going to comment on a picture it forces a page reload, even when there are already comments for that picture. Any way to avoid this?I'm going to try to figure this out. I confirmed this.
GrendelKhan{TSU
01 Nov 2008, 18:13
simple goodness!!
thanks :D
working great.
3.8.0 beta 1
safakuygur
01 Nov 2008, 21:04
very good thanks
vbulletin must make it built-in
one of the best hacks... :)
but. whtn clickiing on "next - previos" its movet the page to top...
Chimpie
23 Dec 2008, 15:48
Just installed. Very nice!
basil2070
11 Jan 2009, 18:58
Awesome mod :)
yotsume
12 Jan 2009, 02:32
No joke this needs to be default in VB! HELLO WAKE UP DEVELOPERS! LOL
Great mod installed on vb3.8 no problem.
bartek24m
17 Feb 2009, 09:46
i have problem with this addon after integrate album.php page with my vbadvanced
when i click next or prev they double me content of album.php
like on the screen shout
http://iv.pl/images/muwzfa422b2uy6xdzs2c.png
Unimatrix01
17 Feb 2009, 10:59
The Addon does not work with The Image Resizer and Lightbox/Highslide :(
http://www.vbulletin.org/forum/showthread.php?t=184571
alfex68
20 Feb 2009, 01:54
This mod is really good.
DieselMinded
06 Mar 2009, 06:55
installed but noiw i have an extra « Previous Picture | First Picture on the page under the editor
ElForro
23 Jun 2009, 06:18
This is Great. I've one question...
I've implemented [i'm not an expert in Javascript] a keyboard shortcut function, to navigate through the photos with the arrows in the keyboard.
I'm using this JS: http://www.elforro.com/js/shortcut.js
And this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I would like to know what should I modify in this last Javascript code to act like this mod... Any clue?
greenspan
06 Jul 2009, 10:54
Great mod! Installed ^_^
shortcut.js on line 109 }, comma, delete the internet explorer works
Nice mod
thanks
pauldack
05 Sep 2009, 18:24
Nice one, isntalled and working like a dream, cheers.
Hi, great mod, but need one improvement. When you click on image (or next/prev links) everything works fine, but URL in address bar doesn't change, so if you press back (or forward), reload button (or F5) it reloads on first opened image. As I know you may change this behavior by adding URL change in your script.
If you can do it - it would be great.
Thank you, anyway.
Can you improve this mod in a way that when user clicks image itself next one will be shown, as in this hack:
http://www.vbulletin.org/forum/showthread.php?threadid=226846
So that we can get all in one "product"
:D
Booth hacks work great for me tho
Nominated, rated, installed
Cheers
thanks great..but??
It is not working here at my site. :) i have just installed your another mod which has only next image link...
nominated...
Best of luck..
working now.. ;)
ForumUser210
04 Nov 2009, 05:41
Problem!
It was working great, until I tried to write a comment, and I noticed that the WYSIWYG editor buttons no longer worked. When I tried to add a link, I clicked the button, but it didn't respond. It didn't even affirm that I was hovering the "insert link" button.
When I turn plugin off, the editor begins to work again.
My browser is Firefox -- latest version.
ForumUser210
28 Nov 2009, 07:32
I found the problem.
This plug-in interferes with Quick Editor Improver (http://www.vbulletin.org/forum/showthread.php?t=202160).
yilmaz68
10 Jan 2010, 05:25
Thanks, intalled.
Hope this will be uprade to VB 4.0.
Thanks!
Does not work for me. Downloaded, installed, nothing changed. :(
didn't work at my site too
vb 4.0 version posted here: http://www.vbulletin.org/forum/showthread.php?t=241695
Excellent! 5/5. Any chance this can be implemented for social group albums as well?
bartek24m
08 Jun 2010, 13:23
Great mod but if its possible to create link to next album
Next albumid insted of next pictureid ?
Please reply
yotsume
24 Nov 2010, 06:48
This hack conflicts and breaks: vBulletin Album Picture Annotation Hack (Tagging Photos like Facebook) (http://services.milado.net/vbulletin-album-picture-annotation-hack-374/)
I emailed the developer of that hack to help remove the conflict.
danyz81
26 Nov 2010, 15:12
Hello, this mod work great thnx!
But with this product my image resize product doesnt work anymore ;(
http://www.vbulletin.org/forum/showthread.php?t=184571
Is it possible do working togheter?
Thanks,
Daniele.
jimsflies
27 Nov 2010, 17:35
Having an issue where I get a new page loaded within the same page when I click on next picture. Notice the two navbars and two side columns in the attachment.
RIYADH BOY
27 Nov 2010, 17:46
can you give me example please ...
jimsflies
27 Nov 2010, 19:02
can you give me example please ...
Not sure if you are replying to me...but here is a link:
http://www.captivereefs.com/forum/album.php?albumid=163&pictureid=1154
ricardoNJ
01 Feb 2013, 18:55
does not work.... :)
vBulletin® v3.6.12, Copyright ©2000-2013, Jelsoft Enterprises Ltd.