Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2002
Posts: 111
PF
Offline
Member
Member
Offline
Joined: Apr 2002
Posts: 111
First off this hack will only work for IE users. smile
Secondly I'm quite a bandwidth freak so the JavaScript code looks rather unreadable.
Thirdly, I'm surprised no-one has done this kinda of hack before, seems already popular over at our forums, and its only been there for ~1hr smile

On with the show...

Okay, in short you know in IM Windows or mIRC where you can press CTRL+B to bolden text, or mark a starting point for the bold and an end point?
well thats how this work

The Shortcuts:
CTRL+B: Bolden
CTRL+I: Italics
CTRL+E: Email
CTRL+M: code (Monospace text)
CTRL+Q: Quote
CTRL+.: Image

CTRL+Enter: Submit (with confirmation)

2 ways of doing it, if there isn't a current selection, then it'll do the left side tag then you type in your text and press it again and it'll close the tag.
Or you highlight a selection of text, and press the combination you want and voila it makes that text the way you want.

It isn't completely perfect but hey, it works (if not abused).

Also I haven't edited the FAQ page for it, but that shouldn't be too hard wink

You can get the hack from here

Only tested on 6.05

I see no reason for this NOT to work in the later UBBs, but I dont have those to test, so if someone with the later ones wants to give this a shot, and report on it working?
Thanks.

As per usual, if you want to try it out you can go sign up at our forums and give it a whirl (but only if you intend on staying wink )

EDIT: Should this be in templates? confused since it is just editing templates?

Sponsored Links
Joined: Apr 2002
Posts: 111
PF
Offline
Member
Member
Offline
Joined: Apr 2002
Posts: 111
Slight update

Found a few bugs in the code.

The bugs were because we have some extra ubb code: underline, center, and spoiler.

Center was the one I mentioned when I shouldn't have. Although adding Center and Underline ubb code is like 4 lines of code wink


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)