Webnetwork: Profile complete setting bug fix

Everything having to do with programming, all languages (VB, C/C++, C#, HTML, JAVA, PHP, etc)

Moderator: 127.0.0.1

Webnetwork: Profile complete setting bug fix

Postby delle » Fri Aug 20, 2010 1:05 am

Webnetwork used to have a bug on it’s profile-completion feature.
Bug: Even if you set that profile must be completed after registration on admin, user can still navigate to Webnetwork’s inner pages even if profile is incomplete.
Solution: This error should be resolved in the next version of Webnetwork, however, if you want to get ahead and grab a fix of this issue, please follow the steps below:
Connect to your server-files via FTP.
Modify /engine/pages/registration_complete.php file and find this line:

if(strtolower($force_profile) == "on")
{
$this->_page_name = ‘create_profile’;
$this->load_page(‘create_profile’);
return;
}

…replace it with:

if(strtolower($force_profile) == "on")
{
header("location:".$application->config(‘root_host’)."index.php?page=create_profile");
die;
}

Hope that helps.

________________________________________________
Unsecured Business Lines of Credit
Unsecured Small Business Loans
delle
 

Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron