Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-08-2007, 09:33 AM
New Pligger
 
Join Date: Jul 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #2 (permalink)  
Old 02-08-2008, 01:19 PM
cmstheme's Avatar
Pligg Donor
Pligg Version: 9.9
Pligg Template: Squaretle
 
Join Date: Jan 2007
Posts: 248
Thanks: 28
Thanked 40 Times in 30 Posts
I also noticed this too.
__________________
Join our Pligg Template Club now while prices are still cheap!
Reply With Quote
  #3 (permalink)  
Old 02-09-2008, 02:03 AM
Constant Pligger
Pligg Version: 9.9.0
Pligg Template: yget
 
Join Date: Jan 2008
Posts: 164
Thanks: 8
Thanked 24 Times in 16 Posts
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..
__________________
iGameit

helpthewriters.com
Reply With Quote
  #4 (permalink)  
Old 02-09-2008, 02:09 AM
cmstheme's Avatar
Pligg Donor
Pligg Version: 9.9
Pligg Template: Squaretle
 
Join Date: Jan 2007
Posts: 248
Thanks: 28
Thanked 40 Times in 30 Posts
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.
__________________
Join our Pligg Template Club now while prices are still cheap!
Reply With Quote
  #5 (permalink)  
Old 02-09-2008, 04:54 AM
Constant Pligger
Pligg Version: 9.9.0
Pligg Template: yget
 
Join Date: Jan 2008
Posts: 164
Thanks: 8
Thanked 24 Times in 16 Posts
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.
__________________
iGameit

helpthewriters.com
Reply With Quote
  #6 (permalink)  
Old 02-09-2008, 05:04 AM
cmstheme's Avatar
Pligg Donor
Pligg Version: 9.9
Pligg Template: Squaretle
 
Join Date: Jan 2007
Posts: 248
Thanks: 28
Thanked 40 Times in 30 Posts
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.
__________________
Join our Pligg Template Club now while prices are still cheap!
Reply With Quote
  #7 (permalink)  
Old 02-12-2008, 08:11 PM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
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).
__________________
- Ash
Reply With Quote
  #8 (permalink)  
Old 02-12-2008, 08:20 PM
cmstheme's Avatar
Pligg Donor
Pligg Version: 9.9
Pligg Template: Squaretle
 
Join Date: Jan 2007
Posts: 248
Thanks: 28
Thanked 40 Times in 30 Posts
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).
__________________
Join our Pligg Template Club now while prices are still cheap!
Reply With Quote
  #9 (permalink)  
Old 02-17-2008, 01:40 AM
Casual Pligger
Pligg Version: 9.9.0
Pligg Template: dafault
 
Join Date: Feb 2008
Posts: 51
Thanks: 14
Thanked 1 Time in 1 Post
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
Reply With Quote
Reply

Thread Tools
Display Modes
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
invalid user when changing user name in 9.9.0 yomimedia Bug Report 3 11-17-2008 01:57 AM
Desperate: All url's invalid when submitting?! gen3ric General Help 13 08-21-2008 05:14 PM
How to get a dropdown menu for subcategories ? jedimaster General Help 3 04-04-2008 04:28 PM
upgrading to 9.6 yathosho Installation and Upgrade Help 6 07-08-2007 07:05 AM


Search Engine Friendly URLs by vBSEO 3.2.0