This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

In line badges with user badges - help!

I am currently using the code:
<?php print t('!date — !username !badge', array('!username' => theme('username', $node), '!date' => format_date($node->created), '!badge' => user_badges_for_uid($uid))); ?></span>

the display I get is:

Tue, 01/30/2007 - 1:46pm — username
badge

What I want is:

Tue, 01/30/2007 - 1:46pm — username badge

Help?

Calendar block disapeared, in 5.0. Can I get it back?

I had the calender set to display a month calendar in a block. It simply dissapeared. I did not change any setting. I installed fileview, fileshare, and filebrowse; but disabling those did not help.

Cannot get hook_menu and node_view to work correctly.

The premise is if a node is unpublished, it will only be shown if e=1 is appended.
I'm attempting to visit .com/cs/#?e=1

Here's the code- it's very short. I have cleared my cache using devel, so that's not the issue. I can view the node fine if I'm logged in as admin.
http://drupal.pastebin.us/12994

Thanks in advance for your responses!

Matt

body onload()

Please help me with the following.

My module needs to be able to add
onload = "function(data)"
to the
body
tag, regardless of the theme used. Which hook and how shall I use ??
For this, of course, I need my module to be able to add a script link to the <head> section of the page, also regardless of the theme used. I noticed there is this $script variable used by theme templates, however I could not (as usually ;) find the place, where this var is generated, and which hook I shuold use to add something to it.

I can't tell tell if fileshare or fileview are working

I am trying to find a reasonable way to upload/store/download files with drupal 5.0.

I downloaded, installed, and enabled: filebrowse, fileshare, and fileview.

Filebrowse works, although it is unintuitive and clunky. It doesn't create a menu, even for the admin. But it does, at least, work - and it does have a readme.txt.

As for fileshare and fileview; I can not tell the difference if these modules are enabled, or not. I don't see any menu item for either of these. I don't see where they add any functiionality.

"Browse archive" disapeared, in 5.0. Can I get it back?

I had the calendar module working the way I wanted. I had the "Browse Archive" calendar displayed.

Then it dissapeared. I did not change any of the block settings, or view settings. I did, however, add some new modules: fileshare and filebrowse.

The block is still there, only now there is only a header that reads "February 2007" there is no calendar underneth that.

I am using the "Golden Hour" theme.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions