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

Determining a user's current node

Hello,

Suppose that I am in user.module and I have a user object or a uid corresponding to a particular user. How can I determine what node that user is currently viewing?

Justin

UK Scouting Module?

I'm a Scout leader and I've started work on a module for tracking my Scouts (also the Cubs and Beavers). It's based on the application ScoutCount II. It let's the leaders in our section share lists of people, members, events, and other sections.

Are there any other Scout leaders using Drupal? I've only found a small handful of Scout websites through Google. I'd like feedback from others to make sure we're heading in the right direction.

SUBMIT in hook_view() to itself

I'm writing my own module called say "xmodule". I ran into a problem while implementing hook_view() which contains a submit action/button to itself (hook_view()). To wit, when I insert an submit button like this:

trackbacks doesn't appear in nodes

Hi guys.

I cannot see the link with the trackbacks counter in nodes. Somebody can help me??

I'm using drupal 4.6

Thanks

Role-based fields in flexinode and CCK

One of the specs for the Content Construction Kit is private fields. Has anyone implemented role-based fields in flexinode? Could this easily be implemented in flexinode and then ported to work w/ the CCK once it is completed?

When creating a new flexinode type, role-based fields would allow you to select which roles can see a field when creating flexinode content - if you do not have the proper role for a field, it is invisible. Also, when viewing a published flexinode, if you do not have the proper role, the field is also invisible.

something i've tried in a phptemplate override is:

<?php elseif ($field_id == 6 && user_access('administer nodes')) : ?>
<div class="flexinode-textarea-6">
<strong><em><?php print $label; ?>: </em></strong><br />
<?php print $formatted_value; ?>
</div><br />?>

This obviously is not automated at all for the user, as it is in the tpl.php theme file, nor do I know how secure this is. Also, this does nothing to hide the field when creating a new flexinode. Another valuable spec would be the capability to later change the permissions on a field to allow additional or fewer roles to edit or view the field.

If this has never been implemented, I may be interested in doing a bounty to get it implemented, but also try to do it in such a way that would easily port from flexinode to CCK, if at all possible.

Print page module for 4.6?

Is print module available in 4.6.x version? I can find this module only 4.5.x version.

Pages

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