Running SMF 1.1.8 and all is well. when I install TinyPortal v1.0 beta 3 it tests successful and looks good. I install it and it works fine; however I click on my "Profile" button and it gives me a blank page. I have verified the instalation manually and all looks well, I even reloaded the default template to try and remedy the sitsuation. If I uninstall TinyPortal v1.0 beta 3 my profile button works fine.
I also did a search on the site to find this issue, and i did but no solution was made other than check the manual install instructions.....
SMF Version: 1.1.8
TinyPortal v1.0 beta 3
Site: www.acrclan.org
Do you by chance have any mods installed that change/enhance your profiles?
1. Anti-Spam Verification Questions 1.02
2. Lots_o_Smileys 1.0
3. Treasury 2.34
4. TinyPortal 1.075
here are the current mods I have installed. I suppose Treasury could be an issue?
Try uninstalling it. You shouldn't lose whats in the database, but back up before hand. Then see if the problem is fixed. That will eliminate or confirm that as a problem.
Unistalled all the mods and just reinstalled TP and same problem :(
Do you get any error? or just a blank page?
Goes to this link http://www.acrclan.org/forum/index.php?action=profile and gives me a pretty white page with no errors! I guess worse case I can reload SMF and start over since i highly doubt this is a dbase problem.
Check your /sources/profile.php and ensure that ll the TP changes were made to that file. To see what changes are required to that file for TP use the following file from the TP beta 3 package: tinyportal1075.mod
Look for where it edits the profile.php file and ensure it made all the additions and replacements called for. if you aren't sure then upload your profile.php file here and I will look ai it.
Modification Instructions (http://docs.tinyportal.co.uk/index.php?topic=140)
I verified the profile.php per G6's post and it still had the
$_REQUEST['sa']($memID);
and I replaced it with
if(isset($_GET['tpmodule']))
{
global $boarddir, $db_prefix;
// prefix of the TP tables
$tp_prefix = $db_prefix.'tp_';
$request = db_query("SELECT modulename,autoload_run FROM {$tp_prefix}modules WHERE active=1 and profile = '" . $_GET['sa'] . "'", __FILE__, __LINE__);
if(mysql_num_rows($request)>0)
{
$what=mysql_fetch_assoc($request);
mysql_free_result($request);
// load the appropiate source file
if(file_exists($boarddir .'/tp-files/tp-modules/' . $what['modulename']. '/Sources/'. $what['autoload_run']))
{
require_once($boarddir .'/tp-files/tp-modules/' . $what['modulename']. '/Sources/'. $what['autoload_run']);
}
}
$_GET['sa']($memID);
}
else
$_REQUEST['sa']($memID);
Here is a copy of the file renamed to .txt. Profile.php (http://acrclan.org/forum/images/Profile.txt)
Can I then assume your problem is corrected?
Sorry no change to the profile....still a blank page....
You will see near the bottom of that file the following:
// 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);
}
Delete all of that and let me know if that fixes your problems.
And the winner is Renegd98! Thanks for the help ! Any Idea what happend or I am I a self induced accident waiting to happen :)?
I deleted that and bam it is working great! Keep upi the good work all! (https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.acrclan.org%2Fforum%2FSmileys%2FLots_O_Smileys%2Fbanana.gif&hash=6fd6cc3dc4540289e313a9067197370aba6281c8)
There are a few more changes that has to be made in profile.php
That is code left over from previous TP install. I had to get rid of it on a local test site too.... but the weird thing is I had an error on the local site that led me to it... that's why I waited until I saw your file to venture that it was causing a problem.
Glad we got it solved...
Enjoy
Quote from: G6 on February 19, 2009, 07:42:22 PM
There are a few more changes that has to be made in profile.php
I will look at it further to make it match. Thanks G6