Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Banners With Custom Code 
 
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.
 



 
kratorSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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".
 




____________
IcyPhoenix ADR RPGEzArena (modded phpBB2+ADR)
 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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"
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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?
 



 
kratorSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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 :-).
 




____________
IcyPhoenix ADR RPGEzArena (modded phpBB2+ADR)
 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Banners With Custom Code 
 
OMG!  
Sure! Create my own block! I do not know how I have not thought about that.

Thanks Informpro
 



 
kratorSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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 :-).
 




____________
IcyPhoenix ADR RPGEzArena (modded phpBB2+ADR)
 
InformproSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You 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


  

 

  cron