Invalid markup on subcategories, please help!

- Invalid markup on subcategories, please help!
-
New Pligger
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?
-
Senior Member
-
Constant Pligger
this would be a temp fix not
just open up categories.tpl
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..
-
Senior Member
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.
-
Constant Pligger

Originally Posted by
cmstheme
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.
-
Senior Member
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. 
Originally Posted by
manya1011
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.
-
Mayor of PliggVille
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).
-
Senior Member
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.

Originally Posted by
AshDigg
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).
-
Casual Pligger
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
-
By gaurangitech in forum Questions & Comments
Replies: 10
Last Post: 07-13-2011, 07:29 PM
-
By dunk3r23 in forum Questions & Comments
Replies: 1
Last Post: 06-02-2009, 06:51 AM
-
By superstud in forum Questions & Comments
Replies: 2
Last Post: 08-22-2007, 12:18 AM
-
By pliggosexual in forum Questions & Comments
Replies: 6
Last Post: 06-14-2007, 05:16 AM
-
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
-
Forum Rules