Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 22:30

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Comment order
PostPosted: 4. Aug 2006, 08:00 
is it possible to change the order that the comments are diplayed?

so that the older comments appear first and the new ones appear at the bottom of the page? more like a forum style


Top
  
 
 Post subject:
PostPosted: 4. Aug 2006, 11:17 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Not out of the box - you would have to store the comments the other ways around (this is the easiest way!).

open the readxml.inc.php add look for
saveKommentar

there you find
// new comments on top !!
$xml_string = "<bild><name>" . urlencode($image) . "</name><wert>" . urlencode($titel) . "</wert></bild>\n";
fputs($xml_file, $xml_string);

and below a loop.

take this lines and add it just before
fputs($xml_file, "</beschreibung>");

That's it.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 4. Aug 2006, 11:28 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
i'll add a switch in 1.5 for that.

if you do this in you current version the latest comments function in the top x does not work properly anymore because the order was imoprtent here - I have changed that in 1.5 too.

/Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 81 guests


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 post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy