Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
CSS Text Shadow BB Code Details »»
CSS Text Shadow BB Code
Version: 1.00, by vijayninel vijayninel is offline
Developer Last Online: Sep 2015 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.0.6 Rating:
Released: 09-10-2010 Last Update: Never Installs: 23
Re-useable Code  
No support by the author.


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 :

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-11-2010, 03:46 AM
gosiah23's Avatar
gosiah23 gosiah23 is offline
 
Join Date: Jun 2009
Location: Morehead City NC
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #3  
Old 09-11-2010, 04:30 AM
vijayninel's Avatar
vijayninel vijayninel is offline
 
Join Date: Mar 2009
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 09-11-2010, 04:53 AM
chuckhodson chuckhodson is offline
 
Join Date: May 2008
Location: Northern CA. USA
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great thanks man.
Reply With Quote
  #5  
Old 09-11-2010, 05:07 AM
gosiah23's Avatar
gosiah23 gosiah23 is offline
 
Join Date: Jun 2009
Location: Morehead City NC
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 09-11-2010, 05:21 AM
vijayninel's Avatar
vijayninel vijayninel is offline
 
Join Date: Mar 2009
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 09-11-2010, 05:22 AM
vijayninel's Avatar
vijayninel vijayninel is offline
 
Join Date: Mar 2009
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chuckhodson View Post
Works great thanks man.

Welcome. Please click installed if used.
Reply With Quote
  #8  
Old 09-11-2010, 05:35 AM
gosiah23's Avatar
gosiah23 gosiah23 is offline
 
Join Date: Jun 2009
Location: Morehead City NC
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again, this anwers my questions

Great work! :up:

Margaret
Reply With Quote
  #9  
Old 09-11-2010, 08:02 AM
txipiron txipiron is offline
 
Join Date: Jan 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed in 4.0.1 and works perfectly
Reply With Quote
  #10  
Old 09-11-2010, 04:28 PM
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Location: its like another planet:D
Posts: 657
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools

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 10:01 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.04598 seconds
  • Memory Usage 2,306KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete