The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I'm trying to have a conditional link to my forums on the site index so logged in members have a direct link but guests get there via my rules page. I initially have it working but I've noticed if the forums aren't viewable by certain usergroups they are given a forced "You are not logged in" vBulletin login box which overrides the site code. Here's the code I'm using;
PHP Code:
PHP Code:
It's actually the call to global.php that is doing this. What I need is some way to move all the URLs on that page forward to the forums directory. eg: login.php and the header/gradient URLs used for the form images. Any suggestions? |
#2
|
|||
|
|||
![]()
You are doing a chdir to ./bb, but you say your forum is in ./forums?
Also check your board url in the vBulletion Options. |
#3
|
||||
|
||||
![]()
No it's all /bb. I simply edited the URLs a bit for this thread so you don't have my actual site shoved in your face.
![]() I neglected to change the /bb here. Sorry about that. (Fixed) The chdir command is working because it is calling global.php properly. It's just the URLs to everything on the forced login screen are looking for forum files from outside the forums directory (as stated). eg; mysite.com/images/gradients/gradient_panel.gif instead of mysite.com/forums/images/gradients/gradient_panel.gif and; mysite.com/login.php instead of mysite.com/forums/login.php so logging in doesn't work. That's all I need to fix. I've already worked around the images by simply uploading the required ones where they're needed until I find a better method. |
#4
|
||||
|
||||
![]()
chdir is nothing but a php deal, it isn't effecting images or links, thats all your html.
|
#5
|
|||
|
|||
![]()
For the links it should be enough to set the correct board url in your vB options, like i mentioned above.
For image, use full image paths in your style settings. |
#6
|
||||
|
||||
![]()
It just occured to me about the images. Thanks for mentioning it. It made me get on with the job and that fixed the images issue. As for the vB options, the correct URL is set. http://www.mydomain.com/forums <-- That format. I've always had it like that but I still get the login problem.
Update; Better (any other O_O) solutions welcomed but for the time being I dealt with the issue this way; Made a login.php for the main site to redirect back to the main page. eg: PHP Code:
![]() Update 2: I figured out where I can fix the link. The full URL was needed in the STANDARD_ERROR template, though I reckon my solution is better for my purposes than template editing. Why divert people on the site to the forums, eh? Thanks for the tips, people. ![]() (Of course, when I open the forums again to public view, this issue will be trivial.) |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|