Welcome to Geeklog, Anonymous Wednesday, December 11 2024 @ 12:18 pm EST
Geeklog Forums
word count lib-common.php
Hi Dirk,
I have looked at previous posting on how to delete the word count for the story. Below is a reply you gave which seemed to have worked for others.
Oh, I think I misunderstood your question. You only want to get rid of the part of the link that displays the word count, not the entire link ... Well, you need to hack lib-common.php for that. Search for "readmore_link" and you will find this: $article->set_var('readmore_link', '' . $LANG01[2] . ' (' . sizeof(exp lode(' ',$A['bodytext'])) . ' ' . $LANG01[62] . ') '); Simply remove everything after the tag so that you get $article->set_var('readmore_link', '' . $LANG01[2] . ''; That should do it. bye, Dirk
I tried to seach in the lib-common.php for "readmore_link" but could not find it.
Please let me know if im doing anything wrong? or is there another way to do this.
Regards.
I have looked at previous posting on how to delete the word count for the story. Below is a reply you gave which seemed to have worked for others.
Oh, I think I misunderstood your question. You only want to get rid of the part of the link that displays the word count, not the entire link ... Well, you need to hack lib-common.php for that. Search for "readmore_link" and you will find this: $article->set_var('readmore_link', '' . $LANG01[2] . ' (' . sizeof(exp lode(' ',$A['bodytext'])) . ' ' . $LANG01[62] . ') '); Simply remove everything after the tag so that you get $article->set_var('readmore_link', '' . $LANG01[2] . ''; That should do it. bye, Dirk
I tried to seach in the lib-common.php for "readmore_link" but could not find it.
Please let me know if im doing anything wrong? or is there another way to do this.
Regards.
6
26
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The code that actually renders the stories is now in system/lib-story.php
Also note that there are quite a few variables already defined that you could use in your remplate files to get a "read more" link without the word count, so you shouldn't have to hack it.
bye, Dirk
Also note that there are quite a few variables already defined that you could use in your remplate files to get a "read more" link without the word count, so you shouldn't have to hack it.
bye, Dirk
7
8
Quote
All times are EST. The time is now 12:18 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