Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1285
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Make an ?action=portal

Started by Elochai, March 05, 2009, 08:54:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Elochai

After having Sp running for over 2 weeks, I checked my Google Analytics.  The day after I installed SP, my bounce rate jumped to 50% (from 20%).  I would like it to be that I have SP installed, be the index.php page be my forum, and have action=portal be the portal page.  I know I have to edit my index.php file, but I don't know exactly what to do.
Thanks for any help :)

Nathaniel

The edits below are for your 'index.php' file, although you will also have to edit your links to change the title and link.

Please note that you will have to undo these edits before you uninstall SimplePortal for whatever reason (like upgrading). Otherwise it won't uninstall properly.

If you have SMF 1.1.x then replace the '2' parts in the code with '1-1'.

Find this code:
// Action and board are both empty... SPortal!
if (empty($board) && empty($topic) && $modSettings['sp_portal_mode'] == 1)
{
require_once($sourcedir . '/SPortal2.php');
return 'SPortal';
}
// Action and board are still both empty but no portal... BoardIndex
elseif (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}


Replace with this code:
// Action and board are still both empty but no portal... BoardIndex
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}


Find this code:
'forum' => array('BoardIndex.php', 'BoardIndex'),
Replace with this code:
'portal' => array('SPortal2.php', 'SPortal'),
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.