Hello forum.
I have a request. I need insert banners in differents sites of my page. This banners (differents sizes) will be loaded (for size) from database and select a randomize banner for each site. I unknow how to do this, because i can modify differents files (forum, viewforum, viewtopic) and then transport values to template, but... a variable template for each banner?
If you have another idea, please, help me.
Thanks.
Banners With Custom Code
Subject: Re: Banners With Custom Code
Hi,
This is usually Icy Phoenix's CMS really shines.
You'd usually create a block with your HTML values, and add that block to your Global Blocks so it shows up everywhere.
I figure you want the block in "Header Bottom".
This is usually Icy Phoenix's CMS really shines.
You'd usually create a block with your HTML values, and add that block to your Global Blocks so it shows up everywhere.
I figure you want the block in "Header Bottom".
Subject: Re: Banners With Custom Code
There's also a specific section for banners:
http://www.icyphoenix.com/cms_ads.php
The link won't work because SID is required, but you can easily add your sid or go into CMS and check last tab on the right "Ads & Sponsors"
http://www.icyphoenix.com/cms_ads.php
The link won't work because SID is required, but you can easily add your sid or go into CMS and check last tab on the right "Ads & Sponsors"
Subject: Re: Banners With Custom Code
Thanks you, but this solutions are not valids!.
Correct! You can create a block, but you "only" can add html code. I need php because i need create a routine that it will select records of DB. Then, with randomize options, it will select a banner and then create a valid html.
This is the reason because i cant use blocks or adblocks of Icy.
Thanks!
@MG: Is it possible "override" functions in Icy Phoenix?
Correct! You can create a block, but you "only" can add html code. I need php because i need create a routine that it will select records of DB. Then, with randomize options, it will select a banner and then create a valid html.
This is the reason because i cant use blocks or adblocks of Icy.
Thanks!
@MG: Is it possible "override" functions in Icy Phoenix?
Subject: Re: Banners With Custom Code
Ah, I see what you mean now.
This is still possible easily, you can create blocks.
These are in the blocks directory.
You need a .cfg and a .php
There are many examples to look at in that folder, but if you get stuck, we'll help you.
Then you'll be able to use the block in the CMS :-).
This is still possible easily, you can create blocks.
These are in the blocks directory.
You need a .cfg and a .php
There are many examples to look at in that folder, but if you get stuck, we'll help you.
Then you'll be able to use the block in the CMS :-).
Subject: Re: Banners With Custom Code
OMG! :oops:
Sure! Create my own block! I do not know how I have not thought about that.
Thanks Informpro
Sure! Create my own block! I do not know how I have not thought about that.
Thanks Informpro
Subject: Re: Banners With Custom Code
No problem! If you need to reuse that block on many different forums, you can even make it a plugin, IP will find it :-).
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.7688s (PHP: 2% SQL: 98%)
SQL queries: 32 - Debug Off - GZIP Enabled