vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Enable CSS (https://vborg.vbsupport.ru/showthread.php?t=276726)

Wormow 01-10-2012 10:41 AM

Enable CSS
 
I've enabled HTML for my usergroup and while editing my signature, I have this code -

[css-div="width: 300px; height: 10px;"][css-div="padding: 2px 2px 2px 2px; border: dashed 1px #60B530; font-variant: small-caps; color: #60B530; background-color: #ADFF2F;"]---Signature Here---
[/css-div][/css-div]

But the CSS doesn't appear, it just shows the code. Do I need to enter a custom bbcode or something? Can anyone guide me through the steps?

kh99 01-10-2012 12:58 PM

Yes, to make that work I think you'd need to define a css-div bbcode (in which case you wouldn't need html enabled).

To define it go to Add New BB Code and enter css-div for the Tag Name, and for the replacement something like:

Code:

<span style="{option}">{param}</span>

(or you could use div instead of span since your tag is called css-div. You can easily change it to see what works for you). Anyway, I think you can leave all the radio buttons at their default settings, and I'll leave all the other text fields up to you (they should be obvious).

BTW, you should realize that enabling html for a forum, or defining a bbcode like this is somewhat "dangerous" as it allows members to post code whcih could mess up your forum pages. (It would also let them post any javascript they wanted, which probably isn't something you want to allow in general).


All times are GMT. The time now is 09:29 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.01221 seconds
  • Memory Usage 1,707KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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