Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 09:03 am EST
Geeklog Forums
What's Related -- More By ____ link
Anonymous
Anonymous
I post a lot of stories for my users and have figured out how to edit the db to give them credit for the article by changing the uid field in gl_stories But when the story is actually being read, on the right hand side of the screen it still says under the 'What's Related' header, more by admin (my user name). Any help here?
Thanks!
5
7
Quote
Anonymous
Anonymous
Just open the story up in the story editor and it will rebuild the What's Related or try Dirks Update What's Related utility available in downloads.
4
5
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The \"more by author\" link is left out if you set $_CONF[\'contributedbyline\'] = 0 in config.php. However, that will hide the author\'s name from the story, comments, and other places as well.
If you don\'t want that, you will have to hack
function COM_whatsRelated()
in lib-common.php.
bye, Dirk
7
6
Quote
Status: offline
marcg
Forum User
Junior
Registered: 06/20/03
Posts: 20
I\'ve tried commenting out and even removing lines from function COM_whatsRelated() that seem to be responsible for the More by [user] line, but it\'s still there. What must be changed?
How you look depends on where you've been (!)
How you look depends on where you've been (!)
7
6
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by marcg: I've tried commenting out and even removing lines from function COM_whatsRelated() that seem to be responsible for the More by [user] line, but it's still there. What must be changed?
If you remove this piece of code:Text Formatted Code
// add a link to "search by author"if( $_CONF["contributedbyline"] == 1 )
{
$author = DB_getItem( $_TABLES['users'], 'username', "uid = $uid" );
$rel[] = "<a href="{$_CONF['site_url']}/search.php?mode=search&type=stories&author=$uid">{$LANG24[37]} $author</a>";
}
5
8
Quote
Status: offline
bweber
Forum User
Chatty
Registered: 07/22/11
Posts: 36
Sorry about the amateur question, I should maybe be able to figure this out from the previous posts in this thread. However... how can I remove the entire "What's Related" under a story? Specifically, the "What's Related" title and the "More from [topic]".
Any help would be appreciated, thanks in advance.
~Bob
Any help would be appreciated, thanks in advance.
~Bob
10
7
Quote
All times are EST. The time is now 09:03 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