How to add to favorites or bookmark link

SpaceshipSpaceship
Watch

Creaturess

Established Member
Impact
0
Hello

At the top of www.cheatstomb.com there is a link to bookmark the page but it doesnt do anything when I press it.
What I did wrong and how can I fix it?

Anybody knows?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Works here fine ...
 
0
•••
The bookmark script doesn't work in Firefox (maybe also Opera)

There is a Firefox bookmark script but when you open the bookmark it opens in the sidebar. There is no way around that and there is no script that works correctly in Firefox.

For one of my sites I have a simple php script that detects the browser and displays the bookmark link that works in IE, for IE and then for all non-IE browsers I have a simple line of text saying "Press CTRL D to bookmark".

That is really the only way to do it.


Code:
if (strstr($_SERVER["HTTP_USER_AGENT"], "MSIE")) {
$fav = "<a href=\"javascript:window.external.AddFavorite('http://www.mysite.com', 'Sitename')\">ADD MY SITE TO YOUR BOOKMARKS!</a>";
} else {
$fav = "BOOKMARK MY SITE NOW! -- PRESS CTRL + D"; //bookmark script
}
Then put echo $fav; where you want it to display on the page (works on php pages only)
 
Last edited:
0
•••
Thanks B33R

But what you meant by:
B33R said:
Then put $fav where you want it to display on the page (works on php pages only)
 
0
•••
Put the first block of code somewhere near the top of the PHP file, then put this code where you want the link/text to be displayed.
Code:
echo $fav;
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back