Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: warp - elokuu 15, 2004, 03:07:26 AP

Otsikko: How to add a "read more" link
Kirjoitti: warp - elokuu 15, 2004, 03:07:26 AP
Hi folks,

I was wondering if there is any way that you can add a read more link on a SSI? That article that I have on the forum is quite long and I have included it in a test page and I have modified the SSI to only read 1000 characters of that particular post. Here is an example  page  (http://premierlands.com/home.shtml) scroll down to news. I would link a read more link just below that post...is that possible?
Otsikko: Re: How to add a "read more" link
Kirjoitti: LeeH - elokuu 15, 2004, 10:51:51 AP
Just wanted to confess that I was being nosey.......  You have a very attractive and professional site!

Other than a hardcoded link to the article, I wouldn't know know how to help you.





Edited to fix spelling....  I'm a Dubbah!  :D
Otsikko: Re: How to add a "read more" link
Kirjoitti: Floyds - elokuu 15, 2004, 11:52:09 AP
just have a look at

http://www.simplemachines.org/community/index.php?topic=9264.0

This...

Use the Search option, it helps...  :P
Otsikko: Re: How to add a "read more" link
Kirjoitti: warp - elokuu 15, 2004, 08:57:35 IP
HI m8 thanks for the link! Yeah, I tried the search function but didn't really know what to look for I have so many returns that I was getting a little frustrated. Does this also work for .shtml extension cos I don't know much about .php. Thanks again for the response!
Otsikko: Re: How to add a "read more" link
Kirjoitti: warp - elokuu 15, 2004, 09:38:47 IP
hmmm i tried recoding the SSI.php but I can't seem to activate the read more link. Cant anyone help? You will notice it is in the Land Ownership by Former Filipinos in the Philippines post.  here. (http://premierlands.com/test.shtml)
Otsikko: Re: How to add a "read more" link
Kirjoitti: warp - elokuu 15, 2004, 09:41:24 IP
Thanks for the comment m8! I really appreciate your comment! =)

Lainaus käyttäjältä: LeeH - elokuu 15, 2004, 10:51:51 AP
Just wanted to confess that I was being nosey....... You have a very attractive and professional site!

Other than a hardcoded link to the article, I wouldn't know know how to help you.





Edited to fix spelling.... I'm a Dubbah! :D
Otsikko: Re: How to add a "read more" link
Kirjoitti: Floyds - elokuu 16, 2004, 04:00:58 AP
Lainaus käyttäjältä: warp - elokuu 15, 2004, 09:38:47 IP
hmmm i tried recoding the SSI.php but I can't seem to activate the read more link. Cant anyone help? You will notice it is in the Land Ownership by Former Filipinos in the Philippines post.  here. (http://premierlands.com/test.shtml)


What is wrong about the outcome ?? it's look good, or is this not what you wanted ?! ???
Otsikko: Re: How to add a "read more" link
Kirjoitti: warp - elokuu 16, 2004, 09:15:16 AP
Hi m8! Yeah I followed the codes that Owdy left for you in the link that you shared with me. The problem is that I can't seem to activate the "read more" link. Here are the codes that I changed in my SSI.php.

This is what I did I looked for:
'new_comment' => '<a href="' . $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['numReplies'] . '">' . $txt['smf_news_3'] . '</a>',


Then added:
'new_comment' => '<a href="' . $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['numReplies'] . '">' . $txt['smf_news_3'] . '</a>','more' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0"> read more</a>',

then followed the rest of the instructions.

Here is a  text (http://premierlands.com/SSI.txt) version of my SSI.php. Can you show me a text version of your SSI.php m8? What am I doing wrong?         
         
Otsikko: Re: How to add a "read more" link
Kirjoitti: warp - elokuu 22, 2004, 03:02:35 IP
Can anyone help me activate my read more link? or even check if my codes are correct?  :(
Otsikko: Re: How to add a "read more" link
Kirjoitti: Metho - elokuu 22, 2004, 04:04:14 IP
I'm not sure what you mean by activate the link. When I go to your website, the read more text is a link and it goes directly to the post in your forum when you click on it. That seems active to me, no? I feel like I'm missing your question totally when you refer to 'activating the link'

- Methonis
Otsikko: Re: How to add a "read more" link
Kirjoitti: warp - elokuu 22, 2004, 05:40:33 IP
Yeah, i see the link now. I was so busy looking at the other read me more link that was below my other post. I noticed that by changing the amount the length amount of the post it activated the link. Thanks for clearing that up m8 and helping me open my eyes. LOL!
Otsikko: Re: How to add a "read more" link
Kirjoitti: rekarde - maaliskuu 17, 2006, 12:13:25 IP
And if i want to add a "more" button, but this button will bring only that news, reading only the SSI?
in this solution, it links to the forum... i´m looking for a way to the SSI display only one specific news... any ideias?
Otsikko: Re: How to add a "read more" link
Kirjoitti: Ben_S - maaliskuu 17, 2006, 03:30:52 IP
http://mods.simplemachines.org/index.php?mod=18
Otsikko: Re: How to add a "read more" link
Kirjoitti: rekarde - maaliskuu 17, 2006, 09:37:42 IP
it's almost this... the only think is that i want a link to the topic, to the first post of the board. I will think a little bit on this!

Very, very thank you!

Greetings from a SL Benfica fan!  ;)