Prev-next-links for full story

Download plugins, language packs and stuff.

Prev-next-links for full story

Postby FI-DD » Fri Jan 13, 2006 3:12 pm

This plugin allows you to add prev-next-links and pagination to the full story so you can jump to the previous or next article directly from the full story.



Very usefull if you want to make a gallery: http://english.cutenews.ru/cuteru/gallery.php



Installation:

Just copy it to your plugins folder and activate it in admin panel.
Attachments
prev-next-links.zip
Prev-next-link
(1.39 KiB) Downloaded 1139 times
Last edited by FI-DD on Fri Mar 16, 2007 11:59 am, edited 4 times in total.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby odin » Fri Jan 13, 2006 5:42 pm

BUhahahahahahaha :D I had it I had it I had it :lol: :lol: :lol: :lol:
odin
Moderator
 
Posts: 138
Joined: Thu Sep 29, 2005 8:20 pm
Location: Poland

Postby FI-DD » Wed Jan 18, 2006 1:11 am

Update:

Pagination added to the full story.



Look at the example gallery for details: http://english.cutenews.ru/cuteru/example/gallery
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Kova-2CROwded » Wed Jan 18, 2006 6:27 pm

Nothing on this link ..



Except Title Gallery.
Kova-2CROwded
 
Posts: 38
Joined: Wed Jan 04, 2006 4:22 pm
Location: Croatia/Zagreb

Postby FI-DD » Wed Jan 18, 2006 8:05 pm

Works again. :)
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby joshers » Sun Jan 22, 2006 9:07 am

There seems to be a bug when you you're using prospective posting, it will display the next article.



I add posts weeks in advance, the posts are available via next link now. haha. any fix?



Josh
joshers
 
Posts: 68
Joined: Mon Nov 14, 2005 8:03 am

Postby FI-DD » Sun Jan 22, 2006 9:17 pm

joshers wrote:There seems to be a bug when you you're using prospective posting, it will display the next article.


Fixed. :)
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

I need this module

Postby afxback » Sat Mar 11, 2006 7:27 am

Helo,

dear FI-DD, is it possible to get this demo gallery mod ? please if possible post it here in download section. it nice for me.

thanks
afxback
 
Posts: 134
Joined: Fri Nov 11, 2005 4:59 pm

Postby FI-DD » Sun Mar 12, 2006 9:00 pm

1. Add this to Options -> User Friendly Urls:

Code: Select all
[gallery]

post = "{title}.htm"





2. Create a new category for your images.



3. Create a new template. In "Active News" use {link=gallery/post} instead of {link=home/post} to link to the full image.

In "Full Story" use the prev-next-tags provided by the Prev-Next-Plugin to link to the previous/next image and to show the pagination.

See the "Gallery"-template in the demopage for details.



4. Create a file gallery.php in your main Cutenews directory and put an include code in it which uses the new gallery category and the new gallery template.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Sat Jul 01, 2006 2:25 am

i really like this plugin but i can't use it.. does it do this to everyone? i liked putting a next post and previous post button on the full story page but when it's the newest post on the website.. the previous post button doesn't work and comes up with an error. i don't have an example to show you but it's cause there is no newer post than the newest post.. all the rest of the pages work though.
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby SS » Sat Jul 08, 2006 1:06 pm

FI-DD,

How it is possible to limit amount of pages in pagination?

For sample - max sisplay 4 pages



<< 1 2 3 4 >>



It will seems that at a plenty of pages it to look ridiculously and like < 1 2 3 4 5 6 7 8 9 10 ............................................................. 99 100 >



It would be good to set a variable in template (near {pagination}). For sample {pagination} {max=4}
SS
 
Posts: 32
Joined: Fri Jun 09, 2006 3:51 pm

Postby FI-DD » Sat Jul 08, 2006 6:44 pm

Change this:

Code: Select all
for(($reverse ? $j=0 : $j=count($query2)-1); ($reverse ? $j < count($query2) : $j >=0); ($reverse ? $j++ : $j--)){





to this:

Code: Select all
for(($reverse ? $j=0 : $j=4); ($reverse ? $j < 4 : $j >=0); ($reverse ? $j++ : $j--)){



Not tested.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby SS » Sat Jul 08, 2006 7:17 pm

Thank you very much!

Yes, now pagination has 4 links, but it seems what is it does not work correctly. For sample I have now 21 news and pagination is started with 17

I see < 17 18 19 20 21 > and it always shows only the last 5 news.

Opening the newest page (news) pagination is 17 18 19 20 21 >

If open oldest page, pagination is < 17 18 19 20 21

If to press on "<" that I should seems that to receive < 12 13 14 15 16 >, but is same < 17 18 19 20 21





It would be good to have standard pagination as on ACTIVE NEWS - < 1 2 3 ... 19 20 21 >

It is possible?



Sorry for my English.
SS
 
Posts: 32
Joined: Fri Jun 09, 2006 3:51 pm

Postby rats » Wed May 23, 2007 3:35 pm

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

I even tried to fix it with some str_replace, but no luck with my php noobnessness </3
rats
 
Posts: 44
Joined: Mon May 29, 2006 7:48 pm

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

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 noticed that same thing a long time ago and I still don't know what to do about it either :(
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Next

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron