Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 35
  1. #21
    Yeah, just under a year and your point is? Why start another thread when we have a perfectly good working one here ie not locked? Now back to the topic which isnt when the last post was please

  2. #22
    Intermediate
    Join Date
    Mar 2009
    Location
    Manchester, England
    Posts
    2,693
    Blog Entries
    9
    My point is that if this topic was still relavent, people would have posted in it in that year it has been dead. It probably would have been better to open a new topic. P.S, no old topics get locked if which, we have previously asked for it to be done, which was refused.

    Retired Developer, Looking to finish this project though...

    Project: 'What are you wearing': 2%

    W3Theory Hosting

    Dont trust things you read on the internet - Abraham Lincoln

  3. #23
    Quote Originally Posted by KyleMassacre View Post
    This didnt work for me unless im just not seeing it but here is my code
    What errors are you getting?

    Quote Originally Posted by Danny696 View Post
    Look when the last post was before posting.
    Since it's asking for support on the same things as the rest of the thread there is nothing "wrong" with it...

  4. #24
    Error: This script requires an action.

  5. #25
    You need to edit the link;

    I'm unsure what the actual case name is, so;
    - Open the file.
    - Find the case section of the file
    - Find the case name of the function you want to link to
    - Edit the link
    (Normally, McCodes uses this <a href='file.php?action=casename'>Something</a>)

    Personally, I don't like the default case returning that error, it would be so much more user friendly if it returned links to the functions...

    sniko.net (Blog posts, thoughts, dabbles.)
    By not trying your best you're sacrificing the gift of success
    - sniko

  6. #26
    well here are my cases:

    and i assume its the "userlevelform" cause that is where i get the error:

  7. #27
    Beginner Mystical's Avatar
    Join Date
    Jan 2011
    Location
    Sunny South Carolina
    Posts
    263
    All you have to do is this. You do not need to replace anything else.


    Replace this:

    function userlevel() {
    global $db,$ir,$c,$h,$userid;
    $_GET['level'] = ( isset($_GET['level'])&&in_array($_POST['level'], array(1,2,3,4,5)) )?abs(intval($_GET['level'])):1;
    $_GET['ID'] = ( isset($_GET['ID'])&&is_numeric($_GET['ID']) )?abs(intval($_GET['ID'])):'';
    $d = $db->query('SELECT `userid` FROM `users` WHERE `userid` = '.$_POST['ID']);
    if ( $db->num_rows($d) == 0 ) {
    echo 'Invalid user.<br />&gt; <a href="staff_special.php?action=userlevelform">Go Home</a>';
    die($h->endpage());



    With this:

    function userlevel() {
    global $db,$ir,$c,$h,$userid;
    $_GET['level'] = ( isset($_GET['level'])&&in_array($_GET['level'], array(1,2,3,4,5)) )?abs(intval($_GET['level'])):1;
    $_GET['ID'] = ( isset($_GET['ID'])&&is_numeric($_GET['ID']) )?abs(intval($_GET['ID'])):'';
    $d = $db->query('SELECT `userid` FROM `users` WHERE `userid` = '.$_GET['ID']);
    if ( $db->num_rows($d) == 0 ) {
    echo 'Invalid user.<br />&gt; <a href="staff_special.php?action=userlevelform">Go Home</a>';
    die($h->endpage());


    The fix was posted by lucky3809 in this thread.....
    Last edited by Mystical; 02-20-2012 at 12:09 PM.
    99 Cents a month web hosting! Pay as you go...
    http://www.scottdalehosting.com/whmcs/aff.php?aff=009

  8. #28
    Quote Originally Posted by KyleMassacre View Post
    This didnt work for me unless im just not seeing it but here is my code
    Quote Originally Posted by Mystical View Post
    All you have to do is this. You do not need to replace anything else.


    Replace this:





    With this:




    The fix was posted by lucky3809 in this thread.....
    That is exactly what i have
    Last edited by KyleMassacre; 02-20-2012 at 10:50 PM. Reason: added code tags to look pretty

  9. #29
    Beginner Mystical's Avatar
    Join Date
    Jan 2011
    Location
    Sunny South Carolina
    Posts
    263
    Try the whole thing from lucky3809 post. It works fine for me using v.2.03
    99 Cents a month web hosting! Pay as you go...
    http://www.scottdalehosting.com/whmcs/aff.php?aff=009

  10. #30
    Its showing the exact same thing

Page 3 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •