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 (68 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 (51 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: 25408
Loc: Texas
Nice work <img src="http://www.ubbdev.com/forum/images/graemlins/waytogo.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top


Top Posters Last 30 Days
AllenAyres 18
Gizmo 12
sirdude 6
GEN 3
tackaberry 2
Philipp 2
willing 2
Who's Online
0 Registered (), 35 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
[7.2.1] - Naked shoutbox
by Iann128
08/22/08 07:27 PM
Nice Ajax Chat
by M4D
08/21/08 10:02 PM
51-card NVIDIA folding rig cranks out 265,200 ppd
by AllenAyres
08/13/08 10:10 PM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.x] AddThis - Social Networking
by Gizmo
08/01/08 01:30 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
Newest Members
welcomeback1, Paug, Tim Keating, anscers, Murphdog
13324 Registered Users

 

 

 
fusionbb message board php hacks