Results 1 to 6 of 6
  1. #1
    Newbie
    Join Date
    January 4th, 2008
    Posts
    8
    Validation with popping via PHP
    I use the PHP code for my shops, and when I check validation, they invalidate. There is a problem with the CSS style codes loading in the body of the page since they are coded into the PHP and therefore load in the body of the page and not the head. Is there a way to stop the CSS from loading with the PHP code so I can insert it into my external CSS file?

    Also, there is a section that is missing a closing </p> tag, with the open <p>right before the Popshops statistics. The <script> tag for the statistics is also missing a "type" attribute.

    Anyone know how to fix these problems so the page will validate without having to use HTML to pop the code in?

  2. #2
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    1,744
    You have the option to use your own external css style if you want.

    Go to Customize - Styles - Select Your Style - Edit -
    At the very bottom you will see a check box that says:
    Don't insert stylesheet into shop?

    You can't edit the PopShops default style but you can the others.
    Last edited by msladybug; March 7th, 2008 at 02:27 PM. Reason: typo

  3. #3
    Member
    Join Date
    January 2nd, 2008
    Posts
    72
    If you go in and edit a style there is a checkbox: "Don't insert stylesheet into shop?". Just make sure that is checked. You'll have to manually cut and paste the style definitions into the head of the page, or provide some other styles if you do.

    I took care of the <script> tag lacking the type attribute, so that should validate for you now.

    I can't find any issues with a <p> tag not closing properly. Do you have an example page I can take a look at? You can email the url to support@popshops.com and I'll get it.

  4. #4
    Newbie
    Join Date
    January 4th, 2008
    Posts
    8
    I don't seem to have the checkbox for not inserting stylesheets...



    The </p> tag isn't causing a problem in the view of the page, just when I use the validator. Here is what the validator says:


    Error Line 362[/i], Column 5[/i]: end tag for "p" omitted, but OMITTAG NO was specified .

    </div>

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".


    Info Line 360[i], Column 0: start tag was here .

    <p><!-- Start of PopShops Statistics. Removing this will stop view statistics fr

    line 360-362:
    Code:
    360. <p><!-- Start of PopShops Statistics. Removing this will stop view statistics from being updated within your shop manager. --><script type="text/javascript" charset="utf-8"><!--
    361. if(!pspsR)var pspsR=new Date().getTime()+\'-\'+Math.floor(Math.random()*2147483647);function pspsV(){if(document.cookie.indexOf(\'psps=\')<0){document.cookie=\'psps=\'+pspsR+\';expires=Wed, 07 Mar 2018 20:27:02 GMT;path=/;domain=popshops.com\';}var i=new Image(1,1);i.src=\'http://s.popshops.com/stats?#038;p=39334111-2252286,39334112-2252286,39334113-2252286,39334105-2252286,39334107-2252286,39334110-2252286,39334108-2252286,39334109-2252286,363707-2252286,363708-2252286,363703-2252286,363704-2252286,363705-2252286,363701-2252286,363699-2252286,363700-2252286,363702-2252286,11493030-2252286,371978-2252286,371984-2252286,371980-2252286,371983-2252286,371982-2252286,371985-2252286,371979-2252286,371981-2252286&r=\'+pspsR;}pspsV();//--></script><!-- End of PopShops Statistics -->
    362. </div>
    If you still want to see an example page, even though it doesn't appear to be causing a visual problem, let me know and I'll send it.

  5. #5
    Member
    Join Date
    January 2nd, 2008
    Posts
    72
    Yeah, the <p> tag isn't coming from our code, so if I could see the page this is embedded in I might be able to quickly tell you where it is coming from.

    Do you use a cms to manage your pages? A lot of times we see different cms trying to wrap things in <p> tags. It might be what's going on.

    If you put in a ticket through the support email I will be able to check your account and see why you don't have the 'hide styles' option.

  6. #6
    Newbie
    Join Date
    January 4th, 2008
    Posts
    8
    I am using Wordpress, but as far as I can tell, it isn't inserting any extra <p> tags. From the looks of the source code output by the validator, the extra <p> is coming in after the products list and right before the tracking code.

    I emailed you that example page and the link to the validation. Thank you so much for being so helpful!

  7. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Email Validation
    By popdawg in forum Rakuten LinkShare - LS
    Replies: 2
    Last Post: December 8th, 2006, 12:35 PM
  2. Validation Sing-Along
    By Rhea in forum Rakuten LinkShare - LS
    Replies: 1
    Last Post: May 21st, 2005, 11:19 PM
  3. Help With W3C Validation
    By sweat in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: April 2nd, 2005, 10:43 AM
  4. W3C Validation
    By CY in forum Commission Junction - CJ
    Replies: 6
    Last Post: January 25th, 2004, 07:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •