Drupal is up and running but how do I ...?

limit users images to 12 and members list

I'd like to be able to limit the number of images a user can upload to 12, but increase the number if the user pays the site, is this possible?

Also about member lists. I've used both the members and profile pages modules and neither has what I want.
I want a list of things like, location, skills (photographer, publisher etc) and let a user click through members like that, but also have an 'all' section. Anything to help me? Or do I have to create a page and link to all the variables manually!?

marking "parent node" active when child is active

Hi there,

Here's the situation:
I've got a basic navigation using the primary links. Now one of them is a book, it's called Help.
My goal is it to mark Help as active on any page of that book (even when using aliases).

I tried to find something on this site about my issue. I did find some questions on it ... and solutions that didn't really work (for me), partly because I want to use path aliases, too. So I wrote the following code:

/* extracts the string between the first and second ", eg adams_extract_path('<a href="pathurl">pathname</a>') returns "pathurl" */
function adams_extract_path($link) {
  $path = substr(stristr($link, '"'),1);
  $pathlen = strlen($path)-strlen(stristr($path, '"'));
  return substr($path, 0, $pathlen);
}

/* returns true if and only if $child is a substring of $parent */
function adams_ischild($parent, $child) {
  return (substr_count($parent, $child) > 0);
}

/* returns true if the path in $link is a substring of $breadcrumb */
function adams_isactive($link, $breadcrumb) {
  $path = adams_extract_path($link);
  return (substr_count($link, 'active') > 0) || adams_ischild($breadcrumb, $path);
}

Now in my page.tlp.php I do something like:

    foreach ($primary_links as $link):
  • if (adams_isactive($link, $breadcrumb)) print 'class="active"' "> print $link
  • endforeach;

PHP error on submit of content

This happens only when I hit Submit to a page or a story does this error come up, and it still posts the article.
Preview works fine and editing and Submit work fine, only a new page or story cause this error.

Error from the log:

Cannot modify header information - headers already sent by (output started at /home/bravosca/public_html/drupal/includes/common.inc:384) in /home/bravosca/public_html/drupal/includes/common.inc on line 192.

og.module error on line 574

Hi there, getting an error message when someone invited to a group clicks on the link sent to them:

warning: implode(): Bad arguments. in /var/www...../modules/og/og.module on line 574

Any ideas?

phpbb design forums breaks design on frontpage

Ref this instructions: http://drupalart.org/phpbb

When I put the node-forum.tpl.php file into the template directory, my forums display as desired, and all the rest of the Drupal GUI except the frontpage (which is set to /node by me, blocks are pushed below some content, no content between the blocks, and there is content below the blocks as well).

I'm trying to implement this into the Gray Box theme on Drupal 4.6.3

Here is the node-forum.tpl.php:

having some menu trouble with external links

Hi, I'm new to Drupal, and I'm having some menu issues.

Essentially, I've enabled the "menu" module, I've added a new menu, set it to enabled under blocks, and added 5 links to external websites to it. The menu shows up, but none of the links show up. It's just empty.

Is there some problem with links to external sites? Do I have to create my own block to get the menu to work?

I'm using Drupal 4.6.x (4.6.5, I think, but it could be 4.6.6).

Pages

Subscribe with RSS Subscribe to RSS - Post installation