Witam

Mam taki problem nie wiem jak zrobić zeby po kliknieciu w Profil albo PW przechodziło do danej osoby MIESIĄCA

Zainstalowałem ten plugin >> https://webboard.pl/thread-71804.html

Ponieważ w tym pluginie jest link innego forum i jakos inaczej jest ustawione próbuje zrobić to tak 

i to nic nie daje . dodaje tak samo link swojego forum jak dodał ktoś w pluginie


<?php
/**
* MyBB 1.8
* Member of the Month 2.0 stworzony przez ConeralSanders2 edytowany przez SeNioR
*/

// Disallow direct access to this file for security reasons
if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}


$plugins->add_hook("global_start", "usermiesiaca");

function usermiesiaca_info()
{
return array(
"name" => "Użytkownik miesiąca",
"description" => "Plugin wyświetla użytkownika miesiąca",
"website" => "",
"author" => "ConeralSanders2 & <a href=\"http://webmasteruj.pl\">SeNioR</a> Edit by <a href=\"http://fabryka-skilla.pl/member.php?action=profile&uid=1\">NoWay</a>",
'codename'      => "usermiesiaca",
"authorsite" => "",
"version" => "3.1",
"guid" => "",
"compatibility" => "*"
);
}

function usermiesiaca_install()
{

global $settings, $mybb, $db, $lang;
$lang->load("forum_user_miesiaca");

if($db->field_exists("usermiesiaca", "users"))
{
$db->write_query("ALTER TABLE ".TABLE_PREFIX."users DROP usermiesiaca");
}

$lang->load("forum_user_miesiaca");

   $usermiesiaca_group = array(
"gid" => "NULL",
"name" => "usermiesiaca",
"title" => "{$lang->usermiesiaca}",
"description"   => "{$lang->usermiesiaca_desc}",
"disporder" => "3",
"isdefault" => "no",
);
$db->insert_query("settinggroups", $usermiesiaca_group);

$gid = $db->insert_id();

$usermiesiaca_setting_1 = array(
"sid" => "NULL",
"name" => "usermiesiacawinner",
"title" => "{$lang->usermiesiaca_fwinner}",
"description" => "{$lang->usermiesiaca_desc_fwinner}",
"optionscode" => "text",
"value" => "",
"disporder" => "3",
"gid" => intval($gid),
);

$usermiesiaca_setting_2 = array(
"sid" => "NULL",
"name" => "usermiesiacawimg",
"title" => "{$lang->usermiesiaca_fimg}",
"description" => "{$lang->usermiesiaca_desc_fimg}",
"optionscode" => "text",
"value" => "",
"disporder" => "5",
"gid" => intval($gid),
);

$usermiesiaca_setting_3 = array(
"sid" => "NULL",
"name" => "usermiesiacawid",
"title" => "{$lang->usermiesiaca_fwid}",
"description" => "{$lang->usermiesiaca_desc_fwid}",
"optionscode" => "text",
"value" => "",
"disporder" => "4",
"gid" => intval($gid),
);
$usermiesiaca_setting_4 = array(
"sid" => "NULL",
"name" => "usermiesiaca_show",
"title" => "{$lang->usermiesiaca_show}",
"description" => "{$lang->usermiesiaca_desc_show}",
"optionscode" => "yesno",
"value" => "no",
"disporder" => "0",
"gid" => intval($gid),
);
$db->insert_query("settings", $usermiesiaca_setting_1);
$db->insert_query("settings", $usermiesiaca_setting_2);
$db->insert_query("settings", $usermiesiaca_setting_3);
$db->insert_query("settings", $usermiesiaca_setting_4);

$db->write_query("ALTER TABLE ".TABLE_PREFIX."users ADD usermiesiaca int NOT NULL default 0");

rebuild_settings();

}

function usermiesiaca_is_installed()
{
global $db;

if($db->field_exists("usermiesiaca", "users"))
{
return true;
}

return false;
}

function usermiesiaca_activate()
{
global $db;

include MYBB_ROOT."/inc/adminfunctions_templates.php";

find_replace_templatesets("index", "#".preg_quote("{\$boardstats}")."#i", "{\$boardstats}\r\n{\$usermiesiaca}");
}

