vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   BB Code Enhancements - CSS Text Shadow BB Code (https://vborg.vbsupport.ru/showthread.php?t=250287)

vijayninel 09-10-2010 10:00 PM

CSS Text Shadow BB Code
 
1 Attachment(s)
This BB code will give a CSS drop shadow to text inside it. You can use it to create better looking articles, posts, news etc. It works on all browsers except Internet Explorer.

In the vB ACP go to Custom BB Codes > BB Code Manager and click on Add new BB Code and fill in the following.

Title : Text shadow

BB Code Tag Name : shadow

Replacement :
HTML Code:

<span style="text-shadow: {option}px {option}px {option}px #a4a1a1;">{param}</span>
Example : [shadow=2]text shadow[/shadow]

Description : This bb code is used to give a shadow to text.

Use {option} :
Yes

Button Image : https://vborg.vbsupport.ru/external/2010/09/20.png

Remove Tag If Empty :
Yes

Disable BB Code Within This BB Code : No

Disable Smilies Within This BB Code : No

Disable Word Wrapping Within This BB Code : No

You can set the shadow distance by adjusting the value inside the first tag. For eg this [shadow=2] will give a shadow of 2 pixels.

To change the colour of the shadow replace the : #a4a1a1 with any colour that you want.

Please mark installed if used. :)

gosiah23 09-11-2010 03:46 AM

Vijayninel, many thanks for making this. I have installed it according to your instructions but is not working on my website. I'm running VB 4.0.5

I have checked in Mozilla Firefox, Safari and IE. Any suggestions ?

vijayninel 09-11-2010 04:30 AM

Hi! Just to clarify, are you specifying the shadow amount when using the code ? like are you giving [shadow=4] or any number ? just putting [shadow] wont work.

Also if your background is of a darker colour then you may have to change the colour of the shadow from #a4a1a1 to something that is more suitable and contrasting for your background.

chuckhodson 09-11-2010 04:53 AM

Works great thanks man.

gosiah23 09-11-2010 05:07 AM

I got it! It does work great. I got everything right except when the option box was coming up I was putting [shadow=4] instead of just 4.

Now, I have a question. If I don't want to use the "option" where in the coding would I put the shadow number?

Thanks,

Margaret

vijayninel 09-11-2010 05:21 AM

If you dont want to use option, then just replace the {option} in the replacement with the size number of the shadow you want in pixels.

For example this code :

HTML Code:

<span style="text-shadow: 4px 4px 4px #a4a1a1;">{param}</span>
used along with this BB code [shadow]text[/shadow] will give you a fixed shadow of 4 pixels. You wont be able to change the shadow size according to the size of the text.

vijayninel 09-11-2010 05:22 AM

Quote:

Originally Posted by chuckhodson (Post 2096558)
Works great thanks man.


Welcome. Please click installed if used. :(

gosiah23 09-11-2010 05:35 AM

Thanks again, this anwers my questions :)

Great work! :up:

Margaret

txipiron 09-11-2010 08:02 AM

Installed in 4.0.1 and works perfectly

goxy63 09-11-2010 04:28 PM

Well great but not working in IE, too bad.... how to install this when over 50%of my users use IE?

Just rated, thank you


All times are GMT. The time now is 08:21 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.00967 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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