vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Auto populate based on setting (https://vborg.vbsupport.ru/showthread.php?t=326948)

Irishnotsane 12-06-2018 01:57 PM

Auto populate based on setting
 
Hello.

I'm wondering if anyone can help me
Basically I have the username (with a link to PM them) of certain people within my forum rules.

This person gets replaced every now and then, and there are multiple references to these people throughout the forum rules.

Is there a way I can edit a box in the admincp for example.

"Current General Manager": Harry
"Current Assistant Manager": Patrick
"Current Forum Manager": Julie

Etc..

Then once I change those names, it'll automatically change the names within the forum rules (along with a hyperlink to direct them to their PM)

I'd really appriciate this help, please let me know if you need more information

z3r0 12-06-2018 02:52 PM

1 Attachment(s)
You could make a new phrase for each user, something like this.

Attachment 157303

And then reference the phrase anywhere you want your text to show

{vb:rawphrase Current_General_Manager}

Alan_SP 12-06-2018 06:04 PM

Thinking on this and using idea z3r0, it can be made into BBcode (if what's needed is used in places where BBcode works).

After that, you just reference (use) that BBcode.

When you need to change things, edit BBcode in ACP.

Irishnotsane 12-07-2018 12:46 PM

Quote:

Originally Posted by z3r0 (Post 2597686)
You could make a new phrase for each user, something like this.

Attachment 157303

And then reference the phrase anywhere you want your text to show

{vb:rawphrase Current_General_Manager}

This doesn't seem to work

It simply comes up with "{vb:rawphrase Current_General_Manager}" in the Forum Rules?
Any advice?

Basically the Forum Rules are sections of the FAQ's that I've added

z3r0 12-07-2018 01:43 PM

I've just tested and this works - $vbphrase[Current_General_Manager]


All times are GMT. The time now is 12:05 AM.

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.00997 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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