Agent Moose
|
|
« on: May 01, 2009, 08:39:08 pm » |
|
Footers: <script> $("img[alt='Insert List']").parent("a").attr("href","javascript:List1();"); $("img[alt='Insert List']").parent("a").attr("onclick",""); //Created by Agent Moose (revolutionx.smfforfree3.com) function List1(){ document.postmodify.message.value += "[list]\n"; List2(); }; function List2(){ var list = prompt("Enter information for your list:",""); if(list){ document.postmodify.message.value += "[li]" + list + "[/li]\n"; List3(); }else if(!list || list == false){ List4(); };}; function List3(){ var tree = prompt("Enter information for your list:",""); if(tree){ document.postmodify.message.value += "[li]" + tree + "[/li]\n"; List2(); }else if(!tree || tree == false){ List4(); };}; function List4(){ document.postmodify.message.value += "[/list]\n"; }; </script> Original Request: http://revolutionx.smfforfree3.com/index.php/topic,525.0.htmlJust click on the List BBC button and a prompt will come up so you can enter your infromation for the list Enjoy
|
|
|
|
|
Andrew
|
|
« Reply #1 on: May 01, 2009, 08:50:55 pm » |
|
Ah Moose thank you so much! I've been waiting for this one forever!, Great job Gonna go try it out One suggestion...Is it possible you could combine it with this code?
|
|
|
|
|
Agent Moose
|
|
« Reply #2 on: May 01, 2009, 08:57:18 pm » |
|
Pft, simple <script> $("img[alt='Insert Hyperlink']").parent("a").attr("href","java"+"script:Hyper();"); $("img[alt='Insert Hyperlink']").parent("a").attr("onclick",""); //Created by Agent Moose (revolutionx.smfforfree3.com) function Hyper(){ var hyperlink = prompt("Enter URL for Link:","http://"); if(!hyperlink){ alert("You must enter a URL for your Link!"); return; }; var hypername = prompt("Enter Link Name:",""); if(!hypername){ alert("You must enter a Name for your URL!"); return; }; document.postmodify.message.value += "\[url="+hyperlink+"\]"+hypername+"\[/url\]";} $("img[alt='Insert Image']").parent("a").attr("href","java"+"script:image();"); $("img[alt='Insert Image']").parent("a").attr("onclick",""); function image(){ var image = prompt("Enter URL for Image:","http://"); if(!image){ alert("You must enter a URL for your Image!"); return; }; document.postmodify.message.value += "\[img\]"+image+"\[/img\]";} $("img[alt='Insert Email']").parent("a").attr("href","java"+"script:email();"); $("img[alt='Insert Email']").parent("a").attr("onclick",""); function email(){ var email = prompt("Enter the E-Mail address:",""); if(!email){ alert("You must enter a vaild E-mail address!"); return; }; document.postmodify.message.value += "\[email\]"+email+"\[/email\]";} $("img[alt='Insert List']").parent("a").attr("href","javascript:List1();"); $("img[alt='Insert List']").parent("a").attr("onclick",""); function List1(){ document.postmodify.message.value += "[list]\n"; List2(); }; function List2(){ var list = prompt("Enter information for your list:",""); if(list){ document.postmodify.message.value += "[li]" + list + "[/li]\n"; List3(); }else if(!list || list == false){ List4(); };}; function List3(){ var tree = prompt("Enter information for your list:",""); if(tree){ document.postmodify.message.value += "[li]" + tree + "[/li]\n"; List2(); }else if(!tree || tree == false){ List4(); };}; function List4(){document.postmodify.message.value += "[/list]\n";}; </script>
|
|
|
|
Andrew
|
|
« Reply #3 on: May 01, 2009, 09:01:38 pm » |
|
Now im a satisified customer, thanks so much Moose! You are truly a genius
|
|
|
|
Lyle
MeTube
Member
Offline
Gender:
Posts: 69
Badges: (View All)
|
|
« Reply #4 on: June 07, 2009, 04:01:49 pm » |
|
the list prompt is good for some things, like posting tutorial website list etc...
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
|
« Reply #5 on: June 24, 2009, 05:15:25 am » |
|
Thx Moose! Just added code. It's really helpful
|
|
|
|
|
|