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

Drupal+G2 integration glitch

Broadly this is working fine despite me being a newbie to Drupal, PHP and MySQL, with one screw-up.

In G2 standalone the admin a/c owned the top level album, entitled 'albums'. This site will have many users, each owning their own albums. Consequently all user albums are sub-albums of this, so admin can control the settings etc. globally. eg 'albums/Jim, albums/Fred, albums/Mary...' This was set up and worked fine before adding Drupal integration.

However, once embedded, Drupal's admin caused a sub-album called 'admin' to be created ie 'albums/admin'. In other words, admin loses the ability to control all the user albums, 'cos admin now just owns a user-level sub-album.

Unfortunately the embedded control-panel stuff won't let me change this to a null path that would leave admin owning the parent album as I want. I can only set a string which means admin ends up with just an ordinary user album in a subdirectory. Nor can I move the 'admin' album, it stubbornly remains a child of the top level. Gah!

Maybe this is my fault, through leaving 'create a new user album when first accessed' enabled in G2? Too late now, anyhow...

Once I turned off rewritten URL's in G2, I can see what's happening:-

If I'm logged in as admin, G2's 'my album' link points to
http://www.mysite.com/drupal/gallery?g2_view=core.ShowItem&g2_itemId=1293
which is 'albums/admin'.

xtracker: Extended Tracker

This is a drop in replacement for the tracker module ("recent posts" menu link).

It has all the features of the standard tracker module, but adds:

- Interfaces with nodevote module showing the score
- The ability to sort the columns (including score)
- The ability to show taxonomy terms and restrict display to one term.
- Configurable number of nodes per page

Read more on the xtracker project page

how to do a multi-stage content upload

Hi all,

I am trying to make a classified module. I need to control the actual node submission process redirecting to a second form based on what is filled out in the first. I can't seem to find the right hooks in drupal to do this. I see the hook for outputing a content form and for handling the form input, however I don't see any hooks for handling page/form flow. Does anyone have any ideas on how I could do this?

thanks in advance,
Christopher Hamersley

"Error: Your Userfile is not writeable" when accessing Gallery Module

I have configured my Gallery2 installation inside of drupal, and it works (by accessing http://site.com/gallery2). But when I try to access it with http://site.com/gallery, as per the gallery2 install instructions, I get a blank page with:

Error:Your Userfile is not writeable

At the top.

I have drupal working on another virtual server on this machine, so I can't figure out what this error message is.

Any ideas?

Technorati Tagging.

Alright, I've made a simple module that will allow you to automatically generate technorati tags for your posts. The only problem is, it doesn't work yet, and I'm not sure how I should continue to make it work, while not making it obfuscate the content types at all. It's a simple hook_nodeapi() module with unthemed theming, but it's a very decent idea in my opinion. I searched a lot for anyone else doing this, to no avail, so I figured it might help.

taxonomy_image sql error

I'm getting this when trying to use taxonomy_image to set the images:

user error: You have an error in your SQL syntax near 'WHERE i.tid = d.tid AND i.tid = 5' at line 1
query: SELECT i.path, d.name FROM term_image i INNER JOIN term_data d WHERE i.tid = d.tid AND i.tid = 5 in /vhome/some.site.org/includes/database.mysql.inc on line 66.

Anyone else running into this? I'm running 4.6.3...

Pages

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