|
Is there no way to make it so that, when you highlight lines of text and you then click to use the "Insert List" UBBC, it automatically adds a [/li][li] per line?
|
|
|
|
You'd have better luck getting PB itself to implement that.
|
|
|
|
|
You'd have better luck getting PB itself to implement that. And how would one suggest I go about asking/telling/suggesting it to them? Unless someone else can do it
|
|
|
|
Support board. they probably aren't gonna add it to v4.5 though.
|
|
|
|
|
You can suggest stuff via the Support board?
|
|
|
|
Chris meant like an actual feature request.
|
|
|
|
Yeah, a code request wouldn't really help. I really doubt Chris would add a code made by someone else, on here, SZ.
|
|
|
|
Chris meant like an actual feature request. I figured that, but that was the only thing I could find that was close... LOL I also laughed out loud... ...LOL
|
|
|
|
I just wrote a greasemonkey script to do this. However, I currently don't have a host available, so here is the code XD Maybe chris will be nice enough to host it xP // ==UserScript== // @name Proboards UBBC Mod // @namespace Andrew McGivery // @description modifies the proboards ubbc to work with highlighted text. // @include *proboards* // @include *forum.sz-ex.com* // ==/UserScript==
if(location.href.match(/action=post/)){ function listFunction(){ var textarea = document.getElementsByTagName('textarea'); var selectedText; for(i=0;i<textarea.length;i++){ if(textarea[i].name=="message"){ var startPos = textarea[i].selectionStart; var endPos = textarea[i].selectionEnd; selectedText = textarea[i].value.substring(startPos, endPos) if(selectedText != ""){ newText = selectedText.replace(new RegExp( "\\n", "g" ),'\n[/li][li]'); newText = "[ul]\n[li]"+newText+"\n[/li][/ul]"; textarea[i].value = textarea[i].value.replace(selectedText,newText); } else { textarea[i].value = textarea[i].value.replace(selectedText,'[ul]\n[li]\n[/li][li]\n[/li][li]\n[/li][/ul]'); //add("[ul]\n[li]","\n[/li][li]\n[/li][li]\n[/li][/ul]") } } } } var images = document.getElementsByTagName('img'); for(i=0;i<images.length;i++){ if(images[i].title=="Insert List"){ images[i].addEventListener('click',listFunction,false); images[i].parentNode.href = "javascript: void('0')"; break; } } }
ps: if you don't use firefox, but you use chrome, grease monkey scripts will also work in chrome.
|
k
|
|
|
|
Today is mine and your unlucky day, because I use Opera.
|
|
|
|
|
Right I think I'm just retarded but, I don't see where it is etc. I saved that in a notepad file (nto sure if you're meant to?) and named it NAME.user.js, stuck that in a folder and in the Tools ? preferences > etc for Opera, I chose that folder for the directory. If that's all correct, where should the script be located in Opera? I've most likely done all of it wrong, but I have no clue so it was all guess work
|
|
|
|
I just followed the same set of instructions on my opera, and the script works to test, to to reply, make like 3 lines of text, highlight, and click the list button should work if you did it right note: You don't have to activate the script or anything. It just worked as soon as you install it
Last Edit: Feb 11, 2011 12:00:35 GMT by Andrew McGivery
|
k
|
|
|
|
I really did something wrong then. Doesn't work for me haha.
|
|
|
|
I really did something wrong then. Doesn't work for me haha. Typical Stinky. [/trolling]
|
|
|
|