Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2000
Posts: 192
Member
Member
Offline
Joined: Oct 2000
Posts: 192
When I use one it comes up as undefined. undefined

I installed the UBB 6 Code Buttons. Is that why? I also notice that it doesn't work here.

Sponsored Links
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
It works fine here and my board.

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
What version of what browser are you using?


UBB.classic: Love it or hate it, it was mine.
Joined: Oct 2000
Posts: 192
Member
Member
Offline
Joined: Oct 2000
Posts: 192
IE 4.0.

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Good. its not a problem, a 4.0 compatibility issue.

Sponsored Links
Joined: Feb 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 16
yes its a bug ".="
ubb_new_reply

# pull in instant smilie/ubb code javascript
$direct_to .= $instant_jscript;
&set_page_elements;

".="

allso ne "yes") should be 'yes'

# do graemlins--
if ($in{disable_smilies} ne "yes") { $message = &Smilies("$message"); }

Joined: Oct 2000
Posts: 192
Member
Member
Offline
Joined: Oct 2000
Posts: 192
How do I change it? confused

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
rob - you didn't show a fix...all you did was tell us how to not interpolate 'yes'.

Joined: Feb 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 16
ubb_new_reply.cgi

# pull in instant smilie/ubb code javascript
$direct_to .= $instant_jscript;
&set_page_elements;

--to--

# pull in instant smilie/ubb code javascript
$direct_to = $instant_jscript;
&set_page_elements;


# do graemlins--
if ($in{disable_smilies} ne "yes") { $message = &Smilies("$message"); }


--to--

# do graemlins--
if ($in{disable_smilies} ne 'yes') { $message = &Smilies("$message"); }

Joined: Oct 2000
Posts: 192
Member
Member
Offline
Joined: Oct 2000
Posts: 192
hurrican rob, I tried that and it didn't work. It sill said undefined. frown

Sponsored Links
Joined: Feb 2001
Posts: 1
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 1
laugh hurrican rob that worked like a champ. Thanks for providing the information.

Madman

Joined: Jul 2000
Posts: 1,349
Ell Offline
Member
Member
Offline
Joined: Jul 2000
Posts: 1,349
It did?!?! AFAICS it doesn't do anything much..

Code
code:

Just SETS $direct_to to $instant_jscript instead of appending the contents; at the end of BOTH ways, $instant_jscript is contained inside $direct_to

Code
code:

Does absolutely nothing. "yes" and 'yes' evaluate to exactly the same thing, since Perl has no boolian type. If it did, then we might see somethign different.

If the contents of $direct_to are large (I dunno what it does- does it contain other HTML?) then the slow loading of that might be causing the problem you're experiencing- is it an older, slower computer that you have IE 4 installed on? If so, the only reason it works now is it's not getting the browser in a twist with too much info to process at once. But the price you pay is reduced browser compatability.

All-in-all, if it works, go for it I guess, but don't blame MM; there's nothing wrong with the original code above, and that "yes" -> 'yes' REALLY is pointless.


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
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
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
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 20221218)