Page 7 of 16

Re: Simple Portal

Posted: 17 Jul 2010, 00:46
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.

Re: Simple Portal

Posted: 02 Aug 2010, 23:35
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~

Re: Simple Portal

Posted: 02 Aug 2010, 23:50
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.

Re: Simple Portal

Posted: 03 Aug 2010, 03:14
by Bullseye
What part of each file do I need to add the edits?

Re: Simple Portal

Posted: 03 Aug 2010, 07:14
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.

Re: Simple Portal

Posted: 04 Aug 2010, 03:19
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 -->

Re: Simple Portal

Posted: 04 Aug 2010, 04:09
by cisco007
put it anywhere where you want it to show on the portal!

Re: Simple Portal

Posted: 04 Aug 2010, 19:18
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

Re: Simple Portal

Posted: 04 Aug 2010, 19:50
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!

Re: Simple Portal

Posted: 04 Aug 2010, 19:59
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