SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    looking for php 'bookmark this page' script

    I want to add a bookmark this page link to all of my pages

    it would be tedious to add the title tags to each of these snippets because there are about 100 pages all with different title tags/

    Is there a way to use php that automatically grabs the page's title and url and adds it to the bookmark?

    I just want to add it to my navigation system.

    thanks

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,813
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    PHP runs on the server, it has no access at all to the web browser and so cannot add a bookmark.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    hi galen's Avatar
    Join Date
    Jan 2006
    Location
    New Haven, CT
    Posts
    1,228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could pretty easily use php to output a javascript bookmark code though.

  4. #4
    SitePoint Wizard lorenw's Avatar
    Join Date
    Feb 2005
    Location
    was rainy Oregon now sunny Florida
    Posts
    1,100
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    google

    javascript bookmark this page

    this is not something php can do
    What I lack in acuracy I make up for in misteaks

  5. #5
    SitePoint Wizard bronze trophy Kailash Badu's Avatar
    Join Date
    Nov 2005
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep. Javascript

  6. #6
    SitePoint Enthusiast rusagar's Avatar
    Join Date
    Jan 2007
    Location
    Kathmandu, Nepal
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    var url="http://www.yoursite.com";
    var title="Your site goes here";

    function addToFavourite(){
    if(document.all)
    window.external.AddFavorite(url,title)
    }
    }

  7. #7
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Maybe you mean social bookmarks?

  8. #8
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Cups View Post
    Maybe you mean social bookmarks?
    Actually, thats a lie, I am looking for a quick script that will add a panel showing correctly formed urls to all the major social bookmarks, together with all the mini-icons...

    I just don't want to have to spend time joining all the social bookmark clubs to check if the links I create actually do work.

    Anyone?

  9. #9
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    This is something that only IE does automatically (as far as my last brain update). So for other browsers you're gonna have to provide the instructions how to bookmark the page, instead of a button.
    Saul


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •