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

Auto attached source name to news article title?


avatar
ReviewStud 135
From: -
Auto attached source name to news article title?

Is there a way to auto-attach the source name to the news title of the articles it imports?

Example:

RSS Imported Story: "Intel Core i7 Processor Review"

With Source Attached: "Intel Core i7 Processor Review from Joe Blows Reviews."

Ideas?

Thanks,

Notice

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

Responses to this topic


1 Re: Auto attached source name to news article title?
avatar
OP 135
From: -
Call me crazy, but I just hit the "import now" button to import every RSS feed I have setup and it attached the source name to the end of the titles.

Before to test the updated script I was only importing from one or two select sources.

HELLS YEAH!!

Thanks-a-million Philipp:D,
1 Re: Auto attached source name to news article title?
avatar
OP 135
From: -
I've copied over the file and approved an article. Unfortunately, there's no change in the title/s.
1 Re: Auto attached source name to news article title?
avatar
Editor
0
From: -
Here a modified adminimportnow.php. Let me know if this work.
   adminimportnow.zip
1 Re: Auto attached source name to news article title?
avatar
OP 135
From: -
It isn't displaying anything where the source name should be. Do you think I should update to CE 1.0.3?
1 Re: Auto attached source name to news article title?
avatar
Editor
0
From: -
Is it empty? I just tried it myself and it works fine here.
1 Re: Auto attached source name to news article title?
avatar
OP 135
From: -
I modified the file and imported a few stories, but the "source name" isn't on the title of the article.

Ideas.
1 Re: Auto attached source name to news article title?
avatar
Editor
0
From: -
Because it is adminimportnow.php. Sorry Slightly Frowning Face
1 Re: Auto attached source name to news article title?
avatar
OP 135
From: -
I'm looking in the right directory, but I don't have an "admineditnow.php" file. Was that file in the CE 1.0.3 update? I am running on 1.0.2 on my site.
1 Re: Auto attached source name to news article title?
avatar
Editor
0
From: -
The following should work. Open /cadmin/import/admineditnow.php in an editor and replace:

                                      if( $new_title )

{
insertdata( $import_status, $login_username, $import_website, $import_email, $import_channels, $new_title, $new_story, $new_link, $import_teaser, $import_comments, $import_html, $import_smilies, $import_code, $ipaddr, $import_name );
}


with:


if( $new_title )
{
insertdata( $import_status, $login_username, $import_website, $import_email, $import_channels, $new_title . " from " . $import_name, $new_story, $new_link, $import_teaser, $import_comments, $import_html, $import_smilies, $import_code, $ipaddr, $import_name );
}

Notice

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