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

The OG current group's path for views is not work.

Please link the url is http://drupal.org/node/112138
I user the og_views.inc_6.patch and og_views.inc_7.patch , But it is not work,why?
Thanks.

nodeaccess module

Hi

I have installed and am testing the nodeaccess module, I have setup the following items

Roles

Members
BREY

User

user 1
user 2

I have enabled the nodeaccess to view for for members and BREY, and the node author (eg user1) can view ,edit,delete
I have also selected show grant tab for this node type,

Invite module - links in pages

I want to use the 'Invite' module to encourage members to invite new visitors, but worried that the function is hidden within the users's account and may be overlooked.
Is there a way to include a link to this feature from either a page or story, directing members, and encouraging this action.
For example, within a page to include '....why not invite a friend, simply [click here] and we will email details....'

Need help with the Upload module and role quotas.

Hello,

Can anyone help out with modifying the upload module with audio module? I am trying to seperate each users upload into a /files/user/ folder. I also need help in that the file quota's per user role are not limiting uploads as they should. Does anyone know of a forum topic that discusses this?

Thank you,

Matthew

How do you assign a user to a new role and assign/set permissions for that role within code

The title says it all but i'll clarify.

Lets say i have a user. Normally i can go in via admin panels and assign user to a given role and then check off the permissions.

I basically want to be able to do the same thing but via code.

Can anyone point me to the right hooks or offer up a snippet?

thanks

Customizing Calendar Module

I'm displaying a non-interactive "bookings calendar" page using Calendar and Views, and need to control several elements of the display. For each item, I've figured out a way to hack it, but my solutions are inelegant, and I have to believe there's a better way even though many hours of mucking around under the hood did not lead me to it.

1. Force view to "Year" (Calendar defaults to "Month" view)
I did this in template.php, implementing theme_calendar_display() and checking the value of param $view->name against the hard-coded name of my view and setting $view->calendar_type = 'year'.

function phptemplate_calendar_display(&$view, ...){
  if ($view->name == {hard-coded value}) $view->calendar_type = 'year'; //**UGLY!**
  ...

2. Disable "Year Month Week Day" links / views
I did this also in template.php:

function phptemplate_calendar_show_nav($view, ...){
  if ($view->name == {hard-coded value}) {/* don't show nav links */}
  ...

3. Force page title to view name instead of calendar module's default ("Year", "Month", etc.)
I did this in page.tpl.php, using a custom function, declared in template.php:
<?php
/**
* Determine if custom page title should be displayed
* @param $title
* Current/default page title
* @return Correct title
*/

Pages

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