 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
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
|
| |
January 14th, 2010, 08:27 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
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.
|
| |
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">
</td>
<td align="center" valign="top">
PPPRINT;
|
| |
January 14th, 2010, 01:51 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
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.
|
| |
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.
|
| |
January 14th, 2010, 03:29 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
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?
|
| |
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.
|
| |
January 14th, 2010, 06:26 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
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. |
| |
January 14th, 2010, 06:55 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Sep 2008
Posts: 186
|
sent you a email
|
| |
January 14th, 2010, 07:26 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
okay and it works |
| |
January 14th, 2010, 07:33 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Sep 2008
Posts: 186
|
thanks Chuck |
| |
January 14th, 2010, 07:47 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
enjoy your evening
|
| |
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
|
| |
January 15th, 2010, 08:35 AM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
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.
|
| |
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
|
| |
January 15th, 2010, 05:39 PM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
month dd, yyyy
|
| |
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.
|
| |
January 15th, 2010, 08:18 PM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
similar change set this line lower in showphoto.php to the date format you wish Code: Content visible to verified customers only.
|
| |
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!
|
| |
January 16th, 2010, 07:11 AM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
enjoy your weekend
|
| | |
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 09:26 AM. | |