Prev-next-links for full story

Download plugins, language packs and stuff.

Postby rats » Wed May 23, 2007 5:37 pm

a str_replace if there's no more news to count (forward or backward).

too bad i understand php, but can't write it... it's like german, I understand german, I even can read german, but talking is another story :shock:
rats
 
Posts: 44
Joined: Mon May 29, 2006 7:48 pm

Postby scottdallas » Wed May 23, 2007 5:50 pm

I just wish it could display a message and say like.. "there are no more" or maybe just blank and only show an error pointing the direction it can go.. left or right. Well I guess I'll look up str_replace and see how it works. I sorta understand it.
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby FI-DD » Thu May 24, 2007 6:26 pm

rats wrote:I seem to have found a bug... when you're at the last link and there's no way of getting further, the output code is {nextlink}... I bet it's an easy fix, but it's still a bug :-D


Can't confirm this. Do you have an example?
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby flyboy17 » Sat Jun 16, 2007 10:06 pm

I also found the bug on last post :p
Image included :)
*also on first post ({prevtitle})
Attachments
Shot002.jpg
(11.97 KiB) Downloaded 189 times
flyboy17
 
Posts: 63
Joined: Wed Feb 21, 2007 4:32 pm

Postby FI-DD » Sun Jun 17, 2007 11:05 pm

Use [nextheader] and [prevheader]. Just check the template section for details.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Tue Sep 04, 2007 4:24 pm

I noticed that the URL keeps getting longer and longer everytime a next or previous link is clicked.. for example:

I am currently viewing:
http://www.funnynerd.com/view.php?idiot ... -year.html

I click next and now I am viewing:
http://www.funnynerd.com/view.php?steal ... -year.html

I click previous and now I am viewing:
http://www.funnynerd.com/view.php?idiot ... -year.html

I click next again and now I am viewing:
http://www.funnynerd.com/view.php?steal ... -year.html

The pages display the correct content.. but something is going haywire with that URL.. Any idea why it's doing that?
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby FI-DD » Tue Sep 04, 2007 7:54 pm

Try adding "url" to this in functions.inc.php (around line 568):
Code: Select all
$query   = cute_query_string($QUERY_STRING, array('category', 'skip', 'subaction', 'id', 'ucat', 'year', 'month', 'day', 'user', 'page', 'search', 'do', 'PHPSESSID', 'title', 'time'));
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby niaccurshi » Thu Mar 06, 2008 2:12 pm

Hey, I'm using this pluggin but I need to clear my cache every time I upload a new post to get it to link right. Is there any way of making the changes happen in the cache so I don't need to keep clearing it?
niaccurshi
 
Posts: 12
Joined: Sun Feb 03, 2008 3:59 am

Postby FI-DD » Thu Mar 06, 2008 7:52 pm

You can make the script clear the cache when adding news:

Open addnews.mdu and find this:
Code: Select all
msg('info', $echo['headerAdded'], sprintf($echo['headerAddedComplete'], $title, $PHP_SELF.'?mod=editnews&id='.$id));


add above:
Code: Select all
cache_remover();
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby acateoN » Sat Mar 22, 2008 1:43 am

When I activate this plugin it slow the hole site down a whole lot. My server isn't the fastetst one in town but it slows it down by 70-80%. From fast to darn slow.
Is there a way to get by this without having to buy a new server. : )
acateoN
 
Posts: 51
Joined: Tue Feb 12, 2008 10:02 pm

Postby FI-DD » Sat Mar 22, 2008 6:38 pm

Well, there's only one additional query to the database so I really have no idea why it's slowing down your server that much.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby acateoN » Tue Apr 08, 2008 9:32 pm

It looks like its only slow when you look at a post or change page the first time after I've activated the plugin.. After a page has been entered one time the secound time loads fast as normal...
http://www.xpl.se - Runs under CNR
acateoN
 
Posts: 51
Joined: Tue Feb 12, 2008 10:02 pm

Postby Partyism » Wed Aug 13, 2008 5:02 pm

acateoN wrote:When I activate this plugin it slow the hole site down a whole lot. My server isn't the fastetst one in town but it slows it down by 70-80%. From fast to darn slow.
Is there a way to get by this without having to buy a new server. : )


i have the same problem when activated! But it was only once..

To bad that there isnt an option to display a title with a url to the next or previous story.
Something like This is next story link - This is previous story link
Or is is possible?!
Partyism
 
Posts: 399
Joined: Tue Sep 25, 2007 6:24 pm

Postby FI-DD » Tue Aug 19, 2008 6:11 pm

That's exactly what the script is supposed to display - the title of the next and previous article.

What code do you use in your template to show the links?
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby ryuzaki » Tue Aug 19, 2008 10:54 pm

Yeah, in the template you guys could just write a prefix before the variable like.

Code: Select all
[nextheader]Next: <a href="{nextlink}">{nexttitle}...</a>[/nextheader]
[prevheader]Prev: <a href="{prevlink}">{prevtitle}...</a>[/prevheader]
User avatar
ryuzaki
 
Posts: 11
Joined: Sat Aug 16, 2008 9:00 pm
Location: New York

PreviousNext

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron