|
|
Forum moderator: Eriko |
uCoz Community uCoz Modules Photo Albums Next an Previous url separately |
Next an Previous url separately |
Can someone please give me a script that generates a url to previsoreus and next entry in photo module?
I know about Code $NEAR_PHOTOS$ and $OTHER_PHOTOS$ but these are not giving me separate next and prev url which i can use in other codes. P.S. I have all entries in the same category. Post edited by Mar1aN - Monday, 2013-10-07, 2:29 PM
|
Mar1aN, we have this http://forum.ucoz.com/forum/38-17252-100916-16-1369230501 (not exactly what you were asking for though). I'll try to find the script for "next" and "previous" buttons in Photo Albums.
I'm not active on the forum anymore. Please contact other forum staff.
|
Sunny, i tried that script but he did not work.
I wanna build this thing and that's why i need the url of next and previous entry. In file catalog module i allready made that thing with next and previus but there i've used the fields Code $BRIEF$ & $MESSAGE$ site adress: 2lol.ro Attachments:
1192376.png
(298.7 Kb)
Post edited by Mar1aN - Tuesday, 2013-10-08, 3:02 PM
|
Mar1aN, I found the following script:
buttons: Code <a class="photo-next" href="javascript://" onclick="photo('next');return false;"> </a> <a class="photo-prev" href="javascript://" onclick="photo('prev');return false;"> </a> the script itself: Code <script type="text/javascript"> function photo(is){ if(!is)return; if(is=='next'){ window.location.href=document.getElementById('nextPh').parentNode.href; }else{ window.location.href=document.getElementById('prevPh').parentNode.href; }; }; </script> I'm not active on the forum anymore. Please contact other forum staff.
|
Sunny, the script script doesn't work
Added (2013-10-10, 1:31 PM) Added (2013-10-13, 5:09 AM) Code $OTHER_PHOTOS$ Post edited by Mar1aN - Thursday, 2013-10-10, 2:23 PM
|
Sunny, do you know how can ai add "?ref=prev" to the end of the previous url and "ref=next" to the next url ?
|
| |||
| |||