Problem with Profile Photo Mod

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Problem with Profile Photo Mod
WMrider
CZ Newbie
 Codezwiz Site Donator
WMrider has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Apr 03, 2006
0.00 posts per day
Posts: 4
Points: 833
   
I installed this mod [ Register or login to view links on this board. ] , but when I install everything, the install table mod php file will not run. I just get a blank screen. Any ideas? i am running it on phpnuke 7.9 with chatserv 3.2 patch. Thanks i



Back to top Reply with quote
#2   re: Problem with Profile Photo Mod
ragu
CZ Newbie
ragu has been a member for over 19 year's 19 Year Member
usa.gif michigan.gif
Gender: Male
Status: Offline
Joined: Jun 03, 2004
0.00 posts per day
Posts: 20
Points: 1,392
   
I am also having the same problem ... has anyone found a fix for this ??? any help would be greatly appriciated.



Back to top Reply with quote
#3   re: Problem with Profile Photo Mod
WMrider
CZ Newbie
 Codezwiz Site Donator
WMrider has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Apr 03, 2006
0.00 posts per day
Posts: 4
Points: 833
   
Here is the code for the mod install table php file, maybe someone can see where it needs to be changed to work with 7.9 patched or 7.9 at all
[code][<?php

/*
table inst for profile photo mod
*/

define('IN_PHPBB', true);

$phpbb_root_path='./';
include($phpbb_root_path.'extension.inc');
include($phpbb_root_path.'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX, $nukeuser);
init_userprefs($userdata);
//
// End session management
//

function query($sql, $errormsg)
{
global $db;

if ( !($result = $db->sql_query($sql)) )
{
print "<br><font color=\"red\">\n";
print "$errormsg<br>";

$sql_error = $db->sql_error();
print $sql_error['code'] .": ". $sql_error['message']. "<br>\n";

print "
$sql
";
print "</font>\n";

return FALSE;
}
else
{
return $result;
}
}

function insert_into_config($name, $value)
{
global $db;

$sql = 'SELECT config_name FROM ' . CONFIG_TABLE . ' WHERE config_name=\'' . $name . '\'';

$result = $db->sql_query($sql);

if ($db->sql_numrows($result) != 0)
{
return;
}

echo 'Insert ' . $name . ' into ' . CONFIG_TABLE . '...<br />';
$sql = 'INSERT INTO ' . CONFIG_TABLE . ' (config_name, config_value) VALUES (\'' . $name . '\', \'' . $value . '\')';
query($sql, 'Could not insert ' . $name . ' into ' . CONFIG_TABLE . '.');
}

//
// Add New Config Variables
//
echo "<html>";
echo "<body>";

insert_into_config('allow_photo_remote', '1');
insert_into_config('allow_photo_upload', '1');
insert_into_config('photo_filesize', '6144');
insert_into_config('photo_max_height', '80');
insert_into_config('photo_max_width', '80');
insert_into_config('photo_path', 'images/photos');
echo "done<br />";

echo "create user variable 'user_photo'...";
$sql = "ALTER TABLE " . USERS_TABLE . " ADD user_photo VARCHAR(100)";
query($sql, "Couldn't alter users table");
echo "done<br />";

echo "create user variable 'user_photo_type'...";
$sql = "ALTER TABLE " . USERS_TABLE . " ADD user_photo_type TINYINT(4) DEFAULT '0' NOT NULL";
query($sql, "Couldn't alter users table");
echo "done<br />";

echo "<br />sucessfully added new config variables.<br />";
echo "</body>";
echo "</html>";
/code]



Back to top Reply with quote
#4   re: Problem with Profile Photo Mod
WMrider
CZ Newbie
 Codezwiz Site Donator
WMrider has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Apr 03, 2006
0.00 posts per day
Posts: 4
Points: 833
   
Anyone????I have been looking for a fix everywhere and no luck. icon_sad.gif I am willing to pay if need be....thanks in advance.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum