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

how i make a blok only visible by a role

i trying it this way:

on bloks admin area : "Page specific visibility settings" -> " Show if the following PHP code returns TRUE (PHP-mode, experts only)." and i try whit this code :

<?php 
page_access("create", 0);
?>

because i presume that if the can create a page the are from de role that only can see that...

dont work, any idea?

SQL help: efficient repetitive statements

I'm working on a custom module that keeps track of the courses a user is taking at school. I want administrators to be able to clear everyone's courses, then add a set of default courses to all users. As far as I can tell, this means running an INSERT statement for each user and each course. That seems like a lot; is it going to be inefficient, or is there a better way to do it?

On a related note, I'm wondering if there's a function of some sort to get the UIDs of all active users. Doing it by role would be nice too. Is there an easy way to do this?

Weekly Schedule Module

I am working with a group that maintains a list of weekly meetings that are held at various locations in an area. They have need of something similar to the Event module--where you can track events on a calendar--but something where you can associate an event with a particular day of the week rather than a particular date. In other words, they'd like to be able to say:

Monday: 8-9am Meeting in Rm 17 of Bldg A
4-6pm Meeting in Rm 24 of Bldg B

etc.

Classifieds Module in the works

Ive have been looking around for awhile for a quality classifieds module, with no luck. I then went on drupalancers.com and submitted this project to be built. I have found a consultant, Mike at IXIS.

I originally wanted him to do something similar to:http://www.activefarming.com/classifieds-for-drupal

But he came back with this; "We can do one better and produce a classified system using CCK, images and the flexibility of adding additional advert types. Using CCK over Flexinode will provide more robustness for site scalability - if you hope it will grow. As a team we can produce the work quickly, and if needed offer additional (cost) web design services to make the classifieds look eye catching and appealing. Previous work is available in our portfolio: www.ixis.co.uk/portfolio"

I have since been in talks with him to create this classifieds module which would support payments and images.

* If the classified is free they would not need to be registered as a paid-for-advert
* user creates an advert node (could be one of any amount) but it would remain unpublished
* on creation of an advert node they would have an item added to their shopping basket (ecommerce package)
* the user would be pushed through to the checkout, or maybe they could create multiple adverts in one go?
* upon payment completion the advert node would become published for all to read.

The cost to build such a module is going to be around $2000 U.S.D.

How to use pathauto_create_alias to bulk-update aliases during a cron run?

I'm periodically importing a bunch of content in a nonstandard way and want to use pathauto to bulk generate aliases for anything that doesn't already have an alias.

I'm currently attempting to use pathauto_create_alias to accomplish this, but while the code runs without errors, it also doesn't seem to bulk generate missing aliases.

From my listing module:

How do you use hook_form_alter on profile.module?

I am trying to alter the forms produced dynamically by profile.module. form another module. After lot's of trial and error and a hint or two from the mailing list I have gotten.

Pages

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