PDA

View Full Version : Add to My MSN and My Yahoo buttons


Tim_Myth
10-26-2005, 08:15 PM
This mod will place "Add to My MSN" and "Add to My Yahoo" buttons at the bottom of the page. This will allow people to quickly and easily subscribe to the rss feed for that category and plant the idea in the header of anyone using google.com/ig. Why would you do this? Because the SE's have to parse the page to get the "news". This means they'll see your links in the directory and get counted as back links. It also won't hurt to have users essentially book marking your site. 8)

REQUIREMENTS:
1) You must replace YOUR.URL.HERE with your domain name.
2) You must download the "Add to My MSN button" and store it on your server. (Yahoo allows you to hot link the gif, so for simplicities sake I left it that way.)
3) You must replace PATH/TO/mymsn.gif with the path to the Add to My MSN graphic.
Content visible to registered users only.


I have placed the code in my footer.tpl file right under the code:
Content visible to registered users only.

For an example, see http://www.after5webdesign.com/directory/.

bobby9101
11-04-2005, 08:26 PM
thanx

richm
11-04-2005, 09:06 PM
Very valuable. Thanks for this!

I also moved the XML button to the footer, and added a button to make linking to my site really easy. Here is my code:

Content visible to registered users only.

I am having a couple of problems.

1. When I first add to My Yahoo, it usually previews the RSS feed just fine, but then when I click ADD TO MY YAHOO, I get an error page:
- - We couldn't find the RSS file you asked for
- - http://www.chefsblogs.com/directory/rss.php?p=d
The RSS link above is valid. However, when I click back to the yahoo preview page and then click on the add button again, it works. Any ideas? This happens with both IE and Firefox.

2. Some of my links categories are several pages long. If you are looking at the second or third page when you click Add to My Yahoo, it sends the link with the page number and no category (i.e. shows rss.php?p=2, not rss.php?c=122)

Tim_Myth
11-05-2005, 04:10 PM
I *think* the problem in number 1 is that Yahoo hasn't indexed the page yet. I'm not sure though.

The problem in 2 is that the rss feed shows all the links, and doesn't paginate. I'll try and see what it will take to get the rss feed to show the category regardless of the page it's on. I need to study the pagination more. I'll do my best to get to this today, but it probably won't be or a few hours.

Inspirator
11-08-2005, 04:54 PM
I found that mod listing and combined discussion

my question is, if there is news or update the that mod available.

Tim_Myth : do you tried to rewrite the mod based on the suggestions that were mentioned?

Is there a way to add also other service like yahoo & msn?
What about a mod that supports the common blog systems out there?
Is there are way to make implemting rss of php link directory easier for other website / blog owner?

Thanks for any feedback

Regards
Inspirator

richm
11-08-2005, 07:23 PM
I think I see the problem with not sending a category to RSS when viewing a second or third page. The page variable ($p) is used for both type of page (top hits, recent addtions, rated, etc) and page number.

Content visible to registered users only.

The code above needs to be modified so that if $p is a number, the category is selected rather than the $p variable.

I am not a PHP programmer, but I investigated is_numeric and ctype_alpha as a couple of ways that this might be modified using the reference materials on php.net. However, I don't know how these functions deal with NULLs, so I could use some help. Is this how I need to change this?

Content visible to registered users only.

richm
11-16-2005, 08:50 PM
I am also interested in a MyGoogle button, but there are two flavors.

Google announced a new reader last month: reader.google.com, and to add your feed to the reader, you would use this code:
<a href="http://www.google.com/reader/preview/*/feed/http://Feed">

However, I am more interested in adding a +MyGoogle to add a feed to Google's new personalized home page, at http://www.google.com/ig

You can add the feed manually by clicking on Add Content - Create a Section - and then search for the feed. However, I would like to create a +MyGoogle button.

I searched the web. Can't seem to find how to add to /ig with a link.