Welcome to Geeklog, Anonymous Wednesday, April 24 2024 @ 09:04 pm EDT

Geeklog Forums

word count lib-common.php


Status: offline

muadmz

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

Status: offline

1000ideen

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

Status: offline

::Ben

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

You can try
Text Formatted Code
 {start_readmore_anchortag}{lang_readmore}{end_readmore_anchortag}


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

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