 | |  | | | General Discussion General use discussion forum for PhotoPost products. |
February 8th, 2005, 08:19 AM
|
#1 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
| Has anyone sucessfully created a 'services' type of template?
Has anyone sucessfully created a 'services' type of template? ie: templates based on the for sale ads with 3 photos but with the 'for sale' stuff like condition, sale price, etc removed?
I've managed to so far to copy all of the neceaasry files and rename them but when it comes to editing the showcatx.php file I'me having problems removing the 'condition' and 'price' columns.
|
| |
February 10th, 2005, 09:04 PM
|
#2 (permalink)
| | Member
Join Date: May 2004
Posts: 83
|
you just have to edit the showcatx.tmpl you create for each type of entries you wish, ... never edit the showcat.php for that..
Last edited by nexia; February 10th, 2005 at 09:08 PM.
|
| |
February 11th, 2005, 04:30 AM
|
#3 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
| Quote: |
Originally Posted by nexia you just have to edit the showcatx.tmpl you create for each type of entries you wish, ... never edit the showcat.php for that.. | I realise that bit. I'm having problems removing the 'condition' and 'price' columns and need some help with that.
|
| |
February 18th, 2005, 11:03 AM
|
#4 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
| Quote: |
Originally Posted by criscokid I'm having problems removing the 'condition' and 'price' columns. | Anyone able to offer any assistance?
|
| |
February 18th, 2005, 11:25 AM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Simple template edit just remove the code in the templates you wish to remove it from. Beauty of templates you can alter them to your needs.
Just find the html and remove it for those items
|
| |
February 18th, 2005, 12:02 PM
|
#6 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
| Quote: |
Originally Posted by omegatron Just find the html and remove it for those items | It's fine if you know what you're looking for or good at HTML and stuff. I've tried but haven't had any sucess.
|
| |
February 18th, 2005, 12:43 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
They are right next to each other in the template. this should be one without condition and price Quote:
<?php
include( "{$Globals['PP_PATH']}/templates/cathead.tmpl" );
include( "{$Globals['PP_PATH']}/templates/categories.tmpl" );
echo<<<PPPRINT
$ppopen
<tr>
<td class="{$Style['menubar']}" align="center" width="50%" colspan="2">
<span class="{$Style['medium']}"><b>{$Globals['pp_lang']['products']}</b></span>
</td>
<td class="{$Style['menubar']}" align="center" nowrap="nowrap">
<span class="{$Style['medium']}"><b> {$Globals['pp_lang']['views']} </b></span>
</td>
PPPRINT;
if ( $Globals['zipcode'] == "yes" ) {
echo<<<PPPRINT
<td class="{$Style['menubar']}" align="center">
<font class="{$Style['medium']}"><b>{$Globals['pp_lang']['distance']}</b></font>
</td>
PPPRINT;
}
echo<<<PPPRINT
<td class="{$Style['menubar']}" align="center" nowrap="nowrap">
<span class="{$Style['medium']}"><b>{$Globals['pp_lang']['date']}</b></span>
</td>
</tr>
PPPRINT;
for( $x=0; $x < $count; $x++ ) {
echo<<<PPPRINT
<tr>
<td class="{$gallery['rowcolor'][$x]}" width="15" align="center">
PPPRINT;
$mthumb = $gallery['hasimage'][$x];
include( "{$Globals['PP_PATH']}/templates/thumbnail.tmpl" );
echo<<<PPPRINT
</td>
<td class="{$gallery['rowcolor'][$x]}" align="left" width="60%">
<span class="{$Style['medium']}"><!--PhotoPost Classifieds, Copyright All Enthusiast, Inc.-->
{$gallery['tagopen'][$x]}{$gallery['prodlink'][$x]}</span><br />
<span class="small">posted by {$gallery['username'][$x]}<br />{$gallery['desc'][$x]}{$gallery['tagclose'][$x]}</span>
</td>
<td class="{$gallery['rowcolor'][$x]}" align="center">
<span class="{$Style['small']}">{$gallery['tagopen'][$x]}{$gallery['views'][$x]}{$gallery['tagclose'][$x]}</span>
</td>
PPPRINT;
if ( $Globals['zipcode'] == "yes" ) {
echo<<<PPPRINT
<td class="{$gallery['rowcolor'][$x]}" align="center">
<font class="{$Style['small']}">{$gallery['tagopen'][$x]}{$gallery['distance'][$x]}{$gallery['tagclose'][$x]}</font>
</td>
PPPRINT;
}
echo<<<PPPRINT
<td class="{$gallery['rowcolor'][$x]}" align="center" nowrap="nowrap">
<span class="{$Style['small']}">{$gallery['tagopen'][$x]}{$gallery['ppdate'][$x]}{$gallery['timeleft'][$x]}{$gallery['tagclose'][$x]}</span>
</td>
</tr>
PPPRINT;
}
echo<<<PPPRINT
</tr>
<tr>
<td class="{$Style['menubar']}" colspan="7" align="center">
$posternav$noresults<br />
</td>
</tr>
$ppclose
</form><br />
PPPRINT;
?>
| |
| |
February 18th, 2005, 01:08 PM
|
#8 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
|
One of the problems I had was removing the column and also the header. I assume the above code takes care of that?
|
| |
February 18th, 2005, 01:16 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
oh course
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 08:24 AM. | |