PDA

View Full Version : How to show vbDrupal theme to unregistered users


bill
03-09-2006, 02:51 AM
I am setting up vbDrupal on a members only site. Only registered members have been given permission to see anything on vB or vbDrupal. This causes a problem for the Unregistered / Not Logged In group as anything in the Drupal portion of the site will show a blank unstyled page. Users get this vB message:
vBulletin Message
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
You are not logged in. Fill in the form at the bottom of this page and try again.
You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

This is the standard vB login form page. login.php

This is problematic as returning users who have not logged in will get this completely unstyled page with only the site's logo at the top. People who log our or clear their cookies have the same experience.

Then there is the added problem that login.php will only work from the vB forums directory. So if anyone presented with this login form actually tries to login they will get a page cannot be found error...as obviously vbDrupal is using vB's login.

Any suggestions how I might work around this?

sifuhall
03-09-2006, 08:23 AM
There is an add-in for drupal called front-page that may solve your problem. It allows you to design seperate front pages for registered and unregistered users.

bill
03-09-2006, 10:59 PM
That looked like a promising module, but since vbDrupal is using vB's permissions they override Drupal completely. In vB if I set this Usergroups > Usergroup Manager > Forum Viewing Permissions > Can View Forum to No then I have this problem with vbDrupal. If I allow the vB Forum to be viewed then Drupal will show. However, it is then possible to see the forum structure.

With the Front Page module I tried using the following simple PHP redirect as a front page replacement for anonymous users (not logged in):
<?php
header ("Location: http://example.com/forums/login.php");
exit();
?>
I have vbDrupal as my root and vB is in the forums subdirectory.

Unfortunately that just brings them to the main forum page. What I really need is a way to get vbDrupal to completely hand off this function to vB.

bill
03-14-2006, 08:13 PM
<bump>

Any ideas on this?