Page 1 of 1

Custom Block

Posted: 16. May 2010 02:03
by vonhazey
Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Advanced Knowledge
Boardlink: http://thehazey.co.uk

What have you done before the problem was there?
Nothing

What have you already tryed to solve the problem?
Nothing

Description and Message
I want to have two center custom blocks, what code do I need to alter please

Re: Custom Block

Posted: 16. May 2010 13:13
by webslug
1) In your styles folder navigate and open portal_body.html or portal_center.html if your using 1.05 or later.

Path;
styles/YOUR STYLE/template/portal

2) Search for "welcome.html", add the welcome2.html lines, as below.

Code: Select all

<!-- IF S_DISPLAY_WELCOME -->
			<!-- IF S_DISPLAY_WELCOME_GUEST and S_USER_LOGGED_IN -->
				<!-- INCLUDE portal/block/welcome.html -->
				<!-- INCLUDE portal/block/welcome2.html -->
			<!-- ELSE -->
				<!-- INCLUDE portal/block/welcome.html -->
				<!-- INCLUDE portal/block/welcome2.html -->
			<!-- ENDIF -->

		<!-- ENDIF -->

3) Navigate to the following folder

Path;
styles/YOUR THEME/template/portal/block

4) Copy the welcome.html file and paste it in the folder. Rename it to welcome2.html

5) Edit the welcome2.html file to add the new content.

6) Check the Welcome page is enabled in the ACP -> Mods

7) Upload the modified files.

8) Clear your template cache.

Re: Custom Block

Posted: 16. May 2010 19:24
by vonhazey
No you miss understand I want to custom blocks that i can edit via the acp at the moment I only have one?