Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #32  
Old 08-08-2004, 04:05 PM
Romeos Tune Romeos Tune is offline
 
Join Date: Jun 2004
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, the images are created on the fly and it uses no more queries than the vbcode trick not to mention it's really easy for our computer challenged folks.... lol Let's hope we can get it working with VB.......
Reply With Quote
  #33  
Old 08-08-2004, 08:47 PM
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No more Querys, yeah. But during my teste the image creation was really slow if you have Many Images into one Thread. And mostly this is used in Sugnatures, so it is on every site.

I only tell you what I figured out on my Board.
Reply With Quote
  #34  
Old 08-09-2004, 01:16 AM
Romeos Tune Romeos Tune is offline
 
Join Date: Jun 2004
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The image is only created once and stored on the server..... Sorry for the confusion.... And they aren't created in sigs.... Also, you can limit the groups so only the donating members were able to use it when that board was operational........
Reply With Quote
  #35  
Old 08-09-2004, 06:27 AM
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, than thats new and very better.
Reply With Quote
  #36  
Old 08-09-2004, 06:30 AM
Matrixgl Matrixgl is offline
 
Join Date: Sep 2002
Location: Canada
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is just brilliant! Kudos to you!
Reply With Quote
  #37  
Old 08-10-2004, 04:22 AM
imported_Spieleplanet imported_Spieleplanet is offline
 
Join Date: Jun 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very kool .. installed!
Reply With Quote
  #38  
Old 08-29-2004, 01:57 AM
aranthorn's Avatar
aranthorn aranthorn is offline
 
Join Date: Jun 2004
Location: Chicago
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll say it again, nice hack/share/whatever you want to call it.

As far as changing the color of the font, etc. I use dark and light styles on my site, so I made the background clear

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

<tr>

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

</tr>

<tr><td align="center">

<img src="http://www.dancingmokey.com/******/sign.gif" alt="" border="0">

</td></tr>

</table>
if you want to change the font to bold, blue, comic sans:

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

<tr>

    <td align="center" style="background-color: none; border: 1px solid Black; padding: 1px;"><b> <font face="Comic Sans"; color=blue>{param}</font></b></td>

</tr>

<tr><td align="center">

<img src="http://www.dancingmokey.com/******/sign.gif" alt="" border="0">

</td></tr>

</table>
Reply With Quote
  #39  
Old 09-06-2004, 06:05 AM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I am confused... Does the Shield-Smilie BB-Code create the images on the fly each time someone opens the thread/post? If so I am not sure I want to install this..
Reply With Quote
  #40  
Old 09-06-2004, 02:17 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

Quote:
Originally Posted by venomx
Ok I am confused... Does the Shield-Smilie BB-Code create the images on the fly each time someone opens the thread/post? If so I am not sure I want to install this..
VenomX,

No, it doesn't create the images on the fly. What it does is create a table with the text that the person typed in with a border and then the single image is centered at the buttom of the table to give the illusion that it's a graphic smilie created on the fly.

Kevin
Reply With Quote
  #41  
Old 10-05-2004, 07:53 AM
lanoix lanoix is offline
 
Join Date: Feb 2004
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for this hack, I will use it...

Edit: a little tip... To have the banner centered with the smiley... Simply put a blank space on its left. The size must be the same size of the smiley (excluding the banner/arm). I attach an example... I think it's better... It gives also automaticaly a minimal size of banner
Reply With Quote
Reply


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 07:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04611 seconds
  • Memory Usage 2,309KB
  • 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
  • (1)bbcode_html
  • (1)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