Welcome to Geeklog, Anonymous Thursday, May 16 2024 @ 11:02 pm EDT

Geeklog Forums

Change Position of "Read More" in GL 1.6.1


Status: offline

winnerdk

Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama
I would like to change the position of the "read more" link.

I've already changed it to say "Click Here To Read The Full Article" (in the Language / english.php file) but I would like to change the place where this appears.

I would like to have this link appear at the very end of the text of the introduction paragraph, instead of in the footer or at the bottom.

I made this change under GL 1.4.1 but the hack didn't survive the upgrade.

How can I change where the "read more" link appears to place it at the end of the text of the introduction paragraph?

Thanks much.

Don
www.panama-guide.com

 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 02/19/04
Posts: 818
Obviously you'll have to do whatever you did back then, and hack it again and again after each upgrade. Just like you modify the text after each upgrade.

Alternatively, submit a feature request, but only if you have a strong case to think this would improve Geeklog in general. But in that case, write what you did back then, and fake the wanted "future look" with a painting program (the tracker allows attachments).
 Quote

Status: offline

winnerdk

Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama
Actually, there have been many fundamental structural changes from GL 1.4.1 to GL 1.6.1 so I want to make sure that I'm modifying the correct file in the right way.

I don't think the structure is the same (as in - the names of the files used to render the intro paragraph). And, I just wanted to be sure.

In any case, thanks for your input.

Don
www.panama-guide.com
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: winnerdk

I would like to have this link appear at the very end of the text of the introduction paragraph, instead of in the footer or at the bottom


You mean like {story_introtext} {readmore_link} ?

That may look confusing at first but works as described: On the index page, you get the read more text directly after the intro text. On the article page, you get the entire text and the read more link will disappear.

bye, Dirk
 Quote

Status: offline

winnerdk

Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama
Right, that's it.

In the storytext.thtml file I changed line 14 to read:

{story_anchortag_and_image}{story_text_no_br}{readmore_link}

and then removed the {readmore_link} from line 18.

I have another question. I would like to add two spaces between the end of the text and the "read more" link. What do I have to put in to make that happen?

Also (FYI) I had to make the same changes to the featuredstorytext.thtml file.

Don
www.panama-guide.com



 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: winnerdk

I have another question. I would like to add two spaces between the end of the text and the "read more" link. What do I have to put in to make that happen?


Add two   entities. They'll end up at the end of the entire story on the article page, where they shouldn't matter.


Quote by: winnerdk

Also (FYI) I had to make the same changes to the featuredstorytext.thtml file.


Of course. And if you're using an archive topic, you'll also have to make the same changes in archivestorytext.thtml

bye, Dirk
 Quote

Status: offline

winnerdk

Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama
That did it, thanks.

Don
www.panama-guide.com
 Quote

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