Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 04-07-2009, 07:51 AM
Milez Milez is offline
 
Join Date: Jan 2002
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Changing the Tags Phrase

Before I attempt this I wanted to ask if this will adversely affect something. What i want to do is change all instances of 'Tags' with 'Tickers' for my users as we want stock tickers to show for posts rather than tags. I took a look in the adminCP at find/replace in phrases and it looks like this can be done out of the box.

Can anyone comment if that will work like this? I don't want instances of Tags cropping up down the road...
Reply With Quote
  #2  
Old 04-07-2009, 07:59 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It will work as long as you catch all the phrases with "tag" in them. Also be weary of modifications that do not use phrases (or add phrases of their own).
Reply With Quote
  #3  
Old 04-07-2009, 11:15 AM
Milez Milez is offline
 
Join Date: Jan 2002
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks dismounted.

So in your opinion I should be ok doing the find/replace in phrases? I was going to replace all instances of 'tag' with 'ticker' and 'tags' with 'tickers.'

Again appreciate the assistance
Reply With Quote
  #4  
Old 04-07-2009, 11:44 AM
Arkham's Avatar
Arkham Arkham is offline
 
Join Date: Nov 2001
Location: Toronto, Ontario
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Milez View Post
Thanks dismounted.

So in your opinion I should be ok doing the find/replace in phrases? I was going to replace all instances of 'tag' with 'ticker' and 'tags' with 'tickers.'

Again appreciate the assistance
If you want to preserve the default phrase and only use "tickers" in certain forums, you might want to consider setting up a new phrase for "tickers/Tickers" and then put a template conditional in wherever the Tags phrase is in your templates. The conditional would specify which forums to use either phrase. Here's a good link to a list of conditionals and how to use them.
Reply With Quote
  #5  
Old 04-07-2009, 12:26 PM
Milez Milez is offline
 
Join Date: Jan 2002
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your input Arkham! That's a novel way to approach it and I think I will try that. I'm surprised nobody has tried something like this and made a plugin.

Will report back how it goes
Reply With Quote
  #6  
Old 04-08-2009, 06:28 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Phrases were created so that you could modify them... There is no need to "preserve" the default phrases (you can restore these at any time if need be).
Reply With Quote
  #7  
Old 04-08-2009, 01:44 PM
Arkham's Avatar
Arkham Arkham is offline
 
Join Date: Nov 2001
Location: Toronto, Ontario
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
Phrases were created so that you could modify them... There is no need to "preserve" the default phrases (you can restore these at any time if need be).
Yes, I'm aware of that. I've changed several site-wide phrases thanks to that functionality.

But if someone wants to use different phrases in different forums, eg "Book Review" in a books forum, and "Thread" in discussion forums, the conditionals will allow you to pick and choose which standard or custom phrase you display on a per-forum basis.

If "ticker" is going to replace "tag" in every forum (or wherever "tag" will be displayed), then simply changing the standard phrase is the best option. For instance, I've changed "Prefix" site-wide to "Category".
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:40 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04452 seconds
  • Memory Usage 2,213KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete