Auto attached source name to news article title?
ReviewStud 135
From: -
From: -
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?
ReviewStud
OP
135
From: -
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,
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?
ReviewStud
OP
135
From: -
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?
Philipp Esselbach
From: -
Editor
0From: -
1 Re: Auto attached source name to news article title?
ReviewStud
OP
135
From: -
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?
Philipp Esselbach
From: -
Editor
0From: -
Is it empty? I just tried it myself and it works fine here.
1 Re: Auto attached source name to news article title?
ReviewStud
OP
135
From: -
From: -
I modified the file and imported a few stories, but the "source name" isn't on the title of the article.
Ideas.
Ideas.
1 Re: Auto attached source name to news article title?
Philipp Esselbach
From: -
Editor
0From: -
Because it is adminimportnow.php. Sorry
1 Re: Auto attached source name to news article title?
ReviewStud
OP
135
From: -
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?
Philipp Esselbach
From: -
Editor
0From: -
The following should work. Open /cadmin/import/admineditnow.php in an editor and replace:
with:
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 );
}
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,