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

Unused image cleanup/ database query to remove/delete images whose parent nodes have been deleted.

I thought I'd start a discussion for the automatic removal of unused thumbs, previews, thumbnails, etc. generated by the image, image_attachement, and upload_image modules.

This could be run at cron. It seems there is a standard on the images created in {files}. Shouldn't there be an easy way to automatically delete images whose parent nodes have been deleted?

Eccomerce - Subproducts Error

Hey Guys,

When I installed the "subproducts" module under the Ecommerce Project. When I visit the page administrator > store > settings > subproduct , i get the following error:

warning: Invalid argument supplied for foreach() in /home/x3oadmin/public_html/gaming1/modules/ecommerce/subproducts/subproducts.module on line 1821.

Any fixes or suggestions?

Simple Access Groups to restrict users

hi,

i'm trying to setup a site with multiple users. this site will be used by my company to upload images, videos,vs... concerning ongoing projects for client approvals. So each client has a unique user. What i want is that i could be able to post content for a specific user, and the other users shouldn't see this content.
To achieve this, i setup all the users (eg. client1, client2, etc...), i set each user a unique role (eg. roleclient1 for client1, roleclient2 for client2, etc...), then using the simple access module, i setup separate access groups for each of these roles. So, when i post content, i can tick the access group (which is actually tied to my related client) to make sure that this post will only be viewable by this client.

1st question:
Is there a better way to achieve this? (In fact, in another scenario, i used Organic Groups, it did the same thing but it brought complications to the site structure, so i dumped that idea and went with the simple access module.)

2nd question:
Please imagine this: i login to the site as one of my clients. everything is fine,i cannot see any other content that's related to another client. But when i try to post something, the dilemma starts. If as an admin, i restrict users to not be able to see and chose from access groups, the post is public therefore seen by anyone (hence all clients), but on the other hand, if i make the access group accessible to these users to chose from, then they will see the list of my clients without even trying!!! I don't know if i'm clear enough, but...

Optgroups. I don't want them, yet they seem to be showing up

I've been working on a custom module for use on the internal drupal site at work, and have run into a small issue. I pull a list of project names from the db, them use mysql_fetch_row to put them into an $options variable for my select field. When I do this, project name is being put into its own opt group, leading to a lis that is physically much larger and more spaced than I would like, because each name is preceded by a number

0
Project 1
1
project 2

etc.

Here is the code I'm using:

can i link other users to an article/blog?

Suppose I'm writing an article, how can i relate another user to this 'node'.

What i want is offer visiters a direct link to the profile of other drupal users, via an article ...

thanks,
Kopo

Related content module

After activating the module 'related content' and running the database-script, on top of all my pages now appears:

warning: Missing argument 3 for _user_related_content_param_sql() in
C:\prg\htdocs\modules\user_related_content\user_related_content.module on line 745

warning: Missing argument 4 for _user_related_content_param_sql() in C:\prg\htdocs\modules\user_related_content\user_related_content.module on line 745.

Pages

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