Members   Search      Help    Register    Login    Home
Home » Support Forums for PMBT 2.X » Feature Request for 2.X » Add a level
Add a level [message #4829] Mon, 06 September 2010 07:42 Go to next message
firefly007 is currently offline firefly007  South Africa
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


[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 Go to previous messageGo to next message
Daffy is currently offline Daffy  France
Messages: 359
Registered: October 2009
Location: uk
Releaser

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!!!!!


[Updated on: Mon, 06 September 2010 08:30]

Report message to a moderator

Re: Add a level [message #4832 is a reply to message #4831] Mon, 06 September 2010 09:25 Go to previous messageGo to next message
firefly007 is currently offline firefly007  South Africa
Messages: 79
Registered: May 2010
Seeder
thanks daff will do

You know in the admin panel user levels i want to add a off of on function for my proxy area


Re: Add a level [message #4833 is a reply to message #4832] Mon, 06 September 2010 10:51 Go to previous messageGo to next message
Daffy is currently offline Daffy  France
Messages: 359
Registered: October 2009
Location: uk
Releaser

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
}


Re: Add a level [message #4834 is a reply to message #4833] Mon, 06 September 2010 11:55 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
Daffy's the man err Duck? Laughing Laughing

http://a.imageshack.us/img831/5562/mybikes.png
Re: Add a level [message #4835 is a reply to message #4833] Mon, 06 September 2010 12:03 Go to previous messageGo to next message
firefly007 is currently offline firefly007  South Africa
Messages: 79
Registered: May 2010
Seeder
is it possable to add a access level to a include function ?
and if so ho do I do it?


Re: Add a level [message #4836 is a reply to message #4835] Mon, 06 September 2010 12:21 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
if(checkaccess("proxy_detect")){
include page.php;
}



or


if(checkaccess("proxy_detect"))include page.php;


http://a.imageshack.us/img831/5562/mybikes.png
Re: Add a level [message #4837 is a reply to message #4836] Mon, 06 September 2010 12:58 Go to previous messageGo to next message
firefly007 is currently offline firefly007  South Africa
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


[Updated on: Mon, 06 September 2010 13:00]

Report message to a moderator

Re: Add a level [message #4838 is a reply to message #4837] Mon, 06 September 2010 13:15 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
try this
if(checkaccess("proxy_site")){
include "king.html";
}


http://a.imageshack.us/img831/5562/mybikes.png

[Updated on: Mon, 06 September 2010 13:15]

Report message to a moderator

Re: Add a level [message #4839 is a reply to message #4838] Mon, 06 September 2010 14:41 Go to previous messageGo to next message
Daffy is currently offline Daffy  France
Messages: 359
Registered: October 2009
Location: uk
Releaser

joeroberts wrote on Mon, 06 September 2010 13:15
try this
if(checkaccess("proxy_site")){
include "king.html";
}


for strange reason still error, try

if(checkaccess("proxy_site")){
include ("torrents-needseed.php");
}


but you really need to go through your coding/editing mate, as there is alot of mess around.


Re: Add a level [message #4868 is a reply to message #4839] Fri, 10 September 2010 20:30 Go to previous messageGo to next message
firefly007 is currently offline firefly007  South Africa
Messages: 79
Registered: May 2010
Seeder
Hi Im getting a error with this on my root wats wrong with it

if(checkaccess("proxy_site")){
include ("proxy.php");
}


Re: Add a level [message #4870 is a reply to message #4868] Sat, 11 September 2010 02:26 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
what error are you getting??

http://a.imageshack.us/img831/5562/mybikes.png
Re: Add a level [message #4871 is a reply to message #4870] Sat, 11 September 2010 10:06 Go to previous messageGo to next message
firefly007 is currently offline firefly007  South Africa
Messages: 79
Registered: May 2010
Seeder
if(checkaccess("on_poll")){
include ("include/poll.php");
}

why is this not working


Re: Add a level [message #4874 is a reply to message #4871] Sat, 11 September 2010 12:22 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
1 did you create the access in admin level?
2 did you set your self to to true? (as owner you need to do it in data base.)


http://a.imageshack.us/img831/5562/mybikes.png
Re: Add a level [message #4875 is a reply to message #4874] Sat, 11 September 2010 13:12 Go to previous messageGo to next message
Daffy is currently offline Daffy  France
Messages: 359
Registered: October 2009
Location: uk
Releaser

joeroberts wrote on Sat, 11 September 2010 12:22
1 did you create the access in admin level?
2 did you set your self to to true? (as owner you need to do it in data base.)


i rekon he didnt do number 2 lol


Re: Add a level [message #4879 is a reply to message #4875] Sat, 11 September 2010 17:37 Go to previous messageGo to next message
firefly007 is currently offline firefly007  South Africa
Messages: 79
Registered: May 2010
Seeder
how to add a new Access Level

Re: Add a level [message #4880 is a reply to message #4879] Sat, 11 September 2010 19:00 Go to previous message
Daffy is currently offline Daffy  France
Messages: 359
Registered: October 2009
Location: uk
Releaser

i believe it is already there. admin, levels, create level or create access level

Previous Topic:customizing registration
Next Topic:Registration Approval
Goto Forum:
  


Current Time: Wed Feb 08 12:24:04 GMT 2012

Total time taken to generate the page: 0.00934 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software