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 login or register.

* Who's Online

  • Dot Guests: 552
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* 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]

If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Author Topic: Installed, Then Forums  (Read 2728 times)

0 Members and 1 Guest are viewing this topic.

Offline diet222

  • Semi Newbie
  • *
  • Posts: 5
  • Gender: Male
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Installed, Then Forums
« on: September 11, 2010, 05:22:26 PM »
When I installed SimplePortal to SMF 2.0 RC3, my forums does not work. It says when I get on it, "Fatal error: Call to undefined function getboardindex() in /home/a3064693/public_html/Sources/BoardIndex.php on line 69"

This is my BoardIndex.php, if you need it.

Code: [Select]
<?php
/**********************************************************************************
* BoardIndex.php                                                                  *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com)                    *
* =============================================================================== *
* Software Version:           SMF 2.0 RC3                                         *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006-2010 by:     Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/

if (!defined('SMF'))
    die(
'Hacking attempt...');

/*    The single function this file contains is used to display the main
    board index.  It uses just the following functions:

    void BoardIndex()
        - shows the board index.
        - uses the BoardIndex template, and main sub template.
        - may use the boardindex subtemplate for wireless support.
        - updates the most online statistics.
        - is accessed by ?action=boardindex.

    void CollapseCategory()
        // !!!
*/

// Show the board index!
function BoardIndex()
{
    global 
$txt$user_info$sourcedir$modSettings$context$settings$scripturl;

    
// For wireless, we use the Wireless template...
    
if (WIRELESS)
        
$context['sub_template'] = WIRELESS_PROTOCOL '_boardindex';
    else
        
loadTemplate('BoardIndex');

    
// Set a canonical URL for this page.
    
$context['canonical_url'] = $scripturl;

    
// Do not let search engines index anything if there is a random thing in $_GET.
    
if (!empty($_GET) && $_GET !== array('action' => 'forum'))
        
$context['robot_no_index'] = true;

    
// Retrieve the categories and boards.
    
require_once($sourcedir '/Subs-BoardIndex.php');
    
$boardIndexOptions = array(
        
'include_categories' => true,
        
'base_level' => 0,
        
'parent_id' => 0,
        
'set_latest_post' => true,
        
'countChildPosts' => !empty($modSettings['countChildPosts']),
    );
    
$context['categories'] = getBoardIndex($boardIndexOptions);

    
// Get the user online list.
    
require_once($sourcedir '/Subs-MembersOnline.php');
    
$membersOnlineOptions = array(
        
'show_hidden' => allowedTo('moderate_forum'),
        
'sort' => 'log_time',
        
'reverse_sort' => true,
    );
    
$context += getMembersOnlineStats($membersOnlineOptions);

    
$context['show_buddies'] = !empty($user_info['buddies']);

    
// Are we showing all membergroups on the board index?
    
if (!empty($settings['show_group_key']))
        
$context['membergroups'] = cache_quick_get('membergroup_list''Subs-Membergroups.php''cache_getMembergroupList', array());

    
// Track most online statistics? (Subs-MembersOnline.php)
    
if (!empty($modSettings['trackStats']))
        
trackStatsUsersOnline($context['num_guests'] + $context['num_spiders'] + $context['num_users_online']);

    
// Retrieve the latests posts if the theme settings require it.
    
if (isset($settings['number_recent_posts']) && $settings['number_recent_posts'] > 1)
    {
        
$latestPostOptions = array(
            
'number_posts' => $settings['number_recent_posts'],
        );
        
$context['latest_posts'] = cache_quick_get('boardindex-latest_posts:' md5($user_info['query_wanna_see_board'] . $user_info['language']), 'Subs-Recent.php''cache_getLastPosts', array($latestPostOptions));
    }

    
$settings['display_recent_bar'] = !empty($settings['number_recent_posts']) ? $settings['number_recent_posts'] : 0;
    
$settings['show_member_bar'] &= allowedTo('view_mlist');
    
$context['show_stats'] = allowedTo('view_stats') && !empty($modSettings['trackStats']);
    
$context['show_member_list'] = allowedTo('view_mlist');
    
$context['show_who'] = allowedTo('who_view') && !empty($modSettings['who_enabled']);

    
// Load the calendar?
    
if (!empty($modSettings['cal_enabled']) && allowedTo('calendar_view'))
    {
        
// Retrieve the calendar data (events, birthdays, holidays).
        
$eventOptions = array(
            
'include_holidays' => $modSettings['cal_showholidays'] > 1,
            
'include_birthdays' => $modSettings['cal_showbdays'] > 1,
            
'include_events' => $modSettings['cal_showevents'] > 1,
            
'num_days_shown' => empty($modSettings['cal_days_for_index']) || $modSettings['cal_days_for_index'] < $modSettings['cal_days_for_index'],
        );
        
$context += cache_quick_get('calendar_index_offset_' . ($user_info['time_offset'] + $modSettings['time_offset']), 'Subs-Calendar.php''cache_getRecentEvents', array($eventOptions));

        
// Whether one or multiple days are shown on the board index.
        
$context['calendar_only_today'] = $modSettings['cal_days_for_index'] == 1;

        
// This is used to show the "how-do-I-edit" help.
        
$context['calendar_can_edit'] = allowedTo('calendar_edit_any');
    }
    else
        
$context['show_calendar'] = false;

    
$context['page_title'] = sprintf($txt['forum_index'], $context['forum_name']);
}

// Collapse or expand a category
function CollapseCategory()
{
    global 
$user_info$sourcedir$context;

    
// Just in case, no need, no need.
    
$context['robot_no_index'] = true;

    
checkSession('request');

    if (!isset(
$_GET['sa']))
        
fatal_lang_error('no_access'false);

    
// Check if the input values are correct.
    
if (in_array($_REQUEST['sa'], array('expand''collapse''toggle')) && isset($_REQUEST['c']))
    {
        
// And collapse/expand/toggle the category.
        
require_once($sourcedir '/Subs-Categories.php');
        
collapseCategories(array((int) $_REQUEST['c']), $_REQUEST['sa'], array($user_info['id']));
    }

    
// And go back to the board index.
    
BoardIndex();
}

?>

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Installed, Then Forums
« Reply #1 on: September 13, 2010, 02:30:10 PM »
Can you uninstall SimplePortal?
You may be able to go directly to index.php?action=admin to get around the problem.
 
It seems that something went wrong with the install.
 
Uninstalling and reinstalling may help.
 
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?