Page 4 of 4 FirstFirst ... 234
Results 46 to 54 of 54

Thread: Not showing in the main categories

  1. #46
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by Mitchell View Post
    Emailed you.
    Thanks
    Relocate your GetParent_id function as per above and try again.



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  2. #47
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    Hi again,

    Thank you, here are exact files that I am using and I get error;

    browse.html
    PHP Code:
    <%if $header%>
        <%
    $header%>
    <%else%>
        <%
    capture name="pg_title"%><%t a=$page_title b=$current_page%>Wedding Directory: %Page %2<%/t%><%/capture%>
        <%include 
    file="header.html"
          
    title=$smarty.capture.pg_title
          meta_keywords
    ="$meta_keywords"
          
    meta_description="$meta_description"
        
    %>
    <%/if%>
        
    <
    div id="container">
      
      <%include 
    file="sidebar2.html" cat=$cat%>        
      
      <
    div id="main">
        
        <%
    $hook_html_browse_begin%>
        
        <
    div id="subscribe_category">
          <
    a href="<%$site_url%>/cp/subscribe.php?cat=<%$cat%>"><%t%>Subscribe to this category<%/t%></a>
        </
    div>
        
        <
    div id="category_path">
          <%
    $category_path%>
          <
    a href="<%$site_url%>/rss.php?type=category&amp;cat=<%$cat%>"><img src="<%$tpl_base%>/images/rss.gif" border="0" alt="" /></a>
        </
    div>
        <%if 
    $content%>
          <
    div id="category_content">
            <%
    $content%>
          </
    div>
        <%/if%>
        
        <
    div id="category">
          <%
    $category%>
        </
    div>            
        
            <%if 
    $sponsored_link%>
        <
    div class="title">Sponsored Websites</div>    
          <%
    $sponsored_link%>
        <%/if%>
        
        
    parent_id=<%$parent_id%><br />
        <%if 
    $link%> 
        <%
    block_sort_links use_pagerank="yes" use_custom_field="yes" exclude_custom_field="long_description"%> 
        <
    br /><div class="title">Premium and Basic Listings</div>
        <%
    $link%> 
        <%elseif 
    $parent_id == 0%> 
        <%
    t%> <%/t%> 
        <%else%> 
        <%
    t%>This section has only recently been opened and we will be adding some of the best wedding suppliers to this category shortly.<%/t%> 
        <%/if%>  

        
        <%if 
    $pagination%>
          <
    div id="pagination">
            <%
    $pagination%>     
          </
    div
        <%/if%>    
          
        <%
    block_category_jump type="all"%>        
        <%
    $hook_html_browse_end%>    
        
      </
    div>
    </
    div>

    <%if 
    $footer%>
        <%
    $footer%>
    <%else%>
        <%include 
    file="footer.html"%>
    <%/if%> 

  3. #48
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by Mitchell View Post
    Hi again,

    Thank you, here are exact files that I am using and I get error;

    browse.html
    Without telling us exactly what the error was, it's kind of hard to help you.



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  4. #49
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    Quote Originally Posted by esm View Post
    Without telling us exactly what the error was, it's kind of hard to help you.



    .
    I get the following errors;

    * I get this message "parent_id=0" on the top (header) and end of my page after the sub-cats.

    * Category images won't load up an more
    * Page design breaks up (sub category lisitng moved to the lower end of the page, - lower than where they are now)
    __________________

  5. #50
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by Mitchell View Post
    category.class.php PART 2

    After loading all these three files in version 6.0
    * I get this meesage on the top and end of my page
    "parent_id=0"
    * Category images won't load up an more
    * Page design breaks up
    in the first of the three posts you said you were getting an error message. Are you not getting the error message now...???

    Displaying the value of parent_id was an attempt to see what was happening with the code. when you view a top level category, you should see "parent_id=0" in two places. A top level category would be New South Wales.

    When you display a sub-category, you should see something like "parent_id=x" also in two places where x is some number greater than 0, e.g., 1 or higher. see New South Wales - Grooms Menswear

    The parent_id controls the display of your msg. When it is non-zero (i.e., displaying a sub-cat) and there are no links, it will print your message.

    When the parent_id is zero (i.e., a toplevel category), a blank space will display.

    I'm not too concerned with images and page design while displaying the value of parent_id and trying to figure out what is not working for you.

    I know that you are struggling with entering the code and getting it to work. when I get a chance to modify the v6.0 code and email it to you. Remember, I don't have a way to test the v6.0 code.




    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  6. #51
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by Mitchell View Post
    I get the following errors;

    * I get this message "parent_id=0" on the top (header) and end of my page after the sub-cats.

    * Category images won't load up an more
    * Page design breaks up (sub category lisitng moved to the lower end of the page, - lower than where they are now)
    __________________
    By my definition, those are not "errors" while testing. An "error" is one that prevents the page from displaying and generates a "program coding error."

    you said at the "end of my page after the sub-cats." did you go to the actual sub-cat page....???

    Can you look at the actual mysql table for idx_category and tell me what the category_id and parent_id is for "Grooms Menswear" category...???


    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  7. #52
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by Mitchell View Post
    * I get this message "parent_id=0" on the top (header) and end of my page after the sub-cats.
    if you are getting "parent_id=0" for the second instance of parent_id when you go to a sub-cat, then either the parent_id is actually 0 for your sub-cats, or the parent_id is not being passed to the browse.html page.



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  8. #53
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    WOW, finaly

    Thank you, thank you, thank you, it worked
    http://www.weddingsonly.com.au/

    So what did you want to name my child?


    well, if any one needs the code ask me please (of course esm has got the copyright)
    Last edited by Mitchell; 05-13-2008 at 12:50 AM.

  9. #54
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by Mitchell View Post
    So what did you want to name my child?
    you've got me confused with FSGDAG. But we could rename one of mine and he could have that one...

    Quote Originally Posted by Mitchell View Post
    WOW, finaly

    Thank you, thank you, thank you, it worked

    well, if any one needs the code ask me please (of course esm has got the copyright)
    somethings just don't want to co-operate.


    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

Similar Threads

  1. -- not showing new signs; or added categories
    By webandlinkscom in forum v5.x
    Replies: 1
    Last Post: 04-26-2007, 11:44 PM
  2. big space before main categories
    By SKh in forum v5.x
    Replies: 4
    Last Post: 09-24-2006, 07:22 AM
  3. Replies: 8
    Last Post: 08-18-2006, 04:43 AM
  4. Replies: 0
    Last Post: 03-07-2006, 12:50 PM
  5. Only Main Category showing
    By Polo5 in forum v5.x
    Replies: 1
    Last Post: 02-09-2004, 11:05 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
  •