Module: Banner Manager

Posted by Maurice Makaay 
Re: Module: Banner Manager
March 21, 2010 08:31AM
Oh yes not it works fine, thanks ;-)
Re: Module: Banner Manager
March 21, 2010 08:39AM
One last question.
I have managed to use the include function correctly if I give the relative path for the template manually:
<?php include 'mypath/file.htm'?>

But for some reasons I ca't automate the template path as per your last suggestion:
<?php include '<?php print $GLOBALS['PHORUM']['DATA']['URL']['TEMPLATE'] ?>dir/file.htm'?>

It's for sure my lack of PHP programming knowledge :-)
Re: Module: Banner Manager
March 21, 2010 08:48AM
Including remote files via HTTP is a security risk, therefore most PHP installations have it disabled. Your second include tries to do a remove include (even though it's on the same server as your Phorum; PHP doesn't care about that).

Local inclusion should be fine as you already found out. Maybe something like this helps:

<?php include "./templates/{$GLOBALS['PHORUM']['template']}/file.htm" ?>


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Banner Manager
March 21, 2010 08:52AM
Yessssss! It helps a lot and it solves the problem 100%.
Thanks Maurice... as usual ;-)
Re: Module: Banner Manager
March 07, 2011 05:36PM
I’ve been using this mod for a few years now and I love it. I use it at the top and bottom of my “list” pages and I was wondering if it was possible to make the module show 2 different banners per page? Right now the banners are random, but they same banner at the top and the bottom. I’d like the top banner to be random, and the bottom banner to be random as well but not always the same as the top banner.

I tried installing a second version or the module in a new folder under a new name (banner_manager_2) but unfortunately it’s not quite that simple. Any help on creating a separate instance of the banner manager would be great.


Jake Morgan

www.PULLOFF.com
Independent Pulling News
Re: Module: Banner Manager
March 08, 2011 02:00AM
It's not supported by the module in any way. The only way would be to write a new module or update the code for this module to meet this requirement.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Banner Manager
March 08, 2011 11:07AM
Maurice,

Well, I got it to work, but in a hack way that works OK for now. I actually just copied the mod to a new folder… banner_manager_2. I then went through all the files in the new folder (thankfully only 11 files) and did a simple text replacement and changed all instances of “banner_manager” to… “banner_manager_2”. A quick template change and it works like a charm.

I’ve wanted to float a vertical banner to the right on some pages, and now this will allow me to create a third instance of the banner manager and do that.

Thanks again for this great mod, it has tons of uses and my brain is spinning with other ways to implement it.


Jake Morgan

www.PULLOFF.com
Independent Pulling News



Edited 1 time(s). Last edit at 03/08/2011 11:08AM by pulloff.
Re: Module: Banner Manager
April 05, 2011 05:03PM
Who to insert Swf files in the bannersystem?

I have try:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="[fpdownload.macromedia.com]; width="930" height="180" id="tech" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Bannere/930x180/px-banner-v5.swf" />
<param name="quality" value="high" />
<embed src="Bannere/930x180/px-banner-v5.swf" quality="high" width="930" height="180" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="[www.macromedia.com]; /></object>

The preview show the banner but not on the frontpage.
Re: Module: Banner Manager
April 05, 2011 05:09PM
The banner manager doesn't really do much with the blocks of HTML code, besides injecting them in the page.

You could start by viewing the source of that front page. Then compare the code that you find in that page's source with the code that you expect to see. If the code is the same, then it is not a Phorum module issue.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Banner Manager
April 24, 2012 01:18PM
How would one go about putting an HTML5 video in the banner manager?
I've done a little digging and tested out various chunks of code with no luck.
Is that supported in this module?
Sorry, only registered users may post in this forum.

Click here to login