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

Image Field and Previewing Nodes

I'm doing some custom Drupal development and have added an image field to the node. The image is saved fine when I submit the node, but if a user Previews the node instead of submitting it the image is lost and the user needs to browse for it again before submitting the node.

Anybody have experience with this or know a good method to make the image persist from the Preview to the final submit?

how to theming taxonomy fields?

hi guys,

is it possible to theme taxonomy fields? I'm not found any tutorial yet.

i want to show my taxonomy field as 3 row textfield without auto-complete on my custom node-edit form.

is this possible?

greets

Lausch

Create view of nodes with the same parent

Hi,

I want to display a view of all nodes that have a specific parent (in the menu). I installed the views module, but it cannot do this out of the box, since you cannot specify the right argument (e.g., Menu: pid).

I searchned the drupal page all day but could not find any solutions. The closest I got was the node relativity project, but this does not provide the functionality I described above.

What limitations with civiCRM without VPS or dedicated server?

1. If I don't have a VPS or a dedicated server, what limitations will I have with the module civiCRM's component, civiMail?

2. If I don't have a VPS or a dedicated server, what other limitations will I have with civiCRM?

Nodevote doesn't calculate votes

I would be very grateful if someone could explain me at least theoretically the reason of my problem:
I'm using Drupal 4.7 and the Nodevote module. I have 4 types of CCK nodes (they have different fields). The Nodevote module is fixed to accept votes from anonymous users. And still the votes are calculated only for ONE of the CCK types. For the remaining 3 types of nodes, the rating results in the last vote that was cast (for example, 6+10=10 instead of 6+10=8). For logged in users, everything works fine with all types of CCK nodes.

when to override theme functions? when to use hooks?

so i need to change the behavior of comments, so that an authenticated user can only administer the comments attached to nodes that user created. i'm just going to run through my thought process and what i did. i suspect i'm not understanding the proper way of doing things, so maybe someone can straighten me out.

i started out making a super simple module. two functions: hook_perm() added a 'administrate comments on own nodes' to the ACL. hook_db_rewrite_sql() grabbed the query used to list the comments on the comment_admin_overview page when user_access('administrate comments on own nodes') was true, and add an additional join, and an additional where clause so that the query only returned comments with nids (node ids) from nodes where the uid = $user->uid.

the first problem i had was getting the hook to grab the query. $primary_table = 'comments' and $primary_field = 'cid' failed to find the query i was looking for.
could someone describe exactly what the primary_field/table of a query is (or where i can find a definition)? never heard that terminology before, and google doesn't have much to say. here is the query:

SELECT c.subject, c.nid, c.cid, c.comment, c.timestamp, c.status, c.name, c.homepage, u.name AS registered_name, u.uid FROM comments c INNER JOIN users u ON u.uid = c.uid WHERE c.status = 0 ORDER BY timestamp DESC LIMIT 0, 50

Pages

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