NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page 2 different styles of quotes... messing up display. 20 NP$ REWARD

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 09-10-2005, 06:02 PM THREAD STARTER               #1 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)

2 different styles of quotes... messing up display. 20 NP$ REWARD


PROBLEM SOLVED! - I was missing a stripslashes() function when retrieving the source. It was messy coding, so I overlooked it because i unnecessarily withdrew source code from the database 3 times. I've optimized the code and fixed it! Thanks, legend2! You opened my eyes to what I did not see! 20 NP$ sent
????: NamePros.com http://www.namepros.com/programming/122624-2-different-styles-quotes-messing-up.html

Hi,

There are apparently 2 different styles of quotes.

Please look here:

http://view.gotutorials.com/content.php?tutorial=1

Ignore my stupid comments on there... they're just tests...

But notice the highlighting. I use GeSHi (http://qbnz.com/highlighter/) to highlight them... and I don't think you need to know anything about GeSHi to help me answer this, but please let me know how I can replace the first quote (the first quote is unique) as the style of the other ones. Or, vice versa.

20 NP$ reward.
Last edited by compuXP; 09-11-2005 at 06:40 PM.
mholt is offline  
Old 09-11-2005, 10:25 AM   #2 (permalink)
NamePros Member
Join Date: Sep 2005
Posts: 71
lemmin is an unknown quantity at this point
 



copy + paste?
lemmin is offline  
Old 09-11-2005, 12:55 PM THREAD STARTER               #3 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Um... copy + paste what...?
mholt is offline  
Old 09-11-2005, 03:29 PM   #4 (permalink)
NamePros Member
Join Date: Sep 2005
Posts: 71
lemmin is an unknown quantity at this point
 



Well, I guess I'm not sure what you are trying to do. If those two quotes are actually different characters (different ascii code), then if you copy and paste it to the other spots it will be the same. It does'nt seem very likely that they are different characters, so the different colors would just be a glitch in that highlighter. It looks to me that when it starts the color sequence, it thinks there is a quote open and the all the code up to the first quote will be the color that is supposed to be inside the quote (black).

Try making the very first character in your code a quote and the rest normal.

If that isn't what you are talking about, you might want to explain it a little better.
lemmin is offline  
Old 09-11-2005, 03:32 PM   #5 (permalink)
SQLdumpster.com
 
Encenta.com's Avatar
Join Date: Jun 2005
Location: West Sussex, UK
Posts: 573
Encenta.com has a spectacular aura aboutEncenta.com has a spectacular aura about
 




Sounds similar to the Dreamweaver glitch for:

HTML Code:
<table width="80%"  border="0" style="background-color:#000000 ">
Encenta.com is offline  
Old 09-11-2005, 03:36 PM THREAD STARTER               #6 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Okay, well, do you think it maybe a stripslashes() problem? Even without stripslashes() it still shows up wierd like this.
mholt is offline  
Old 09-11-2005, 03:38 PM   #7 (permalink)
Senior Member
 
legend2's Avatar
Join Date: Sep 2005
Posts: 1,112
legend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud of
 



you need to have <select> before the options, put a select at the first line.
legend2 is offline  
Old 09-11-2005, 04:16 PM THREAD STARTER               #8 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
No... sorry... not what I'm talking about. That's just a sample code snippet to show you the highlighting problem. Why is it doing this?
mholt is offline  
Old 09-11-2005, 04:39 PM   #9 (permalink)
RJ
NamePros Webmaster


 
RJ's Avatar
Join Date: Feb 2003
Posts: 12,930
RJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatness
 



Find Marrow Donors! Cystic Fibrosis Parkinson's Disease
Looks like a GeSHi issue to me. Are you telling GeSHi to highlight it as PHP or HTML?

I can't tell how you have it setup, but also consider if you're sending code to GeSHi that has been encoded in hex. If so, you might need to decode it first.

http://us2.php.net/manual/en/function.rawurldecode.php
__________________
@DomainBuyer facebook
RJ is offline  
Old 09-11-2005, 04:48 PM THREAD STARTER               #10 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Hey RJ, thanks. But, It's the correct language...

http://view.gotutorials.com/content.php?tutorial=6

That's an example of PHP highlighting. Same result. I'm not sending any encoded thing to GeSHi.
mholt is offline  
Old 09-11-2005, 05:33 PM   #11 (permalink)
Senior Member
 
legend2's Avatar
Join Date: Sep 2005
Posts: 1,112
legend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud of
 



<span style="color: #ff0000;">"Test <-- taking it part of the string hm...
probably a geshi problem,
try separating the quote form the Test and see if it changes anything
legend2 is offline  
Old 09-11-2005, 06:23 PM THREAD STARTER               #12 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Hey, great idea legend2 ....

Look:

http://view.gotutorials.com/content.php?tutorial=6

The second PHP code snippet... it works. Hmm...
mholt is offline  
Old 09-11-2005, 11:22 PM   #13 (permalink)
Senior Member
 
legend2's Avatar
Join Date: Sep 2005
Posts: 1,112
legend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud of
 



glad you fixed it
legend2 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cheap Names With Prices in $ and NP$ DomainOgre Domains For Sale - Fixed Price 5 11-29-2003 02:10 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:11 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger