phptemplate_user_list override
I posted this question to support group - no answer there, but the problem is VERY annoying So. I want to override user_list template (one, used for active/last users block). So, in 4.7 template.tpl.php added: function phptemplate_user_list($items, $title = NULL) { return _phptemplate_callback('user_list', array('items' => $items, 'title' => $title)); } and placed user_list.tpl.php in theme directory. This one contains <?php print ('Hello world!'); ?> for debugging. The cache is clear, and themes are reloaded, but *no change* in active/last user's block Missing something, or it's just bug? Thank you -- Tamir
On Wed, 14 Jun 2006 20:42:53 +0200, Tamir Khason <tamirk@gmail.com> wrote:
So. I want to override user_list template (one, used for active/last users block). So, in 4.7 template.tpl.php added:
Make that template.php. Or is it a typo?
Op woensdag 14 juni 2006 20:42, schreef Tamir Khason:
template.tpl.php
That should be template.php, remove the tpl Is that documented incorrect somewhere? (Or am I completely mistaken here and does the tpl version work too?) -- PGP ber@webschuur.com http://www.webschuur.com/sites/webschuur.com/files/ber_webschuur.asc Written while listening to Tora Bora (live in St. Petersburg) by Zagar on Website
Am Wednesday, 14. June 2006 20:42 schrieb Tamir Khason:
I posted this question to support group - no answer there, but the problem is VERY annoying So. I want to override user_list template (one, used for active/last users block). So, in 4.7 template.tpl.php added: First try to rename your template.inc.php to template.php, then report changes ;)
function phptemplate_user_list($items, $title = NULL) { return _phptemplate_callback('user_list', array('items' => $items, 'title' => $title)); }
and placed user_list.tpl.php in theme directory. This one contains <?php print ('Hello world!'); ?>
for debugging. The cache is clear, and themes are reloaded, but *no change* in active/last user's block
Missing something, or it's just bug?
Thank you
First try to rename your template.inc.php to template.php, then report changes ;)
Or, my god!!!! I will check file names three times, before asking dumb questions.. I will check file names three times, before asking dumb questions.. I will check file names three times, before asking dumb questions.. I will check file names three times, before asking dumb = NULL) { -- Tamir
participants (4)
-
Bèr Kessels -
Heine Deelstra -
Sanduhrs -
Tamir Khason