PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   ReviewPost Bug Reports (http://www.photopost.com/forum/reviewpost-bug-reports/)
-   -   vb4 template cathead.tmpl (http://www.photopost.com/forum/reviewpost-bug-reports/144094-vb4-template-cathead-tmpl.html)

todknight September 26th, 2010 08:12 PM

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

Chuck S September 26th, 2010 08:35 PM

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.

todknight September 26th, 2010 08:37 PM

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">&nbsp;</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;
?>

Chuck S September 26th, 2010 09:19 PM

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.
If your template does not look like this you are not using the latest downloaded code.

todknight September 26th, 2010 09:26 PM

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">&nbsp;</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">&nbsp;$childnav</span>
</td>
</tr>
<tr>

<td align="{$Globals['align2']}">
PPPRINT;

include( "{$Globals['TMPL_PATH']}/searchbox.tmpl" );
....

Chuck S September 26th, 2010 09:39 PM

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

todknight September 26th, 2010 10:06 PM

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...

todknight September 26th, 2010 10:08 PM

that's what i had, but i couldn't see the text on the colored background, and the search section gets thrown-off.

Chuck S September 26th, 2010 10:54 PM

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.

todknight September 27th, 2010 07:19 AM

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.

Chuck S September 27th, 2010 08:06 AM

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97