Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [Solved]: Adding "AddThis.com" javascript social bookingmarking buttom  (Read 3504 times)

0 Members and 1 Guest are viewing this topic.

burnedbrass

  • Coppermine newbie
  • Offline Offline
  • Posts: 8

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
« Last Edit: February 26, 2008, 07:50:16 am by Joachim Müller »
Logged

Nibbler

  • Guest
Re: Adding "AddThis.com" javascript social bookingmarking buttom
« Reply #1 on: February 24, 2008, 05:32:52 pm »

anycontent.php is not on all pages. Add the code into your theme's template.html.
Logged

burnedbrass

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Adding "AddThis.com" javascript social bookingmarking buttom
« Reply #2 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 
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding "AddThis.com" javascript social bookingmarking buttom
« Reply #3 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.
Logged

burnedbrass

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Adding "AddThis.com" javascript social bookingmarking buttom
« Reply #4 on: February 25, 2008, 02:47:13 pm »

Thanks, however you don't need to break a blood vessel.
Logged

burnedbrass

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Adding "AddThis.com" javascript social bookingmarking buttom
« Reply #5 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 16 queries.