The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
I have a custom application and I want to use vbull login user system. If they are not a member they can't access the resource. How do I do it?
|
#2
|
||||
|
||||
Please anyone??
|
#3
|
||||
|
||||
I dont know if this is what you are searching for. I did this with my chat. When someone is not registered they receive the template: error_nopermission_loggedout if they are a member they will c the template chat:
PHP Code:
|
#4
|
||||
|
||||
or an shorter way:
PHP Code:
|
#5
|
||||
|
||||
Thanks, you are my saviour.
|
#6
|
||||
|
||||
I manage to get this working but how do I forward it back fater login from the nopermission page back to 1.php instead it goes back to usercp.php
http://www.certifyexpress.com/exam/bea/1.php |
#7
|
||||
|
||||
Then you have 2 copy the content of the error_nopermission_loggedout template, make a new template and change this value:
<input type="hidden" name="url" value="/forum/usercp.php"> And also define in the script your new template name instead of error_nopermission_loggedout |
#8
|
||||
|
||||
I'm a little confuse.
Could you give me a sample template? |
#9
|
||||
|
||||
You have 2 make a new template. Put in the new template the same code as you have on the template: error_nopermission_loggedout
Now go 2 your new template and look for this line: <input type="hidden" name="url" value="$scriptpath"> And change that to: <input type="hidden" name="url" value="1.php"> Now link in your script to your new template name with the modification instead of referring to error_nopermission_loggedout. Its not tested but it should work |
#10
|
||||
|
||||
Thanks Lesane! I got it working now.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|