Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post How To Add Php Code In A Block? 
 
Hi!!

I want to introduce php code in a block (HTML based), how can I do it?

Thanks for replies!!

Greets!!
 



 
dllrsoftSend private messageVisit poster's website  
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: How To Add Php Code In A Block? 
 
The best (and currently only) way to use php in a block is to actually create your own block. Study the existing blocks to get an idea of how they work - for example you may need to access existing system variables - you do this by using "global", e.g. global db; for using phpBB derived SQL functions. You need to follow the same file naming conventions (blocks_imp_yourblock.php) and create also template block (yourblock_block.tpl). You must make sure you define your code within a function of same name as block, e.g. function imp_yourblock_block_func()... Its not too hard
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How To Add Php Code In A Block? 
 
moreteavicar thanks!!

I'm going to prove it.

I'll be back...

Edit: Perfect!!! It's run OK!! Very thanks moreteavicar!!

Greets!!
 



 
dllrsoftSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How To Add Php Code In A Block? 
 
Great... before long you'll be starting to make new blocks for Icy Phoenix too
 



 
moreteavicarSend 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