[MyBB Tutorial] How to get Warnings in a category

Discussion in 'Member Articles & Tutorials' started by Trealix, Oct 24, 2011.

  1. Trealix

    Trealix Gamer

    Joined:
    Nov 19, 2010
    Messages:
    1,171
    Likes Received:
    198
    Location:
    London
    .
    Go to the warnings.php in you're forum directory, then find this...
    PHP:
    $db->insert_query("warnings"$new_warning); 
    Once you have found that then below it paste this...
    PHP:
    $plugins->run_hooks("warnings_do_warn_insert"); 
    Before uploading warnpost you will have to change 1 thing in the file which is the Forum ID and you just have to find ...
    PHP:
    /*********** CHANGE HERE ***********/

    $into_fid 2;  // Forum ID

    /***********************************/
    This was made by TheBod but improved by me and translated into English.

    If you have any problems or queries contact me ASAP
     

    Attached Files:

    Last edited by a moderator: Jan 6, 2014
    Brandon likes this.
  2. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    Thanks for the tutorial! :)
     
    Trealix likes this.
  3. Trealix

    Trealix Gamer

    Joined:
    Nov 19, 2010
    Messages:
    1,171
    Likes Received:
    198
    Location:
    London
    no problem I can now classify myself as a MyBB expert.
     
  4. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    I've never used mybb :p
    I've seen a few very nice styles from the review section.

    congrats on being an expert
     
  5. Yush Bhardwaj

    Yush Bhardwaj Regular Member

    Joined:
    Jul 29, 2010
    Messages:
    24
    Likes Received:
    3
    Location:
    India
    Nice tut
    let me check will it work or not.
     
    Trealix likes this.

Share This Page