vb.org Archive

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

Philleh 10-11-2007 11:16 PM

Custom BB Code Problem
 
Hi,

I have created a number of Custom BB Codes that specific user groups can use. For example Admins can use
Quote:

[admin]warning[/admin]
and Mod can use
Quote:

[mod]message[/mod]
These were both done through the Add Custom BB Code and in the Replacement for admin I have
Quote:

<style>
.code{font-family: Courier, Courier New, Verdana, Arial;
color: #465584;
background-color: #FAFCFE;
border: 1px dotted #000;
padding: 2px;
width:98%;
margin: 0px auto 0px auto;
/*overflow: auto;
height: 200px;*/}
</style>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<td><span class="smallfont"><strong>Island Order Warning:</strong></span></td>
</tr>
<tr>
<td class="code"><img align="left" src="images/IObadge.png"><img align="right" src="images/IObadge.png"><center>{param}</center></td>
</table>
For the mod I have basically the same except for an image change and a text change.
I have added another one for another usergroup, using same code again but obviously with a different image, however it has somehow stopped BB Code for working. As when I try to use any of them, or even default BB Code such as 'quote', they do not work.
When I view the misc.php?do=bbcode page they appear to work fine.

I have also installed advanced_bbcode_permissions product which I am not sure if it affects it.
Both these Mods were found in the forum however I can't find the links for them.

Does anyone have any ideas about why this could be happening or if I am doing something wrong?

Regards

Phil

Opserty 10-12-2007 11:52 AM

Your missing a closing
HTML Code:

</td>
Above the closing table tag.

Philleh 10-13-2007 09:25 AM

Quote:

<style>
.code{font-family: Courier, Courier New, Verdana, Arial;
color: #465584;
background-color: #FAFCFE;
border: 1px dotted #000;
padding: 2px;
width:98%;
margin: 0px auto 0px auto;
/*overflow: auto;
height: 200px;*/}
</style>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<td><span class="smallfont"><strong>Island Order Warning:</strong></span></td>
</tr>
<tr>
<td class="code"><img align="left" src="images/IObadge.png"><img align="right" src="images/IObadge.png"><center>{param}</center></td>
</tr>
</table>
That does have a closing tag?

Opserty 10-13-2007 09:44 AM

Whoops I meant <tr> but it seems you have put it in, other then that I'd check if the CSS class.

Try this:
HTML Code:

<style type="text/css">
.mod-warn {
    font-family: Courier, Courier New, Verdana, Arial, sans-serif;
    color: #465584;
    background-color: #FAFCFE;
    border: 1px dotted #000000;
    padding: 2px;
    width:98%;
    margin: 0 auto;
    /*overflow: auto;
    height: 200px;*/
}
</style>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
    <tr>
        <td><span class="smallfont" style="font-weight:bold">Island Order Warning:</span></td>
    </tr>
    <tr>
        <td class="mod-warn"><img align="left" src="images/IObadge.png"><img align="right" src="images/IObadge.png"><center>{param}</center></td>
    </tr>
</table>

If it works you can move the CSS to the Main CSS in Style Manager so it doesn't need to be posted everything the BBCode is used.

Philleh 10-13-2007 11:02 AM

Just tried it with the CSS class however still does not work.

Thanks for the help so far.

Any other ideas? Or would there be another way to do it?

--------------- Added at 21:40 ---------------

I have 'disabled' the Mod "Advanced BBCode Permissions" through the Product manager and it now seems to work fine.

Thanks for the help! :)

Any idea how I can set permissions on the BB code using a different method?


All times are GMT. The time now is 03:26 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.01002 seconds
  • Memory Usage 1,731KB
  • 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_html_printable
  • (4)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