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 (64 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 (50 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: 25366
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 82
Gizmo 29
sirdude 25
Zarzal 23
blaaskaak 12
willing 5
swebs 4
Who's Online
0 Registered (), 51 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
User Authentication Class
by sirdude
Yesterday at 06:11 PM
Multiple Identity Detector
by Myke
Yesterday at 05:45 AM
FlashChat with UBB.Threads 7.0.2
by Gizmo
Yesterday at 12:30 AM
Nice Ajax Chat
by Thelockman
07/06/08 09:07 AM
[7.x] UBB.Post Templates v0.1
by sirdude
07/05/08 12:48 PM
Team UBBDev Rides Again!
by AllenAyres
07/04/08 10:56 PM
[7.3.x] ubb.links
by AllenAyres
07/03/08 06:15 PM
New Mods
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
[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
Newest Members
nunny, lpzie, DoubleDutch, ryzilla, M4D
13305 Registered Users

 

 

 
fusionbb message board php hacks