vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Shield-Smilie as BB-Code without Hacking! (https://vborg.vbsupport.ru/showthread.php?t=89421)

Hoffi 06-29-2004 10:00 PM

Shield-Smilie as BB-Code without Hacking!
 
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.

marcel-ea 06-30-2004 07:45 PM

very nice no problems

edit: You have a idea to built a button in the wysiwyg editor ?

Hoffi 07-01-2004 11:01 AM

in vB3 just add a graphic.
in vB2 i have no Idea.

Alzeimer 07-01-2004 04:11 PM

Great, Installed, Thanks!!

imported_infernonet 07-01-2004 06:31 PM

Nice hack :) Good Work

j_86 07-01-2004 07:06 PM

What does it do? :)

imported_infernonet 07-01-2004 07:27 PM

You write a message in between [schield=1]test[/shield] and it shows a little smile with a banner with your custom message :D

imported_infernonet 07-01-2004 07:28 PM

replace 'test' with the what you want on the banner but it isnt installed on vBT so it wont work here.

Hoffi 07-01-2004 07:49 PM

Here is a Screenshot how it could be shown up in your Post.

You also can change the colors you want to. Just set them in the Style-Tag to something you want.

In this shield the Users cal also use any other BB-Code to make very customs shields.

imported_infernonet 07-01-2004 07:51 PM

Hehe cool :) can you add another smile in the banner box?

Hoffi 07-01-2004 08:42 PM

I have posted in the first post how to use different Smilies for the Banner. Juts user option.

Erwin 07-02-2004 02:44 AM

Too cool. :)

Brad 07-02-2004 05:35 AM

Very Nice! :)

Reeve of shinra 07-04-2004 05:49 AM

I dig this one. thanx

Natch 07-06-2004 02:05 AM

You could extend this to have a textured background on the banner as well -
Code:


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

<tr>

    <td align="center" style="background: White url(/path/to/your/texture.gif); 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>


Yapluka 07-06-2004 01:00 PM

Very nice mod ! Thanks, my users love it !

KW802 07-12-2004 03:53 AM

Very cool! Thank you.

ap0c 07-12-2004 08:29 AM

odd....bbcode is on, but it's not working for me

KW802 07-12-2004 10:19 AM

Quote:

Originally Posted by apoc
odd....bbcode is on, but it's not working for me

If you have options turned off you don't need the "=1" part of the command.

Hoffi 07-12-2004 11:59 AM

Yes. Remove the =1 in the Sample or add the fully functionality for more than one Smilie I described. Then you must use "option".

KW802 07-12-2004 12:10 PM

So, just out of curiousity :D ....... what are some example smilies that you guys & gals are using other than the one provided?

ap0c 07-12-2004 03:12 PM

that did it, thanks

tnguy3n 07-12-2004 10:12 PM

Quote:

Originally Posted by KW802
So, just out of curiousity :D ....... what are some example smilies that you guys & gals are using other than the one provided?

This two are of danasoft.com seem to work fine with this bbcode. :D :p

jugo 07-22-2004 05:27 PM

I am definitely loving this!!!

Littlebit 07-23-2004 08:41 PM

Just neat! Thank you for sharing this. :)

Romeos Tune 08-07-2004 06:03 PM

I guess I'm dumb today.... I'm having problems with the options coding. What exactly is it.... I have several images to add and they are showing up but it's for some reason showing every image under the once chosen.

I have:

<option>path to smilie.gif</option>

Anyway, what exactly is the code I'd use for 20 different smilies? an example of 2 would do..... ;) Thanks!

Ok..... Never mind this one.....I got it figured out.....Now if I can figure out the font color part to default to black, bold, and comic sans ms.....

Romeos Tune 08-07-2004 06:05 PM

btw..... at http://stormchat.com/ubbthreads you can see an example of another smilie generator or "Panel Generator" as it's called there.

Log in as "test" password "test" and reply to a message... Not using quick reply... Use the actual reply button. Then look at the smilies and click on "Panel Generator". Think anyone could code this to work with VB??

Romeos Tune 08-07-2004 11:07 PM

For some reason it won't lemme edit that post to make part of it bold...... How about some help here? What code can I add and where can I place it so that the font is comic sans ms, bold, and the color is blue or black? I've tried about everything and no luck...... Anyone?

MrToasty 08-08-2004 11:33 AM

Far out!
That panel generator r0x0rs...!!

Hoffi 08-08-2004 12:19 PM

Use any BB-Code inside the shield like [b] and any other you like. Other Smilies, etc.

The Panel Generator ist not m< choice, because it generates Images, I think it will the same work like in the wbb2 Hack, so every Panel ist new created while visiting the Thread. The Performance for this is very High!

Maybe I might look for a way to build a HTML Panel on this way, but in the Moment I have no time for such nice2have features. ;)

Romeos Tune 08-08-2004 04:05 PM

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....... :D

Hoffi 08-08-2004 08:47 PM

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. ;)

Romeos Tune 08-09-2004 01:16 AM

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........ :D

Hoffi 08-09-2004 06:27 AM

OK, than thats new and very better. ;)

Matrixgl 08-09-2004 06:30 AM

This is just brilliant! Kudos to you!

imported_Spieleplanet 08-10-2004 04:22 AM

very kool .. installed!

aranthorn 08-29-2004 01:57 AM

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>


venomx 09-06-2004 06:05 AM

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.. :(

KW802 09-06-2004 02:17 PM

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

lanoix 10-05-2004 07:53 AM

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 :)


All times are GMT. The time now is 05:33 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.01231 seconds
  • Memory Usage 1,809KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)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
  • (40)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