You currently have Javascript disabled, to use some of the features (such as the login) you must enable it for this site
Insert String [TEMPLATE] | Custom Buttons²

Insert String [TEMPLATE]

Post & Get codes templates and info here

Postby SCClockDr on Thu Aug 16, 2007 7:06 pm

Insert String Custom Buttons² Button


    :ff2: :cb2: [cb=custombutton://Insert%20String%5D%E2%96%B2%5Bdata%3Aimage/x-icon%3Bbase64%2CAAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/5mZW/+ZmVv/mZlb/5mZW/+ZmVv/mZlb/5mZW/+ZmVv/mZlb/5mZW/+ZmVv/mZlb/5mZW/+ZmVv/mZlbAAAAAP/NzdP/mZmz/5mZs/+ZmbP/mZmz/5mZs/+ZmbP/mZmz/5mZs/+ZmbP/mZmz/5mZs/+ZmbP/zc3T/5mZWwAAAAD/mZmz/////////////////////////////////////////////////////////////////5mZs/+ZmVsAAAAA/5mZs/////8AAAC8AAAAvAAAALwAAAC8AAAAvAAAALwAAAC8AAAAvAAAALwAAAC8//////+ZmbP/mZlbAAAAAP+ZmbP/////////////////////////////////////////////////////////////////mZmz/5mZWwAAAAD/mZmz/////wAAALwAAAC8AAAAvAAAALwAAAC8AAAAvAAAALwAAAC8AAAAvAAAALz//////5mZs/+ZmVsAAAAA/5mZs/////////////////////////////////////////////////////////////////+ZmbP/mZlbAAAAAP+ZmbP/////AAAAvAAAALwAAAC8AAAAvAAAALwAAAC8AAAAvAAAALwAAAC8AAAAvP//////mZmz/5mZWwAAAAAAzP//AMz//////////////////////////////////////////////////////////////5mZs/+ZmVsAzP//O8Dn6P////8AzP//ADP//wAz//8AM////////wAAANkAAADZAAAA2QAAANkAAADZ//////+ZmbP/mZlbAAAAAP+ZmbMAzP//////////////////////////////////////////////////////////////mZmz/5mZWwDM//8AzP///////wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP///////5mZs/+ZmVsAzP///5mZs/////////////////////////////////////////////////////////////////+ZmbP/mZlbAAAAAP+ZmbP/////////////////////////////////////////////////////////////////mZmzAAAAAAAAAAD/zc3T/5mZs/+ZmbP/mZmz/5mZs/+ZmbP/mZmz/5mZs/+ZmbP/mZmz/5mZs/+ZmbP/mZmz/83N0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgACcQYAAnEGAAJxBgACcQYAAnEGAAJxBgACcQYAAnEGAAJxBAACcQYAAnEEAAJxBAACcQYABnEGAAZxB//+cQQ%3D%3D%5D%E2%96%B2%5B%0A//%20This%20is%20essentially%20a%20single%20item%20version%20of%20deepakjoshi04%27s%20Custom%20forum%20Tags%20button%0A//%20found%20at%20http%3A//custombuttons.phpbbnow.com/viewtopic.php%3Ft%3D233%23659%0A%0A%0Avar%20open%3D%22PLACE%20TEXT%20STRING%20THAT%20ONE%20WANTS%20TO%20INSERT%20HERE%22%3B%0A%0A%0Avar%20theBox%20%3D%20document.commandDispatcher.focusedElement%3B%0Avar%20startPos%20%3D%20theBox.selectionStart%3B%0Avar%20endPos%20%3D%20theBox.selectionEnd%3B%0Avar%20selectionLen%20%3D%20endPos%20-%20startPos%0Avar%20oPosition%20%3D%20theBox.scrollTop%3B%0Avar%20oHeight%20%3D%20theBox.scrollHeight%3B%0Avar%20text%3DtheBox.value.substring%280%2CstartPos%29%3B%09%09%09//%20This%20grabs%20the%20first%20portion%20of%20the%20text%20box.%0Avar%20nHeight%20%3D%20theBox.scrollHeight%20-%20oHeight%3B%0Atext%20+%3Dopen%3B%09%09%09%09%09%09%09//%20This%20inserts%20the%20desired%20string.%0Atext%20+%3DtheBox.value.substring%28endPos%2C%20theBox.value.length%29%3B%09//%20This%20appends%20the%20remaining%20text%20within%20the%20text%20box.%0AtheBox.value%20%3D%20text%3B%09%09%09%09%09%09//%20This%20places%20the%20new%20text%20back%20into%20the%20text%20box.%0AtheBox.selectionStart%20%3D%20endPos%20+%20open.length%3B%0AtheBox.selectionEnd%20%3D%20endPos%20+%20open.length%20-%20selectionLen%3B%0AtheBox.scrollTop%20%3D%20oPosition%20+%20nHeight%3B%09%09%09%09//%20These%20last%203%20statments%20properly%20place%20the%20cursor.%0A%5D%E2%96%B2%5B%0Athis.style.opacity%20%3D%20%27.65%27%3B%0Athis.setAttribute%28%22onmouseover%22%2C%20%22this.style.opacity%20%3D%20%27.99%27%3B%22%20%29%3B%0Athis.setAttribute%28%22onmouseout%22%2C%20%22this.style.opacity%20%3D%20%27.65%27%3B%22%20%29%3B%0A%0Athis.setAttribute%28%22author%22%2C%20%22SCClockDr%2C%20cblover%2C%20deepakjoshi04%2C%20m435tr0d%22%20%29%3B%0Athis.setAttribute%28%22status%22%2C%22Complete%22%29%3B%0Athis.setAttribute%28%22public%22%2Ctrue%29%3B%0Athis.setAttribute%28%22dependency%22%2C%22FF%202.*%2CCB%202.0.02a%22%29%3B%0Athis.setAttribute%28%22version%22%2C%2220070531.03%22%29%3B%0Athis.setAttribute%28%22homepage%22%2C%22%22%29%3B%0Athis.setAttribute%28%22update%22%2C%22%22%29%3B%0Athis.setAttribute%28%22help%22%2C%220%2CHelp%20has%20not%20been%20defined%20for%20this%20button.%22%29%3B%0A%0A//%20this.tooltipText%20+%3D%20%22%22%3B%0A,data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/5mZW/+ZmVv/mZlb/5mZW/+ZmVv/mZlb/5mZW/+ZmVv/mZlb/5mZW/+ZmVv/mZlb/5mZW/+ZmVv/mZlbAAAAAP/NzdP/mZmz/5mZs/+ZmbP/mZmz/5mZs/+ZmbP/mZmz/5mZs/+ZmbP/mZmz/5mZs/+ZmbP/zc3T/5mZWwAAAAD/mZmz/////////////////////////////////////////////////////////////////5mZs/+ZmVsAAAAA/5mZs/////8AAAC8AAAAvAAAALwAAAC8AAAAvAAAALwAAAC8AAAAvAAAALwAAAC8//////+ZmbP/mZlbAAAAAP+ZmbP/////////////////////////////////////////////////////////////////mZmz/5mZWwAAAAD/mZmz/////wAAALwAAAC8AAAAvAAAALwAAAC8AAAAvAAAALwAAAC8AAAAvAAAALz//////5mZs/+ZmVsAAAAA/5mZs/////////////////////////////////////////////////////////////////+ZmbP/mZlbAAAAAP+ZmbP/////AAAAvAAAALwAAAC8AAAAvAAAALwAAAC8AAAAvAAAALwAAAC8AAAAvP//////mZmz/5mZWwAAAAAAzP//AMz//////////////////////////////////////////////////////////////5mZs/+ZmVsAzP//O8Dn6P////8AzP//ADP//wAz//8AM////////wAAANkAAADZAAAA2QAAANkAAADZ//////+ZmbP/mZlbAAAAAP+ZmbMAzP//////////////////////////////////////////////////////////////mZmz/5mZWwDM//8AzP///////wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP///////5mZs/+ZmVsAzP///5mZs/////////////////////////////////////////////////////////////////+ZmbP/mZlbAAAAAP+ZmbP/////////////////////////////////////////////////////////////////mZmzAAAAAAAAAAD/zc3T/5mZs/+ZmbP/mZmz/5mZs/+ZmbP/mZmz/5mZs/+ZmbP/mZmz/5mZs/+ZmbP/mZmz/83N0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgACcQYAAnEGAAJxBgACcQYAAnEGAAJxBgACcQYAAnEGAAJxBAACcQYAAnEEAAJxBAACcQYABnEGAAZxB//+cQQ==]Insert String[/cb]

    Author - Contributors: SCClockDr, cblover, deepakjoshi04, m435tr0d

    Description & Info:
    Here is a button template one can use to base several "Text Insert" buttons in order to create "button specific" hot key/buttons to perform text insert into a web textarea.

                    Mouse Click Behavior
                    ClickBehavior
                    LeftInsert the specified text into the textarea.
                    RightContext Menu
                    Shift+RightContext Menu



    Show KnownIssues
    None


    Show Changelog
    Version 20070531.03
    • Initial Launch
Regards
George
User avatar
SCClockDr
Admin
Admin
 
Posts: 844
Joined: Thu Jun 14, 2007 7:28 pm
Location: SC UpState

Postby FlamingZebra90 on Wed Mar 12, 2008 1:14 am

Is there a way to modify this for thunderbird? it would be perfect for my needs, but it only seems to work in the To:, Subject:, etc. boxes and not in the body of the email. any suggestions?
FlamingZebra90
Registered User
Registered User
 
Posts: 3
Joined: Wed Mar 12, 2008 12:43 am

Postby SCClockDr on Wed Mar 12, 2008 4:16 am

FlamingZebra90 wrote:Is there a way to modify this for thunderbird? it would be perfect for my needs, but it only seems to work in the To:, Subject:, etc. boxes and not in the body of the email. any suggestions?
Code: Select all
custombuttons.gClipboard.write(text);

  goDoCommand('cmd_paste');
Thank You squeaky!
Regards
George
User avatar
SCClockDr
Admin
Admin
 
Posts: 844
Joined: Thu Jun 14, 2007 7:28 pm
Location: SC UpState

Postby squeaky on Wed Mar 12, 2008 7:32 am

After all the help you gave me on the button that contained that - I rather thought you might have added it to your arsenal. And you're very welcome :)
Regards and stuff,
Richard.

CustomButtons2:- ver 2.0.7.5; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
User avatar
squeaky
Moderator
Moderator
 
Posts: 445
Joined: Sat Mar 01, 2008 8:48 am
Location: Sunny Suffolk


Return to Templates Codes & Tutorials

Who is online

Users browsing this forum: • Registered: 0 and 0 guests