![]() |
custom4pal? Is there a way to add a custom4pal to my sidebar on my site? I just need one extra one |
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. |
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; |
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. |
Chuck, I tried that also but it doesn't show. |
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? |
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. |
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. ;) |
sent you a email |
okay and it works ;) |
thanks Chuck :) |
enjoy your evening |
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 |
You would have to modify code this line in showphoto.php Code: Content visible to verified customers only.Code: Content visible to verified customers only. |
it worked Chuck :) Is there any way that I can add a comma after the date. Right now its showing January 15 2010 |
month dd, yyyy |
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. |
similar change set this line lower in showphoto.php to the date format you wish Code: Content visible to verified customers only. |
Chuck, You're the best :D thanks for all of the help! |
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