By: yusri (offline)  Feb 17 2010 08:28 am (Read 903 times)  

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

   

yusri




Group Comfort
Level:
: 0
Registered:: 08/22/09

Posts: 10
By: Mark (offline)  Feb 17 2010 22:24 pm  

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

Thanks!
Mark


glFusion - Enhanced Content Management

   

Mark



Group Comfort
Level:
: +112
Registered:: 10/21/05

Posts: 6465
By: Mark (offline)  Feb 17 2010 23:09 pm  

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


glFusion - Enhanced Content Management

   

Mark



Group Comfort
Level:
: +112
Registered:: 10/21/05

Posts: 6465
By: yusri (offline)  Feb 17 2010 23:16 pm  

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

Thanks Mark.

Thumbup

   

yusri



Group Comfort
Level:
: 0
Registered:: 08/22/09

Posts: 10
4 posts :: Page 1 of 1
All times are CDT. The time is now 07:22 am.
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