function usermiesiaca_deactivate()
{
global $db;

include MYBB_ROOT."/inc/adminfunctions_templates.php";
find_replace_templatesets("index", "#".preg_quote("\r\n{\$usermiesiaca}")."#i", "", 0);
}

function usermiesiaca_uninstall()
{
global $db;

if($db->field_exists("usermiesiaca", "users"))
{
$db->write_query("ALTER TABLE ".TABLE_PREFIX."users DROP usermiesiaca");
}
$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='usermiesiacawinner'");
$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='usermiesiacawimg'");
$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='usermiesiacawid'");
$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='usermiesiaca_show'");
$db->query("DELETE FROM ".TABLE_PREFIX."settinggroups WHERE name='usermiesiaca'");

rebuild_settings();

$db->delete_query("templates", "title = 'usermiesiaca'");
}

function usermiesiaca()
{

/* DODATKOWE */

/* miesiąc  Nie potrzebne*/
$miesiace = array('01' => 'Styczeń', '02' => 'Luty', '03' => 'Marzec', '04' => 'Kwiecień', '05' => 'Maj', '06' => 'Czerwiec', '07' => 'Lipiec', '08' =>'Sierpień', '09' => 'Wrzesień', '10' => 'Październik', '11' => 'Listopad', '12' => 'Grudzień');
$data = $miesiace[date('m')].' '.date('Y').'';


global $mybb, $db, $usermiesiaca, $theme, $lang;

$lang->load('user_miesiaca');
if ($mybb->settings['usermiesiaca_show'] == 0)
{
return true;
}
else
{
/* avatar i id */
$id_usera = $mybb->settings['usermiesiacawid'];
$av = get_user("$id_usera");
$czasonline = nice_time($av['timeonline']);

/* lang do koncowki post posty postow */
if ($av['postnum'] == 1){
$postow = 'post';
}
elseif($av['postnum'] == 2 or $av['postnum'] ==  3 or $av['postnum'] == 4){
$postow = 'posty';
}
else{
$postow = 'postów';
}

if ($av['threadnum'] == 1){
$tematow = 'temat';
}
elseif($av['threadnum'] == 2 or $av['threadnum'] ==  3 or $av['threadnum'] == 4){
$tematow = 'tematy';
}
else{
$tematow = 'tematów';
}

if ($av['reputation'] == 1){
$punktow = 'punkt';
}
elseif($av['reputation'] == 2 or $av['reputation'] ==  3 or $av['reputation'] == 4){
$punktow = 'punkty';
}
else{
$punktow = 'punktów';
}


if ($mybb->settings['usermiesiacawimg'] == NULL){
$obrazek = '';
}
else{
$obrazek = "<img alt=\"{$mybb->settings['usermiesiacawinner']}\" style=\"vertical-align:middle; width:16px; height:16px;\" src=\"{$mybb->settings['usermiesiacawimg']}\">";
}

if ($av['avatar'] == NULL){
$avataros = 'http://i1.webmasteruj.pl/avatar.png';
}
else{
$avataros = "{$av['avatar']}";
}


$usermiesiaca="
<table  border=\"0\" cellspacing=\"{$theme['borderwidth']}\" cellpadding=\"{$theme['tablespace']}\" class=\"tborder\">

<tr>
  <td class=\"thead\">
 
      {$lang->usermiesiaca_title}
  </td>
</tr>
<tr>
  <td class=\"trow2\" >
<img title=\"{$mybb->settings['usermiesiacawinner']}\" alt=\"{$mybb->settings['usermiesiacawinner']}\" style=\"float:left; padding:5px; width:100px; height:100px;margin-left:0px;margin-top: 0px; \" src=\" {$avataros}\">
<span style=\"float: right;widthmargin-right: 5px;\">Użytkownik miesiąca:  <span style=\"background-color:green;display: inline-block;line-height: 19px;padding: 0 5px;font-size: 13px;font-weight: bold;font-weight: bold;box-shadow: 0px 1px 1px rgba(255,255,255,0.1) inset, 0px 0px 2px rgba(0,0,0,0.2);text-shadow: 0 1px 1px rgba(0,0,0,0.4);color: #fff;border-radius: 4px;vertical-align: middle;\"> <strong>Marzec - 2017</strong></span>
 <div></div></span>

<br />
<div style=\"border-bottom: 0.5px solid red;margin-top:8px;margin-left:7px;\"></div>

<span style=\"margin-left:120px;margin-top:0;\"><center>Gratulacje dla <strong>{$mybb->settings['usermiesiacawinner']}</strong>, naszego nowego Użytkownika Miesiąca.<br>Zarejestrował sie jako <strong>{$mybb->settings['usermiesiacawid']}</strong> osoba. Napisał <strong>{$av['postnum']}</strong> <strong> {$postow}.Czynnie brał udział w życiu Forum. Posiada {$av['reputation']} {$punktow} reputacji <br>Pozdrawiamy i Życzymy dalszych sukcesów Administracja <span style=\"color:red;\">{$mybb->settings[bbname]}</span></span>
 <span style=\"clear:both;width:97px; text-align:center;margin-left:1.5px;margin-top:6px;float:left;background-color:green;display: inline-block;line-height: 19px;padding: 0 5px;font-size: 10px;font-weight: bold;font-weight: bold;box-shadow: 0px 1px 1px rgba(255,255,255,0.1) inset, 0px 0px 2px rgba(0,0,0,0.2);text-shadow: 0 1px 1px rgba(0,0,0,0.4);color: #fff;border-radius: 4px;vertical-align: middle;\"><a href=\"http://fabryka-skilla.pl.pl/private.php?action=send&uid={$mybb->settings['usermiesiacawid']}\">Wyślij PW</a></span></span>
 
 <span style=\"text-align:center;margin-right:12px;float:right;background-color:#7ba60d;display: inline-block;line-height: 19px;padding: 0 5px;font-size: 12px;font-weight: bold;font-weight: bold;box-shadow: 0px 1px 1px rgba(255,255,255,0.1) inset, 0px 0px 2px rgba(0,0,0,0.2);text-shadow: 0 1px 1px rgba(0,0,0,0.4);color: #fff;border-radius: 4px;vertical-align: middle;\"><a href=\"http://fabryka-skilla.pl.pl/member.php?action=profile&uid={$mybb->settings['usermiesiacawid']}\">Profil</a></span></span>
 <span style=\"text-align:center;margin-right:12px;float:right;background-color:#7ba60d;display: inline-block;line-height: 19px;padding: 0 5px;font-size: 12px;font-weight: bold;font-weight: bold;box-shadow: 0px 1px 1px rgba(255,255,255,0.1) inset, 0px 0px 2px rgba(0,0,0,0.2);text-shadow: 0 1px 1px rgba(0,0,0,0.4);color: #fff;border-radius: 4px;vertical-align: middle;\">Napisał {$av['postnum']} {$postow}</span></span>
 <span style=\"text-align:center;margin-right:12px;float:right;background-color:#7ba60d;display: inline-block;line-height: 19px;padding: 0 5px;font-size: 12px;font-weight: bold;font-weight: bold;box-shadow: 0px 1px 1px rgba(255,255,255,0.1) inset, 0px 0px 2px rgba(0,0,0,0.2);text-shadow: 0 1px 1px rgba(0,0,0,0.4);color: #fff;border-radius: 4px;vertical-align: middle;\">Napisał {$av['threadnum']} {$tematow}</span></span>
 <span style=\"text-align:center;margin-right:12px;float:right;background-color:#7ba60d;display: inline-block;line-height: 19px;padding: 0 5px;font-size: 12px;font-weight: bold;font-weight: bold;box-shadow: 0px 1px 1px rgba(255,255,255,0.1) inset, 0px 0px 2px rgba(0,0,0,0.2);text-shadow: 0 1px 1px rgba(0,0,0,0.4);color: #fff;border-radius: 4px;vertical-align: middle;\">Posiada {$av['reputation']} {$punktow} reputacji</span></span>


 </span>
 </tr>
 </div>
 </tr>
</table>

";

}
}
?>

Przepraszam za kłopot poradziłem sobie wystarczyło dodać do profil

member.php?action=profile&uid=

i w pw private.php?action=send&uid=