TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 366
  • Total: 366

Logic behind no "read more" link?

Started by ricland, July 31, 2007, 09:30:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ricland

Can someone explain to be the logic behind no "read more" links on forum articles that appear on the front page.

Clicking the title to read the rest of the article is not obvious.

ricland

carver

To add a "Read More " link back to the original post from the front page

open TPortal.php

Find:
$row['body'] .= '...';

and Replace with:
$row['body'] .= '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0">  .... Read More</a>';

This will replace the  "..." at the end of a cut off post on the front page with a link back to the post if that is what you were asking..

gffb

Just a quick question this is such a user friendly feature will this be included in future releases of TP?

G6Cad



jayc7176

Is this possible on the New ? TP Beta.? Many Thanks

Zetan

Quote from: jayc7176 on June 23, 2008, 11:54:52 PM
Is this possible on the New ? TP Beta.? Many Thanks

Yes.

Did you? try it?

jayc7176

Yes ,ZTN   i did give it a go but

i Went Blind trying to locate in TPortal.php  :uglystupid2:

    $row['body'] .= '...';

But No luck found something similar but  not exact. 

May not there?

i even searched for ...  since these are displayed by default so i thought its gota be somewhere there. but i couldn't even find ... ( three dots )  in TPortal.php -- is it possible that now is handeled in a different file?


Also i was wondering if it was possible to add a Photo like a little Read More.gif?   instead of the words,  i would think that possible.. but m not that good with codeing :)


Many Thanks  :2funny:

Xarcell

Bloc is busy bug-squashing.

If anyone can figure out(out of my php scope) how to add the read more link to forum posts on frontpage, I'll see about adding it in for the next release.(with the ok from Bloc of course).

Zetan

Well, it definitely does work.. It's been happily working on >> my home page << for a long time (since TP 0.9.8 at least), and still is.

I've been looking through: /Sources/TPortal.php  and I can't find it either.


I never added it again after I upgraded to TP 1.0.5.. So, either the file never changed or it's added somewhere else. I'll do a bit more digging later.. I gotta go to work.

This website is proudly hosted on Crocweb Cloud Website Hosting.