Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

drupal share module

Posted on 2010-09-23
10
Medium Priority
?
589 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 17

Expert Comment

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

Author Comment

by:charmingduck
ID: 33750769
can you show me the code?
0
 
LVL 17

Expert Comment

by:Thomas4019
ID: 33750802
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
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

 

Author Comment

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

Expert Comment

by:Thomas4019
ID: 33750882
what do you mean "define the function"? what about just putting it in your node-[contenttype].tpl.php
0
 

Author Comment

by:charmingduck
ID: 33750902
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
ID: 33750910
try replacing "share_popup_load" with "share_load"
0
 

Author Comment

by:charmingduck
ID: 33750923
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 1000 total points
ID: 33750983
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
ID: 33751210
I think addtoany is awesome.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

604 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