Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Prev-next-links for full story
Goto page Previous  1, 2, 3  Next
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
Prev-next-links for full story
Author Message
rats



Joined: 29 May 2006
Posts: 44

Post Reply with quote
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 Shocked
Wed May 23, 2007 5:37 pm View user's profile Send private message
Guest








Please login to hide the ads.

scottdallas



Joined: 04 May 2006
Posts: 1943
Location: US

Post Reply with quote
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.

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Wed May 23, 2007 5:50 pm View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
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 Very Happy


Can't confirm this. Do you have an example?
Thu May 24, 2007 6:26 pm View user's profile Send private message
flyboy17



Joined: 21 Feb 2007
Posts: 49

Post Reply with quote
I also found the bug on last post :p
Image included Smile
*also on first post ({prevtitle})



Shot002.jpg
 Description:

Download
 Filename:  Shot002.jpg
 Filesize:  11.97 KB
 Downloaded:  91 Time(s)

Sat Jun 16, 2007 10:06 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
Use [nextheader] and [prevheader]. Just check the template section for details.
Sun Jun 17, 2007 11:05 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1943
Location: US

Post Reply with quote
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-of-the-year.html

I click next and now I am viewing:
http://www.funnynerd.com/view.php?stealing-microphone-on-live-tv.html?idiot-of-the-year.html

I click previous and now I am viewing:
http://www.funnynerd.com/view.php?idiot-of-the-year.html?stealing-microphone-on-live-tv.html?idiot-of-the-year.html

I click next again and now I am viewing:
http://www.funnynerd.com/view.php?stealing-microphone-on-live-tv.html?idiot-of-the-year.html?stealing-microphone-on-live-tv.html?idiot-of-the-year.html

The pages display the correct content.. but something is going haywire with that URL.. Any idea why it's doing that?

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Tue Sep 04, 2007 4:24 pm View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
Try adding "url" to this in functions.inc.php (around line 568):
Code:
$query   = cute_query_string($QUERY_STRING, array('category', 'skip', 'subaction', 'id', 'ucat', 'year', 'month', 'day', 'user', 'page', 'search', 'do', 'PHPSESSID', 'title', 'time'));

Tue Sep 04, 2007 7:54 pm View user's profile Send private message
niaccurshi



Joined: 03 Feb 2008
Posts: 12

Post Reply with quote
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?
Thu Mar 06, 2008 2:12 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
You can make the script clear the cache when adding news:

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


add above:
Code:
cache_remover();

Thu Mar 06, 2008 7:52 pm View user's profile Send private message
acateoN



Joined: 12 Feb 2008
Posts: 47

Post Reply with quote
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. : )
Sat Mar 22, 2008 1:43 am View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
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.
Sat Mar 22, 2008 6:38 pm View user's profile Send private message
acateoN



Joined: 12 Feb 2008
Posts: 47

Post Reply with quote
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...

_________________
www.xpl.se - Runs under CNR
Tue Apr 08, 2008 9:32 pm View user's profile Send private message
Partyism



Joined: 25 Sep 2007
Posts: 284

Post Reply with quote
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?!
Wed Aug 13, 2008 5:02 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
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?
Tue Aug 19, 2008 6:11 pm View user's profile Send private message
ryuzaki



Joined: 16 Aug 2008
Posts: 11
Location: New York

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

Code:
[nextheader]Next: <a href="{nextlink}">{nexttitle}...</a>[/nextheader]
[prevheader]Prev: <a href="{prevlink}">{prevtitle}...</a>[/prevheader]

Tue Aug 19, 2008 10:54 pm View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.