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 30. Nov 2022, 23:02

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  [ 7 posts ] 
Author Message
 Post subject: Filter tags
PostPosted: 18. Mar 2007, 20:32 
Offline

Joined: 18. Mar 2007, 20:29
Posts: 6
Hi,

first of all great product. I need a function and I'd like to ask this way if it is possible to do it easily: I'd like to filter my images by tag so that it is possible to only display images with tag A, B and D for example. Is it possible?

Thanks
Ronny


Top
 Profile  
 
 Post subject:
PostPosted: 19. Mar 2007, 18:02 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
are you using 1.6 already? there you can search by tags.

But TWG does not have something like "virtual folders".
I was thinking about this but my underlying data structure is in xml and folder based. And this makes this very complicated.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 22. Mar 2007, 20:58 
Offline

Joined: 18. Mar 2007, 20:29
Posts: 6
I'm already using 1.6 and found the possibility to search by tags. But what I need is to search for multiple tags at once or to search for another tag within the search results.

Thanks
Ronny


Top
 Profile  
 
 Post subject:
PostPosted: 22. Mar 2007, 21:17 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Then you have to implement this ;). the search is quite easy to extend.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 24. Mar 2007, 16:19 
Offline

Joined: 18. Mar 2007, 20:29
Posts: 6
If it is such easy to implement could you give me a hint where to find the search (I'm new to php).

Thanks Ronny


Top
 Profile  
 
 Post subject:
PostPosted: 24. Mar 2007, 16:32 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
sure

open inc/readxml.inc.php look for the method search_tags.
somewhere in the middle is a

if ($exact) {

below are the in_array search - you have to split your search string (if you e.g. seperate then by a space) and then only return values where both search terms are in the tags array ;).

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 25. Mar 2007, 17:24 
Offline

Joined: 18. Mar 2007, 20:29
Posts: 6
Thank you for your fast and great help. I got it. I made my own tag list to select multiple tags to search.

Thank you
Ronny


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 4 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