MyBB Community Forums

Full Version: Change php files name!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, i would change php pages name example: memberlist.php becomes --->  members.php then {$mybb->settings['bburl']}/memberlist.php becomes ---> {$mybb->settings['bburl']}/members.php

Thank you!
Search in memberlist.php for

define('THIS_SCRIPT', 'memberlist.php');

change to

define('THIS_SCRIPT', 'members.php');



add_breadcrumb($lang->nav_memberlist, "memberlist.php");

change to

add_breadcrumb($lang->nav_memberlist, "members.php");




$sorturl = htmlspecialchars_uni("memberlist.php?perpage={$mybb->input['perpage']}{$search_url}");
$search_url = htmlspecialchars_uni("memberlist.php?sort={$mybb->input['sort']}&order={$mybb->input['order']}&perpage={$mybb->input['perpage']}{$search_url}");

chamge to

$sorturl = htmlspecialchars_uni("members.php?perpage={$mybb->input['perpage']}{$search_url}");
$search_url = htmlspecialchars_uni("members.php?sort={$mybb->input['sort']}&order={$mybb->input['order']}&perpage={$mybb->input['perpage']}{$search_url}");



Open /inc/functions_online.php and search for

case "memberlist":
 $user_activity['activity'] = "memberlist";
 break;

change to

case "members":
 $user_activity['activity'] = "members";
 break;


// memberlist.php functions
 case "memberlist":
 $location_name = $lang->viewing_memberlist;
 break;

change to

// memberlist.php functions
 case "members":
 $location_name = $lang->viewing_memberlist;
 break;

You must change this variable $lang->viewing_memberlist in your languages file online.lang.php, eg,

$l['viewing_memberlist'] = "Viewing <a href=\"memberlist.php\">Member List</a>";

change to

$l['viewing_memberlist'] = "Viewing <a href=\"members.php\">Member List</a>";

Now change the top menu link in your header template "header_menu_memberlist"

<li><a href="{$mybb->settings['bburl']}/memberlist.php" class="memberlist">{$lang->toplinks_memberlist}</a></li>

change to

<li><a href="{$mybb->settings['bburl']}/members.php" class="memberlist">{$lang->toplinks_memberlist}</a></li>
(05-06-2017, 07:50 AM)MrBrechreiz Wrote: [ -> ]<- snip ->
Thank You !!!!!