Previous Thread
Next Thread
Print Thread
Rate Thread
#281623 11/04/2004 7:07 AM
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
I created some new custom functions for UBB Threads so I could break up the $ubbt_instant_ubbcode variable and everything is working great except for the "?" in the font colors -I can't seem to get the prompt for the user to enter the color. No errors on the page, it just doesn't work. Attached is the tamplate -any ideas? I verified that the language strings the the java script function needs are there. This one has me pulling my hair out -I'm just too tired right now to see it...
Attachments
122545-facelift_fontcolor.tmpl (0 Bytes, 369 downloads)

Sponsored Links
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
is there a way I can see it in action?

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
You can see it here -same symptoms in IE and FireFox: nothing happens when you click on the question mark...

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
ah, that helped a bunch

You redefine function DoPrompt further down in the page. It's most likely that this function is the one the browser is interpreting, and since there is no catch to see if action=="color", it goes on it's merry little way

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Thanks!

So what I need to do is change the name of the function that I'm using for the color action...

...and it worked -thanks again!

Last edited by Dalantech; 11/05/2004 1:30 AM.
Sponsored Links
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
glad I could help

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Very much appreciated!!!!!!!!!!!!

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
I am tying to make the instant ubbcode markup a little friendlier and am having good progress with firefox, but I can not get it to work with IE.
The goal is to be able to double click a word, then choose formatting, and the changes are immediately applied. You can test it with firefox to get the idea.

If you know how to do this, please download the attachment and do your best
Attachments
122768-post.zip (0 Bytes, 243 downloads)

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Sorry Anno, but right now I don't have time

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
Too bad....

Sponsored Links
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
OK, figured it out.

I reworked the way how Instant UBB Code functions behave.

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.

Check it out:
http://www.shroomery.org/forums/post.html

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?

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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,574
Posts293,926
Members13,850
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 20240506)