![]() |
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 |
I love this. It is amazing and clever idea. But
Quote:
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? |
Quote:
And thanks to the author ;) |
Rounded corners version with "Comic Sans MS" font.
PHP Code:
|
I cant get the image to show up, i have double checked my absolute path :(
|
Very nice. Needs TD & TR tags in the first row though. ;)
Quote:
|
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> |
Hoffi, what would be needed to your chance to get the text color back to black?
Thanks, Kevin |
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> 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; } HTML Code:
<div class="shield">{param}</div> 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. |
Quote:
|
Quote:
|
When I used it and did a test post then looked at my vBadvanced CMPS the right colum was dropped way down and into the center one. :(
|
Wich Code did you use? the one in the first Post or some other?
|
One of the ones above. The original works. :)
|
kool little hack
thanks a ton |
Will this work in 3.5 as well? I only get the textbox, not the smilie..
|
Hi there
I have tried this and got this to work with 1 smilie, I even added the option so that it showed up in the WYSIWYG however, in trying to understand this 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] could anyone please add some light to this, to make it more understandable for me, please Much appreciated C |
Quote:
if you notice when you make a bbcode it asks you whether or not you want to enable the option. select yes next when you goto name your multiple files your going to give them the name schield1.gif or schield2.gif whatever text or number or whatever you put after the word schield is what you will enter when posting a message so if i g=have 3 pictures im using and i named them schieldtest.gif than i would input [schield=test]My text[schield] |
thanks Sketch
will give this a try, have a vague idea what to try and will see how it comes out Thanks C edit: this is what I have tried .. the 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="hxxp://www.yourdomain.name/forum/images/smilies/schield{option}.gif" alt="" border="0"></td></tr> </table> This worked in providing the changeable option with 1 image in the WYSIWYG however how do I add the extra image to the panel .. I loaded one image to where it says: Button Image (Optional) If you would like this bbcode to appear as a clickable button on the message editor toolbar, enter the URL of an image 21 x 20 pixels in size that will act as the button to insert this bbcode. trying to figure out how to add 2 images there, presently I have: hxxp://www.yourdomain.name/forum/images/smilies/schield1.gif |
hi.
I am sory I got confused.. can some one post it to show: 1) more than one schield we can click to select from (like the smilies) 2) after selecting it a popup will appear asking to put the text and thats it.. regards. |
Quote:
1) use the {option} for the actual imagename: Code:
<img src="path/to/imagename{option}.gif"> This way you can't call the images 'happysmile.gif', 'frowningface.gif' etc... but give them numbers: 1.gif, 2.gif etc... or perhaps 'shield1.gif', 'shield2.gif' etc... 2) just specify a 'Button Image' in your bb-code editor for usage with this tag. this image will be put next to the other images in your editbox. When clicked it will popup a inputbox for the text, followed by (if you chose to use {option} for this tag) a inputbox asking for the option, in your case the number for the sign. |
<font color="Green">* christianb clicks install</font>
|
Quote:
What should I use for 3.5.x |
Quote:
Where are the tr and td supposed to be? I've tried a few variations but they aren't working :cool: Thanks! |
does this work for 3.6 and above, please?
|
loo. works on vb 3.7.0. beta2, looks a bit strange but it works :D thanks!!!
|
All times are GMT. The time now is 09:37 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|