Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 10-11-2007, 11:16 PM
Philleh Philleh is offline
 
Join Date: Jan 2007
Location: Adelaide Australia
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 10-12-2007, 11:52 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your missing a closing
HTML Code:
</td>
Above the closing table tag.
Reply With Quote
  #3  
Old 10-13-2007, 09:25 AM
Philleh Philleh is offline
 
Join Date: Jan 2007
Location: Adelaide Australia
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 10-13-2007, 09:44 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 10-13-2007, 11:02 AM
Philleh Philleh is offline
 
Join Date: Jan 2007
Location: Adelaide Australia
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03904 seconds
  • Memory Usage 2,201KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete