TinyPortal

Development => Support => Topic started by: Athanasia on September 25, 2007, 10:09:10 PM

Title: Won't Let Me Delete Post - Problem Solved - Lost Profiles
Post by: Athanasia on September 25, 2007, 10:09:10 PM
*******   I checked the file in question and found that it was corrupted somehow....Half the code was gone???....Anyway all is well....Please disregard this post  *********

I am new to SMF and Tiny Portal...I've always used Integramod and I've become very disappointed with Integramod....So I decided to try this and so far I love it and haven't had any problems installing anything except now....Here's the deal....

I had to perform a manual install.  When the instructions told me to do the following:

In Profile.php
<search for>
Code:

?>

</search for>

<add before>


I couldn't locate the ?> but in all the other files it was at the very bottom, I figured put it at the bottom.  However, that didn't do anything except put a blank page where the profile should be.

I tried to search for the solution before posting but was unable to find anything about it.  All help will be appreciated.

Athanasia
Title: Re: Lost Profiles
Post by: Nokonium on September 25, 2007, 10:22:20 PM
All php files should have a ?> closing tag.

The last lines in Profile.php file modified for TP are

// Tinyportal
function tpsummary($memID)
{
global $txt, $user_profile, $db_prefix, $context, $db_prefix;

loadtemplate('TPprofile');
$context['page_title'] = $txt['tpsummary'];
TP_profile_summary($memID);
}
function tparticles($memID)
{
global $txt, $user_profile, $db_prefix, $context, $db_prefix;

loadtemplate('TPprofile');
$context['page_title'] = $txt['articlesprofile'];
TP_profile_articles($memID);
}
function tpdownload($memID)
{
global $txt, $user_profile, $db_prefix, $context, $db_prefix;

loadtemplate('TPprofile');
$context['page_title'] = $txt['downloadprofile'];
TP_profile_download($memID);
}
function tpshoutbox($memID)
{
global $txt, $user_profile, $db_prefix, $context, $db_prefix;

loadtemplate('TPprofile');
$context['page_title'] = $txt['shoutboxprofile'];
TP_profile_shoutbox($memID);
}
function tpgallery($memID)
{
global $txt, $user_profile, $db_prefix, $context, $db_prefix;

loadtemplate('TPprofile');
$context['page_title'] = $txt['galleryprofile'];
TP_profile_gallery($memID);
}
function tplinks($memID)
{
global $txt, $user_profile, $db_prefix, $context, $db_prefix;

loadtemplate('TPprofile');
$context['page_title'] = $txt['linksprofile'];
TP_profile_links($memID);
}

?>