| Author |
Message |
rats
Joined: 29 May 2006 Posts: 44
|
|
|
|
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 
|
|
| Wed May 23, 2007 5:37 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
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
last update: 07-22-08: 8:30 pm |
|
| Wed May 23, 2007 5:50 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
 |  | 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  |
Can't confirm this. Do you have an example?
|
|
| Thu May 24, 2007 6:26 pm |
|
 |
flyboy17
Joined: 21 Feb 2007 Posts: 49
|
|
|
| Sat Jun 16, 2007 10:06 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
Use [nextheader] and [prevheader]. Just check the template section for details.
|
|
| Sun Jun 17, 2007 11:05 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
| Tue Sep 04, 2007 4:24 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
Try adding "url" to this in functions.inc.php (around line 568):
 |  | $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 |
|
 |
niaccurshi
Joined: 03 Feb 2008 Posts: 12
|
|
|
|
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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
You can make the script clear the cache when adding news:
Open addnews.mdu and find this:
 |  | msg('info', $echo['headerAdded'], sprintf($echo['headerAddedComplete'], $title, $PHP_SELF.'?mod=editnews&id='.$id)); |
add above:
 |  | cache_remover(); |
|
|
| Thu Mar 06, 2008 7:52 pm |
|
 |
acateoN
Joined: 12 Feb 2008 Posts: 47
|
|
|
|
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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
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 |
|
 |
acateoN
Joined: 12 Feb 2008 Posts: 47
|
|
|
|
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 |
|
 |
Partyism
Joined: 25 Sep 2007 Posts: 284
|
|
|
|
 |  | 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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
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 |
|
 |
ryuzaki

Joined: 16 Aug 2008 Posts: 11 Location: New York |
|
|
|
Yeah, in the template you guys could just write a prefix before the variable like.
 |  | [nextheader]Next: <a href="{nextlink}">{nexttitle}...</a>[/nextheader]
[prevheader]Prev: <a href="{prevlink}">{prevtitle}...</a>[/prevheader] |
|
|
| Tue Aug 19, 2008 10:54 pm |
|
 |
|