PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   custom4pal? (http://www.photopost.com/forum/photopost-pro-how-do-i/141714-custom4pal.html)

dj83 January 13th, 2010 10:17 PM

custom4pal?
 
Is there a way to add a custom4pal to my sidebar on my site? I just need one extra one

Chuck S January 14th, 2010 08:27 AM

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.

dj83 January 14th, 2010 12:45 PM

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;

Chuck S January 14th, 2010 01:51 PM

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.

dj83 January 14th, 2010 03:06 PM

Chuck,

I tried that also but it doesn't show.

Chuck S January 14th, 2010 03:29 PM

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?

dj83 January 14th, 2010 05:34 PM

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.

Chuck S January 14th, 2010 06:26 PM

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

dj83 January 14th, 2010 06:55 PM

sent you a email

Chuck S January 14th, 2010 07:26 PM

okay and it works ;)

dj83 January 14th, 2010 07:33 PM

thanks Chuck :)

Chuck S January 14th, 2010 07:47 PM

enjoy your evening

dj83 January 15th, 2010 07:47 AM

Good Morning Chuck :D

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

Chuck S January 15th, 2010 08:35 AM

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.

dj83 January 15th, 2010 05:32 PM

it worked Chuck :)

Is there any way that I can add a comma after the date. Right now its showing January 15 2010

Chuck S January 15th, 2010 05:39 PM

month dd, yyyy

dj83 January 15th, 2010 07:20 PM

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.

Chuck S January 15th, 2010 08:18 PM

similar change set this line lower in showphoto.php to the date format you wish

Code:

Content visible to verified customers only.

dj83 January 16th, 2010 12:26 AM

Chuck,

You're the best :D thanks for all of the help!

Chuck S January 16th, 2010 07:11 AM

enjoy your weekend


All times are GMT -5. The time now is 06:27 PM.

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