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

   A little java script help to Del.icio.us Add to del.icio.us
  Digg A little java script help Digg it
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 (71 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 (53 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: 25432
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 (), 43 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 11
blaaskaak 7
Chris Bale 4
FREAK1 4
Ian_W 4
tackaberry 4
Gizmo 4

 

 

 
fusionbb message board php hacks