![]() |
Yet Another vB Login on non-vB Page
This is not a plugin, nor is it a code modification. It is a separate script, so just configure the attached script, FTP it to wherever, and then call it from your browser. Once you test it out, you can edit the script to show whatever content you desire. Look at the code to see where to set your content. If you don't like this script, try mcahill's vB login on a non-vB page here.
If you use this script, click the install button. This allows you to receive update notices, should any be sent. It is also a nice way to say thanks! Fine Print: Obviously, use at your own risk. Support is not guaranteed. This script may not be redistributed! 25 Jul 2005: added $session to make_page_content global list |
Neat, I like how access is so easily controlled by the user group. I did notice that I had to slightly modify how I setup the path to my forums. My forum is in a folder called forums just below my docroot. If my example file is in the docroot (ie, above the forums folder) I had to set the full path as:
PHP Code:
|
One question on setting the usergroups. I can only seem to get it to work if that is the user's primary usergroup. Can it also check "Additional Usergroups"?
Thanks! |
@westpointer: try the attached...
|
Quote:
I've modified the code a little, setting a variable depending on whether or not the user is a member of the group: PHP Code:
PHP Code:
|
k, i like the look of this script. My problem is 2 fold, I don't need (or want) any usergroup support at the moment, I assume if i remove lines 95 -> 110 then this will solve that problem.
My 2nd problem is a touch more complex. I only want to display the welcome box (and be able to style it as I see fit). Looking at the code though it's calling the whole $header variable which is already made up by vb. What would I replace that with to meet my needs? |
@Snetty: You could just set UGS to all usergroup IDs to bypass the login page. As for what you want to display, just set $src_output as shown in the script.
|
How difficult would it be to expand this to something a little more complex?
What I'd like to see is something that:
|
@FASherman: you can do all of that. I was writing another example to show but haven't finished it yet. Thought I'd better fill in this post though. :speechless:
|
Is it possible to only show the small box that is on the right side of the navbar.
I want to extract data from the $navbar who do I do that? |
All times are GMT. The time now is 02:29 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|