Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications

Reply
 
Thread Tools
Shield-Smilie as BB-Code without Hacking! Details »»
Shield-Smilie as BB-Code without Hacking!
Version: 1.00, by Hoffi Hoffi is offline
Developer Last Online: Mar 2016 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-29-2004 Last Update: Never Installs: 16
 
No support by the author.

All cried for this... OK. Noe I release it herer too.

No Hacking required for this.

Take the following Image and following BBCode:

Title: Schield

Tag: schield (or whatever you want)

Replacement:

HTML Code:
<table border="0" cellspacing="0" cellpadding="0">

<tr>

    <td align="center" style="background-color: White; border: 1px solid Black; padding: 1px;"><normalfont>{param}</normalfont></td>

</tr>

<tr><td align="center">

<img src="absolut/path/to/your/image.gif" alt="" border="0">

</td></tr>

</table>


Use Option: No

Works on vB2 and vB3

If you want more than one Image use the Option tag and name the Images to schield1.gif etc. and use Filepath shield{option}.gif

Than call with [ schield=1]test[/shield]

I attached a Smilie.

Have fun.

Show Your Support

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

Comments
  #42  
Old 10-07-2004, 07:37 PM
imported_seraphex imported_seraphex is offline
 
Join Date: Feb 2004
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well after some work I have this.. Anyone know how I can pass the option through so people don't have to type it in. Here's the code I'm using.. I don't know if it's correct or not but it works for me. It prompts for the option but I want it to just automatically fill it in onclick.

Code:
<a href="#" onclick="return vbcode('banner', 'xxxxxx', 'xxx')"><img class="image" src="images/smilies/bannerwink.gif" alt="[banner=wink]text[/banner]" border="0" /></a> wink
Reply With Quote
  #43  
Old 01-10-2005, 12:58 AM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love this. It is amazing and clever idea. But

Quote:
Originally Posted by Hoffi
If you want more than one Image use the Option tag and name the Images to schield1.gif etc. and use Filepath shield{option}.gif

Than call with [ schield=1]test[/shield]
huh?

Another thing, you can make a smilie button but you have make it a bit smaller and then it will be clickable.

Does anyone have some gifs of other alternatives?
Reply With Quote
  #44  
Old 01-20-2005, 09:13 AM
mindbuster mindbuster is offline
 
Join Date: Oct 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wintermute
if you want to change the font to bold, blue, comic sans:

Code:
 
<td align="center" style="background-color: none; border: 1px solid Black; padding: 1px;"><b> <font face="Comic Sans"; color=blue>{param}</font></b></td>
I had to use "Comic Sans MS" for it to work, but thanks anyway

And thanks to the author
Reply With Quote
  #45  
Old 01-20-2005, 02:15 PM
mindbuster mindbuster is offline
 
Join Date: Oct 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Rounded corners version with "Comic Sans MS" font.

PHP Code:
<table border="0" cellspacing="0" cellpadding="0">
<
div style="margin: 0 4px 0 4px; padding:0; border: solid 1px #000; background-color:White; z-index:1;">
<
div style="margin: 0 -2px 0 -2px; padding:1px; border-left: solid 1px #000;border-right: solid 1px #000; background-color:White; z-index:2;">
    <
div style="margin: 0 -3px 0 -3px; padding:1px; border-left: solid 1px #000;border-right: solid 1px #000; background-color:White; z-index:3;">
     <
div style="margin: 0 -3px 0 -3px; padding:1px; border-left: solid 1px #000;border-right: solid 1px #000; background-color:White; z-index:4;">
        <
div style="margin: 0 -3px 0 -3px; padding: 0 4px 0 4px; border-left: solid 1px #000; border-right: solid 1px #000; background-color:White; z-index:5;">
<
div align="center" style="background-color: White; "><b><font face="Comic Sans MS"color=black>{param}</font></b></div>
    </
div>
     </
div>
    </
div>
</
div>
</
div>
<
tr><td align="center"
<
img src="path/to/your/image.gif" alt="" border="0">
</
td></tr>
</
table
Example attached
Reply With Quote
  #46  
