miniBB Support Forums | 15 years on The Web
miniBB ®

miniBB

®
 
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   
 

Pulldown menu on post form

 
Author elthane
Partaker
#1 | Posted: 29 Nov 2005 19:21 
Can anyone help me with a pulldown menu on the post form, for inserting bbcode tags into the message box?

D:

Author Team
8-)
#2 | Posted: 29 Nov 2005 19:57 
you want somebody to write the script for you? :D

Author _Marco
Partaker
#3 | Posted: 29 Nov 2005 22:00 
There must be something here that fits your needs.....

_Marco

Author elthane
Partaker
#4 | Posted: 30 Nov 2005 00:12 | Edited by: elthane 
you want somebody to write the script for you? :D
I'm not too hot at JavaScript D:

It would be fine if it was just a menu of URLs, but I'm having trouble figuring out how to make it insert tags on selection.
Figured there might be some programmers hanging around who might be able to give me some advice :p

Trying to work off of this base:

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
function formHandler(menu){
var scrpt = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
</SCRIPT>

</HEAD>

<BODY>

<center>
<form name="menu">
<select name="site" size=1 onChange="javascript:formHandler()">
<option value="">Go to....
<option value="http://www.example1.com>Example 1
<option value="http://www.example2.com">Example 2
<option value="http://www.example3.com">Example 3
<option value="http://www.example4.com">Example 4
<option value="http://www.example5.com">Example 5
</select>
</form>
</center>

, but I'm not sure what to do with
document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;


:(

Ooh, and thanks for the link, Marco :)
I shall see if I can find solace there.

Author Team
8-)
#5 | Posted: 30 Nov 2005 10:24 
I hope this is something to point you on (paste in main_post_form.html):

<select name="selBBcode" onChange="JavaScript:paste_strinL(document.postMsg.selBBcode.value, 4, '[bbcode]', '[/bbcode]', '')">
<option value="">Choose BB Code</option>
<option value="1">1</option>
<option value="2">2</option>
</select>

Author elthane
Partaker
#6 | Posted: 30 Nov 2005 21:57 
Coolies, thank you :)

By the way, sorry for whining and being a pain in the arse.
You guys have done a wicked job with miniBB - keep up the good work!

Specific miniBB Support Forums / Specific /
 Pulldown menu on post form
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
↑ TOP