• Page 1 of 1
  • 1
Forum moderator: Eriko  
uCoz Community » uCoz Modules » Photo Albums » Next an Previous url separately
Next an Previous url separately
Mar1aN
Posts: 192
Reputation: 3

Message # 1 | 2:28 PM
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
Sunny
Posts: 9296
Reputation: 456

Message # 2 | 2:42 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.
Mar1aN
Posts: 192
Reputation: 3

Message # 3 | 3:02 PM
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$
which i have filled in manually with url of next and previous entry.

site adress: 2lol.ro
Attachments: 1192376.png (298.7 Kb)

Post edited by Mar1aN - Tuesday, 2013-10-08, 3:02 PM
Sunny
Posts: 9296
Reputation: 456

Message # 4 | 11:20 AM
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.
Mar1aN
Posts: 192
Reputation: 3

Message # 5 | 11:09 AM
Sunny, the script script doesn't work sad

Added (2013-10-10, 1:31 PM)
---------------------------------------------
Does anyone know why this script doesn't work?

Added (2013-10-13, 5:09 AM)
---------------------------------------------
Sunny, the script works, but only when

Code
$OTHER_PHOTOS$
its on the page, thanks! biggrin

Post edited by Mar1aN - Thursday, 2013-10-10, 2:23 PM
Sunny
Posts: 9296
Reputation: 456

Message # 6 | 11:45 AM
Mar1aN, if you need to hide it, you can use the following code:

Code
<div style="display:none">  
$OTHER_PHOTOS$  
</div>

I'm not active on the forum anymore. Please contact other forum staff.
Mar1aN
Posts: 192
Reputation: 3

Message # 7 | 8:44 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 ?
uCoz Community » uCoz Modules » Photo Albums » Next an Previous url separately
  • Page 1 of 1
  • 1
Search: