Welcome to Geeklog, Anonymous Tuesday, May 07 2024 @ 04:57 pm EDT
Geeklog Forums
Changing sign of the articles
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Hmm, the problem here is that not all registered users have set a full name (whereas the username is mandatory).
What you need to change is this line in function COM_article() in lib-common.php:
$article->set_var( 'contributedby_user', DB_getItem( $_TABLES['users'],'username',"uid = ''" ));
If you change that to
$article->set_var( 'contributedby_user', DB_getItem( $_TABLES['users'],'fullname',"uid = ''" ));
you will get the full name in the story. However, it's probably better to add a test there to check if the fullname isn't empty ...
bye, Dirk
2
17
Quote
All times are EDT. The time is now 04:57 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content