+ Reply to Thread (include dating software, release, and patch number!)
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: cant use profile comments!

  1. #1
    aaronrrc
    Guest

    Default cant use profile comments!

    Hi, Im using dolphin 5.6.4, I have free mode desactivated because I want that users have to register to use all the services (but they dont have to pay). When users get registered they go to standard memebership mode. In the membership levels I have all the actions activated in standard mode, the problem is when users are logged and want to add a profile comment they cant, because a page appears that says something like this:

    Your current membership (standard) doesn\'t allow to add profile comments.

    I dont know what to do can you help me please???

    SORRY FOR MY BAD ENGLISH!!

  2. #2
    Kleetus
    Guest

    Default

    Ensure that the profile you have used to try this is activated and set to "standard" and not "non-member" anymore

  3. #3
    aaronrrc
    Guest

    Default

    Hi kleetus thanx for respnding, Yes, the members Im trying are in standard mode and active, I think I have to modify function addComment( $profileID ) in profile.php file, but I cant fix it yet, any ideas?

  4. #4
    Kleetus
    Guest

    Default

    Mhhh, no ideas ! Check the settings for your profile which u have used for testing in your database ....
    Perhaps set up a new one ...

  5. #5
    fatum
    Guest

    Default

    Well this is really a bug...
    It treats the user as a non-member and denies to post comment...

    Anyone have a fix for that ?

  6. #6
    fatum
    Guest

    Default

    Noone ?
    I tried to fix but cant find the solution.
    Added a test comment from phpmyadmin and the user can delete the comment...
    So, only "add comment" is problematic i guess..

    The function is below ;

    Code:
    function addComment( $profileID )
    {
    	global $record_maxlength;
    	global $period;
    	global $record_limit;
    	global $logged;
    
    
    	$ret = "";
    
    	$record_text = process_db_input(strmaxtextlen( $_POST['commenttext'], $record_maxlength ));
    	$record_sender = strlen($_COOKIE['memberID']) ? (int)$_COOKIE['memberID'] : "";
    	$record_recipient = (int)$profileID;
    
    	$ip = ( getenv('HTTP_CLIENT_IP') ? getenv('HTTP_CLIENT_IP') : getenv('REMOTE_ADDR') );
    
    	if($_POST['replyTO'] > 0 )
    	{
    		$replyTO = (int)$_POST['replyTO'];
    	}
    	else
    	{
    		$replyTO = 'NULL';
    	}
    
    	if ( !$record_recipient )
    		return $ret;
    
    	if( !$record_sender )
    	{
    		return $ret;
    	}
    
    	if( strlen($record_text) < 2 )
    	{
    		$ret .= _t_err("_enter_message_text");
    		return $ret;
    	}
    
    	// Test if IP is defined
    	if ( !$ip )
    	{
    		$ret .= _t_err("_sorry, i can not define you ip adress. IT'S TIME TO COME OUT !");
    		return $ret;
    	}
    
    	// Test if last message is old enough
    
    	$last_count = db_arr( "SELECT COUNT( * ) AS `last_count` FROM `ProfilesComments` WHERE `IP` = '{$ip}' AND (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(`Date`) < {$period}*60)" );
    	if ( $last_count['last_count'] != 0 )
    	{
    		$ret .= _t_err("_You have to wait for PERIOD minutes before you can write another message!", $period);
    		return $ret;
    	}
    
    	// Perform insertion
    	db_res( "INSERT INTO `ProfilesComments` SET `Date` = NOW(), `IP` = '{$ip}', `Sender` = '{$record_sender}', `Recipient` = '{$record_recipient}', `Text` = '{$record_text}', `New` = '1', `ReplyTO` = {$replyTO};" );
    	//echo "INSERT INTO `ProfilesComments` SET `Date` = NOW(), `IP` = '{$ip}', `Sender` = '{$record_sender}', `Recipient` = '{$record_recipient}', `Text` = '{$record_text}', `New` = '1', `ReplyTO` = {$replyTO};" . '<hr>';
    	return $ret;
    }

  7. #7
    aaronrrc
    Guest

    Default

    some help??

  8. #8

    Join Date
    Apr 2007
    Posts
    5

    Default I'm new at this as well..

    but going over the admin site, and the scripts at teh same time, I was wondering if you 'added' the ability for the user to post profile comments from the drop down box in the admin area? I accidently deleted one item, and that is how I found oot how to replace the item that I deleted that a registered standard member could use.

  9. #9
    aaronrrc
    Guest

    Default

    theres not an action for users in admin panel to post comments, this is a bug of a file I think

  10. #10
    eSiK
    Guest

    Default

    I have the same problem after I installed modrewrite madification

+ Reply to Thread (include dating software, release, and patch number!)
Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Pagination in Profile Comments?
    By nogger98 in forum General Troubleshooting
    Replies: 2
    Last Post: 07-12-2008, 09:13 PM
  2. Profile Comments for AE 4.0 (4.1.2 )
    By Prometheus in forum Free Mod Exchange
    Replies: 2
    Last Post: 12-12-2007, 09:27 PM
  3. Profile comments
    By blinx in forum Wishlist
    Replies: 19
    Last Post: 05-09-2007, 04:10 AM
  4. New Profile Comments - Dolphin 5.5
    By N9neBlood in forum Dolphin General Discussion v5.3 to v5.6.5
    Replies: 0
    Last Post: 02-09-2007, 07:08 AM
  5. profile comments
    By gvpm in forum General Issues, Comments, Questions
    Replies: 0
    Last Post: 10-08-2006, 12:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts