php forum
php mysql forum
php mysql smarty
 
Topic Options
#281623 - 11/04/04 06:07 AM A little java script help
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
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 (80 downloads)

_________________________
Da LAN Tech

Threads Dev Moderator

Top
#281624 - 11/04/04 02:22 PM Re: A little java script help [Re: jacksonm99]
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
is there a way I can see it in action?

Top
#281625 - 11/04/04 02:24 PM Re: A little java script help [Re: javiersbabygirl]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
You can see it here -same symptoms in IE and FireFox: nothing happens when you click on the question mark...
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#281626 - 11/04/04 02:27 PM Re: A little java script help [Re: jacksonm99]
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
ah, that helped a bunch<br /><br />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

Top
#281627 - 11/05/04 12:21 AM Re: A little java script help [Re: javiersbabygirl]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Thanks! <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />So what I need to do is change the name of the function that I'm using for the color action... <br /> <br />...and it worked -thanks again!


Edited by Dalantech (11/05/04 12:30 AM)
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#281628 - 11/05/04 11:49 AM Re: A little java script help [Re: jacksonm99]
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
<img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> glad I could help

Top
#281629 - 11/06/04 11:54 AM Re: A little java script help [Re: javiersbabygirl]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Very much appreciated!!!!!!!!!!!! <img src="http://www.ubbdev.com/forum/images/graemlins/cool.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#281630 - 11/08/04 11:04 AM A little more java script help [Re: jacksonm99]
Anno Offline
Code Monkey

Registered: 05/23/01
Posts: 562
Loc: Austria
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.<br />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.<br /><br />If you know how to do this, please download the attachment and do your best <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />


Attachments
122768-post.zip (59 downloads)


Top
#281631 - 11/09/04 12:10 AM Re: A little more java script help [Re: domain123]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Sorry Anno, but right now I don't have time <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#281632 - 11/12/04 10:10 AM Re: A little more java script help [Re: jacksonm99]
Anno Offline
Code Monkey

Registered: 05/23/01
Posts: 562
Loc: Austria
Too bad.... <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" />

Top
#281633 - 12/20/04 05:03 PM Enhanced Instant UBB Code [Re: domain123]
Anno Offline
Code Monkey

Registered: 05/23/01
Posts: 562
Loc: Austria
OK, figured it out.<br /><br />I reworked the way how Instant UBB Code functions behave.<br /><br />The buttons for Center, Superscript and Subscript were added and the behavior of some of the tags was changed.<br />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.<br /><br />These enhancements work in Internet Explorer, Firefox and Mozilla. They don't work in Konqueror, not sure about other browsers.<br /><br />Check it out:<br />http://www.shroomery.org/forums/post.html

Top
#281634 - 12/22/04 10:52 PM Re: Enhanced Instant UBB Code [Re: domain123]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
Nice work <img src="http://www.ubbdev.com/forum/images/graemlins/waytogo.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top


Who's Online
0 registered (), 31 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks