Drupal is up and running but how do I ...?

Warning:

How do I fix this??

Warning: mysql_connect(): Access denied for user 'iahuca_thedogdis'@'localhost' (using password: YES) in /home/thedogdi/public_html/includes/database.mysql.inc on line 31
Access denied for user 'iahuca_thedogdis'@'localhost' (using password: YES)

this is what line 31-33 says

31. $connection = mysql_connect($url['host'], $url['user'], $url['pass'], TRUE) or
32. die(mysql_error());
33. mysql_select_db(substr($url['path'], 1)) or die('unable to select database');

howto? login redirection to the previous page

Let's say i'm on a blog page and i want to add a comment, but i'm required to be logged in. Currently in drupal (on my setup anyway 4.6), if I click add a comment, it will reload the page with "you are anauthorized to..."...not a very friendly or usable error response.

Are there any modules or patches that let you at least partially set, or at in th every least set something a bit more common-sense for pages that require access, a login, the redirection to the page that sent you?

Thanks!

Controlling block visibility with PHP

Here are the instructions.

1. Go to administer >> access control and ensure “administer blocks“ and “use PHP for block visibility” are checked for your role.

Unfortunately, I don't have any option titled “use PHP for block visibility.” Just the “administer blocks“ option.

2. Go to administer >> blocks and find the block you want to set the visibility for.

This I can do.

3. Click “configure” next to that block.

This I can also do

Allow users to put images in galleries, but not create galleries

Hi Drupallers,

How to allow users to put images in galleries, but not create galleries? The only permission I have for image_gallery module is "administer galleries", and this seems to include both functions together.

i.e. with "administer galleries" users can add images to galleries, but they can also create / delete whole galleries!
without "administer galleries" users can't even add images to galleries!

Anonymous access to site is erratic

Drupal 4.7.1
Apache 1.3.33
PHP 5.1.2
MySQL 5.0.18

Problem with anonymous users only. Anon users can view my drupal website initially and click on a few links, but then, upon clicking a varying number of links the screen goes blank, turns white. Usually no more than about 15 clicks. Manually entering and visiting various urls on the site, including the home page, all result in the same white page. Frequently, the screen goes white on the very first click after I have logged out as admin or as another user.

Manually dumping the cache with phpMyadmin resolves the problem temporarily. A few clicks around the site, and the problem happens again.

Deleting entries from the cache table one by one suggests that the offending entry consistently has these values: CID="some url" (not a system message) and expires="-1" Deleting a single entry resolves the access problem temporarily

I had the same problem with 4.7.0. Unfortunately the upgrade did not fix.

There don't seem to be any corresponding watchdog entries.

So, I went off in search of answers at drupal.org...

In response to suggestions in this message, http://drupal.org/node/63147
I can report that node_access table has a single line where gid="0" and view="1"
Also, I have not installed evaluation, taxonomy access, or organic groups modules.

In response to this message http://drupal.org/node/8054
I report that the user table has an entry where uid="0"

Problem with Random image from a particular category/gallery

I'm running Drupal 4.7, and installed this PHPsnippet from http://drupal.org/node/53987 in a block:

Pages

Subscribe with RSS Subscribe to RSS - Post installation