PHP-Nuke Services - Addons, Modules, Blocks Vizitati www.westdesign.ro Select Interface Language:EnglishRomanian
  Login or Register HomeForumsDownloadsYour AccountWeb LinksContact   
SectionsShow\Hide
MultiheadlinesShow\Hide
LoginShow\Hide
~ Welcome, alien
Nickname Password
(Register)

~ Membership:

Greetings to the newest member jincesoft
~ New Today: 0
~ New Yesterday: 0
~ Overall: 4306

~ People Online:
~ Visitors: 5
~ Members: 0
~ Total: 5
~Aikon is offline
on Yahoo Msg.
Link to meShow\Hide

aikons.net
Search in FeedsShow\Hide
Search in feeds
HistoryShow\Hide
On 9 February


Speed Up   Pause   Speed Down
DictionaryShow\Hide
Enter the word

Romanian users only

- aikons.net - PHP-Nuke Services Forum Index


Reply to topic Page 1 of 1
External links in feed story!!
Message Author
Reply with quote
Post Posted: Wednesday 22 October, 2008 20:25

Hi Aikon,

I was just wondering if there is a way to remove the links that your feed providers place in there news storys. ie check my website and look at the bottom of each story you will see Click here to read the full article unlike the top link via the title link it open a new tab or window, with the one at the bottom it opens up in the parent window so it's going away from my site.

p.s also does this when you click on the pictures as well.

Here is my website: http://www.xboxliveclan.net

Many Thanks
Jason

View user's profile Send private message
Reply with quote
Post Posted: Wednesday 22 October, 2008 23:26

Hi Jason

On file functions.php from the MH module folder there is a function insert_todb around 341 line.
Inside that function just below the line
Code:
$title=mysql_real_escape_string(stripslashes(check_html($title, "nohtml")));

above the commented line
add the following line
Code:
$description=eregi_replace('<a href="[^>]*>Click here to read the full article</a>', '', $description);

this will remove the "Click here...." link from the feeds.
But be carefull this rule will apply to all feeds that comes onto your site.
If you want to make this rule applicable only to that particular site[in your case "http://www.computerandvideogames.com/....."] then use the following line
Code:
if ($url_id==ID) {
$description=eregi_replace('<a href="[^>]*>Click here to read the full article</a>', '', $description);
}

where ID is the id of that feed url...just hover the mouse...only hover don't click...over that table from MH admin->Feed URL Management where it says Functions....over the Edit, Delete or Deactivate or Refresh you'll see on status bar of your browser the id of that url...I think i your case is 1

Before you can delete the feeds that you already have on your database.

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Thursday 23 October, 2008 11:18

Hi Aikon,

Thank you for a very quick reply and answer.

Jason

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Page Generation: 0.25 Seconds