Home aeyStudio
Welcome Guest · Registration
Resources
Download Seportal
Demo Site
SePortal Sites

Users
Username:

Password:

Log me on automatically next visit?


» Forgot password
» Registration

Topics
Home
Seportal (5)
News (3)

Who is Online
Currently active users: 5
There are currently 0 registered user(s) (0 among them invisible) and 5 guest(s) online.

Random Image
Ayarlar/Configuration

Ayarlar/Configuration
Comments: 0
zebaniz

Powered By
Powered by SePortal

Rate SePortal at
Listed at Hot Scripts in PHP

Scripts.com


ScriptSearch.com



Add Reply New Topic

> Error fix - Comments in profile sector
 
 
CarpMadness
Posted: 17.03.2008 - 22:38
Quote


Member
*

Group: Üyeler
Total posts: 40
User No: 2
Join Date: 26.12.2007 23:25



 
To fix the error in your profile sector for comments,
open members.php
find line 360-362

PHP

if ($user_info['user_level'] < USER_AWAITING && $user_info['user_level'] == BANNED) {
          
show_error_page($lang['no_permission']);
      }


Copy - paste underneath this piece of code the following line:

PHP

if (isset($HTTP_GET_VARS[URL_USER_ID]) || isset($HTTP_POST_VARS[URL_USER_ID])) {
        
$user_id = (isset($HTTP_POST_VARS[URL_USER_ID])) ? intval($HTTP_POST_VARS[URL_USER_ID]) : intval($HTTP_GET_VARS[URL_USER_ID]);
      }
      else {
        
$user_id GUEST;
      }


Now all members can comment the profile they want to,before you had a error witch say's member not found!!!

All credits goes to Zebaniz, thanks my friend and keep up the good work!

Regards,
Raymond alias CarpMadness


--------------------
The man who said it's impossible, is alway's interupt by the man who just did.
Offline CarpMadness carpmadnesss at hotmail.com http://www.carpmadness.nl carpmadnesss@hotmail.com
Top

Add Reply New Topic



Contribute | Forums | Gallery | Calendar | Links | Downloads | Members | Search | Guestbook | Article Directory

Powered by SePortal 2.5
Copyright © 2007-2012 SePortal.org