Member
Member
akvilon   2008-04-25, 17:15
#1

greetings all you great Zen people,
i have a very important for me question to resolve:
is there any way to do comments pagination? is it difficult?
this would help my design so much since i dont want comments to stretch to infinity..

if there are moders or just good people out there, please help!

Member
Member
akvilon   2008-04-29, 02:27
#2

there is no answet so far, not doable than??

Administrator
Administrator
acrylian   2008-04-29, 08:02
#3

Nearly everything is doable, depending on your programming skills. Zenphoto is not setup to do that, so this would mean a lot of work. Is it that worth, do you get that much comments?

Member
Member
akvilon   2008-04-30, 16:09
#4

yes its worth it definatelly and there is a guarantee there will be lots of comments

i really need an idea or even a direction where to start with comment paginations.. is it doable only through php hardcode or database changes/additions required...

help!

Administrator
Administrator
acrylian   2008-04-30, 17:49
#5

It should be possible without hacking zenphoto core files. You will need to replace the next_commentloop with a custom function. Here are some hints, assuming that you know at least the basics of php:

You get the comments to the current selected image as an array with $comments = $_zp_current_image->getComments();
Then you have to use a foreach($comments as $comment) {.....} loop for example to list the comments. The common functions will not work, so you would have to request the db fields directly with $currentcomment['comment'] etc.

Pagination would be of course easier if you get the data directly from the database, then you could use the MySQL offset pointer to separate the results for several pages.

Member
Member
akvilon   2008-05-06, 21:28
#6

i thank you very much for the tip and helpful direction,
appreciate it!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.