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

textareas with revision control

Hello,

I'm trying to find the best way to add revision control to some textareas in a custom form. Currently only the title and body are revision controlled but my custom content type has more textareas and I would like them to be revision controlled also.

I cant find a lot of information on the site nor in the apis on revision control.

Trogie

E-commerce module error, gives me blank page / connection lost

Hey guys, I enabled the e-commerce module, but now when I go to edit something I get nothing back from the server. In IE I get a blank page, and in Safari I get a connection lost error. The weird thing is I was trying to pinpoint where the script broke i enabled the trace module and got something.

Fieldsets for profile variables

I wanted to attach a fairly large number of variables (fields) to each user's profile, and the UI for displaying and updating (editing) "that many" variables was not to my liking.

At the moment (in 4.7, anyway), profile variables can be put into "categories" (apologies to jaza and bdragon, but that is the "official" description of the way that profile fields are divided into separate and distinct groups). When a user profile is edited, the various categories are displayed as links near the top of the first edit screen, with the first edit screen focused on the "account settings" category. Those with user administrative privs can add additional profile fields and each field can (actually, must) be placed within a category. I believe that there are no restrictions on the number of profile fields or the number of profile field categories, although I certainly haven't stress tested it.

The "edit user profile" UI currently loads a separate page for each category. That separate page lists all of the profile fields associated with that category, in the order specified by the normal Drupal weight/alphabetization mechanism. There is no ability to group the fields in a fieldset.

I have a simple module that allows those with user adminsitrative privs the ability to assign each profile field to not only a category, but to a fieldset, as well.

Snippet - Display Top Blogs, Books, Forums

Hi Drupal People,

I need the one snippet to display "top visualization" section in my site.

I will have a top section for: blog, forum and book with visualizations by day, week and month.

Anyone have a snippet for this?

Thanks,

Is it possible to disable %s and %d in db_query?

I think the functionality of using %s and %d in queries screwing up my custom query:

SELECT u.uid, u.name, u.access FROM users as u , profile_values as p WHERE  u.access >= 0 AND u.uid != 0  AND p.uid = u.uid AND p.fid = 5 AND ( p.value like '%skiing%' || p.value like '%biking%' ) ORDER BY u.access DESC

It seems to return people that like biking, but not skiing. I'm doing it this way because people could enter "biking, hiking, running" for example, so it is searching for matches using the % on either side.

Drupal not displaying my "add" form

I'm trying to create a module with a new node type, named nsight_report. I have _menu() and _form() hooks, but for some reason when I go to node/add/nsight_report it just shows me the "Create content" page again, only with the title I specified in my _menu() hook.

I've pastebinned the _menu() and _hook() functions at http://drupal.pastebin.co.uk/15389 . I've asked in #drupal and #drupal-dojo but no dice yet. I just can't understand why it isn't working.

Pages

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