By Aleet on
Hi, Because my site is still under construction, I shut off anonymous user permission to view any content and in SETTINGS page I put in the path of a my own Site-under-construction page. But my durpal 4.5.2 still keeps displaying the default access-denied message.
How do I get drupal not to show any conent EXCEPT my custom Site-under-construction page?
Comments
try this...
Hi Crispy..
there are a number of ways of doing what you want to do...here's a quick, simple and easy way to do it..
Hope that helps..
Dub
DUBLIN DRUPALLER
___________________________________________________
A drupal user by chance and a dubliner by sheer luck.
Using Drupal to help build Artist & Band web communities.
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
Thanks Dublin Drupaller.
Thanks Dublin Drupaller. I'll try this too.
I tried it.
I uploaded front_page module and set the settings as you said. Still getting this:
Access denied
You are not authorized to access this page.
not the custom message I put in the module. I am using 4.5.2 and I downloaded the 4.5 version.
Also tried redirect and themed and that didn't work.
Permissions
One -- you need to enable user access permissions for front_page module, or they won't see it.
Also turn off access content to all users except yourself.
Alternatively, you could create an index.html page and change your htaccess to point to it as default rather than php. I'm not sure if this would work for anyone who has an internal url, though.
.:| Laura • pingV |:.
_____ ____ ___ __ _ _
Laura Scott :: design » blog » tweet
Front page is not listed in ACCESS CONTROL page
There are no permissions to set because it's not there. Am i missing something?
I am using the latest version of the module on 4.6:
front_page.module,v 1.13
just uploaded a new version of the front_page.module
Hi Crispy..
No you're not missing anything..sorry..just updated the front_page.module with permission settings back in.
Download the latest version from the CVS repository
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/front
Apologies..
Dub
DUBLIN DRUPALLER
___________________________________________________
A drupal user by chance and a dubliner by sheer luck.
Using Drupal to help build Artist & Band web communities.
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
No problem. I did put in the
No problem. I did put in the 1.16 version and I got front_page permissions, which I gave to anonymous user.
But it's still not working. I keep getting the Access Denied message when I log out. The front-page is set to appear in FULL format. So I should see my custom message when I logout and nothing else, correct?
you didn't set the default front page to your site
Hi Crispy..
Just checked your site...front_page.module is working fine..you forgot to follow the installation instruction on setting front_page to be the default front page to your site..
i.e. under ADMINISTER -->> SETTINGS set default front page to be front_page
You had it set to HOME.
cheers
Dub
DUBLIN DRUPALLER
___________________________________________________
A drupal user by chance and a dubliner by sheer luck.
Using Drupal to help build Artist & Band web communities.
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
My mistake. Thanks so much.
My mistake. Thanks so much.
The problem with this method
The problem with this method is that front_page.module only redirects users who try to access the front page url. If the user uses any other address, such as /about , they get the page fine.
Now you can go into the access control and disable anon role from accessing content, but they can still see the side bars(blocks) which is lame.
-zach
------------------------
harkey design
: z
Here is what I do
Not sure if this does 100% of what you want, but here is what I do when I am upgrading the site or doing work on it.
Edit .htaccess and add 403 and 404 error documents if they are not there:
Then copy index.php to another file name (e.g. index.php.orig).
Edit the index.php to include a "Site is under maintenance" message. A good way to do so, is to go to you present web site page using a browser and save it as index.html. Edit it so that the main area says the message you want, and remove any blocks you want. You can keep any blocks that are important (e.g. static content ones, ads, ...etc). This preserves the theme, colors, look and feel, logo, ...etc, and there is no database access at all.
Then upload the index.html file that you created and rename it index.php.
This makes a nice "under construction" or "under maintenance" page that catches all pages visited.
When you are ready to go live, just copy the index.php.orig to index.php.
--
Consulting: 2bits.com
Personal: Baheyeldin.com
--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba
Can I use your method and point to ANY file?
Hello Kbahay,
Can I use your method and point to ANY file and not go through with creating a new index.php?
I tried this in .htaccess:
# Customized error messages.
ErrorDocument 404 /default.htm
ErrorDocument 403 /default.htm
But didn't work.
default.htm is just a plain htm file with no connection to drupal.
Is there a way to do what I am trying to do?
You can
You can.
But you have to point to the new file here:
To
--
Consulting: 2bits.com
Personal: Baheyeldin.com
--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba
Why not use basic authentication and passwd protect the site?
I'm currently testing my website but have it off limits to general public by simply using the basic authentication systems(htaccess setup etc.) and providing my beta testers a valid user-id and passwd.
Inquire if your hosting site already has the mechanism to protect the directories, in this case your drupal tree. For e.g. I use 1&1 and it has the feature i've outlined.
Good luck and cheers
/c4rider
4.7 will have this feature
Drupal 4.7 will have a site offline feature that will display a custom admin defined message when the site is offline, while allowing admin(s) normall access to the site.
--
Drupal development and customization: 2bits.com
Personal: Baheyeldin.com
--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba