vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Changing the Tags Phrase (https://vborg.vbsupport.ru/showthread.php?t=210532)

Milez 04-07-2009 07:51 AM

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

Dismounted 04-07-2009 07:59 AM

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).

Milez 04-07-2009 11:15 AM

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 :)

Arkham 04-07-2009 11:44 AM

Quote:

Originally Posted by Milez (Post 1785674)
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.

Milez 04-07-2009 12:26 PM

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 ;)

Dismounted 04-08-2009 06:28 AM

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).

Arkham 04-08-2009 01:44 PM

Quote:

Originally Posted by Dismounted (Post 1786383)
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".


All times are GMT. The time now is 04:40 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.01062 seconds
  • Memory Usage 1,730KB
  • 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
  • (7)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