MyBB Community Forums

Full Version: Can anyone please give the patches of the following changes in global.php ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Recently in global.php i have added some codes that i needed , and the addition was successful. But i realise that i should fo this patches but i don't know how to use patches and i amn't so familiar with php. Please help me somebody.

The changes that i have made :-
1)

In line 472
after header_welcomeblock_member, i have added
header_onlyfor_users_area,

2)In line 507

after $modcplink = 
I have added $onlyforusers = 

3.)in line 525

after this 

 if($mybb->usergroup['canmodcp'] == 1)
 {
  eval('$modcplink = "'.$templates->get('header_welcomeblock_member_moderator').'";');
 }

i have added if($mybb->usergroup['canusercp'] == 1)
 {
	
 eval('$onlyforusers = "'.$templates->get('header_onlyfor_users_area').'";');
}


please help me someone.
Do.
Not.
Edit.
Core.
Files.
(2021-08-20, 10:01 PM)Crazycat Wrote: [ -> ]Do.
Not.
Edit.
Core.
Files.

i have installed this Plugin https://github.com/frostschutz/MyBB-Patches

I want to edit files through it , that if any error occurs in future the changes can be undone by with just a click. But i don't know how to use it.

I managed to get it done. I did it . here is the patches.
[attachment=44301]