Simple Portal

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
No Avatar
lqdmindz Offline
BBCoder II
BBCoder II
Posts: 12
Joined: 24 May 2010, 02:41
Local time: Sunday 07:06
Last active: -

Re: Simple Portal

Post by lqdmindz »

Fair enough. Delete my post and winge less. Im trying to give ppl an extra option but perhaps default is the way to go. Pro silver for all.
User avatar
Bullseye Offline
BBCoder IV
BBCoder IV
Posts: 153
Joined: 02 Apr 2010, 18:49
Local time: Saturday 22:06
Last active: -
Location: England

Re: Simple Portal

Post by Bullseye »

cisco007 » 16 May 2010, 18:46 wrote:the way i did mine was with like Stoker said use nickvergessens mod, and instead of doing the edits to the index.php and index_body.html do the edits to the portal.php and to the simpleportal_body.html! and it should work!
Where do I add the edits in portal.php and simpleportal_body.html ?

Also am I right to say that the edits for index.php are to be used in portal.php and the edits for index_body.html to be used in simpleportal_body.html ?


~John~
User avatar
Stoker Online
Site Admin
Site Admin
Posts: 4,295
Joined: 12 May 2008, 21:26
Local time: Saturday 23:06
Last active: Online now
Favourite EXT: Forum Goal
Location: Denmark

Re: Simple Portal

Post by Stoker »

Bullseye wrote:Also am I right to say that the edits for index.php are to be used in portal.php and the edits for index_body.html to be used in simpleportal_body.html ?
Yes, that is exactly what you need to do.
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Bullseye Offline
BBCoder IV
BBCoder IV
Posts: 153
Joined: 02 Apr 2010, 18:49
Local time: Saturday 22:06
Last active: -
Location: England

Re: Simple Portal

Post by Bullseye »

What part of each file do I need to add the edits?
User avatar
Stoker Online
Site Admin
Site Admin
Posts: 4,295
Joined: 12 May 2008, 21:26
Local time: Saturday 23:06
Last active: Online now
Favourite EXT: Forum Goal
Location: Denmark

Re: Simple Portal

Post by Stoker »

Open portal.php and find:

Code: Select all

page_header($user->lang['PORTAL_HEADLINE']);
Insert the code that originally should have been inserted on index.php BEFORE.

Open simpleportal_body.html and insert the code from index_body.html where you want it.
Read the code comments to understand what is what.
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Bullseye Offline
BBCoder IV
BBCoder IV
Posts: 153
Joined: 02 Apr 2010, 18:49
Local time: Saturday 22:06
Last active: -
Location: England

Re: Simple Portal

Post by Bullseye »

Sorry to be a pain, but I need help with the edits for simpleportal_body.html .........

Where do I need to put this?

Code: Select all

<!-- IF RECENT_TOPICS_DISPLAY --><!-- INCLUDE recent_topics_body.html --><!-- ENDIF -->
No Avatar
cisco007 Offline
BBCoder VI
BBCoder VI
Posts: 1,015
Joined: 16 Mar 2010, 16:14
Local time: Saturday 17:06
Last active: -
Location: Don't really know!

Re: Simple Portal

Post by cisco007 »

put it anywhere where you want it to show on the portal!
User avatar
Bullseye Offline
BBCoder IV
BBCoder IV
Posts: 153
Joined: 02 Apr 2010, 18:49
Local time: Saturday 22:06
Last active: -
Location: England

Re: Simple Portal

Post by Bullseye »

Just tried it again and got an error..

I've attached the file in this post, I've added the edit, have I put it in the correct place?

I wanted the recent topics to show under welcome message..

Regards,



John
No Avatar
cisco007 Offline
BBCoder VI
BBCoder VI
Posts: 1,015
Joined: 16 Mar 2010, 16:14
Local time: Saturday 17:06
Last active: -
Location: Don't really know!

Re: Simple Portal

Post by cisco007 »

you got it in the right place, but i can't really tell you what the problem is unless i know what the error says!
User avatar
Steve Offline
Donator
Donator
Posts: 1,429
Joined: 04 Mar 2010, 23:10
Local time: Saturday 22:06
Last active: -

Re: Simple Portal

Post by Steve »

Easy he has'nt upload the template file to his templates folder or created it yet.

Code: Select all

General Error
template->_tpl_load_file(): File ./styles/Bullsilver/template/recent_topics_body.html does not exist or is empty
secret code: 123 might be abc or thank you might work
When I'm writing code, I am building a picture for you to see and use on your screen...