Forum Moderators: coopster

Message Too Old, No Replies

Add to Favorites PHP SCRIPT

Javascript will not work.

         

dkin

9:13 pm on Aug 18, 2004 (gmt 0)

10+ Year Member



I am having some trouble with this. I am trying to find a php add to favorites script but, all I can find is Javascripts. Can you do this in PHP?

I am using a phpnuke so I have limited access to the "head" in my pages and if I put something there it shows up in all of my page sources.

I just need a very simple PHP add to favorites script, if anyone knows where I can find one any help would be appreciated.

Thanks.

Cheers.

roscoepico

9:24 pm on Aug 18, 2004 (gmt 0)

10+ Year Member



try Hotscripts. Type in "add to favorites" with quotes, there are a couple.

dkin

9:57 pm on Aug 18, 2004 (gmt 0)

10+ Year Member



I have taken a look there, I have not found any scripts that will work for me.

I tried javascript and \" all the double quotes but that just makes the link inactive.

ergophobe

10:42 pm on Aug 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If acts at the server level, PHP can do it.
If it acts at the client level, PHP can't.

Where are you adding the favorites?

dkin

1:37 am on Aug 19, 2004 (gmt 0)

10+ Year Member



i wouldlike the user to click a link and that would activate the bookmarks.

ergophobe

1:59 pm on Aug 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Therefore....?

(my previous question was meant as a rhetorical question).

Warboss Alex

2:13 pm on Aug 19, 2004 (gmt 0)

10+ Year Member



Javascript's your answer. It's not the right forum, but here you go:

<a href="javascript:window.external.AddFavorite('http://mysite.com', 'My Site');" onMouseOver="window.status='Bookmark Us!'; return true" onMouseOut="window.status='';return true;">Bookmark us!</a>

Put it anywhere in your <body>. It only works in IE though. I can't remember how to do it Netscape, or if it can be done at all .. As you can see, it's nothing you can't find on Google or any basic Javascript book, so there's no point in trying to hide it.

PS - I think ergophobe and the other admins would prefer if Javascript queries were kept off the PHP forum. :)

[edited by: Warboss_Alex at 2:18 pm (utc) on Aug. 19, 2004]

Warboss Alex

2:17 pm on Aug 19, 2004 (gmt 0)

10+ Year Member



And I only just saw the sub-title of the topic ..

Why the hell won't Javascript work?!

httpwebwitch

3:21 pm on Aug 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



adding favourites is something you can only do in IE, AFAIK.

You could try this [computerhope.com] method

dkin

7:38 pm on Aug 19, 2004 (gmt 0)

10+ Year Member



I figured it out, thx for the help.