![]() |
Hello again folks.
A little history first if I may...... I am trying to make a private files page integrate with my forum. I previously did the chat hack that basically adds a complete extra set of templates renamed and created a forum called "Private Files"....put my code in the forumdisplay template...and used access masks to allow access. I recently found an updated process for integrating jIRC into the vbulletin with a simple php script and one custom template. This works perfect at checking for logged in status for entry. I also made my regular files page by using this method which works perfect too at ensuring that the visitor be a logged in member. I now am trying to make my private files page use this method but I needed to be able to control who could access it. Here's what I did..... 1) I created a custom template named "main_privatefiles" 2) I created a usergroup called "Site Supporter/Files" (I already have the perks hack installed with a usergroup called "Site Supporter") 3) I added in the modified perks hack code to recognise the new usergroup and it worked perfectly. 4) I tried to modify the main_chat.php script to authorize usergroupid 11 (which is the :Site Supporter/Files" usergroup but there is where the problem came up. This is what the php script that looks for logged in or error_nopermission...I apologise to the author because I don't remember who it was to give credit PHP Code:
This allows admin, mods, super mods and my new "Site Supporter/Files" usergroups to access the page and every other group gets the nopermission page. I have created two new templates called "error_nopermission_private_loggedin" and "error_nopermission_private_loggedout" and added the evals to the global.php in the "parse other global templates" area. It looks like this: PHP Code:
PHP Code:
Can anyone help me make it use both templates like it should? |
nobody?
|
All times are GMT. The time now is 08:42 AM. |
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:
|