| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 12857|Reply: 8
Collapse the left

How to add Facebook/Twitter/Google share buttons to the page top?

  [Copy link]
Post time: 2012-11-23 08:30
| Show all posts |Read mode
Edited by ravipratap95 at 2012-11-23 09:32

Today my question is how do i add a facebook and twitter button to discuzx header????
see the below screenshot it will make my question clear......
if anyone has the idea please tell me....

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

Related collections:

Post time: 2012-11-23 10:35
| Show all posts
Where exactly would you like to put it?
 Author| Post time: 2012-11-23 13:53
| Show all posts
kaaleth replied at 2012-11-23 12:35
Where exactly would you like to put it?

Well....at the top....where it is in the screenshot....or at any better place ......i was thinking at the bottom.........yes at the bottom...please tell me how to...
Post time: 2012-11-23 20:01
| Show all posts
Edytowano przez kaaleth dnia 2012-11-23 23:18

What about this, mate? Let me try.

I Option


How to.

1. Open ..\template\default\common\header.htm
2. Find </head> tag and BEFORE add:
  1. <script type="text/javascript">var switchTo5x=true;</script>
  2. <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
  3. <script type="text/javascript">stLight.options({publisher: "ur-b255a218-2438-f181-39c3-533f68e9cb6f"});</script>
Copy the Code
3. Find
  1. <!--{hook/global_cpnav_extra1}-->
Copy the Code
AFTER this add:
  1. <span class='st_facebook' displayText='Facebook'></span>
  2. <span class='st_twitter' displayText='Tweet'></span>
  3. <span class='st_google' displayText='Google'></span>
  4. <span class='st_email' displayText='Email'></span>
Copy the Code
II Option

1. Open ..\template\default\common\header.htm
2. Find </head> tag and BEFORE add:
  1. <script type="text/javascript">var switchTo5x=true;</script>
  2. <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
  3. <script type="text/javascript">stLight.options({publisher: "ur-278f6f05-864f-dd21-67cb-8cbba91c25a1"});</script>
Copy the Code
3. Find
  1. <!--{hook/global_cpnav_extra1}-->
Copy the Code
AFTER this add:
  1. <span class='st_facebook_hcount' displayText='Facebook'></span>
  2. <span class='st_twitter_hcount' displayText='Tweet'></span>
  3. <span class='st_email_hcount' displayText='Email'></span>
  4. <span class='st_googleplus_hcount' displayText='Google +'></span>
Copy the Code
Remember!
Update cache from admin control panel.

Of course, you can add this code wherever you want. For bottom position, you have to edit FOOTER.html.

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Indonesia

Post time: 2014-02-15 21:30
| Show all posts
using plugin Social 3in1 1.0
u can download here

Comments

Pme
Can u give author link for this plugin  Post time 2014-02-19 01:15

Rate

Number of participants 1Rating +1 Collapse Reason
ravipratap95 + 1 Very nice!

View Rating Log

Post time: 2014-09-23 14:10 From the mobile phone
| Show all posts
masbahrun 2014-2-15 22:30
using plugin Social 3in1 1.0
u can download here

The download link is broken. can u upload it again?

 United States

Post time: 2014-10-06 03:25
| Show all posts
Parsson 2014-9-23 15:10
The download link is broken. can u upload it again?

I had downloaded it before, but found the original solution to work better. The plugin just didn't work as well as the ShareThis buttons. Unfortunately, I can't find the downloaded file any longer.

Comments

Agreed,the link is down and kaal's method is better  Post time 2014-10-06 04:21
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-21 23:23 GMT+3 , Processed in 0.079660 sec., 12 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list