Access denied message displayed for every node

Hi,

I have a major problem with one of my Drupal sites (an event notification/management site putting the event and views modules to work):

Apart from the superuser, all users get an access denied message when trying to view all nodes. Anonymous users should have view only access to most nodes, but get the access denied message instead of having the node content displayed to them; while logged in users with some authoring privileges also get the access denied message. It is possible to view the events calendar, but there are no visible entries in it.

How to link our php page in drupal?

I have a intranet in drupal 4.7. I need to add one extra Simple module which contains only a entry form and reports from that entry form. I have made this in php not in drupal but i want to link it to the drupal site. I have a common database for drupal and that new module. i want to show the module in new window. C

Can anyone plz help me out with this.

Dynamic load

Hello..
i would like to refresh the main content area in my site without using the refresh action.. the main content area of my site contanis many news item that update every minute so this is the main reason for this..i tried to use the dynamicload module in the JStools but it is not working (i understood that it is only for links in blocks)...

Thanks,
Roi

Dynamic load of main content area without refresh

Hello..
i would like to refresh the main content area in my site without using the refresh action.. the main content area of my site contanis many news item that update every minute so this is the main reason for this..i tried to use the dynamicload module in the JStools but it is not working (i understood that it is only for links in blocks)...

Thanks,
Roi

using javascript.....

$fields['FromDate'] = array(
'type'=>'jsdate', // Field type
'title'=>t('From Date'), // Display name
'required'=>true,
'storedb'=>true,
'showview'=>array(true, ''),
'access'=>$access,
'default'=>_get_date(), // Default value
'size'=>'',
'maxlength'=>'',
'help'=>t(''), // Help text
'attributes'=>array('readonly'=>true,'onChange'=>'calculateDays(\'edit-FromDate\',\'edit-ToDate\',\'edit-Days\')'),
'tablerow'=>2,
'jsdetails'=>array('format'=>'%Y-%m-%d','showTime'=>false,'singleClick'=>true,'style'=>'win2k-1'),
'table_list'=>array('show'=>true,'header'=>array('data' => t('FromDate'), 'field' => 'FromDate', 'sort' => 'desc'),'column'=>array('align'=>'center')));

This is a date field where a user selects date. Then after the user chooses date, the event onChange occurs and javascript function calculateDays is called.

But when i use the same attribute to...another multiple select field...it doesn't work..why ??

$fields['Districts'] = array(
'type'=>'select',
'title'=>t('District(s)'),
'required'=>false,
'storedb'=>true,
'showview'=>array(true, ''),
'access'=>$access,
'options'=>_RoMoP_get_districts(),
'multiple'=>true,
'help'=>t(''),

How do you redirect a user to a new page to display previously run queries?

I am in the process of creating a custom search module. My search form has 2 drop down options. The first I done and works fine. The second I am trying to use the form values to search the node title values from {node}. I set the query up as a second function but can't figure out what I need to do to display the results on a new page.

<?php
function companysearch_form_submit($form_id, $form_values) {

if ($form_values['ticker_name'] = t('Ticker ')) {
$results = (db_query("SELECT nid FROM {node_content_company} WHERE field_ticker_value = '%s'", $form_values['company']));
$row = db_fetch_object($results);

if (user_access('create content_company content') && (db_num_rows($results) == 0)) {
drupal_set_message(t('The ticker !name was not found. Please check your entry or add this company to the database below this message.',
array('!name' => theme('tick', $form_values['company'] ))));
drupal_goto('node/add/content_company');
}

if (!user_access('create content_company content') && (db_num_rows($results) == 0)) {
drupal_set_message(t('The ticker %name was not found. Please send IRP an email with instructions to add the company to the database.',
array('%name' => theme('tick', $form_values['company'] ))));
}

else {
drupal_goto('node/'.$row->nid);
}
}

else {
companysearch_companypage ();

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x