PDA

View Full Version : Custom BB Code Problem


Philleh
10-11-2007, 11:16 PM
Hi,

I have created a number of Custom BB Codes that specific user groups can use. For example Admins can use
warning
and Mod can use
message
These were both done through the Add Custom BB Code and in the Replacement for admin I have
<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
</td>
Above the closing table tag.

Philleh
10-13-2007, 09:25 AM
<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:

<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 (https://vborg.vbsupport.ru/showthread.php?t=103747)" 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?