Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support News title with link
Mattycat
Posted on 13 Jan 2009, 22:10:17

Access: Member
Total Posts: 42
Joined: 2008-06-25

Hi there,

I was just wondering if it was possible to just have the news title that is linked to the full story?

Thanks,

Matt
#499
Mattycat
Posted on 19 Jan 2009, 21:38:56

Access: Member
Total Posts: 42
Joined: 2008-06-25

Can anyone help me out?
#500
Philip
Posted on 13 May 2009, 14:16:14

Access: Member
Total Posts: 10
Joined: 2009-05-13

yes, that it would be very helpful...

anyone can help???
#541
Atomxy
Posted on 13 May 2009, 15:18:10

Access: Member
Total Posts: 12
Joined: 2009-05-12

Maybe i can help... :cheese:

First...

Open Index.php...

Go to line 489… you’ll find this:

Code:
$template2 = str_replace("{shortstory}",bbcode($row['shortstory'],$newssmilies,$usehtml),$template2);
$template2 = str_replace("{story}","",$template2);

Just Replace by this:

Code:
$template2 = str_replace("{shortstory}","",$template2);
$template2 = str_replace("{story}","",$template2);

Now, in line 492… this is the code:

Code:
$template2 = str_replace("{shortstory}","",$template2);
$template2 = str_replace("{story}",bbcode($row['story'],$newssmilies,$usehtml),$template2);


Replace by this:

Code:
$template2 = str_replace("{shortstory}","",$template2);
$template2 = str_replace("{story}","",$template2);

Now, go back to the line 462, you’ll find:

Code:
$template2 = str_replace("{title}",$row[title],$template2);

Replace by this…

Code:
$template2 = str_replace("{title}","<a href=\"?id=$row[id]\">$row[title]</a>",$template2);

If you want to dele the text "Read Full Story", you'll need to go to the admin panel, options, templates, edit the current template, news, and just delete this:

[readmore]Read full story[/readmore]


:D
#542
Last edited by Atomxy at 2009-05-13 15:26:37 Reason:
Network-13.com © 2013