coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: burnedbrass on February 24, 2008, 05:03:51 PM

Title: [Solved]: Adding "AddThis.com" javascript social bookingmarking buttom
Post by: burnedbrass on February 24, 2008, 05:03:51 PM
Hello, I am running CPG V1.4.16 with the Ijames skin/template. I am trying to add an "AddThis" social bookmarking sharing  button to all pages. It is basically a javascript.
The problem I am facing is this:

1. Do I use anycontent.php?
2. I already have anycontent  in "The Content of the main page", do I add it twice?
Example: breadcrumb/catlist/alblist/random,2/anycontent/lastup,2/onlinestats/anycontent

3. Similar to "Random files", "Welcome", "Last addition", and "Online Today", I will like to add "Social Bookmarking" on "table1a-bg-middle.gif" and immediate below it put my "AddThis" button.

Thanks
Title: Re: Adding "AddThis.com" javascript social bookingmarking buttom
Post by: Nibbler on February 24, 2008, 05:32:52 PM
anycontent.php is not on all pages. Add the code into your theme's template.html.
Title: Re: Adding "AddThis.com" javascript social bookingmarking buttom
Post by: burnedbrass on February 25, 2008, 04:54:44 AM
Thanks, however I do have a follow-up question. In my template.html, I have my Google Adsense directly below:

<div id="SYS_MENU">
    {SYS_MENU}
  </div>
</div>

A visual image is at http://www.hairnations.com

My problem: I am not sure where to place my  "AddThis.com" javascript. I will like to have it center align and very close to the footer.

Thanks 
Title: Re: Adding "AddThis.com" javascript social bookingmarking buttom
Post by: Joachim Müller on February 25, 2008, 08:07:25 AM
That's just plain HTML know-how. Add that whereever you want it to display, e.g. directly before the closing </body>-tag. To center-align, wrap that stuff into a corresponding HTML-tag (it's your choice if you want to use <center>, <div align="center"> or <div style="text-align:center">). We can't/won't teach you HTML basics, simply because that's beyond the scope of this board.
Title: Re: Adding "AddThis.com" javascript social bookingmarking buttom
Post by: burnedbrass on February 25, 2008, 02:47:13 PM
Thanks, however you don't need to break a blood vessel.
Title: Re: Adding "AddThis.com" javascript social bookingmarking buttom
Post by: burnedbrass on February 25, 2008, 04:39:40 PM
Thanks, Nibbler and Joachim. I guess I deserved the negative karma. My problem (non problem) was so simple that it took me less than a minute to implement. I will be more careful next time.