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

Private documents, lots of users, frequently updated

Hello everyone,

I'm trying to discover whether I can use an existing module as is, modify one, or whether I need to start from scratch. A company I'm doing some work for is using several Drupal sites for their Intranets, documentation, and even trouble tracking. Now, they'd like to unleash one of these sites on a customer [ insert appropriate smiley here ].

Each customer has potentially several hundred vendors. Each vendor, aside from being able to access public documents on the intranet, needs to be able to view a small handful of reports, updated daily. Given that there will be potentially hundreds of vendors on a site, it would be great if these documents could be keyed by the user's Drupal ID. They log in, see a half a dozen links to consistently named nodes (or records), but no one else can, except the 'super-vendor' who can see all of their vendors' records as well.

Like this :

Vendor1 can see vendor1-report1, vendor1-report2, vendor1-report3
Vendor 2 can see vendor2-report2, vendor2-report2, vendor3-report3
. . . you get the idea.
SuperVendor1 can see everything Vendor1 and Vendor2 can see.

Issues I see are as follows.

- The reports would likely have to be inserted into the appropriate node via a command line SQL update (this part pretty much has to happen in the background).
- I'm guessing the reports would have to be stored with the username as part of the key.

fckeditor work only in edit mode

I have installed fckedito, in admin when I open a page for edit it work;
if I insert an image or change color at text it work;
but how I exit from edit mode I not see no one formatting;
if I return in edit mode I see the previous formatting (image and color)

Worrying entry in my watchdog... (guestbook module)

I found this entry in my logs (page not found);

http://www.mysite.com/guestbook++++++++++++++++++++++++++++++++Result:+%E8%F1%EF%EE%EB%FC%E7%F3%E5%EC+%EF%F0%EE%EA%F1%E8+218.

Which when clicked shows a worrying;

Warning: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' query: SELECT src FROM url_alias WHERE dst = 'guestbook Result: ���������� ������ 218.' in /var/www/localhost/htdocs/includes/database.mysql.inc on line 121

Determine if page is a feed

Hi,

I am working on a patch for the single signon module, and i need a way to determine if the page currently served is a feed...

Anyone knows how to do it?

Thanks

FAPI problem - multipart form?

Scenario: learning form API. Built myself a nice form with a list of aggregator items, with associated checkboxes. I click some checkboxes, hit submit. Now I want to : do some processing on the checked items (I think I got that right), and then rebuild a form with fields resulting from this processing.

All multiform docs I found were for FAPI 1.0 and 4.7.x. Not sure of how one would do that in 5.x.

Best hook to write custom form data to an external table

Hello,

I have a custom form element that I want to save in an external database table.

function hook_form(&$node) {
  $form['thumbs']['radios'] = array(
    '#type' => 'radios',
    '#options' => array(
   			1 => 'One',
   			2 => 'Two',
   			3 => 'Three'),
    '#default_value' => 1
    );
}

I would like to know which hook I can use to read the custom form data, and the correct syntax for accessing the '$form['thumb']['radios']' value.

Cheers,

Neal

Pages

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