Is there a bookmark source code for this please?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Clean_Franck
    So Fucking Banned
    • Jan 2007
    • 399

    #1

    Is there a bookmark source code for this please?

    Each page is generated by a script and I cant therefore put in the bookmark codes individually. I therefore have to put "mydomain.com" under the bookmark link, when i would prefer to have each individual one "mydomain.com/subpage"
    I have a template page, does anyone know of any code and I can put into that template page, so when the user clicks on the bookmark on any page, it bookmarks the page he is on? Rather than the one it was pre assigned to.
    Any help is greatly apprecriated.
  • Clean_Franck
    So Fucking Banned
    • Jan 2007
    • 399

    #2
    bump for me.

    Comment

    • fris
      Too lazy to set a custom title
      • Aug 2002
      • 55679

      #3
      you can use php or javascript to get the current page and append it onto the bookmark code
      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

      Comment

      • Clean_Franck
        So Fucking Banned
        • Jan 2007
        • 399

        #4
        Thanks Fris, do you know where I can find that code please?

        Comment

        • SmokeyTheBear
          ►SouthOfHeaven
          • Jun 2004
          • 28609

          #5
          i suggest using the www.addthis.com button to your pages..

          this will allow users to bookmark your page or add it to their favourite bookmark site like "digg" "redditt" etc

          or use this simple javascript but the above is better
          Code:
          <script>
          function setBookmark(url,str){
          if(str=='')str=url;
          if (document.all)window.external.AddFavorite(url,str);
          else alert('Press CTRL and D to add a bookmark to:\n"'+url+'".');
          }
          </script>
          <a href=# onclick="setBookmark(parent.location.href , document.title );">bookmark this page</a>
          Last edited by SmokeyTheBear; 12-14-2007, 01:13 PM.
          hatisblack at yahoo.com

          Comment

          • Clean_Franck
            So Fucking Banned
            • Jan 2007
            • 399

            #6
            smokey, do digg and such allow adult sites into their systems?

            Comment

            • Clean_Franck
              So Fucking Banned
              • Jan 2007
              • 399

              #7
              by the way, thanks for the help

              Comment

              • SmokeyTheBear
                ►SouthOfHeaven
                • Jun 2004
                • 28609

                #8
                Originally posted by Clean_Franck
                smokey, do digg and such allow adult sites into their systems?
                i'm pretty sure they do , but don't quote me on that . i have a few adult sites on there and never had any complaints or any removed.. occash uses them on all their sites
                hatisblack at yahoo.com

                Comment

                • SmokeyTheBear
                  ►SouthOfHeaven
                  • Jun 2004
                  • 28609

                  #9
                  when surfers click the bookmark button they will be presented with a page like this in a window
                  http://www.addthis.com/bookmark.php?url=http://gfy.com

                  the first selection is to add to "favourites" the rest are bookmark sites, you could modify the code they give you to include both
                  hatisblack at yahoo.com

                  Comment

                  • Clean_Franck
                    So Fucking Banned
                    • Jan 2007
                    • 399

                    #10
                    Thanks smokey, thats a nice page and a good idea, thanks for all your help

                    Comment

                    • SmokeyTheBear
                      ►SouthOfHeaven
                      • Jun 2004
                      • 28609

                      #11
                      here is an example addthis code mixed with the javascript bookmarking script

                      all you have to do is signup with addthis to get you id and insert it in the following code where it says YOUR ADDTHIS ID HERE
                      Code:
                      <script>
                      function setBookmark(url,str){
                      if(str=='')str=url;
                      if (document.all)window.external.AddFavorite(url,str);
                      else alert('Press CTRL and D to add a bookmark to:\n"'+url+'".');
                      }
                      </script>
                      
                      
                      <!-- AddThis Bookmark Button BEGIN -->
                      <a href="http://www.addthis.com/bookmark.php" onclick="addthis_url   = location.href; addthis_title = document.title; return addthis_click(this);setBookmark(parent.location.href , document.title );" target="_blank"><img src="http://s9.addthis.com/button2-bm.png" width="160" height="24" border="0" alt="AddThis Social Bookmark Button" /></a> <script type="text/javascript">var addthis_pub = 'YOUR ADDTHIS ID HERE';</script><script type="text/javascript" src="http://s9.addthis.com/js/widget.php?v=10"></script>  
                      <!-- AddThis Bookmark Button END -->
                      hatisblack at yahoo.com

                      Comment

                      • SmokeyTheBear
                        ►SouthOfHeaven
                        • Jun 2004
                        • 28609

                        #12
                        the code will place the bookmarking button on your site, when clicked they will be promoted to add the current page to favourites with the title of the current page as link text, it will also popup a box for them to add the current page to the list of bookmark sites
                        hatisblack at yahoo.com

                        Comment

                        • Clean_Franck
                          So Fucking Banned
                          • Jan 2007
                          • 399

                          #13
                          nice tip, is it me or is the www.addthis.com website is down? perfect timing lol

                          Comment

                          Working...