Closed (fixed)
Project:
Service links
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2008 at 10:40 UTC
Updated:
14 Nov 2010 at 18:30 UTC
The template.php in the D6 package contains a _phptemplate_variables($hook, $vars) example that is D5 only. In D6 this code must be moved into service_links_preprocess_page().
Comments
Comment #1
NiklasBr commentedThis is still an issue with the latest snapshot. I am unable to get this to work with Drupal v. 6.4, this does not work either:
Comment #2
hass commentedTry to add
drupal_rebuild_theme_registry();on top of your template.php while development...Comment #3
NiklasBr commentedThanks for your help hass, however, it did not solve my problem. My node.tpl.php has the following code:
<?php /*stuff*/ <div class="node_sociable"><?php print $service_links ?></div> /*other stuff*/ ?>and my template.php contains the code pasted in my first post. Caches have been cleaned, user permissions are double-checked and Service links preferences are set to display on all node types, yet all that is returned is<div class="node_sociable"></div>.Comment #4
hass commentedHm, please open a new case for your issue.
Comment #5
NiklasBr commentedFor future reference, it can be found here.
Comment #6
TheCrow commentedadded examples in template.php long time ago!