Create a new block from .php files »  Show posts from    to     

Icy Phoenix


Old Support Topics - Create a new block from .php files



Zuker [ Thu 01 Mar, 2007 02:16 ]
Post 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 ;)


difus [ Thu 01 Mar, 2007 07:54 ]
Post subject: Re: Create a new block from .php files
there is the way to create blocks through cms.
0004


Zuker [ Thu 01 Mar, 2007 12:06 ]
Post subject: Re: Create a new block from .php files
but... i cannot use for ej: {BOT_LIST} if i create a block via cms...


difus [ Thu 01 Mar, 2007 12:53 ]
Post subject: Re: Create a new block from .php files
:mricy:

but you can create tpl file for bots

infoforzuker


Zuker [ Thu 01 Mar, 2007 14:26 ]
Post 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:


difus [ Thu 01 Mar, 2007 22:28 ]
Post 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


sonoangelo [ Thu 01 Mar, 2007 22:59 ]
Post subject: Re: Create A New Block From .php Files
very very useful the php featur :D


Zuker [ Thu 01 Mar, 2007 23:20 ]
Post 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


JohnGF [ Fri 02 Mar, 2007 09:31 ]
Post subject: Re: Create A New Block From .php Files
Maybe, I can help you.
Take a look here: http://www.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.


Zuker [ Fri 02 Mar, 2007 12:49 ]
Post 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


difus [ Fri 02 Mar, 2007 19:22 ]
Post 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


Zuker [ Fri 02 Mar, 2007 20:54 ]
Post subject: Re: Create a new block from .php files
no problem difus ;)


Mighty Gorgon [ Sun 04 Mar, 2007 13:07 ]
Post 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:


Zuker [ Mon 05 Mar, 2007 01:39 ]
Post 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




Powered by Icy Phoenix