Welcome to Geeklog, Anonymous Saturday, June 22 2024 @ 12:14 am EDT

Geeklog Forums

word count lib-common.php

Status: offline


Forum User
Registered: 03/05/05
Posts: 51
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.


Status: offline


Site 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

Status: offline


Forum User
Full Member
Registered: 08/04/03
Posts: 1298
So which variable is it that produces a readmore_link without the "(62 words)"?

Status: offline


Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France

You can try
Text Formatted Code

I'm available to customise your themes or plugins for your Geeklog CMS

All times are EDT. The time is now 12:14 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