Having problems installing Drupal? See the Installation Guide for more information.

How to check for authentication in HTML?

I have an intranet site which is only accessible to registered users and which uses the xtemplate theme. My problem is that xtemplate's secondary links, which contain taxonomy_dhtml links, are accessible even if the user hasn't logged in yet.

An easy solution would be to 'wrap' the secondary links HTML in an authentication check, in such a way that the secondary links are only displayed when the user has successfully logged in. Can this be done?

TIA, Lieven

Problem with logging in to Drupal 4.2.0

I installed Drupal 4.2.0 on hosted Linux server. I do not have access to apache config nor do I have access to phpinfo(). Browsed through the forum but couldn't find answer to my problem.

I installed Drupal according the instructions, with creating MySQL db w/o a problem. Changed conf.php: $base_url="http://hostname/drupal".

How can I remove weblink nodes ?

Hi,

How would I go about deleting all weblink nodes ?
I deleted all the records in the weblink table, but the nodes will still exist, how can I identify them ?

Thanks

Drupal 4.2.0 on Debian Unstable

I've manually installed 4.2.0 along side 4.1.0 on Debian unstable, relinking default installd and updating all configuration files. I've also created a new databse from the sql schemas available for 4.2.0 and linked .htacess to /etc/drupal/htacess, as Debian debconf seems to do.

When trying to login I see the home page but with an error message:

"You are not authorized to access this page."

My apache user seems to be able to login. I've set it up with no password, but I don't seem to be able to get to the initial stage where I'm suppose to create the 1st/admin user.

Error handling

I get the following message when trying to access a node that doesn't exist (e.g. http://www.mysite.com/node/view/9999)

warning: pg_exec() query failed: ERROR: pg_atoi: zero-length string
in /usr/share/pear/DB/pgsql.php on line 164.

What is the best way to handle such an error? I notice the drupal site just displays a blank page.

Thanks,

Randy

Gallery module and 4.2.0

Has anyone gotten the gallery.module and the 4.2.0 code to work, fully? I can view and browse albums, but can't upload new images to albums. For "browse" method of uploading, I get:

Processing status...
- Adding tarbell-bikes.jpg
Fatal error: Call to a member function on a non-object in /rtty/sgibson/pdxar/gallery/save_photos.php on line 331

If I try and use the HTTP URL or local file path options, I get:

Retching Urls...
http://www.tuna.org/tarbell/
Parsing http://www.tuna.org/tarbell/ for images...
Found 7 Images.
Processing status...
Fatal error: Call to a member function on a non-object in /rtty/sgibson/pdxar/gallery/save_photos.php on line 354

Both Line 331 and 354 are addPhoto() calls:

$err = $gallery->album->addPhoto($file, $tag, $mangledFilename, $caption);

I'm not exactly keen enough with PHP to grok what's going on here. If anyone has any input, thoughts, ideas, or they got the bloody thing working, that would be sweet!

Pages

Subscribe with RSS Subscribe to RSS - Installing Drupal