SunQuest
           Suggestions & Feedback
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsForum InformationSuggestions & Feedback

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old May 15th, 2008, 07:39 PM
adiboy adiboy is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: stoke-on-trent
Posts: 14 adiboy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 7 m 42 sec
Reputation Power: 0
Send a message via Yahoo to adiboy
& l t ; on tutorials

Hello does any one know what's going on with the tutorials. i keep getting < on them.


this problem is alover the tutorail Quick and Dirty AJAX Tutorial

Reply With Quote
  #2  
Old May 15th, 2008, 08:49 PM
cwf's Avatar
cwf cwf is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 353 cwf User rank is Private First Class (20 - 50 Reputation Level)cwf User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 3 Days 6 h 24 sec
Reputation Power: 2
It is highly likely that the code has been passed through htmlentities twice. Probably when it was stored and then a second time when it is being output. This problem started when the forum was converted to VB.

To fix the problem, someone would need to go through the database and run html_entity_decode() on the data.

If you want to use the posted code, make a small php form with a textarea that passes the entered content through html_entity_decode() and saves it to a file. The code in the resulting file should be correct.

Reply With Quote
  #3  
Old May 15th, 2008, 08:59 PM
adiboy adiboy is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: stoke-on-trent
Posts: 14 adiboy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 7 m 42 sec
Reputation Power: 0
Send a message via Yahoo to adiboy
Codewalkers is a good site and i think they should give this problem a higher priority and not let their tutorials be waisted.

If some one spent 2 or 3 hours with their excellent coding skills they would be able save all the tutorials with this problem.

Reply With Quote
  #4  
Old May 15th, 2008, 09:23 PM
cwf's Avatar
cwf cwf is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 353 cwf User rank is Private First Class (20 - 50 Reputation Level)cwf User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 3 Days 6 h 24 sec
Reputation Power: 2
The problem does not seem to be present when the php highlighting is used.

Here is a quick form and form processing code that will save the code with the html entities replaced with their actual values -

Code:
<form method="post" action="htmldecode.php">
<textarea name="textarea" rows="15" cols="70">Paste code here</textarea><br>
<input type="submit">
</form>


PHP Code:
<?php
// minimal form processing code to decode html entities and save to a file
$file_name "output.php"// name of file to save output in
file_put_contents($file_namehtml_entity_decode($_POST['textarea']));
echo 
"See: $file_name for fixed code.";
?>

Reply With Quote
  #5  
Old May 16th, 2008, 08:56 AM
ahira17 ahira17 is offline
Administrator
Developer Shed Admin.
 
Join Date: Apr 2007
Posts: 21 ahira17 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 28 m 59 sec
Reputation Power: 10
Hi All,

The issue has been corrected in the article. Are there any other articles with this issue?

Thanks,
Charles

Reply With Quote
  #6  
Old May 16th, 2008, 09:19 AM
adiboy adiboy is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: stoke-on-trent
Posts: 14 adiboy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 7 m 42 sec
Reputation Power: 0
Send a message via Yahoo to adiboy
Thanks for fixing this. I will look at the tutorials and post a list of tutorials that need converting.

Reply With Quote
Reply

Viewing: Codewalkers ForumsForum InformationSuggestions & Feedback > & l t ; on tutorials


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway