Forum Index >  glFusion >  glFusion Support New Topic Post Reply
 Anonymous comments became Anonymous even if a name was entered.
   |  Printable Version
By: yusri (offline)  Feb 17 2010 08:28 am (Read 804 times)  
yusri

Hi all,

It's been a while I've seen this since the previous releases.

Was it design this way or was it overlooked? Big Grin

This is the issue:
1) When an anonymous user posted a comment, they type their name.
2) During preview, the typed name appears
3) After submitting, it became anonymous, instead of showing the name typed.


I've seen this thru glFusion 1.1.7 - 1.18. Geek

I believe it should be showing the name typed during submission right?

This is what i found in lib-comment.php line 126 -134. There's no checking whether the anonymous user typed a name or not. Correct me if I am wrong.

PHP Formatted Code

 if( !empty( $_USER['uid'] ) && ( $_USER['uid'] > 1 )) {
        $username = $_USER['username'];
        $fullname = $_USER['fullname'];
    } else {
        $result = DB_query( "SELECT username,fullname FROM {$_TABLES['users']} WHERE uid = 1" );
        $N = DB_fetchArray( $result );
        $username = $N['username'];
        $fullname = $N['fullname'];
    }



Attached are the screenshot from my testing. Thanks. Thumbup

Forum Newbie
Newbie


Group Comfort
Level:
: 0

Registered: 08/22/09
Posts: 10

Profile Email    
  Quote
By: Mark (offline)  Feb 17 2010 22:24 pm  
Mark

I think it is an oversight. I'll see about getting it fixed for the next release.

Thanks!
Mark

Forum Admin
Admin

Group Comfort
Level:
: +110

Registered: 10/21/05
Posts: 6314
Location: The Great State of
Texas

Profile      
  Quote
By: Mark (offline)  Feb 17 2010 23:09 pm  
Mark

Turns out it was a small bug, very easy to fix and the fortunate thing is the actual name entered has always been stored in the database, it just wasn't displayed with the comments. Once the fix is applied, the names will magically appear Smile

I'll have this fixed with the patch level 3 fixes in a few days.

Thanks!
Mark

Forum Admin
Admin

Group Comfort
Level:
: +110

Registered: 10/21/05
Posts: 6314
Location: The Great State of
Texas

Profile      
  Quote
By: yusri (offline)  Feb 17 2010 23:16 pm  
yusri

ClappingClapping haha ok.. I've thought so! It was kind of weird that the names are saved but not displayed.

Thanks Mark.

Thumbup

Forum Newbie
Newbie

Group Comfort
Level:
: 0

Registered: 08/22/09
Posts: 10

Profile Email    
  Quote
New Topic Post Reply


 All times are CDT. The time is now 09:00 pm.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic w/ New Post Sticky Topic w/ New Post
Locked Topic w/ New Post Locked Topic w/ New Post
View Anonymous Posts 
Able to Post 
HTML Allowed 
Censored Content