This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Contributed by..?


avatar
zDawg32 5
From: -
Contributed by..?

How can I add who contributed the news story in the news_story template?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Contributed by..?
avatar
Editor
0
From: -
I assume you are using the old 2.0.x community edition after this is a standard feature in 2.1.x

Add the following PHP part to the news_story template:
$posted_by = ($insert['newsstory_source']) ? "Contributed by: " . $insert['newsstory_source'] : "Posted by: " . $insert['newsstory_author'];


and change the following in HTML part:
Posted by: {$insert['newsstory_author']}


to:
{$posted_by}


You need to do the same modification in template news_story_extended as well
1 Re: Contributed by..?
avatar
OP 5
From: -
Not sure. An old .ZIP I had on my Hard Drive.
1 Re: Contributed by..?
avatar
Editor
0
From: -
Which version are you using?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.