vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Automatic BB Code (https://vborg.vbsupport.ru/showthread.php?t=306336)

Vaq 12-27-2013 08:00 AM

Automatic BB Code
 
I've seen this on a few forums, staff members have their own bbcode that will allow their posts to look different from others. I'll add a picture below to show what I mean. I've gotten the bbcode replacement and currently the staff members are forced to type out the bbcode every time they wish to use it. I would love to find a way for them to just be able to post and the bbcode automatically be displayed in their posts.

Thanks in advance.

https://vborg.vbsupport.ru/external/2013/12/6.png

--------------- Added [DATE]1388163017[/DATE] at [TIME]1388163017[/TIME] ---------------

Bump

--------------- Added [DATE]1388176147[/DATE] at [TIME]1388176147[/TIME] ---------------

dddd

--------------- Added [DATE]1388220853[/DATE] at [TIME]1388220853[/TIME] ---------------

gggg

Vaq 01-05-2014 09:11 AM

Bump...

kh99 01-05-2014 01:18 PM

Do you want a bbcode to appear automatically in the text box, or do you want the default text color to be set by usergroup?

Vaq 01-06-2014 12:01 AM

Quote:

Originally Posted by kh99 (Post 2472370)
Do you want a bbcode to appear automatically in the text box, or do you want the default text color to be set by usergroup?

Basically, when I post something like: "Hey, how are you"

It would post as that, but it would automatically add the BBcode and make it "[admin1]Hey, how are you[/admin1]

Vaq 01-08-2014 01:36 AM

Bump

darnoldy 01-09-2014 06:32 AM

My sense is that this would be easier to do by using a conditional based on the poster's usergroup to change a css class within the postbit template.

blind-eddie 01-09-2014 09:58 AM

There are a few different bbcodes here that with a lil editing can do what you want. You would also have to set permissions on these bbcodes so only staff can use them.

Search above for admin staff bbcode, all mods, title only (Most bbcodes pre 3.8 will work with 3.8)
If you are willing to do some editing, you can achieve what you are after.

Vaq 01-11-2014 08:24 AM

I need help with the code for it, I have no clue what template or what code to edit..

Vaq 01-18-2014 01:57 AM

Bump

blind-eddie 01-18-2014 02:02 PM

Did you search for and find one that you liked?
All bbcode mods come with a readme... follow the instructions on how to install it.
There will be no template to edit to add a bbcode.


All times are GMT. The time now is 10:36 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.01051 seconds
  • Memory Usage 1,727KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete