miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | 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 
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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed 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
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