![]() |
vb4 template cathead.tmpl RP5.1 and vB 4.0.7 When navigating to a category w/ products (showcat.php) the top table's formatting is thrown off. After most of the day debugging, it looks like the cathead.tmpl may have issues. The very bottom, after the final </table> and </div> tag looks like this: </table> </div> <ol class="childforum"> <li class="forumbit_nopost"> <div class="forumrow table"> <!-- END TEMPLATE: cathead.tmpl --> PPPRINT; ?> and those tags should be up near the front of the file. Not to mention, there is not a close tag for the form (</form>) that is at the top of the template. This is compared to the indexhead.tmpl which has this at the end: </table> <!-- END TEMPLATE: indexhead.tmpl --> PPPRINT; } echo<<<PPPRINT </div> </div> </li> </ol> </li> </ol> <br /> <!-- END TEMPLATE: indexhead.tmpl --> PPPRINT; ?> I JUST downloaded another copy of RP, and got this out of that template just to make sure it wasn't something I introduced. Thanks -t |
You can not compare cathead and indexhead templates Dry-Goods Dealers - Reeftalk Reviews Please explain how your formatting is off The cathead at top opens up properly 2 ol and li statements and they are closed in the showcat template As you see things look properly formatted from what I can see on my end. We use the same structure in all 3 products. |
finally got it working Bottom of the template is messed up and there is also an issue w/ the forumhead div at the top and a missing div (these may have been the bits at the bottom of the template). This is what I got to work: top lines (beginning to the first <form ): <?php echo<<<PPPRINT <!-- BEGIN TEMPLATE: cathead.tmpl --> <ol class="floatcontainer" id="cathead"><!--ReviewPost, Copyright All Enthusiast,Inc. REPLACEME --> <li class="forumbit_nopost" id="cathd"> <div class="forumhead foruminfo L1"> </div> <ol id="cathd_1" class="childforum"> <li class="forumbit_post"> <div class="forumrow table"> <div class="blockrow"> <form method="get" action="{$Globals['maindir']}/showcat.php"> very bottom lines (from </form to the end): </table> </form> </div> <br /> <!-- END TEMPLATE: cathead.tmpl --> PPPRINT; ?> |
You may do as you wish but we can not support that. I have shown you my site running the default code. There is no missing form elements nor issues one can see. This is the cathead template in our downloaded code Code: Content visible to verified customers only. |
and one tweak I have several cats/sub-cats and the breadcrumbs get kind of long, throwing off the formatting. The bit below in bold helps. These are all the lines at the top of cathead.tmpl: echo<<<PPPRINT <!-- BEGIN TEMPLATE: cathead.tmpl --> <ol class="floatcontainer" id="cathead"><!--ReviewPost, Copyright All Enthusiast,Inc. REPLACEME --> <li class="forumbit_nopost" id="cathd"> <div class="forumhead foruminfo L1"> </div> <ol id="cathd_1" class="childforum"> <li class="forumbit_post"> <div class="forumrow table"> <div class="blockrow"> <form method="get" action="{$Globals['maindir']}/showcat.php"> <table cellpadding="2" cellspacing="1" width="100%"> <tr> <td align="{$Globals['align1']}" colspan="$cols"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td align="{$Globals['align1']}" class="{$Style['menubarnb']}"> <span class="smallfont"> $childnav</span> </td> </tr> <tr> <td align="{$Globals['align2']}"> PPPRINT; include( "{$Globals['TMPL_PATH']}/searchbox.tmpl" ); .... |
well your bold part would help your issue but your getting kinda complicated why not simply do what I posted in your post. I edited your post simply placing the searchbox in a new table row. You do not need a colpan or some empty td. The td already has an align right which is what align2 is |
i guess it is a matter of consistency and preference 3 Attachment(s) You are correct, my site was working and looking like yours. However, as users navigated into categories, I would prefer the top portion look the same. Before I changed it, the top-level and category-only levels, had a white background and blue-text breadcrumbs, but when you got to a category with products, the header section was blue (colored) with blue (colored) text -- in my style, the text was indistinguishable from the background. Now, my header is the same, whether it is the top level, a category with only sub-categories, or a category with products in it. See the screen-shots for a top, cat-with-sub-cats, and cat-with-products navigation -- the top portion w/ breadcrumbs is the same... |
that's what i had, but i couldn't see the text on the colored background, and the search section gets thrown-off. |
well thanks I will do my own testing and see what I come up with. I guess we shall see whether the color issues are with a custom style etc. The work I have done is with the default vb style. |
That's cool. Question -- so is creating custom templates not supported? I've been trying to steer clear of modifying the php files and keeping to the templates. |
You can modify anything you wish when you own a license however we only support the code we release and is in our download area. Pretty much the same policy as any software company. vbulletin has the same policy. |
| All times are GMT -5. The time now is 09:47 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0