Topic: hea just asking a question

will it will be possible to make a miniportal extension with the new release .. i mean in 1.2... you have to change the index.php to forum and etc .... how will the extension do that if you dont touch the orignal code of punbb ...

thanks

MyFootballCafe.com  is Now Online!

Re: hea just asking a question

Well, you can do it one of two ways: you can hook into the start of index.php and put your own content is there and tell it not to show the other content unless, say, $_GET['view'] == 'forum'
The alternative is to do the same thing but always hide the other content and have your own forum.php in the extensions folder. That would be the less desirable solution.

Re: hea just asking a question

Smartys wrote:

Well, you can do it one of two ways: you can hook into the start of index.php and put your own content is there and tell it not to show the other content unless, say, $_GET['view'] == 'forum'
The alternative is to do the same thing but always hide the other content and have your own forum.php in the extensions folder. That would be the less desirable solution.

well thats great .. thanks but when you use the hide function ... will it will slow the page as the other quires are excuted ... if it is ... then its bitter to change the index to forum as in 1.2 but what will happen to the links ... that redirect to forum ... any way thats is far from now as its still beta and this is a big modification ...

thanks for answering Smartys

MyFootballCafe.com  is Now Online!

Re: hea just asking a question

It's actually not a big modification at all wink
And the hiding would involve actually not executing the code.
As you pointed out though, $pun_url would have to be updated. That would be the only change.

Re: hea just asking a question

ok thanks .. its good to know that

MyFootballCafe.com  is Now Online!