Results 1 to 9 of 9
  1. #1
    New Pligger triphp's Avatar
    Joined
    Jul 2006
    Posts
    5

    Invalid markup on subcategories, please help!

    I just found out that the default yget template has an invaild markup on sub categories. This happens when you put a sub category of your last category, get it? However, sub categories on the upper categories are fine. To show, here's the code when I "view source", just look at the bottom part of the code, I commented the invalid markup:
    HTML Code:
    <ul id="nav-secondary">
        <li>
            <a rel="nofollow" href="/Pligg/rss.php?category=6" target="_blank" style="border:none;">      
            <img src="/Pligg/templates/yget/images/rss.gif" border="0" style="float:right;padding-right:10px;" alt="RSS" /></a>        
            <a rel="nofollow" href="/Pligg/index.php?category=AffiliatePrograms" style="padding-bottom:5px;">Affiliate Programs</a>
            
            <ul style="padding-left:12px">
                <li>
                    <a rel="nofollow" href="/Pligg/rss.php?category=10" target="_blank" style="border:none;">     
                    <img src="/Pligg/templates/yget/images/rss.gif" border="0" style="float:right;padding-right:10px;" alt="RSS" /></a>
                    <a rel="nofollow" href="/Pligg/index.php?category=PayPerSale" style="padding-bottom:5px;">Pay Per Sale</a>
                </li>
            </ul>                
                    
            <a rel="nofollow" href="/Pligg/rss.php?category=9" target="_blank" style="border:none;">      
            <img src="/Pligg/templates/yget/images/rss.gif" border="0" style="float:right;padding-right:10px;" alt="RSS" /></a>        
            <a rel="nofollow" href="/Pligg/index.php?category=WebHosting" style="padding-bottom:5px;">Web Hosting</a>        
            
            <ul style="padding-left:12px">
                <li>
                    <a rel="nofollow" href="/Pligg/rss.php?category=8" target="_blank" style="border:none;">      
                    <img src="/Pligg/templates/yget/images/rss.gif" border="0" style="float:right;padding-right:10px;" alt="RSS" /></a>
                    <a rel="nofollow" href="/Pligg/index.php?category=SharedHosting" style="padding-bottom:5px;">Shared Hosting</a>
            <!-- YOU CAN SEE HERE THAT THERE IS NO CLOSING "</li></ul>" TAGS IN THIS AREA //-->
        </li>
    </ul>
    Is there any way how to fix this?

  2. #2
    Senior Member cmstheme's Avatar
    Joined
    Jan 2007
    Location
    Philippines
    Posts
    592
    I also noticed this too.

  3. #3
    Constant Pligger manya1011's Avatar
    Joined
    Jan 2008
    Posts
    159
    this would be a temp fix not

    just open up categories.tpl

    Code:
    {/section}
                
    		</li>
    and add the following code in between </li></ul>


    Code:
    {/section}
               </li></ul>
    		</li>
    As I said a temp fix if you got subcats at the very bottom..

  4. #4
    Senior Member cmstheme's Avatar
    Joined
    Jan 2007
    Location
    Philippines
    Posts
    592
    A temporary fix, right...

    But it will also cause trouble if you have no subcategories or have categories but not at the very end main categories.

  5. #5
    Constant Pligger manya1011's Avatar
    Joined
    Jan 2008
    Posts
    159
    Quote Originally Posted by cmstheme View Post
    A temporary fix, right...

    But it will also cause trouble if you have no subcategories or have categories but not at the very end main categories.
    Don't think so because they are closing tags.

    Unless if closing them early then yeah but in this case they are not, don't think closing tags will affect anything.. Even with no subcat at the end.

  6. #6
    Senior Member cmstheme's Avatar
    Joined
    Jan 2007
    Location
    Philippines
    Posts
    592
    It really is. The closing tag outside/after the {/section} will not be outputted if there is a subcategories of the last main category. I also wonder why it won't because it is supposed to be there since it's already outside the loop but it really don't come out, thus I can say that it's a bug.
    Quote Originally Posted by manya1011 View Post
    Don't think so because they are closing tags.

    Unless if closing them early then yeah but in this case they are not, don't think closing tags will affect anything.. Even with no subcat at the end.

  7. #7
    Mayor of PliggVille AshDigg's Avatar
    Joined
    Dec 2005
    Posts
    1,515
    What version are you using. With version 9.9 I was not able to duplicate this problem (but I may not have the sub-categories right).

  8. #8
    Senior Member cmstheme's Avatar
    Joined
    Jan 2007
    Location
    Philippines
    Posts
    592
    I see this on 9.8.x and 9.9.0. To replicate the problem, it must have sub-categories. The sub-categories must be under the LAST main category or else everything is fine.
    Quote Originally Posted by AshDigg View Post
    What version are you using. With version 9.9 I was not able to duplicate this problem (but I may not have the sub-categories right).

  9. #9
    Casual Pligger ruptan's Avatar
    Joined
    Feb 2008
    Posts
    89

    Smile Categories problem

    Hi,
    I am continuously getting this error and not sure if it is related to this but I am getting this for main Categories. Does any one know what is this?
    Fatal error: Cannot use object of type stdClass as array in /home/alapbang/public_html/digg/libs/dbtree.php on line 39.
    You can see it my site as well...Alap Bangla / Published News
    Thanks

Similar Threads

  1. Invalid Username, Invalid characters Error Display
    By gaurangitech in forum Questions & Comments
    Replies: 10
    Last Post: 07-13-2011, 07:29 PM
  2. Adding extra HTML markup, which are the best?
    By dunk3r23 in forum Questions & Comments
    Replies: 1
    Last Post: 06-02-2009, 06:51 AM
  3. Subcategories
    By superstud in forum Questions & Comments
    Replies: 2
    Last Post: 08-22-2007, 12:18 AM
  4. Subcategories? How :(
    By pliggosexual in forum Questions & Comments
    Replies: 6
    Last Post: 06-14-2007, 05:16 AM
  5. subcategories
    By denemedeneme in forum Questions & Comments
    Replies: 2
    Last Post: 05-03-2007, 06:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting