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

Simon Lloyd 09-27-2008 09:34 PM

Thanks for sticking with this, all i get for the Information box is the Gif and the text formatting, no background colour, border or underline (using ver3.5) here's the code:
PHP Code:

.warning-box,
.
attention-box,
.
notice-box,
.
help-box,
.
information-box
{
    
color#000;
    
border1px solid #000;
    
-moz-border-radius5px;
    
background-color#FCF8C7;
    
padding6px;
    
text-align:left;
}

.
warning-box img,
.
attention-box img,
.
help-box img,
.
notice-box img,
.
information-box img
{
    
float:left;
    
margin-top10px;
    
margin-right5px;
    
vertical-align:middle;
    
border0px;
}

.
warning-box h2,
.
warning-box p,
.
notice-box h2,
.
notice-box p,
.
attention-box h2,
.
attention-box p,
.
help-box h2,
.
help-box p,
.
information-box h2,
.
information-box p
{
    
padding0px;
    
margin:  0px;
    
margin-left60px;
}

.
warning-box h2,
.
attention-box h2,
.
notice-box h2,
.
help-box h2,
.
information-box h2
{
    
padding-bottom4px;
    
font-size14px;
    
border-bottom1px solid #000;
}

.
warning-box h1,
.
attention-box h1,
.
notice-box h1,
.
help-box h1,
.
information-box h1
{
    
padding0px;
    
margin:  0px;
    
margin-left60px;
    
font-size12px;
        
font-weight:normal;
}

.
warning-box h6,
.
attention-box h6,
.
notice-box h6,
.
help-box h6,
.
information-box h6
{

    
margin:  20px;
    
padding0px;
    
margin-left60px;
    
font-size12px;
        
font-weight:normal;
}

.
warning-box
{
    
background-color#FFCCCC;
}

.
help-box
{
    
background-color#d5eeb6;
}

.
warning-box ul,
.
attention-box ul,
.
notice-box ul,
.
help-box ul,
.
information-box ul
{
    
margin-left30px;



ti07shadow 09-28-2008 12:44 AM

hmm thats wierd, why is yours doing that..? Hey does your information box bbc replacement code look like this?

Code:

<div class='information-box'>
 <img src='images/misc/information.gif' alt='information' />
 <h2><strong>Information</strong></h2>
<h1><font color="#000000">{param}</font></h1>
<br /><br /></div>

also did you place the CSS code into the second box? thats where its suppose to be.

Pirat3 09-28-2008 04:16 AM

Advanced BBCode Permissions 3.0 does not work with 3.7.x please make this for staff only :D

Pirat3 09-28-2008 04:26 AM

anyone know how to make only stAFF use bbcode? i am on latest vb adn the advanced vb mod apparently does not work on recent vb

Simon Lloyd 09-28-2008 05:19 AM

Quote:

Originally Posted by ti07shadow (Post 1631946)
hmm thats wierd, why is yours doing that..? Hey does your information box bbc replacement code look like this?

Code:

<div class='information-box'>
 <img src='images/misc/information.gif' alt='information' />
 <h2><strong>Information</strong></h2>
<h1><font color="#000000">{param}</font></h1>
<br /><br /></div>

also did you place the CSS code into the second box? thats where its suppose to be.

Directly from my custom BB:
PHP Code:

<div class='Information-box'>
<
img src='images/misc/information.gif' alt='Information' />
<
h2><strong>Information</strong></h2>
<
h1><font color="#000000">{param}</font></h1>
<
br /><br /></div

and yes the CSS code is in the second box, its strange i have other mods none of which use custom bbcode (i have the permissions mod but this problem was there prior to that), like i said its no real problem as i can deny its use, it's just a little annoying when you have gone to so much trouble to provide something!

Simon Lloyd 09-28-2008 05:25 AM

Haha just sorted it!!!, it seems that the CSS code is case sensitive, .information-box should read .Information-box except for the .information-box img that stays the same!

I now have the information icon in a bordered yellowish box with the underline running through the center!!

Thanks for looking at it anyway, nice mod ;)

ti07shadow 09-28-2008 08:23 PM

wow the simplest thigns seem to be the most annoying to find, good find and thankyou for letting us know how you fixed the problem. Hmm as for the permissions thing, I donot have any issue with it on the latest version of vbulletin, maybe perhaps its because I had the mod installed prior to the last 2 updates... However this bb code does work on all versions of vbulletin along withs seevral different forums, it works with phpbb 2 &3, invision power board, mybb, and several others lol. :p tested on alkl, just have to make minor changes nad thats the {param} thing lol.

yea nad guys thats why I made it in its box, just copy and paste it, if you decided to retype it make sure you get it down to the correct casing! lol. Enjoy. :)

Simon Lloyd 09-28-2008 08:55 PM

Yeah there was another minor typo like that too but i cant remember what it was, it's a great mod and the custom permissions thing worked perfect but also needed a little tweak!

Thanks for sharing!

kiFF 10-01-2008 11:15 PM

I'll install this when there's an option for staff permission only.

I'm not going to install the Advanced BB Permissions mod. It doesn't work well.

Simon Lloyd 10-02-2008 05:03 AM

Quote:

Originally Posted by kiFF (Post 1635141)
I'll install this when there's an option for staff permission only.

I'm not going to install the Advanced BB Permissions mod. It doesn't work well.

I've installed it and it works perfect!, you have to set the permissions for each usergroup otherwise they can't use any BB code but other than that it works perfect, so i have that installed and i have this mod installed and only available to staff!


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