View Full Version : [Release Vb 2.x] Vb Code modification
floleb7
Sat 21st Apr '01, 8:29am
i don't like Vb Code system actually so i use a simple system
you click on the img one time there is the first tag you click another time the tag is closed more simple i think ;)
<a alt1="" alt2="" t="0" onClick="t=1-t;if (t==1){message.value=message.value+alt1};if (t==0){message.value=message.value+alt2}"><img src="images/bbcode/mail.gif"
border=0></a>
Aaron Pepper
Sat 21st Apr '01, 2:49pm
Can I see a demo of this in action?
floleb7
Sat 21st Apr '01, 3:45pm
i can just put a screen (i like this method without JS)
screen here (http://zebazar2.free.fr/bbcode.jpg)
Streicher
Sun 29th Apr '01, 6:58am
It does not work with Netscape 4.7x.
floleb7
Sun 29th Apr '01, 2:10pm
hum i haven't test with NS i will see a correction for NS's user
floleb7
Sat 5th May '01, 8:10am
so with this it works with ns 4.7 so 6 i hope
1) add this to template
before /header
<script language="JavaScript" src="scripts.js"></script>
2) add this to the same template each time where you want in the template (with a good image)
each time you add an image with a bbcode be careful about addcode('') you need to put the good action
<img src="img/bbcode/gras" border="0" alt="Mettre le texte en gras : texte" onMouseUp="addCode('gras')">
2) open scripts.txt and remplace replier to the name of your textarea (name="" in template)
3) modify the code as you want (it's in french so don't worry ;))
4)save to scripts.js
5) upload scripts.js to your forum directory
Streicher
Sat 19th May '01, 7:01am
That is really good. Do you know how to make a dropdown field to insert the values directly into the textarea.
For example a dropdown field with two entries:
Arrow down and arrow up. And for arrow down insert ↓ and for arrow up ↑ in the textarea
Powered by vBulletin™ Version 4.0.0 Beta 2 Copyright © 2009 vBulletin Solutions, Inc. All rights