1
Mods & Plugins (Requests & Discussions) / Re: [MOD] SMF integration
« on: October 17, 2008, 03:56:40 AM »
I did rem it out, and the error has gone now, nor do I see any errors in my log, thanks very much budduke
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
OK that worked, I can see the page, but I am now getting this error at the top of the page...
If I remember correctly, the root_path is the path to the root of your gallery and not the root of the server.
I would try...Code: [Select]require(ROOT_PATH.'../smf_api_2.php'); //change paths to your forums directory
require(ROOT_PATH.'../smf_api.php'); //change paths to your forums directory
I am not where I can test it for you but I think the "../" will take it up one directory level which should take it to the forum directory.
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/xxxxxx/public_html/xxxxxx.co.uk/smf_api.php on line 162
156 $request = smf_query("
157 SELECT variable, value
158 FROM {$db_prefix}settings", __FILE__, __LINE__);
159 $smf_settings = array();
160 while ($row = @mysql_fetch_row($request))
161 $smf_settings[$row[0]] = $row[1];
162 mysql_free_result($request);
163 }
Warning: require(./public_html/xxxxxxl.co.uk/smf_api_2.php) [function.require]: failed to open stream: No such file or directory in /home/uk/public_html/xxxxxx.co.uk/4images/includes/sessions.php on line 57
Warning: require(./public_html/xxxxxxl.co.uk/smf_api_2.php) [function.require]: failed to open stream: No such file or directory in /home/uk/public_html/xxxxxx.co.uk/4images/includes/sessions.php on line 57
and in the sessions.php I have this..//MOD SMF integration
require(ROOT_PATH.'public_html/xxxxxx.co.uk/smf_api_2.php'); //change paths to your forums directory
require(ROOT_PATH.'public_html/xxxxxxl.co.uk/smf_api.php'); //change paths to your forums directory
global $smf_settings, $smf_user_info;
//END MOD SMF
U select it in the wrong place, it must be done in the settings.