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

Wrong URL for images in img_assist

Hi,

I recently moved my Drupal set up from root (/) to a subdirectory (/drupal). But the image URLs generated by img_assist are not containing the "/foo", so I am not able to see any images.

That is, img_assist is generating:
img src="http://www.example.com/system/files/image/foo.jpg"

instead of:
img src="http://www.example.com/drupal/system/files/image/foo.jpg"

credit card payments

Hi everyone,

I've already posted this on the general discussion forum but didn't get any reply.

I'm developing an ecommerce site for a commercial activity that needs to sell their products online.

I've currently developed the product catalogue and plugged in the shopping cart fucntionality.
One problem I get is that I get a blank page whne I try to checkout.

But anyway, what I'm really interested in is in how to go on about credit card payments.
I heard PAYFLOW and SECURE PAY could be two good options to use for it.

Hook for cancelling a user from being deleted?

Hi,

I need a hook that stops a user from being deleted if it has unpaid bills in the database. In my module, I believe I can use hook_user to catch 'delete', but can I actually fully cancel delete and display an error message with the reason?

Thanks!

favorite nodes module help...

I am trying to include a users' favorite nodes in their user profile. I have a custom user_profile.tpl.php working and so far I have inserted several php snippets to add the functionality I want.

I have tried to use the php snippet that adds a list of nodes from a certain taxonomy term, but so far I've had no luck.

My thinking is that the favoritenodes.module creates the taxonomy term "favorites" and that this snippet will list a given number from the "favorites" taxonomy. This has not been the case. I am getting no return.

Programatically determining filesystem path to drupal files directory

Hi,

Is there a way to determine the server filesystem path to the drupal install directory? I am writing a module that reads the fienames of all images in a subdirectory in 'files' (i.e., the value of the file_directory_path system variable) and formats HTML for displaying the images -- a very simple image gallery generator that allows you to upload a bunch of images via FTP. However, I can't figure out how to get the filesystem path to the files directory. Is there a way to programmatically generate this? Or do I have to have the user set it in the module settings?

Pass arguments to add node.

Hi,
I'm having a problem developing a product review module.

Basically, i have two node types: products and product_reviews.
Each product can have many product review.

Now, on each product page, i want to add a link "write review" that take to /add/product_review for the user to write a review.

on the add review page, i could add a drop down for the user to choose the product he's reviewing, but it will soon become huge.

Pages

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