Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 41
  1. #16
    hackinet4's Avatar
    Join Date
    Dec 2017
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Silent View Post


    i always thought vb rebuilt everything every major update, or atleast change A LOT of the inner-workings. i could be wrong. (they sell each vb major version separated, or atleast they used to)

    and you'll probably get some php compatibility issues.
    No they don't update the core code, they just keep adding new features. There was only 1 major update from v3.x to v4.x, and it was the template part. I don't think it(but maybe? who knows ) would be a PHP compatibility issue as the hooks and objects haven't been touched. Here are the version logs: https://en.wikipedia.org/wiki/VBulletin#vBulletin_4 (can't link to the official release notes as they require you to be a paid customer)
    Last edited by hackinet4; 01-02-2018 at 12:26 PM.

  2. #17
    Silent's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    5,070
    Reputation
    2172
    Thanks
    8,474
    My Mood
    Bitchy
    Quote Originally Posted by hackinet4 View Post
    No they don't update the core code, they just keep adding new features. There was only 1 major update from v3.x to v4.x, and it was the template part. I don't think it(but maybe? who know ) would be a PHP compatibility issue as the hooks and objects haven't been touched. Here are the version logs: https://en.wikipedia.org/wiki/VBulletin#vBulletin_4 (can't link to the official release notes as they require you to be a paid customer)
    I'm not that familiar with vB. As for the PHP compatibility thing I mentioned, I thought PHP changed the class constructors in 5.4.
    Click Here to visit the official MPGH wiki! Keep up with the latest news and information on games and MPGH! To check out pages dedicated to games, see the links below!











    dd/mm/yyyy
    Member - 31/01/2015
    Premium - 12/09/2016
    Call of Duty minion - 05/11/2016 - 05/11/2019
    BattleOn minion - 28/02/2017 - 05/11/2019
    Battlefield minion - 30/05/2017 - 05/11/2019
    Other Semi-Popular First Person Shooter Hacks minion - 21/09/2017 - 17/09/2019
    Publicist - 07/11/2017 - 02/08/2018
    Cock Sucker - 01/12/2017 - Unknown
    Minion+ - 06/03/2018 - 05/11/2019
    Fortnite minion - 08/05/2018 - 05/11/2019
    Head Publicist - 08/10/2018 - 10/01/2020
    Developer Team - 26/10/2019 - 10/01/2020
    Former Staff - 10/01/2020



  3. #18
    hackinet4's Avatar
    Join Date
    Dec 2017
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Silent View Post


    I'm not that familiar with vB. As for the PHP compatibility thing I mentioned, I thought PHP changed the class constructors in 5.4.
    Me neither.
    And Unless the vB is using PHP v7.x there shoudn't be a problem with compatibility issues relating to that of constructors because

    and on the other hand this vB plugin doesn't use constructors.

  4. #19
    Silent's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    5,070
    Reputation
    2172
    Thanks
    8,474
    My Mood
    Bitchy
    Quote Originally Posted by hackinet4 View Post
    Me neither.
    And Unless the vB is using PHP v7.x there shoudn't be a problem with compatibility issues relating to that of constructors because

    and on the other hand this vB plugin doesn't use constructors.
    yah ik about the php 7 constructor update, but I thought there was a much littler update to the constructors around 5.4, must be misremembering xd

    php is a mess.
    Click Here to visit the official MPGH wiki! Keep up with the latest news and information on games and MPGH! To check out pages dedicated to games, see the links below!











    dd/mm/yyyy
    Member - 31/01/2015
    Premium - 12/09/2016
    Call of Duty minion - 05/11/2016 - 05/11/2019
    BattleOn minion - 28/02/2017 - 05/11/2019
    Battlefield minion - 30/05/2017 - 05/11/2019
    Other Semi-Popular First Person Shooter Hacks minion - 21/09/2017 - 17/09/2019
    Publicist - 07/11/2017 - 02/08/2018
    Cock Sucker - 01/12/2017 - Unknown
    Minion+ - 06/03/2018 - 05/11/2019
    Fortnite minion - 08/05/2018 - 05/11/2019
    Head Publicist - 08/10/2018 - 10/01/2020
    Developer Team - 26/10/2019 - 10/01/2020
    Former Staff - 10/01/2020



  5. #20
    hackinet4's Avatar
    Join Date
    Dec 2017
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Silent View Post


    yah ik about the php 7 constructor update, but I thought there was a much littler update to the constructors around 5.4, must be misremembering xd

    php is a mess.
    No you are absolutely right. The new unified constructor
    Code:
    void __construct ([ mixed $args [, $... ]] )
    was implemented in PHP5 as you said above. What I meant is that this new method is necessary for PHP7.

  6. #21
    thoughtful's Avatar
    Join Date
    Nov 2017
    Gender
    male
    Location
    Canada
    Posts
    471
    Reputation
    30
    Thanks
    118
    My Mood
    Relaxed
    Quote Originally Posted by BabyCrazy View Post
    I think it should be way more easier to view why a user is banned and this is a possible way:
    when you hover over someones "BANNED" it should have a little statement or a sentence of why ban was placed.

    I honestly think that it should be easily accessible instead of us having to investigate & look through the ban requests.

    Should this be a thing? why isn't it a thing?
    I agree with this 100%

  7. #22
    BabyCrazy's Avatar
    Join Date
    Oct 2017
    Gender
    male
    Location
    User Services
    Posts
    1,098
    Reputation
    27
    Thanks
    91
    My Mood
    Blah

  8. #23
    Dave84311's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    The Wild Wild West
    Posts
    35,837
    Reputation
    5782
    Thanks
    41,292
    My Mood
    Devilish
    vbulletin 3 plugins are NOT compatible with vbulletin 4 plugins





    THE EYE OF AN ADMINISTRATOR IS UPON YOU. ANY WRONG YOU DO IM GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE IM GONNA BE


    "First they ignore you. Then they laugh at you. Then they fight you. Then you lose.” - Dave84311

    HAVING VIRTUAL DETOX

  9. The Following User Says Thank You to Dave84311 For This Useful Post:

    Silent (01-05-2018)

  10. #24
    BabyCrazy's Avatar
    Join Date
    Oct 2017
    Gender
    male
    Location
    User Services
    Posts
    1,098
    Reputation
    27
    Thanks
    91
    My Mood
    Blah
    @Dave84311

    Couldn’t it Have a “banned: Scam” above image title.
    Last edited by BabyCrazy; 01-05-2018 at 05:56 AM.

  11. #25
    Silent's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    5,070
    Reputation
    2172
    Thanks
    8,474
    My Mood
    Bitchy
    @ @Dave84311

    Hook location: fetch_musername

    Code:
    if ($user['usergroupid'] == /* Banned Usergroup... Hardcoding... */ 8) {
    	if(isset($GLOBAL['TITLE-CACHE'][$user['userid']])) {
    		$user['usertitle'] = $GLOBAL['TITLE-CACHE'][$user['userid']];
    	}
    	else {
    		$query = "
    		SELECT
    			(
    				SELECT `username`
    				FROM ".TABLE_PREFIX."user
    				WHERE userid = ub_table.adminid
    				LIMIT 1
    			) AS username,
    			ub_table.bandate,
    			ub_table.liftdate,
    			ub_table.reason
    		FROM ".TABLE_PREFIX."userban AS ub_table
    		WHERE
    			ub_table.userid = " . intval($user['userid']) ."
    		ORDER BY ub_table.bandate DESC
    		LIMIT 1";
    		
    		$result = $vbulletin->db->query_first_slave($query);
    		
    		
    		if($result !== false) {
    			$user['usertitle'] = "Banned by <u>".htmlentities($result['username'])."</u>";
    			$user['usertitle'] .= "<br />For <u>".htmlentities($result['reason'])."</u>";
    			
    			if($result['liftdate'] > 0) {
    				$user['usertitle'] .= "<br />Set to expire <u>".vbdate($vbulletin->options['dateformat'] . ', ' . $vbulletin->options['timeformat'], $result['liftdate'])."</u>";
    			}
    			
    			$GLOBAL['TITLE-CACHE'][$user['userid']] = $user['usertitle'];
    		}
    	}
    }
    tested in vb 4.2.5 (didn't want to reconfigure apache to test)

    duration bans:


    perma bans:


    could be (a lot) more efficient, but i cba. it only took like 5 minutes to make plus the time it took to install vb.

    edit: the hook caller can be found in functions.php @ method fetch_musername (ss of method this hook is called from https://s.msger.us/i/3c9a1e22jLRp.png )
    Last edited by Silent; 01-05-2018 at 01:14 PM. Reason: thought the ban model was different
    Click Here to visit the official MPGH wiki! Keep up with the latest news and information on games and MPGH! To check out pages dedicated to games, see the links below!











    dd/mm/yyyy
    Member - 31/01/2015
    Premium - 12/09/2016
    Call of Duty minion - 05/11/2016 - 05/11/2019
    BattleOn minion - 28/02/2017 - 05/11/2019
    Battlefield minion - 30/05/2017 - 05/11/2019
    Other Semi-Popular First Person Shooter Hacks minion - 21/09/2017 - 17/09/2019
    Publicist - 07/11/2017 - 02/08/2018
    Cock Sucker - 01/12/2017 - Unknown
    Minion+ - 06/03/2018 - 05/11/2019
    Fortnite minion - 08/05/2018 - 05/11/2019
    Head Publicist - 08/10/2018 - 10/01/2020
    Developer Team - 26/10/2019 - 10/01/2020
    Former Staff - 10/01/2020



  12. The Following 4 Users Say Thank You to Silent For This Useful Post:

    BabyCrazy (01-05-2018),[MPGH]Dave84311 (01-05-2018),Hackinet (03-26-2018),hackinet4 (01-16-2018)

  13. #26
    BabyCrazy's Avatar
    Join Date
    Oct 2017
    Gender
    male
    Location
    User Services
    Posts
    1,098
    Reputation
    27
    Thanks
    91
    My Mood
    Blah
    @Dave84311 update?

  14. #27
    Silent's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    5,070
    Reputation
    2172
    Thanks
    8,474
    My Mood
    Bitchy
    Quote Originally Posted by BabyCrazy View Post
    @Dave84311 update?
    if he implements mine, he will have to add a simple filter for account purges and a few other things. I'd be happy to update it to make it more suited for this forum, but I'm not going to spend time on it if it's not going to be used.

    edit: I got no life...

    Code:
    if ($user['usergroupid'] == /* Banned Usergroup... Hardcoding... */ 8) {
    	if(isset($GLOBAL['TITLE-CACHE'][$user['userid']])) {
    		$user['usertitle'] = $GLOBAL['TITLE-CACHE'][$user['userid']];
    	}
    	else {
    		$query = "
    		SELECT
    			(
    				SELECT `username`
    				FROM ".TABLE_PREFIX."user
    				WHERE userid = ub_table.adminid
    				LIMIT 1
    			) AS username,
    			ub_table.adminid,
    			ub_table.bandate,
    			ub_table.liftdate,
    			ub_table.reason
    		FROM ".TABLE_PREFIX."userban AS ub_table
    		WHERE
    			ub_table.userid = ". intval($user['userid']) ."
    		ORDER BY ub_table.bandate DESC
    		LIMIT 1";
    		
    		$result = $vbulletin->db->query_first_slave($query);
    		
    		
    		if($result !== false) {
    			$user['usertitle'] = "Banned by <a href=\"member.php?u={$result[adminid]}\">". htmlentities($result['username']) ."</a>";
    			
    			
    			// Add custom censor here...
    			$censored = (strpos($result['reason'], "Account purge requested") !== false);
    			
    			
    			if(!$censored) {
    				$user['usertitle'] .= "<br />For <u>". htmlentities($result['reason']) ."</u>";
    			}
    			
    			
    			if($result['liftdate'] > 0) {
    				$user['usertitle'] .= "<br />Set to expire <u>". vbdate($vbulletin->options['dateformat'] . ', ' . $vbulletin->options['timeformat'], $result['liftdate']) ."</u>";
    			}
    			
    			
    			$GLOBAL['TITLE-CACHE'][$user['userid']] = $user['usertitle'];
    		}
    	}
    }
    With censor:


    Without:


    And the duration is still the same.
    Last edited by Silent; 01-08-2018 at 09:44 PM.
    Click Here to visit the official MPGH wiki! Keep up with the latest news and information on games and MPGH! To check out pages dedicated to games, see the links below!











    dd/mm/yyyy
    Member - 31/01/2015
    Premium - 12/09/2016
    Call of Duty minion - 05/11/2016 - 05/11/2019
    BattleOn minion - 28/02/2017 - 05/11/2019
    Battlefield minion - 30/05/2017 - 05/11/2019
    Other Semi-Popular First Person Shooter Hacks minion - 21/09/2017 - 17/09/2019
    Publicist - 07/11/2017 - 02/08/2018
    Cock Sucker - 01/12/2017 - Unknown
    Minion+ - 06/03/2018 - 05/11/2019
    Fortnite minion - 08/05/2018 - 05/11/2019
    Head Publicist - 08/10/2018 - 10/01/2020
    Developer Team - 26/10/2019 - 10/01/2020
    Former Staff - 10/01/2020



  15. The Following 4 Users Say Thank You to Silent For This Useful Post:

    BabyCrazy (01-12-2018),Hackinet (03-26-2018),Matthew (01-09-2018),Vader (01-09-2018)

  16. #28
    Destiny's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Location
    -_-
    Posts
    669
    Reputation
    86
    Thanks
    887
    My Mood
    Devilish
    If it will come it could be very useful

  17. #29
    coolchad's Avatar
    Join Date
    Jan 2018
    Gender
    male
    Posts
    159
    Reputation
    10
    Thanks
    4
    My Mood
    Cool
    Good idea.

  18. #30
    BabyCrazy's Avatar
    Join Date
    Oct 2017
    Gender
    male
    Location
    User Services
    Posts
    1,098
    Reputation
    27
    Thanks
    91
    My Mood
    Blah
    @Dave84311

    update??

  19. The Following User Says Thank You to BabyCrazy For This Useful Post:

    Dama (01-17-2018)

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. No reason for ban i'm notsome
    By ujhasdlkasdhi in forum Staff Disputes
    Replies: 1
    Last Post: 04-29-2015, 07:03 AM
  2. Invalid Reason for Banning My Account
    By Chuck v2 in forum Staff Disputes
    Replies: 5
    Last Post: 10-11-2011, 01:08 PM
  3. NubzGetsKillz Is now banned Reason why and more information in the OP!
    By danomark in forum Combat Arms Discussions
    Replies: 1
    Last Post: 02-24-2011, 11:32 PM
  4. Banned without a reason for posting an offer
    By __WiiRTuAlL in forum CrossFire Help
    Replies: 4
    Last Post: 11-01-2010, 06:12 AM
  5. Reason for Ban
    By Sam The Kid in forum WarRock Skinning
    Replies: 10
    Last Post: 08-19-2010, 02:55 AM