Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 10:45 am EST
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
4
21
Quote
All times are EST. The time is now 10:45 am.
- 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