vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   BB Code Enhancements - Admin/Mod BB codes (https://vborg.vbsupport.ru/showthread.php?t=194306)

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

Admin/Mod BB codes
 
https://vborg.vbsupport.ru/external/2009/01/18.jpg
Admin 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">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>

These form to match your style:
Installation:
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.

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>

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


If you use these BB codes combined with the Advanced BB code permissions hack it works great on sites.

Advanced BB code Permissions Hack
https://vborg.vbsupport.ru/showthread.php?t=122942

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

Reserved

RobbieZ 10-23-2008 12:01 AM

Can u give examples of what this could be used for please.

And a screenshot would be handy :)

mac-warez 10-23-2008 12:02 AM

yes hold on

mac-warez 10-23-2008 12:11 AM

This will conform to your style...

lazydesis 10-23-2008 05:23 AM

whats the use if any registered user can use the [ admin ] message [ /admin ] BBcode .. wouldn't that defeat the purpose?

UKBusinessLive 10-23-2008 04:07 PM

Thanks for this mac-warez, Just what i was looking for and compliments my forum a treat.

Cheers buddy :D:D:D

UKBusinessLive 10-23-2008 04:14 PM

Quote:

Originally Posted by lazyindian (Post 1650919)
whats the use if any registered user can use the [ admin ] message [ /admin ] BBcode .. wouldn't that defeat the purpose?


The BB tags can be custom made to what you want, Yes members will try and use the tags if you leave them like that, but most admin will rename this in the Admin CP as something else ie. its almost like a password that only admins will know, same as the mod code, change it to something only you would be able to remember. ( Just change the BB Code Tag Name: MOD , to a word or password of your choice!! Easy :) )

On the whole this is a brilliant code and one that compliments your forum style completely

Marked Installed :D

punchbowl 10-23-2008 04:21 PM

They'll guess it in no time!

This mod https://vborg.vbsupport.ru/showthread.php?t=194156 restricts it to specified usergroups.

All the same I really appreciate anyone who goes to the trouble of sharing expertise as mac has.

Cheers

UKBusinessLive 10-23-2008 04:36 PM

Quote:

Originally Posted by punchbowl (Post 1651219)
They'll guess it in no time!

This mod https://vborg.vbsupport.ru/showthread.php?t=194156 restricts it to specified usergroups.

All the same I really appreciate anyone who goes to the trouble of sharing expertise as mac has.

Cheers

If people are that good at guessing then i'll be changing my adminCP password everyday :eek::eek:


All times are GMT. The time now is 07:06 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.01452 seconds
  • Memory Usage 1,743KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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