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: %1 - 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&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%>
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Australian Websites & Directories
http://www.weddingsonly.com.au
http://www.directoryonly.com.au
http://www.weddinghost.com.au
http://www.iconfilmproductions.com
http://www.iconimagecentre.com.au
http://www.australiancollection.com.au
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)
__________________
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Australian Websites & Directories
http://www.weddingsonly.com.au
http://www.directoryonly.com.au
http://www.weddinghost.com.au
http://www.iconfilmproductions.com
http://www.iconimagecentre.com.au
http://www.australiancollection.com.au
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."
.
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."
.
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.
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.
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Australian Websites & Directories
http://www.weddingsonly.com.au
http://www.directoryonly.com.au
http://www.weddinghost.com.au
http://www.iconfilmproductions.com
http://www.iconimagecentre.com.au
http://www.australiancollection.com.au
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.