Previous Thread
Next Thread
Print Thread
Rating: 5
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
Mod Name / Version: Enhanced Instant UBB Code 1.01

Description: The way how Instant UBB Code functions behave has been reworked.

The buttons for Center, Superscript and Subscript were added and the behavior of some of the tags was changed.

Now you are able to highlight a word first, and then press one of the following tags: Bold, Italics, Underline, Quote, Code, Center, Superscript and Subscript.

These enhancements work in Internet Explorer, Firefox and Mozilla. They don't work in Konqueror, not sure about other browsers, they should work in all IE based and Gecko engine based browsers.

Test drive it:
http://www.shroomery.org/forums/post.html

Working Under: UBB.Threads 6.5 , probably also 6.4

Mod Status: Finished

Any pre-requisites: none

Author(s): Anno

Date: 01/20/05

Credits:

Files Altered:
\templates\default\addpost_preview.tmpl
\templates\default\editpost.tmpl
\templates\default\newpost.tmpl
\templates\default\newreply.tmpl
\templates\default\ubbt_instant_ubbcode.tmpl
ubbt.inc.php

New Files: none

Database Altered: no

Info/Instructions: in the attachemnt

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Attachments
124699-enhanced_UBB_code_1.01.txt (0 Bytes, 342 downloads)

Last edited by Anno; 01/22/2005 3:52 AM.
Sponsored Links
Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
very very awesome

1 little typo in the instructions:

[]######## in \templates\default\ubbt_instant_ubbcode.tmpl

#### Search for:
} else {
textEl.value = textEl.value + text; // for non MSIE browsers just append it[/]



should read:
[]######## in \templates\default\ubbt_instant_ubbcode.tmpl

#### Search for:
} else {
textEl.value = textEl.value + text; // for non MSIE browsers just append it
}[/]

added the "}"

otherwise, its excellent! - and a painless install!

great mod

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
Thank you, fixed.

Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
Anno, awesome hack!

Thank you for sharing...

Joined: Dec 2004
Posts: 34
User
User
Offline
Joined: Dec 2004
Posts: 34
I'm using a Macintosh and it works for me with Navigator and FoxFire, but not with Safari or Explorer.

Does anyone know how to modify it for Safari and Explorer?

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Nice work


- Allen wavey
- What Drives You?
Joined: Jun 2002
Posts: 160
Member
Member
Offline
Joined: Jun 2002
Posts: 160
Great mod - one of the things that has bugged me for a long time was that ubb.threads just shoved everything at the bottom of the post's text entry box when I use Firefox. This fixes it and adds the ability to highlight and stick tags around things that I've also kinda missed after seeing it on competing software.

Any chance you could do something similar for the color box?

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
The color box? The Font color box has the same functionality as the bold or italic tags.

Try it out
www.shroomery.org/post.html

Joined: Jun 2002
Posts: 160
Member
Member
Offline
Joined: Jun 2002
Posts: 160
Hrm. You're right. I could have sworn it wasn't doing that before . . . Yeah, my 6.4 site just shoves the color tags on the end of the page. I guess your code added for the script to surround text makes that happen?

Joined: Jan 2003
Posts: 263
Member
Member
Joined: Jan 2003
Posts: 263
Nice rework Anno!

I only added three more language items for center,subscript and superscript

Sponsored Links
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
> I guess your code added for the script to surround text makes that happen?

Yes.


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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
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)