Announcement

Collapse
No announcement yet.

is there a way to add a BOOKMARK ME button?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    is there a way to add a BOOKMARK ME button?

    I am new to the forum so I ask forgiveness in advance of any stupid or misplaced questions.

    I need to add a BOOKMARK ME button to the bottom of the home page.

    has anyone done this in ACTINIC?

    thanks,

    Randy

    #2
    Have you seen this thread http://community.actinic.com/showthr...light=bookmark


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #3
      Also this thread http://community.actinic.com/showthr...add+favourites

      where the forwarding URL script is a little easier to implement

      HTH


      Bikster
      SellerDeck Designs and Responsive Themes

      Comment


        #4
        thanks for the replies, but...

        first, thanks a ton for the links....

        I already have the code for the function. what i really need is where i plug it into ACTINIC. I have tried adding the javascript function to the <header section, but the code appears to be ignored. i have the button being displayed as needed. it just doesn't do anything when clicked. so i don't think i have the function definition in the correct template...

        i hope this makes sense...

        thanks,

        randy

        Comment


          #5
          In Act_BrochurePrimary.html AND/OR Act_Primary.html put the <script>...</script> bit just before the </HEAD> tag, and the <a href...../a> bit just before the </BODY> tag.

          The <a href bit can be moved anywhere inside the body of the page (as long as it does not break an existing html operation).
          Bill
          www.egyptianwonders.co.uk
          Text directoryWorldwide Actinic(TM) shops
          BC Ness Solutions Support services, custom software
          Registered Microsoft™ Partner (ISV)
          VoIP UK: 0131 208 0605
          Located: Alexandria, EGYPT

          Comment


            #6
            still not working...

            here is the code i tried in both Act_BrochurePrimary.html and Act_Primary.html. I added it after the <header> as instructed:

            <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">

            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>

            it still does not add the link to my favorites. i am using ie version 6.

            thanks,

            Randy

            Comment


              #7
              You need the second half.

              Somewhere in the body you need to add

              <a href="javascript:bookmarksite('Egyptian Wonders', 'http://www.egyptianwonders.co.uk')">Bookmark this site!</a>

              with the site name and url changed to match your site.

              <added>Sorry - just realised you wanted a button - here is the code for that - again you need to replace my details with yours.
              Code:
              <BUTTON TYPE=button ID=Marker ONCLICK=javascript:bookmarksite('Egyptian Wonders', 'http://www.egyptianwonders.co.uk')">Add this site to your Bookmarks</BUTTON>
              </add>
              Last edited by wjcampbe; 05-Nov-2005, 11:19 PM. Reason: add button code
              Bill
              www.egyptianwonders.co.uk
              Text directoryWorldwide Actinic(TM) shops
              BC Ness Solutions Support services, custom software
              Registered Microsoft™ Partner (ISV)
              VoIP UK: 0131 208 0605
              Located: Alexandria, EGYPT

              Comment


                #8
                sorry, forgot to mention

                Bill:

                this is the code i added to body area:

                <a href="javascript:bookmarksite('Gifts of Arkansas', 'http://www.giftsofarkansas.com')">Bookmark this site!</a>

                </body>
                </html>

                the body and html are pasted above just to indicate where i located it in the template. unfortunately it still isn't working...

                thanks,

                randy

                Comment


                  #9
                  Randy - not sure why that is - just tried to access your site, but see it's not on line yet.

                  Are you clicking on the link when you do a Preview in Browser from Actinic? I just tried that on my PC and it worked in IE and Firefox.
                  Bill
                  www.egyptianwonders.co.uk
                  Text directoryWorldwide Actinic(TM) shops
                  BC Ness Solutions Support services, custom software
                  Registered Microsoft™ Partner (ISV)
                  VoIP UK: 0131 208 0605
                  Located: Alexandria, EGYPT

                  Comment


                    #10
                    Again just to confirm, the top part of the code is ABOVE the </HEAD> tag, so that part reads

                    else alert('Press CTRL and D to add a bookmark to:\n"'+url+'".');
                    }

                    </SCRIPT>
                    </HEAD><BODY......
                    Bill
                    www.egyptianwonders.co.uk
                    Text directoryWorldwide Actinic(TM) shops
                    BC Ness Solutions Support services, custom software
                    Registered Microsoft™ Partner (ISV)
                    VoIP UK: 0131 208 0605
                    Located: Alexandria, EGYPT

                    Comment


                      #11
                      still tinkering with it...

                      Bill:

                      I made certain that the code you referenced is above the </header

                      i am wondering what would be a good method for debugging? i too am using the preview option. if i view source when in preview, should i be able to see the code?

                      thanks,

                      randy

                      Comment


                        #12
                        code pasted..

                        Bill:

                        below is the first few lines of code from Act_Primary.html:

                        <html>
                        <head>
                        <TITLE>
                        NETQUOTEVAR:PAGETITLE
                        </TITLE>
                        <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/>
                        <META NAME="ACTINICTITLE" CONTENT="NETQUOTEVAR:PAGEHEADER">
                        <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
                        <!--@act NETQUOTEVAR:HEADERMETA -->
                        <!--@act NETQUOTEVAR:LOADFUNCTION -->
                        <!--@act NETQUOTEVAR:SUBMITFUNCTION -->
                        <!--@act NETQUOTEVAR:P3PFULLPOLICYLINK -->
                        <LINK REL=STYLESHEET HREF="actinic.css">


                        <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">

                        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>

                        <SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT>
                        <SCRIPT LANGUAGE="JavaScript" SRC="actinicextras.js" TYPE="text/javascript"></SCRIPT>

                        Comment


                          #13
                          here is the 'view source' in preview

                          thanks for looking!

                          <html><head><TITLE> Home</TITLE><Actinic:BASEHREF VALUE="" FORCED=0/><META NAME="ACTINICTITLE" CONTENT="NETQUOTEVAR:PAGEHEADER"><META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1"> <META NAME="ActinicKey" CONTENT="b6449c89e03dde49990b5cd0aedc2c9e1">
                          <META NAME="Generator" CONTENT="accxecom5">
                          <LINK REL=STYLESHEET HREF="actinic.css">

                          <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
                          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>

                          <SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT><SCRIPT LANGUAGE="JavaScript" SRC="actinicextras.js" TYPE="text/javascript"></SCRIPT><SCRIPT LANGUAGE="JavaScript" SRC="Act_section_tree.js" TYPE="text/javascript"></SCRIPT><SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
                          <!--
                          function YahooSections(ar)
                          {
                          var strIDs = '';
                          for (var i=1;i<=ar.length;i++)
                          {
                          if (ar[i].sURL != null)
                          {
                          strIDs += '<a href="' + ar[i].sURL + '"><span class="actxxsmall"><b><font color="#000000">' + ar[i].sName + '</font></b></span></a><br>';
                          {
                          if (ar[i].pChild)
                          {
                          for (var j=1;j<=ar[i].pChild.length;j++)
                          {
                          if (ar[i].pChild[j].sURL != null)
                          {
                          strIDs += '<a href="' + ar[i].pChild[j].sURL + '"><span class="actxxsmall"><font color="#000000">' + ar[i].pChild[j].sName + '</font></span></a><br>';
                          }
                          }
                          }
                          }
                          strIDs += '<br>'
                          }
                          }
                          return strIDs
                          }
                          //-->
                          </SCRIPT><Actinic:COOKIECHECK/></head><BODY TEXT="#000000" leftmargin="1" topmargin="1" marginwidth="0" marginheight="0" OnLoad="PreloadImages('../home2.gif','../shop2.gif','../brochuremore2.gif','../home2.gif','../back2.gif','../sitemap2.gif','../info2.gif','../search2.gif','../cart2.gif','../order2.gif','../mail2.gif')" BACKGROUND="../background1.gif" BGCOLOR="#ffffcc" LINK="#990000" VLINK="#003300" ALINK="#990000"><table width="100%" cellpadding="0" cellspacing="0" class="thinborder"><tr><td><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="gradient1.gif"></td><td align="right"><img src="gradient2.gif"></td></tr></table></td></tr><tr> <td valign="top"><table border="0" cellpadding="0" cellspacing="0"><tr> <td><IMG SRC="../GOA/logo_c.jpg" ALT="Gifts of Arkansas" BORDER=0 HEIGHT=167 WIDTH=961 > </td></tr></table></td></tr><tr> <td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr> <td height="26" background="top_bar.gif">&nbsp;</td></tr></table> </td></tr><tr> <td>&nbsp;</td></tr><tr> <td> <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr> <td width="11"><img src="shim.gif" width="11"></td><td width="170" valign="top"><table width="170" border="0" cellpadding="0" cellspacing="0" class="thinborder"><tr> <td><img src="main_pages.gif" width="170" height="27"></td></tr><tr> <td><IMG SRC="../home1.gif" ALT="Home" BORDER=0 HEIGHT=28 WIDTH=170 name=button3><br><A HREF="P_index.html" TARGET="_self" onMouseOver="SwapImage('button8','../shop2.gif')" onMouseOut="RestoreImage()"><IMG SRC="../shop1.gif" ALT="Products" BORDER=0 HEIGHT=28 WIDTH=170 name=button8></A><br><A HREF="P_More_Info.html" TARGET="_self" onMouseOver="SwapImage('button4','../brochuremore2.gif')" onMouseOut="RestoreImage()"><IMG SRC="../brochuremore1.gif" ALT="More Pages" BORDER=0 HEIGHT=28 WIDTH=170 name=button4></A><br></td></tr><tr> <td height="25" background="cart_bg.gif"><font color="#ffffcc"><strong>&nbsp;&nbsp;&nbsp; <script language="JavaScript">
                          <!--
                          document.write("Items:&nbsp;" + getCartItem(3)+"&nbsp;");
                          document.write("Value:&nbsp;" + getCartItem(1));
                          // -->
                          </script></strong></font></td></tr><tr> <td valign="top" bgcolor="#009900"><img src="departments.gif" width="170" height="27"></td></tr><tr> <td valign="top" bgcolor="#ffffcc"> <table width="100%" border="0" cellpadding="1" cellspacing="5"><tr> <td> <script language=Javascript1.2>
                          document.write(YahooSections(section_tree))
                          </script> </td></tr></table></td></tr><tr> <td width="170" valign="top" bgcolor="#009900"><img src="menu_bottom.gif" width="170" height="91"></td></tr></table></td><td width="15"><img src="shim.gif" width="15"></td><td align="center" valign="top"><table width="98%" cellpadding="5" cellspacing="0" class="thinborder"><tr><td valign="top"><Actinic:NOWSERVING/><Actinic:CURRACCOUNT/><Actinic:LOGOUT_SIMPLE/><table width="600" cellpadding="5" cellspacing="0" border="0" cols="3"><tr><td colspan="3" valign="top"> <table border="0" width="100%" cellspacing="5" cellpadding="1"><tr><td>Truly unique ARKANSAS gifts and gift baskets&#33;<BR><BR>Welcome to Gifts of Arkansas &#45; where you will find the largest selection of Arkansas food and gift items in one store&#46; Since 1989&#44; we&#39;ve been offering a wide variety of standard and customized gifts for every conceivable occasion and event&#46; On these pages you&#39;ll find a selection of unique and inspirational gifts featuring products from Arkansas&#46; Thoughtful gifts&#33; The basket will be remembered and appreciated by the person receiving it&#46; Baskets make great gifts for business associates&#44; friends&#44; relatives and Razorback fans&#33;<BR><BR>If you don&#39;t find what your&#39;re looking for&#44; give us a call&#46; We&#39;ll design a package just for your particular needs&#46; <BR><BR>Delivery is available in the Little Rock area and we ship worldwide&#46; And to make things even easier&#44; we maintain a customer order file for convenient repeat orders&#46; For large orders with special shipping needs&#44; you can place the order online and then fax or phone in the shipping instructions&#46; Let us do the work for large orders with multiple shipping addresses&#46; As always&#44; large orders with different shipping addresses are also available by phone&#46;<BR><BR>We are located in River Market area in Little Rock&#44; Arkansas&#58;<BR><BR>123 East Markham<BR>Little Rock&#44; AR 72201<BR><BR>Phone or Fax&#58;<BR><BR>&#40;501&#41; 225&#45;7624 or &#40;800&#41; 355&#45;6404<BR>Fax&#58; &#40;501&#41; 217&#45;9050<BR><BR><a href="http://www.gsocar.org"><font color="#0000ff">Link to: Girl Scouts of Ouachita Council</a><BR><BR><p

                          align="center"></font></em><font face="Arial"><font color="#0000ff">For all product
                          questions or any other questions about Gifts of Arkansas, please e-mail us at:<br>
                          </font><font color="#FF0000">

                          <a href ="mailto:sales@giftsofarkansas.com">sales@giftsofarkansas.com</a>
                          </font></font><em>

                          </p><BR><BR><p

                          <form>
                          <input type="button" onclick="setBookmark( 'http://www.giftsofarkansas.com' , 'giftsofarkansas' )" value="Click here to bookmark this page now!">
                          </form>

                          </p></td><td align="center"><IMG SRC="../GOA/home_custom_Medium_Small.jpg" ALT="Welcome To Our Site" BORDER=0 HEIGHT=480 WIDTH=271 > </td></tr></table></td></tr> </table><br><SPAN CLASS="actxxsmall"><div align="center"></div></td></tr></table></td></tr><tr><td colspan="4">&nbsp;</td></tr> </table></td></tr></table><form><input type="button" value="Bookmark Gifts of Arkansas" onclick="setBookmark( self.location.href , document.title )"></form></body></html>

                          Comment


                            #14
                            Your code

                            <a href="javascript:bookmarksite('Gifts of Arkansas', 'http://www.giftsofarkansas.com')">Bookmark this site!</a>

                            doesn't call the routine you put in the HEAD. Change it to

                            <a href="javascript:setBookmark('Gifts of Arkansas', 'http://www.giftsofarkansas.com')">Bookmark this site!</a>
                            Norman - www.drillpine.biz
                            Edinburgh, U K / Bitez, Turkey

                            Comment


                              #15
                              progress!

                              Thanks for the help...

                              Now I get a Permission Error on P_SiteRootIndex.html. Should the preview folder be in the shared folders?

                              Randy

                              Comment

                              Working...
                              X