![]() |
You would need to add another field to the usergroup table and a few lines to your usergroup.php and modify the show_nopermission code.
[sql]ALTER TABLE usergroup ADD canplotip SMALLINT (6)[/sql] Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Shouldn't this?:
Code:
makeyesnocode("Can view Plot IP?","canplotip,1"); Code:
makeyesnocode("Can view Plot IP?","canplotip",1); |
It does work both ways actually (which is odd, I done it the way I posted for a hack and it works), although the change you have made would be the correct way to do it ;)
|
Thank you. now, is the default set at on for usergroups or off?
|
By default it is off for all usergroups ;)
|
You forgot to tell me about this in the usergroups.php.
Code:
makeyesnocode("Can view Plot IP?","canplotip",$usergroup[canplotip]); |
Sorry Boofo, its 2AM here and I'm kinda tired, I forgot those sections from the text file, the other query you need to replace is:
PHP Code:
PHP Code:
|
That's ok, I found it and put it in there. :) Thanks for getting me that far though. Are you ready for this? I think I found a way to fix that error everyone keeps getting with the time problem. Since I moved it to the root dir, there are no more error showing up on the page and it comes up a lot faster now. The only thing is, the background of the page is white now instead of the Admin CP default. Any way to add that back in? Or some kind of background, anyway? Also, you said to take out the cpheader and cpfooter lines right? I want to make sure there is no security risk.
Also, when I was talking about the permissions, I meant the permissions to view IPs. It is probably better this way, but can it be made to just follow the View IP addresses permissions? |
Also, does anyone know how to have the IP address show in the getinfo template for the profile?
|
Quote:
Code:
<link rel="stylesheet" href="cp.css"> Quote:
Quote:
PHP Code:
|
All times are GMT. The time now is 04:23 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:
|