View Full Version : Tags order
Cerbero1000
10-20-2009, 10:34 AM
Hi, is there a way to order tags not alphabetical? Where I found the code? Threadtag.php?
Please help
Ex: If a user add b... d... a... c...
I would like to have tag list shown tags in the same way the user post it and not alphabetically.
Thanks
Lynne
10-20-2009, 02:00 PM
Which tag list are you talking about? I think they get saved into the database in alphabetical order. So, you'll either have to change that, or do something in the function fetch_tagbits which will put them into a random order.
Cerbero1000
10-20-2009, 02:18 PM
Uhm, i need more instrunctions on how to do this... I wouldn't like to have in random order but in the order i add tag on the form.
--------------- Added 1256053034 at 1256053034 ---------------
In threadtag.php i changed ORDER BY tag.tagtext to ORDER BY tag.tagid but nothing changed...
Lynne
10-20-2009, 02:41 PM
Then you will have to modify the code that adds the tags in the first place. I'm not sure exactly how you would do that, but I can point you to the right file with the functions for it - includes/functions_newpost.php All the add tags to new threads functions are in there.
Cerbero1000
10-20-2009, 02:53 PM
Thanks Lynne!!! I modified Order by and now works fine!!! :up:
Fuhrmann
03-02-2011, 09:28 PM
now, you just need to edit this file:
class_taggablecontent.php
And erase ORDER BY tag.tagtext or something you want.
appsfinder
10-03-2011, 03:13 PM
now, you just need to edit this file:
class_taggablecontent.php
And erase ORDER BY tag.tagtext or something you want.
tryed to delete this code does not change the order of the tags
am i missing something?
Lynne
10-03-2011, 03:22 PM
tryed to delete this code does not change the order of the tags
am i missing something?
Just deleting it doesn't necessarily change the order. If you want it to spit out the tags in a different order, then you need to *change* that line to tell it in what order.
appsfinder
10-03-2011, 03:33 PM
thanks lynne do you have example? or line number!
would like it to be by last post order
many thanks
Lynne
10-03-2011, 05:56 PM
Did you look at class_taggablecontent.php and find the query? (around line 873)
But how do you put thread tags in a thread in last post order?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.