Create a new block from .php files


Subject: Create a new block from .php files
Hi !

I 'm looking to find a way to create a new block that will be possible to add it from cms...

But i would like to use a lot of things defined at forum.php

Is it possible to find a way of include them all? and not individually?

Thanks ;)

Subject: Re: Create a new block from .php files
there is the way to create blocks through cms.
0004

Subject: Re: Create a new block from .php files
but... i cannot use for ej: {BOT_LIST} if i create a block via cms...

Subject: Re: Create a new block from .php files
:mricy:

but you can create tpl file for bots

infoforzuker

Subject: Re: Create a new block from .php files
i didn't understand you difus...

you told me to use cms system and then to create a tpl file :cry:

Subject: Re: Create a new block from .php files
create file and add through cms :mricy:

yes yes I understand you now

you want cms like bbcode or html or php [three options]

testo2

Subject: Re: Create A New Block From .php Files
very very useful the php featur :D

Subject: Re: Create a new block from .php files
no difus,

here is the answer

http://www.e-tegra.com/forum/kb.php...e_num=3&start=0

Subject: Re: Create A New Block From .php Files
Maybe, I can help you.
Take a look here: h**p://***.icyphoenix.com/viewtopic.php?t=1213.
I have made a .php-file (blocks_imp_meeting.php) and upload it in {phpbb-root}/blocks
and a .tpl-file (meeting_block.tpl) and upload this in {phpbb-root}/templates/{template}/blocks.

Afterwards I have add the block to the cms and it workes.

I think you can definate {BOT_LIST} in a tpl-file in {phpbb-root}/templates/{template}/blocks.

Subject: Re: Create a new block from .php files
yes... i know that creating a new block and defining each variable i need will work, but i ask if there is a way of including all forum.php in a simple way

Subject: Re: Create a new block from .php files
zuker while forum.php
include all ip.php

[joke] :mricy:
LOL

sorry

sorry I don't know

Subject: Re: Create a new block from .php files
no problem difus ;)

Subject: Re: Create a new block from .php files
Zuker at the moment I still don't have the time to create such a tutorial for Icy Phoenix.

Should be easiest for you to duplicate index.php or index_empty.php and add there the code needed for you.

It is not suitable creating big blocks, it should be better to add blocks to forum page in this case... :roll:

For the moment I can just state that you need to specify the global vars to be able to use them.

When I have some free time I'll try to create a block for the forum.

P.S.: you can have a look to ajax_chat block to see what I've done to include that page in a block. :wink:

Subject: Re: Create a new block from .php files
Mighty Gorgon wrote: [View Post]
Zuker at the moment I still don't have the time to create such a tutorial for Icy Phoenix.

Should be easiest for you to duplicate index.php or index_empty.php and add there the code needed for you.

It is not suitable creating big blocks, it should be better to add blocks to forum page in this case... :roll:

For the moment I can just state that you need to specify the global vars to be able to use them.

When I have some free time I'll try to create a block for the forum.

P.S.: you can have a look to ajax_chat block to see what I've done to include that page in a block. :wink:


Thanks luca, i'll take a look

at the moment, 've add it to nav bar :P


Page 1 of 1


  
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

   

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.1291s (PHP: 16% SQL: 84%)
SQL queries: 10 - Debug Off - GZIP Enabled