Posted: 11/08/2004 6:26:12 AM
Is it possible to create a custom template for a category, like in the previous version?
This would be to insert bannercode targeted for a category.
Ofcourse I hope you are developping a bannermodule :D
Posted: 11/08/2004 6:26:12 AM
Posted: 11/08/2004 3:43:58 PM
Posted: 11/08/2004 6:57:01 PM
<A href="<inp:cat _field="link" />"><inp:cat _Field="Name" /></a>
<A href="<inp:cat _field="customlink" />"><inp:cat _Field="Name" /></a>
Posted: 04/16/2005 6:51:03 AM
Posted: 04/16/2005 2:08:04 PM
miura wrote: | 04/16/2005 6:51:03 AM |
Any news on when the banner module will be available. If its a while off i will take the time to devlop my own - if its around the corner ....................well l think I'll wait Brinley |
Posted: 04/17/2005 12:53:16 PM
Posted: 04/18/2005 3:24:51 PM
miura wrote: | 04/17/2005 12:53:16 PM |
Hi Dmitry! I know this is nto really something i should be asking of you so if you choose not to reply - no probs! Basically I have installed a banner ad system called phpAdsnew and i need to add the below code into pagetop but it doesnt seem to be able to retrieve the include: <?php if (@include(getenv('DOCUMENT_ROOT').'/banners/phpAdsNew/phpadsnew.inc.php')) { if (!isset($phpAds_context)) $phpAds_context = array(); $phpAds_raw = view_raw ('', 2, '', '', '0', $phpAds_context); echo $phpAds_raw['html']; } ?> I have added the above code into the body of a blank php page and it works fine - so i thought i would ask if you can tell me how to get it to work in the pagetop.tpl. ps: if you are going to be producing a Banner module i suggest you have a look at this program and copy a lot of its functionality as it is unbelievable and does pretty much everything other than send you a birthday card . [URL href="http://phpadsnew.com"]http://phpadsnew.com[/URL] There is also a pro version on sourceforge but i havent had a look at that yet as i intend to use ur banner module eventually Cheers Brinley [Edited By miura on 04/18/05 2:41:31 PM] |
Posted: 04/19/2005 2:24:26 AM
Posted: 04/21/2005 10:35:02 AM
miura wrote: | 04/19/2005 2:24:26 AM |
Hi Dmitry Thanks for the info on adding php to tpl's - i look forward to your response on how to create tags to poulate templates (eeeeeek!) Also thanks for the heads up on the new upgrade - andyou are righ, I'll be busy with that for a while Have a good one. Cheers Brinley |
function m_include_banner($attribs = array())
{
// $zone = getArrayValue($attribs,'_zone');
if @include(getenv('DOCUMENT_ROOT').'/banners/phpAdsNew/phpadsnew.inc.php'))
{
if !isset($phpAds_context))
$phpAds_context = array();
$phpAds_raw = view_raw '', 2, '', '', '0', $phpAds_context);
$ret = $phpAds_raw['html'];
}
return $ret;
}
Follow In-Portal: Facebook Twitter LinkedIn
In-Portal Jobs - Post Resume
Terms and Conditions of Use | Sale and Service Agreement | Privacy Policy
Web Development by Intechnic | © 1997-2013, In-Portal Non-profit Organization. All Rights Reserved