• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » Navigation links in File Catalog (previous/next entry)
Navigation links in File Catalog
fsalamic
Posts: 16
Reputation: 0

Message # 1 | 4:53 PM
I need to make next and previous links in a post , could you help me ?
I've put the screenshot in the attachments as an example
Attachments: 4579992.png (137.5 Kb)
Sunny
Posts: 9296
Reputation: 456

Message # 2 | 12:43 PM
fsalamic, here is a script, not exactly what showed on the screenshot though:

Code
<div id="pages"></div>     
    <script>     
    a=location.href;     
    b=a.split('-');     
    c=b.length;     
    d=eval(c-1);     
    e=b[d];     
    f=a.split('-'+e)[0];     
    $('#pages').html('<a id="b" href="'+f+'-'+eval(e-1)+'">Previous entry</a><span id="i"> | </span><a id="a" href="'+f+'-'+eval(e*1+1)+'">Next entry</a>');     
    $.ajax({     
    type: 'GET',     
    url: f+'-'+eval(e*1+1),     
    error: function(){$('#a, #i').hide();}     
    });     
    $.ajax({     
    type: 'GET',     
    url: f+'-'+eval(e-1),     
    error: function(){$('#b, #i').hide();}     
    });     
    </script>


It should be pasted into the "Page with full entry text and associated comments" template, where you want the links to be displayed.

I'm not active on the forum anymore. Please contact other forum staff.
fsalamic
Posts: 16
Reputation: 0

Message # 3 | 8:46 PM
Quote Sunny ()
fsalamic, here is a script, not exactly what showed on the screenshot though:

<div id="pages"></div>
<script>
a=location.href;
b=a.split('-');
c=b.length;
d=eval(c-1);
e=b[d];
f=a.split('-'+e)[0];
$('#pages').html('<a id="b" href="'+f+'-'+eval(e-1)+'">Previous entry</a><span id="i"> | </span><a id="a" href="'+f+'-'+eval(e*1+1)+'">Next entry</a>');
$.ajax({
type: 'GET',
url: f+'-'+eval(e*1+1),
error: function(){$('#a, #i').hide();}
});
$.ajax({
type: 'GET',
url: f+'-'+eval(e-1),
error: function(){$('#b, #i').hide();}
});
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

It should be pasted into the "Page with full entry text and associated comments" template, where you want the links to be displayed.


Thank you, this is exactly what i was looking for. I just have one more question to ask you Sunny how can I remove the extra space on my site here is the link t the screenshot http://snag.gy/M2iBF.jpg
Post edited by fsalamic - Wednesday, 2014-06-25, 8:48 PM
Sunny
Posts: 9296
Reputation: 456

Message # 4 | 10:00 AM
fsalamic, and where exactly do you want to remove extra space? Show it on the screenshot. And provide the URL of your website here, copying it from the screenshot is not very convenient smile
I'm not active on the forum anymore. Please contact other forum staff.
fsalamic
Posts: 16
Reputation: 0

Message # 5 | 2:05 PM
Quote Sunny ()
fsalamic, and where exactly do you want to remove extra space? Show it on the screenshot. And provide the URL of your website here, copying it from the screenshot is not very convenient smile

Here is the link http://animebih.tk/load/anime/attack_on_titan/attack_on_titan_epizoda_20_sa_prevodom/10-1-0-58
You see underneath the video that there is some space
Sunny
Posts: 9296
Reputation: 456

Message # 6 | 12:39 PM
fsalamic, here http://screencast.com/t/SzPH8pdB ? You want to remove it completely?
I'm not active on the forum anymore. Please contact other forum staff.
fsalamic
Posts: 16
Reputation: 0

Message # 7 | 0:38 AM
Quote Sunny ()
fsalamic, here http://screencast.com/t/SzPH8pdB ? You want to remove it completely?

I have sucessfully removed it ,
Thank you for your support , Sunny. biggrin biggrin biggrin biggrin
uCoz Community » For Webmasters » Custom Solutions » Navigation links in File Catalog (previous/next entry)
  • Page 1 of 1
  • 1
Search: