vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Moderator/Admin BB Code (https://vborg.vbsupport.ru/showthread.php?t=194117)

UKBusinessLive 10-20-2008 06:15 PM

Moderator/Admin BB Code
 
Hi Guys,

Two Questions ;)

i've seen a BB code hack similar to this.......

PHP Code:

[modPlease read the Forum Rules [/mod

which would allow you to place a box in your post as sort of an offical statement, with the wording inside.

I would love to know how to get this BB code, as i've serched everywhere, can anyone help??

Secondly,

What BB codes if any do you use on your forums similar to this to allow Mods and Admins to make a bold/official statement, or any other type of coding???

I'm just using boring old Red Bold Font at the moment :(

Thanks in advance, this should make an interesting thread :)

mac-warez 10-20-2008 06:39 PM

Here is a moderator BB code:
Code:

<center><table width="75%" cellpadding="0" cellspacing="0" border="0">
<tr>
        <td width="250" valign="top" style="padding-right: 15px;">
                <table cellpadding="8" cellspacing="0" border="0" width="100%" align="center" style="border: 1px solid #000000;">
                <thead>
                        <tr>
                                <td class="tcat" colspan="2">Moderator Message</td>
                        </tr>
                </thead>
                </table>


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top: 0px;">
                <tr>
                        <td class="alt1">
{param}
<br><br>
</td>
                </tr>
                </table>
</table>
</center>

Admin:
Code:

<center><table width="75%" cellpadding="0" cellspacing="0" border="0">
<tr>
        <td width="250" valign="top" style="padding-right: 15px;">
                <table cellpadding="8" cellspacing="0" border="0" width="100%" align="center" style="border: 1px solid #000000;">
                <thead>
                        <tr>
                                <td class="tcat" colspan="2">Admin Message</td>
                        </tr>
                </thead>
                </table>


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top: 0px;">
                <tr>
                        <td class="alt1">
{param}
<br><br>
</td>
                </tr>
                </table>
</table>
</center>


UKBusinessLive 10-20-2008 06:51 PM

Thats Great :D

With many thanks to mac-warez for the above code, Once explained to me where it goes, it works a treat, and for those of you that want to know here are some simple instructions on installing the above BB codes, many thanks to mac-warez for this also :)

Code:

OK,  go to admin cp>Custom Bb Codes> Add New bb code

For the mod code
Title:Moderator Message
BB Code Tag Name:MOD
Replacement:Place the code i put on your thread there

Example:[mod]test[/mod]
Description:Put your message between the tags to give a moderator message.

and for the admin code

Code:

OK go to admin cp>Custom Bb Codes> Add New bb code

For the Admin code
Title:Admin Message
BB Code Tag Name:ADMIN
Replacement:Place the code i put on your thread there

Example:[admin]test[/admin]
Description:Put your message between the tags to give a adminr message.

Thats all folks ;)

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

Not only do these codes work lovely, they also compliment your forum by using the same style set up.

I'm well chuffed :rolleyes:

mac-warez 10-22-2008 07:22 PM

Yes they do match the Skin. I am going to release these as a mod

punchbowl 10-22-2008 08:33 PM

there's also something similar here:

Staff Notice BBCODE https://vborg.vbsupport.ru/showthread.php?t=194156

mac-warez 10-22-2008 11:23 PM

There i released them
https://vborg.vbsupport.ru/showthread.php?t=194306

Please mark as installed


All times are GMT. The time now is 02:28 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.01024 seconds
  • Memory Usage 1,735KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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