Old 02-02-2005, 11:16 AM
ChrisSy ChrisSy is offline
 
Join Date: Mar 2002
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cant get the image to show up, i have double checked my absolute path
Reply With Quote
  #47  
Old 02-03-2005, 11:46 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice. Needs TD & TR tags in the first row though.

Quote:
Originally Posted by MindBuster
Rounded corners version with "Comic Sans MS" font.

PHP Code:
<table border="0" cellspacing="0" cellpadding="0">
<
div style="margin: 0 4px 0 4px; padding:0; border: solid 1px #000; background-color:White; z-index:1;">
<
div style="margin: 0 -2px 0 -2px; padding:1px; border-left: solid 1px #000;border-right: solid 1px #000; background-color:White; z-index:2;">
    <
div style="margin: 0 -3px 0 -3px; padding:1px; border-left: solid 1px #000;border-right: solid 1px #000; background-color:White; z-index:3;">
     <
div style="margin: 0 -3px 0 -3px; padding:1px; border-left: solid 1px #000;border-right: solid 1px #000; background-color:White; z-index:4;">
        <
div style="margin: 0 -3px 0 -3px; padding: 0 4px 0 4px; border-left: solid 1px #000; border-right: solid 1px #000; background-color:White; z-index:5;">
<
div align="center" style="background-color: White; "><b><font face="Comic Sans MS"color=black>{param}</font></b></div>
    </
div>
     </
div>
    </
div>
</
div>
</
div>
<
tr><td align="center"
<
img src="path/to/your/image.gif" alt="" border="0">
</
td></tr>
</
table
Example attached
Reply With Quote
  #48  
Old 02-07-2005, 08:58 PM
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should not use the Font-Tag! This ist not XHTML compilant. Use this
HTML Code:
<div style="font-family: "Comic Sans"; font-weight: bold;">{param}</div>
Reply With Quote
  #49  
Old 02-08-2005, 04:50 AM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hoffi, what would be needed to your chance to get the text color back to black?

Thanks,
Kevin
Reply With Quote
  #50  
Old 02-08-2005, 08:26 AM
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, a small tutorial for CSS.

Take this div-Tag for the one in the Middle which includes the {param}. All Font-formatting can be done with this.
HTML Code:
<div align="center" style="background-color: White;  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;  font-size: small;  font-style: normal;  font-weight: bold;  font-variant: small-caps; color: black;">{param}</div>
alternative:
Enter a new Class in the Additinal Style-Settings called this.
HTML Code:
.shield { background-color: White;  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;  font-size: small;  font-style: normal;  font-weight: bold;  font-variant: small-caps;  color: black;    }
and use this div tag.
HTML Code:
<div class="shield">{param}</div>
Description of the used Flags:
background-color: OK, I think no explanation necessary
font-family: The Font or Font-Family you want to use. You can enter more than one Font like in my demo. For higher compatibility use fonts which are installed on any OS and Include serif, sans-serif or monospace.
font-size: The Size you wanr to use. You can use hier absolute Size like 10pt oder 12px, or you can use words like smaller or bigger. just test around what fits perfectly in your design.
font-style: normal or italic.
font-weight: normal, bold, bolder, lighter. In normal case normal and bold are the only differences.
font-varian: normal or small-caps.
color: The Font color you want to use. You can enter names Colors or hex-Numbers like #000000 for black.

additinal entrys that can be interesting:
text-decoration: underline, overline, none or line-through
text-transform: uppercase, lowercase, capitalize or none
letter-spacing: eg. 5px

you also may add a background-Image to the Shield if you insert the following into the div-tag.
background-image: url(path/to/bgfile.gif);

I hope this helps you.
Reply With Quote
  #51  
Old 03-21-2005, 05:23 AM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KW802
Very nice. Needs TD & TR tags in the first row though.
Can you paste the code with the missing TD and TR?
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 04: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.07530 seconds
  • Memory Usage 2,337KB
  • Queries Executed 25 (?)
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_code
  • (5)bbcode_html
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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