Closed (fixed)
Project:
Digg this
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
22 Feb 2007 at 13:19 UTC
Updated:
17 May 2007 at 13:57 UTC
Jump to comment: Most recent
Hi,
Is there any way that I can add the function to insert the digg button in my node-page.tpl.php? I understand I can use css to move the image at the moment but I can only seem to move it in the content section, e.g. floating left or right in the text, or just above.
What I would like to do is float it next to the "submitted by" track. Is this possible?
Thanks.
Comments
Comment #1
clickdeveloper commentedIt would really be great if you added the ability to control the positioning of the Digg button in node.tpl.php.
Comment #2
urwas commentedI also would like to place this Digg Button on the top right side of the node (best in line with the node title)... so this would not destroy the layout, for example when using photos on the first few lines of node content.
I've tryed to do this in modifying the module code but i dont know how to make the content created by the module to be like a title or submitted variable which can then be used in node.tpl.php
Any suggestions?
Greetings!
Comment #3
Anonymous (not verified) commentedI couldn't work out how to change the position at first, then I changed this line:
'#weight' => 10
to this:
'#weight' => -10
...and it's now at the top. The CSS can then do the rest if you want to move it to the right.
HTH someone!
Comment #4
yaph commentedwill add a weight option to the next release
Comment #5
yaph commentedAdded a weight feature for button display above or below the main content in diggthis release 5.x.-1.3
Comment #6
yaph commented