Solved

drupal share module

Posted on 2010-09-23
10
571 Views
Last Modified: 2012-05-10
i have drupal share module enabled

but i dont like where it is displayed

what's the code for the share button? i want to put it  in the php file so it can be whereever i like
0
Comment
Question by:charmingduck
  • 5
  • 5
10 Comments
 
LVL 17

Expert Comment

by:Thomas4019
Comment Utility
Take a look at this, http://drupal.org/node/348964
0
 

Author Comment

by:charmingduck
Comment Utility
can you show me the code?
0
 
LVL 17

Expert Comment

by:Thomas4019
Comment Utility
Yeah there doesn't seem to a terribly easy way to do it. So have you tried printing $output from the attached code?
$share = share_popup_load(1, 'share');

$output = $share->render($node);

Open in new window

0
 

Author Comment

by:charmingduck
Comment Utility
I have, but I need to define the function first, can you show me?
0
 
LVL 17

Expert Comment

by:Thomas4019
Comment Utility
what do you mean "define the function"? what about just putting it in your node-[contenttype].tpl.php
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:charmingduck
Comment Utility
I tried and this is what i got

Fatal error: Call to undefined function share_popup_load() in....
0
 
LVL 17

Expert Comment

by:Thomas4019
Comment Utility
try replacing "share_popup_load" with "share_load"
0
 

Author Comment

by:charmingduck
Comment Utility
Fatal error: Call to a member function render() on a non-object

didnt work


btw, i had share module enabled and the "node mode" on
0
 
LVL 17

Accepted Solution

by:
Thomas4019 earned 250 total points
Comment Utility
Hmm, I'm not really liking this "Share" module. Maybe try looking around for a better one. There's tons of other similar modules out there. Maybe you can find one that puts it where you want it.

Check out this one, http://drupal.org/project/addtoany
0
 

Author Comment

by:charmingduck
Comment Utility
I think addtoany is awesome.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now