Page 1 of 1

Custom block on another page

Posted: 31. December 2008 07:02
by fac7orx
Your Portal Version: 1.0.2
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Beginner
Boardlink: http://www.pixelsmashers.com/

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
_________________________

I am trying to make a custom block but only have it specific to another page. I made a new php file and pasted the contents of portal.php in there and then changed the name. It works, but now I am a bit confused about where to go next. I want to add a custom block with custom code only on that renamed portal page. Any ideas?

edit:

I am trying to put the news block in manually and link it to another thread id. Perhaps I can set the forum id manually within the php file?

Re: Custom block on another page

Posted: 1. January 2009 01:14
by fac7orx
*I figured it out*

I made a new portal body, then copied the index php and renamed it. I took out the blocks I didn't want in the code. Then, I inserted the html code with an include statement into the new portal body. Finally. I copied the custom block code and edited it slightly. Next, I went back to the new portal_body and put div center tags around it. Quite fun indeed ;).