PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds How do I...?

Classifieds How do I...? Wondering how to do something in Classifieds?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old October 1st, 2007, 05:59 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Oct 2004
Location: Florida
Posts: 318
W3C Markup Validation Service

Maybe I'm beating my head on the wall with this, (or I just get into deep do-do too often) but I try to run all my web pages through the W3C validator and correct their html as needed to comply.

I have just run into a problem that might be overwhelming, at least to me. The problem here is that each element should close in the order that you open them. If a user puts both BOLD and ITALIC in an ad, you get a mixup.

From: showcat.tmpl

<span><b><i> text_here </span> <span> more_text </b></i></span>

Which should be:

<span><b><i> text_here </i></b></span> <span><b><i> more_text </i></b></span>

Since {$gallery['tagopen'][$x]} contains <b><i>
and {$gallery['tagclose'][$x]} contains </b></i>
instead of {$gallery['tagclose'][$x]} containing </i></b>
this order will never be correct.

If this is an easy correction, it's a HOW TO. If not, it's a suggestion.

Code:
Content visible to verified customers only.
http://validator.w3.org/check?uri=referer
oldengine is offline   Reply With Quote
Old October 1st, 2007, 08:01 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
I dont see anywhere where they are out of order in the code I would have to take a look at this.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 1st, 2007, 08:56 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Oct 2004
Location: Florida
Posts: 318
I was going to be a smarty and post up an ad on http://www.reeftalk.com/classifieds/showcat.php/cat/2 but even though I clicked BOLD and ITALIC, I'm not sure that it went through that way.

Yep, here's the source off from your web page:
Note that opening of <b><i> is within the first span group and the out of order closing </b></i> is within the second span group.

Code:
Content visible to verified customers only.
Needs to be:

<span><b><i> text_here </i></b></span>
<span><b><i> more_text </i></b></span>

Brain teaser!
Code:
Content visible to verified customers only.

Last edited by oldengine; October 1st, 2007 at 09:41 PM.
oldengine is offline   Reply With Quote
Old October 2nd, 2007, 10:08 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
Exactly you are looking at the code where I am looking. I think the issue is only when using both. They sequence in alphabetical order. The only way to separate that is some way complex logic I need to think about here.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 2nd, 2007, 10:20 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Oct 2004
Location: Florida
Posts: 318
Yes, it's only happening when BOTH italic and bold are called for.

I'm working this out. As I said before, if it's a mod, feel free to move it to the mods forum and if it's a suggestion, move it to the suggestion forum.

I now have it down to only 6 errors left. This whompped out over 200 errors on my showcat page...

showcat.php
Code:
Content visible to verified customers only.
showcat.tmpl
Code:
Content visible to verified customers only.
Remember that all of the showcat? templates will need to be changed. There are most likely better ways to do this, but I'm a hacker - not a coder.

Edit: Most of the remaining errors are because of my users placing an & in their text, which by code standards should be &amp;

Last edited by oldengine; October 2nd, 2007 at 10:40 AM.
oldengine is offline   Reply With Quote
Old October 2nd, 2007, 05:48 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
That might be the best way to do it rather simple check
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
pp-inc.php W3C Markup Validation Service oldengine Classifieds Suggestions 3 October 7th, 2007 08:19 PM
W3C Markup Validation oldengine Classifieds Bug Reports 1 January 3rd, 2007 07:40 AM
markup in reviews tokenyank ReviewPost Bug Reports 7 November 13th, 2005 11:58 AM
HTML Markup Usernames & Moderator Column imported_Lee Installs and Upgrade - vBulletin 3.5.X 0 September 16th, 2005 06:45 PM


All times are GMT -5. The time now is 08:32 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0