0
1

As you may know already, the ShareThis script requires a JavaScript code in the head and a couple of tags in the body.

asked 23 Oct '10, 08:30

Randell's gravatar image

Randell
2.0k479376
accept rate: 28%

1

Would the <header> and the header & footer sections in the admin be enough for this?

(23 Oct '10, 11:03) Hernani Cerq... ♦♦

Tested and confirm the above should work. You might want to play with the positioning of the buttons as they align left.

(27 Oct '10, 09:59) Thomas King

@Thomas King, where exactly did you place the ShareScript tags intended for the body? Screenshots please. Thanks!

(27 Oct '10, 21:16) Randell

Hi Randell,

Not at home but hope this helps. The url you want is yousite/admin/settings/headandfoot/

In the header tick custom header and paste the ShareThis script tag:

<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script><script type="text/javascript">stLight.options({publisher:'sometypeoftrackingcode'});</script>

Now got down to footer and "Use custom footer" and paste the button stuff in the footer (this needs to centred as it goes left - I choose to put it above the footer:

<span class="st_twitter_large" displayText="Tweet"></span><span class="st_facebook_large" displayText="Facebook"></span><span class="st_ybuzz_large" displayText="Yahoo! Buzz"></span><span class="st_gbuzz_large" displayText="Google Buzz"></span><span class="st_email_large" displayText="Email"></span><span class="st_sharethis_large" displayText="ShareThis"></span>

I hope this helps - I can post a screen shot later when not at work :)

Thomas K

link

answered 27 Oct '10, 21:56

Thomas%20King's gravatar image

Thomas King
3452817
accept rate: 33%

edited 27 Oct '10, 22:02

Hi Thomas. The problem with placing the span stuff in the footer is that it will be available for the non-question pages. I want the span stuff to be placed somewhere near the actual question itself in the individual question pages so it is obvious to the users and easier for them to just click and share.

(27 Oct '10, 22:01) Randell

In that case I image we'd need to edit a template page for questions and just place the code directly in. I'll have a try later on.

(27 Oct '10, 22:03) Thomas King

It would be great if we can add divs or spans without modifying any of the template pages.

(27 Oct '10, 23:13) Randell

The only way I could imagine doing that is with some javascript that transverses the page and finds the location of something "Follow this question" and insert the code there.

To be honest it would be pretty straight to enter the code at forumskinsdefaulttemplatessubscription_status.html but I imagine that would get blown away with the next update :( .

Just so we're all clear I've only just started getting my head around this product and until 3months ago I had never seen this product :)

(28 Oct '10, 02:42) Thomas King
1

@Thomas, see http://meta.osqa.net/questions/4944/display-short-summary-next-to-question for an example of how to create a separate template folder so your changes are not blown away with updates.

(28 Oct '10, 12:17) Hernani Cerq... ♦♦

@Hernani Thanks for that hint. Should we look at having a question panel available for editing via the admin interface

(28 Oct '10, 20:31) Thomas King

@Thomas, not sure if I'm getting it. A question panel to edit each individual question?

(29 Oct '10, 06:03) Hernani Cerq... ♦♦
showing 5 of 7 show 2 more comments
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×44
×6
×1
×1

Asked: 23 Oct '10, 08:30

Seen: 510 times

Last updated: 29 Oct '10, 06:03

powered by OSQA