Cos chyba zle
Upewnij się ,że UN_MYBB jest zdefiniowany."); } $plugins->add_hook("member_profile_end", "lastvisitors_profile"); function lastvisitors_info() { return array('name' => 'Ostatni odwiedzający w Profilu', 'description' => ' Dodaje okienko w Profilach Użytkowników z 10 ostatnimi użytkownikami którzy odwiedzili', 'website' => '', 'author' => 'LLNN', 'authorsite' => '', 'version' => '1.1', 'compatibility' => '1*', 'guid' => '9e2233dc1d258ae05ecba084c4b0dda6' ); } function lastvisitors_activate() { global $mybb, $db, $templates; require MYBB_ROOT.'/inc/adminfunctions_templates.php'; $sql ="CREATE TABLE `".TABLE_PREFIX."lastvisitor` ( `uid` VARCHAR( 10 ) NOT NULL , `vid` VARCHAR( 10 ) NOT NULL , `time` VARCHAR( 50 ) NOT NULL ) ENGINE = MYISAM ;"; $db->write_query($sql); $template1 = array("title" => "userprofile_lastvisit", "template" => "
Ostatnie Wizyty
{\$lastvisitor}
","sid" => -1); $db->insert_query("templates", $template1); find_replace_templatesets('member_profile', '#{\$modoptions}#', "{\$modoptions} {\$last_visit}"); } function lastvisitors_deactivate() { global $mybb, $db, $templates; $sql ="DROP TABLE `mybb_lastvisitor`;"; $db->write_query($sql); require MYBB_ROOT.'/inc/adminfunctions_templates.php'; find_replace_templatesets('member_profile', '#\{\$last_visit\}#', '', 0); $db->delete_query("templates","title IN('userprofile_lastvisit')"); } function lastvisitors_profile(){ global $mybb, $db, $templates, $theme, $lastvisitor, $memprofile, $last_visit ; $myuid = $memprofile['uid']; $vuid = $mybb->user['uid']; $query = $db->simple_select('lastvisitor', '*', "uid='".$myuid."' and vid='".$vuid."'"); $nr = $db->num_rows($query); IF($vuid != "0" and $vuid != $myuid ){ $tt = time(); IF($nr<1){ $db->write_query("INSERT INTO `".TABLE_PREFIX."lastvisitor` VALUES ('$myuid', '$vuid','$tt')"); }else{ $db->update_query("lastvisitor", array('time' => $tt), "uid='".$myuid."' and vid='".$vuid."'"); } } $query = $db->query('SELECT * FROM ' . TABLE_PREFIX . 'lastvisitor,' . TABLE_PREFIX . 'users WHERE ' . TABLE_PREFIX . 'users.uid=' . TABLE_PREFIX . 'lastvisitor.vid AND ' . TABLE_PREFIX . 'lastvisitor.uid='.$myuid.' ORDER BY ' . TABLE_PREFIX . 'lastvisitor.time DESC LIMIT 10;'); while($row = $db->fetch_array($query)){ $u = $row['vid']; $un = get_user($u); if($un!=""){ $date = my_date($mybb->settings['dateformat'], $row['time']); $time = my_date($mybb->settings['timeformat'], $row['time']); $username = format_name($row['username'], $row['usergroup'], $row['displaygroup']); $username = build_profile_link($username, $row['uid']); $lastvisitor = $lastvisitor.$username."(".$date." - ".$time.") , "; } } eval("\$last_visit = \"".$templates->get("userprofile_lastvisit")."\";"); } ?>믯㲿䐡䍏奔䕐栠浴啐䱂䍉∠⼭圯䌳⼯呄⁄䡘䵔⁌⸱‰牔湡楳楴湯污⼯久•栢瑴㩰⼯睷㍷漮杲启⽒桸浴ㅬ䐯䑔砯瑨汭ⴱ牴湡楳楴湯污搮摴㸢ℼⴭ猠慴瑲›湩敤⁸ⴭਾ格慥㹤琼瑩敬娾潤祢慷杵汰ⴠ䘠牯浵稠楷藄慺敮稠稠牡扡慩楮浥瀠敩楮駄穤⁹摺扯睹湡畩渠条썲撳℠⼼楴汴㹥ℼⴭ猠慴瑲›敨摡牥湩汣摵 ⴭਾ氼湩敲㵬愢瑬牥慮整•祴数∽灡汰捩瑡潩⽮獲⭳浸≬琠瑩敬∽慎湪睯穳쑷璅楫⠠卒⁓⸲⤰•牨晥∽瑨灴⼺稯潤祢慷杵汰猯湹楤慣楴湯瀮灨•㸯氼湩 敲㵬愢瑬牥慮整•祴数∽灡汰捩瑡潩⽮瑡浯砫汭•楴汴㵥丢橡潮獷敺眠藄歴䄨潴⸱⤰•牨晥∽瑨灴⼺稯潤祢慷杵汰猯湹楤慣楴湯瀮灨琿灹㵥瑡浯⸱∰⼠ാ 㰊敭慴栠瑴⵰煥極㵶䌢湯整瑮吭灹≥挠湯整瑮∽整瑸栯浴㭬挠慨獲瑥唽䙔㠭•㸯洼瑥瑨灴攭畱癩∽潃瑮湥捓楲瑰吭灹≥挠湯整瑮∽整瑸樯癡獡牣灩≴⼠ാ㰊捳楲瑰琠灹㵥琢硥⽴慪慶捳楲瑰•牳㵣栢瑴㩰⼯摺扯睹橡甮畧瀮⽬獪牣灩獴瀯潲潴祴数樮㽳敶㵲㐱〰㸢⼼捳楲瑰ാ㰊捳楲瑰琠灹㵥琢硥⽴慪慶捳楲瑰•牳㵣栢瑴㩰⼯摺扯睹橡甮畧瀮⽬獪牣灩獴术湥牥污樮㽳敶㵲㐱〰㸢⼼捳楲瑰ാ㰊捳楲瑰琠灹㵥琢硥⽴慪慶捳楲瑰•牳㵣栢瑴㩰⼯摺扯睹橡甮畧瀮⽬獪牣灩獴瀯灯灵浟湥獪瘿牥ㄽ〴 ∰㰾猯牣灩㹴ℼⴭ楛瑬䤠⁅⸷㹝猼牣灩⁴敤敦祴数∽整瑸樯癡獡牣灩≴猠捲∽獪牣灩獴瀯杮楦獪㸢⼼捳楲瑰ാ㰊嬡湥楤嵦ⴭാ㰊楬歮琠灹㵥琢硥⽴獣≳爠汥∽瑳汹獥敨瑥•牨晥∽瑨灴⼺稯潤祢慷杵汰振捡敨琯敨敭⽳桴浥㑥术潬慢獣≳⼠ਾ猼牣灩⁴祴数∽整瑸樯癡獡牣灩≴ാ㰊ⴡഭऊ慶潣歯敩潄慭湩㴠∠種潤祢慷杵汰㬢瘉牡挠潯楫健瑡‽⼢㬢瘉牡挠潯楫健敲楦⁸‽∢഻ऊ慶敤敬整癥湥彴潣普物‽䌢祺渠数湷档散穳甠畳쑮쒅₇潴眠摹牡敺楮㽥㬢瘉牡爠浥癯慥瑴捡彨潣普物‽䌢祺渠数湷档散穳甠畳쑮쒅₇慺湺捡潺敮稠액쒂掅湺歩㽩㬢瘉牡氠慯楤杮瑟硥⁴‽圧穣瑹睹湡敩戼㸯牐獯쑺ₙ穣步쑡⺇⸮㬧 瘉牡猠癡湩彧档湡敧‽娧灡獩睹湡敩稠業湡⸮✮഻ऊ慶獵彥浸桬瑴牰煥敵瑳㴠∠∱഻ऊ慶祭灟獯彴敫⁹‽㔢戳㠶捣愵ㄹ挵搹㤰搸慤敦㔴づ晣≥഻ऊ慶浩条灥瑡‽椢慭敧⽳汢捡敫潶ⴴ慮畴敲㬢⼯ⴠ㸭⼼捳楲瑰ാਊℼⴭ攠摮›敨摡牥湩汣摵ⴭാ㰊捳楲瑰琠灹㵥琢硥⽴慪慶捳楲瑰㸢ℼⴭ氉湡潮湟睥灟獯獴㴠 ∠穄慩苅渠敩稠睡敩慲渠睯捹潰瑳돃≷഻ऊ慬杮挮楬正浟牡彫敲摡㴠∠汋歩楮ⱪ愠祢稠穡慮穣쑹₇整穤慩苅樠歡牰敺穣瑹湡≹഻⼊ ⴭാ㰊猯牣灩㹴⼼敨摡 ാ㰊潢祤㰾捳楲瑰琠灹㵥琢硥⽴慪慶捳楲瑰㸢眊湩潤潧杯敬慟慮祬楴獣畟捡瑣㴠∠䅕ㄭ㘶㐵㘴㘭㬢㰊猯牣灩㹴㰊捳楲瑰琠灹㵥琢硥⽴慪慶捳楲瑰•牳㵣栢瑴㩰⼯浩 杵汰甯畧汰桟樮≳ਾ⼼捳楲瑰ാ㰊ⴡ瑳牡㩴栠慥敤ⴭਾℼⴭ戠来湩眠慲灰牥ⴠ㸭搼癩椠㵤眢慲灰牥㸢㰉ⴡ敢楧潬潧ⴠ㸭㰉楤⁶摩∽潬潧㸢उ 愼栠敲㵦栢瑴㩰⼯摺扯睹橡甮畧瀮⽬㸢椼杭猠捲∽瑨灴⼺稯潤祢慷杵汰椯慭敧⽳汢捡敫潶ⴴ慮畴敲氯杯湰≧愠瑬∽摚扯睹橡甮畧瀮潆畲睺쑩窅湡⁺慺慲楢湡敩楰湥쑩撙祺椠稠潤祢慷楮⁵慮牧돃∡琠瑩敬∽摚扯睹橡甮畧瀮潆畲睺쑩窅湡⁺慺慲楢湡敩楰湥쑩撙祺椠稠潤祢慷楮⁵慮牧돃∡挠慬獳∽潬潧•㸯⼼㹡उ愼渠浡㵥琢灯•摩∽潴≰㰾愯ാऊ㰉楤⁶摩∽慰敮≬ാऊउ搼癩椠㵤瀢湡汥潣瑮湥≴㰾ⴡ瑳牡㩴栠慥敤彲敷捬浯扥潬正浟浥敢ⴭਾ猼慰瑳汹㵥昢潬瑡爺杩瑨∻㰾瑳潲杮䄾瑫慵湬⁹穣獡㰺猯牴湯㹧㈠ⴷ㘰㈭ⰱ㜠㔺㨲㐴⼼灳湡ാऊ㰉瑳潲杮圾瑩橡潂畲慴⼼瑳潲杮⸾传瑳瑡楮楷祺慴›穄獩慩ⱪ㜠㌺㨲㔰⠠ 愼栠敲㵦栢瑴㩰⼯摺扯睹橡甮畧瀮⽬獵牥灣瀮灨㸢猼牴湯㹧慐敮앵禼歴睯楮慫⼼瑳潲杮㰾愯㰾ⴡ瑳牡㩴栠慥敤彲敷捬浯扥潬正浟浥敢彲潭敤慲潴ⴭਾ渦獢㭰猼慰汣獡㵳戢潬正㸢愼栠敲㵦栢瑴㩰⼯摺扯睹橡甮畧瀮⽬潭捤桰≰挠慬獳∽潭捤≰䴾偃⼼㹡⼼灳湡ਾℼⴭ攠摮›敨摡牥睟汥潣敭汢捯彫敭扭牥浟摯牥瑡牯ⴠ㸭ℼⴭ 猠慴瑲›敨摡牥睟汥潣敭汢捯彫敭扭牥慟浤湩ⴠ㸭☊扮灳㰻灳湡挠慬獳∽汢捯≫㰾牨晥∽瑨灴⼺稯潤祢慷杵汰愯浤湩椯摮硥瀮灨•汣獡㵳愢浤湩灣㸢䍁㱐愯㰾猯慰㹮㰊ⴡ湥㩤栠慥敤彲敷捬浯扥潬正浟浥敢彲摡業ⴭ‾洦慤桳※愼栠敲㵦栢瑴㩰⼯摺扯睹橡甮畧瀮⽬敭扭牥瀮灨愿瑣潩㵮潬潧瑵愦灭氻杯畯歴祥攽㍦
jest więcej ale tyle wystarczy chyba.
I teraz cala strona nie działa