PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old January 13th, 2010, 10:17 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Sep 2008
Posts: 186
custom4pal?

Is there a way to add a custom4pal to my sidebar on my site? I just need one extra one
dj83 is offline   Reply With Quote
Old January 14th, 2010, 08:27 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
well you would need to alter your sidebar template and add the appropriate code to call such a file and then of course make sure you create such a file and place it in the appropriate templates directory.

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 14th, 2010, 12:45 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Sep 2008
Posts: 186
Hi Chuck,

I added the code above but it's still not showing up in my sidebar. I also created a file with the name custom4pal.tmpl in the templates folder. The permissions is set at 0666

The code:

<?php
echo <<<PPPRINT
<table width="{$Globals['tablewidth']}" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td align="center" valign="top" width="{$Globals['sidebar_width']}">
PPPRINT;

if ( $Globals['custom1pal'] == "yes" ) {
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/custom1pal.tmpl" );
}

if ( $Globals['custom2pal'] == "yes" ) {
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/custom2pal.tmpl" );
}

if ( $Globals['custom4pal'] == "yes" ) {
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/custom4pal.tmpl" );
}

if ( $Globals['statspal'] == "yes" ) {
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/statspal.tmpl" );
}

if ( $Globals['calpal'] == "yes" ) {
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/calpal.tmpl" );
}

if ( $Globals['topposterspal'] == "yes" ) {
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/topposterpal.tmpl" );
}

if ( $Globals['randompal'] == "yes" ) {
echo "<div id=\"randompal\">";
display_gallery("random", "", "", 1, 6, 1);
echo "</div>";
}

if ( $Globals['ratingspal'] == "yes" ) {
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/topratedpal.tmpl" );
}

if ( $Globals['custom3pal'] == "yes" ) {
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/custom3pal.tmpl" );
}


echo<<<PPPRINT
</td>
<td align="center" width="10">
&nbsp;
</td>
<td align="center" valign="top">
PPPRINT;
dj83 is offline   Reply With Quote
Old January 14th, 2010, 01:51 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
You cant use an if clause to check for a setting that does not exist.

You must do exactly as I posted above a straight include no if clause around it.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 14th, 2010, 03:06 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Sep 2008
Posts: 186
Chuck,

I tried that also but it doesn't show.
dj83 is offline   Reply With Quote
Old January 14th, 2010, 03:29 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
If you have edited the proper sidebar template and simply do a straight include to a file that exists it will show.

whats the site link?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 14th, 2010, 05:34 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Sep 2008
Posts: 186
I edited side_leftopen.tmpl to include the code above. I had to remove it though because it was stretching the website out and the galleries wasn't showing & also the custom4pal wasn't showing up.

Chuck this is Dano and the website is a adult site so if you still need the url please let me know & I will PM or email you the link.
dj83 is offline   Reply With Quote
Old January 14th, 2010, 06:26 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Sorry dont know who Dano is of what site this is. I deal with tons of people each day. There is a limit of what I can assist you with since this is not product support but if you post a url whether its through the contact link in the header or if you know my email thats fine I can take a quick look.

The only reason the custompal would not show if your including it correctly is you have not created the custompal in the correct template directory.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 14th, 2010, 06:55 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Sep 2008
Posts: 186
sent you a email
dj83 is offline   Reply With Quote
Old January 14th, 2010, 07:26 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
okay and it works
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 14th, 2010, 07:33 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Sep 2008
Posts: 186
thanks Chuck
dj83 is offline   Reply With Quote
Old January 14th, 2010, 07:47 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
enjoy your evening
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 15th, 2010, 07:47 AM   #13 (permalink)
Member
Verified Customer
 
Join Date: Sep 2008
Posts: 186
Good Morning Chuck

Instead of starting a new thread i'll just ask here. Is there any way to display when a member joined my site. For example right now it's set up to display January 2010 but i'll like to have it set up to display January 15, 2010 and so on
dj83 is offline   Reply With Quote
Old January 15th, 2010, 08:35 AM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
You would have to modify code this line in showphoto.php

Code:
Content visible to verified customers only.
maybe change to

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 15th, 2010, 05:32 PM   #15 (permalink)
Member
Verified Customer
 
Join Date: Sep 2008
Posts: 186
it worked Chuck

Is there any way that I can add a comma after the date. Right now its showing January 15 2010
dj83 is offline   Reply With Quote
Old January 15th, 2010, 05:39 PM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
month dd, yyyy
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 15th, 2010, 07:20 PM   #17 (permalink)
Member
Verified Customer
 
Join Date: Sep 2008
Posts: 186
Thanks Chuck you've been a lot of help like always.

ok that's fixed in the stats section under the photos. Now I need to fix it for when members leave comments because that still displays January 2010 etc.
dj83 is offline   Reply With Quote
Old January 15th, 2010, 08:18 PM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
similar change set this line lower in showphoto.php to the date format you wish

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 16th, 2010, 12:26 AM   #19 (permalink)
Member
Verified Customer
 
Join Date: Sep 2008
Posts: 186
Chuck,

You're the best thanks for all of the help!
dj83 is offline   Reply With Quote
Old January 16th, 2010, 07:11 AM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
enjoy your weekend
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:46 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0