vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Tags order (https://vborg.vbsupport.ru/showthread.php?t=225602)

Cerbero1000 10-20-2009 10:34 AM

Tags order
 
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 [DATE]1256053034[/DATE] at [TIME]1256053034[/TIME] ---------------

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

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 10-03-2011 03:22 PM

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 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?


All times are GMT. The time now is 11:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00976 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete