| Add a level [message #4829] |
Mon, 06 September 2010 07:42  |
firefly007  Messages: 79 Registered: May 2010 |
Seeder |
|
|
HI Im looking at install proxy script so our users will be able to browse internationally on there south African cap.
But i need to created a table or a legal so it will only be available to the group I choose.
thanks
Oh another thing could you give me a quick run down on the different variation. I know two of them
if($user->user)
if($user->admin)
thanks

http://www.gower.co.za
[Updated on: Mon, 06 September 2010 07:47] Report message to a moderator
|
|
|
| Re: Add a level [message #4831 is a reply to message #4829] |
Mon, 06 September 2010 08:29   |
|
Quote:HI Im looking at install proxy script so our users will be able to browse internationally on there south African cap.
But i need to created a table or a legal so it will only be available to the group I choose.
thanks
not quite sure what you mean here
Quote:
Oh another thing could you give me a quick run down on the different variation. I know two of them
if($user->user)
if($user->admin)
thanks
if ($user->user) echo "<code here>\n";
if ($user->premium) echo "<code here>\n";
if ($user->moderator) echo "<code here>\n";
if ($user->admin) echo "<code here>\n";
another way
below for user level view only and above
if ($user->user) {
echo "<code here>\n";
}
below for premium level view only and above
if ($user->premium) {
echo "<code here>\n";
}
below for moderator level view and above
if ($user->moderator) {
echo "<code here>\n";
}
below for admin level view and above
if ($user->admin) {
echo "<code here>\n";
}
p.s. you have my sites advert scrolling on your tleech theme, you need to take out
?>
<script language=javascript>
var rev = "fwd";
function titlebar(val)
{
var msg = <title><?= $title; ?>- Username:<? print("" . $user->name . "\n"); ?></title>;
var res = " ";
var speed = 100;
var pos = val;
msg = " Welcome To Place2BScene. SEED TILL YOU BLEED!!!!! "+msg+" - Your browser is ";
var le = msg.length;
if(rev == "fwd"){
if(pos < le){
pos = pos+1;
scroll = msg.substr(0,pos);
document.title = scroll;
timer = window.setTimeout("titlebar("+pos+")",speed);
}
else{
rev = "bwd";
timer = window.setTimeout("titlebar("+pos+")",speed);
}
}else{
if(pos > 0){
pos = pos-1;
var ale = le-pos;
scrol = msg.substr(ale,le);
document.title = scrol;
timer = window.setTimeout("titlebar("+pos+")",speed);
}
else{
rev = "fwd";
timer = window.setTimeout("titlebar("+pos+")",speed);
}
}
}
titlebar(0);
</script>
<?php
or edit: Welcome To Place2BScene. SEED TILL YOU BLEED!!!!!


For cheap, fast, reliable webhosting, please click here on my affiliate link!
[Updated on: Mon, 06 September 2010 08:30] Report message to a moderator
|
|
|
|
| Re: Add a level [message #4833 is a reply to message #4832] |
Mon, 06 September 2010 10:51   |
|
what are you making, what does it do, what do you want to controle. to add a new access point to levels. go to admin area/ levels, hit create new access and name it proxy_detect (or whatever you name it, ake sure to put _ between words so no spaces) , it will add this to all levels, you check and uncheck as you please.
then weaever you put code for proxy, just adde this
if(checkaccess("proxy_detect")){
code here
}


For cheap, fast, reliable webhosting, please click here on my affiliate link!
|
|
|
|
|
|
| Re: Add a level [message #4837 is a reply to message #4836] |
Mon, 06 September 2010 12:58   |
firefly007  Messages: 79 Registered: May 2010 |
Seeder |
|
|
thanks but im getting this error on both
Warning: include(kinghtml) [function.include]: failed to open stream: No such file or directory in /home/goweryhd/public_html/index.php on line 162
Warning: include(kinghtml) [function.include]: failed to open stream: No such file or directory in /home/goweryhd/public_html/index.php on line 162
Warning: include() [function.include]: Failed opening 'kinghtml' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/goweryhd/public_html/index.php on line 162
if(checkaccess("proxy_site")){
include king.html;
}
the file is in my root

http://www.gower.co.za
[Updated on: Mon, 06 September 2010 13:00] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|