Page 1 of 1

[SOLVED] Third party banner/ad management (flash files)

Posted: Thu Feb 16, 2012 12:29 am
by surogat
Did anyone used, or tried to use, third party banner management with CMSMS? Something that supports .swf files?

Re: Third party banner/ad management

Posted: Thu Feb 16, 2012 3:03 pm
by applejack
Yes you can use the banners module and global content blocks. For swf files you need to be careful about the clicktag as it can cause problems.

See http://www.commercialriskeurope.com/

Re: Third party banner/ad management

Posted: Sat Feb 18, 2012 2:28 pm
by surogat
applejack wrote:Yes you can use the banners module and global content blocks.
I assume that you mean CMSMS Banner manager, which originaly does not support .swf file.. I've managed to put .swf banner where I wanted in it, but it's not user friendly solution at all..
Very nice site, btw..

Re: Third party banner/ad management

Posted: Sat Feb 18, 2012 5:30 pm
by applejack
The banners module does support swf files. Just create a category and a flash template. The user can then just add the name of the .swf file. For third party serving adds just create a global content block and use the global randomise UDT to select which one to play it including selecting from the banners ads i.e. put the banners code into a Global block which is randomised along with the Global block for the Flash ad.

Re: Third party banner/ad management

Posted: Sun Feb 19, 2012 4:09 pm
by surogat
I'm missing something big time;

If I make banner template like this:

Code: Select all

{strip}
{if isset($banner.clickthrough)}
{object src='uploads/beneri/160/160x190-vitamini.swf' height='190' width='160' class='flashplayer'}
{else}
{* no url found, just displaying an image *}
{object src='uploads/beneri/160/160x190-vitamini.swf' height='190' width='160' class='flashplayer'}
{/if}
{/strip}
It work just fine, but when I want to get .swf banner like this;

Code: Select all

{object src="uploads/{$banner.image}" height='190' width='160' class='flashplayer'}
It does not get .swf banner...

Re: Third party banner/ad management

Posted: Sun Feb 19, 2012 4:45 pm
by sugna

Re: Third party banner/ad management

Posted: Sun Feb 19, 2012 7:06 pm
by applejack

Code: Select all

{strip}
<a rel="nofollow" href="{$banner.clickthrough|replace:'&':'&'}" title="{$banner.name}" target="_blank"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,5,0,175" width="728" height="90"><param name="movie" value="uploads/images/banners/{$banner.image}" /><param name="menu" value="false" /><param name="scale" value="exactfit" /><param name="AllowScriptAccess" value="always" /><param name="wmode" value="transparent" /><embed src="uploads/images/banners/{$banner.image}" width="728" height="90" menu="false" scale="exactfit" AllowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></a>
{/strip}

Re: Third party banner/ad management

Posted: Sun Feb 19, 2012 10:57 pm
by surogat
@applejack
tnx, this works fine.
http://www.inpharma.hr/nutrijenti/
@sugna
OpenX solution sounds great, i hope that i'll have enough time soon
to try it/figure it out..

Thank you very much