vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=225602

Tags order
by Cerbero1000
20 Oct 2009 12:34

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 20 Oct 2009 16:00

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 20 Oct 2009 16:18

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 20 Oct 2009 at 16:37 ---------------

In threadtag.php i changed ORDER BY tag.tagtext to ORDER BY tag.tagid but nothing changed...

Lynne 20 Oct 2009 16:41

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 20 Oct 2009 16:53

Thanks Lynne!!! I modified Order by and now works fine!!! :up:

Fuhrmann 02 Mar 2011 23:28

now, you just need to edit this file:

class_taggablecontent.php

And erase ORDER BY tag.tagtext or something you want.

need abit of help
by appsfinder
03 Oct 2011 17:13

Quote:

Originally Posted by Fuhrmann (Post 2168871)
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 03 Oct 2011 17:22

Quote:

Originally Posted by appsfinder (Post 2252729)
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 03 Oct 2011 17:33

thanks lynne do you have example? or line number!

would like it to be by last post order

many thanks

Lynne 03 Oct 2011 19:56

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?


All times are GMT. The time now is 00:10.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.