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.

Xarcell

I tried adding it ZTN and it doesn't work.

There is no: $row['body'] .= '...';

But there is a: $row['body'] .= ''; I think this is it because it uses intro3, board news. However, anything I tried does not work. What do you have? Can you show me some of the code around yours so I can have a look-see?


jayc7176

What ZTN . !!   M jelous now - i was looking and looking but its no where,   if this is inbuilt Tp that would be iceing on the Cake.  did you uninstall the older TP before Installing - or you just did an upgrade? 


If this helps Look at my Front-Page after the word limit like i set it to 400 it still does show  . . .  ( three dots )  after that 400 word limit -- - which means it is pulling those from somewhere but shoot i can't find where from. 

Xarcell

@jay

mind posting a copy of your TPortal.php file?

Zetan

Quote from: jayc7176 on June 27, 2008, 02:06:08 AM
What ZTN . !!   M jelous now - i was looking and looking but its no where,   if this is inbuilt Tp that would be iceing on the Cake.  did you uninstall the older TP before Installing - or you just did an upgrade? 


If this helps Look at my Front-Page after the word limit like i set it to 400 it still does show  . . .  ( three dots )  after that 400 word limit -- - which means it is pulling those from somewhere but shoot i can't find where from. 

I don't think it's inbuilt.. I haven't had time to look. I'll have a look over the weekend.

Ianedres

In my 0.983 version*, looks like $txt['tp-readmore'] may be the language string (in TPortal.english.php) that contains the trailing tag you're looking for. May want to try finding that in TPortal.template.php.

* Can't get to my 1.05 site by FTP right now- argh!

Zetan

#15
Quote from: Ianedres on June 27, 2008, 07:45:23 AM
In my 0.983 version*, looks like $txt['tp-readmore'] may be the language string (in TPortal.english.php) that contains the trailing tag you're looking for. May want to try finding that in TPortal.template.php.

* Can't get to my 1.05 site by FTP right now- argh!

Agreed.. But.. Unless Bloc took the formatting from my site, I'm not sure it is.. I changed it to suit me. I didn't use the suggested .... Read More.

I used: ...[More]



You know.. sometimes it's just easier if somebody comes along and says.. "actually.. I did this, and thats why you can't find it"  :P

jayc7176

#16
@Xarcell    Here u go :)  Thanks mate


Xarcell

#17
I got it.

Open TPmodules.php

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

Replace With:
$row['body'] .= '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0">' . $txt['tp-readmore'] . '</a>';

I'm currently looking into making it look better, and have articles "read more" and board news(frontpage forum posts) "read more" look uniform.

Xarcell

I don't think Bloc meant to remove it. As it was moved to a different file. I will add it to the next release, unless Bloc says otherwise.

Xarcell

#19
Which one of these working examples looks good for articles & board news "read more"?

Or would you rather see the read more link on the bottom right-hand corner of the post?

I'm open to suggestions as well.

EDIT: added bottom right hand corner screenshot.

This website is proudly hosted on Crocweb Cloud Website Hosting.