1.12.7 i starsze - Rozszerzenie overliba pola: Zarejestrowani U?ytkownicy
karzniczka - 29-09-2010, 09:32
Moda dziala tylko mam problem z Polskimi znakami .
Prosze o pomoc
Z gory dzieki
d!r3k - 27-06-2011, 02:49 Temat postu: Dodatek: Ilość PIW
Dodatek: Ilość PIW
Autor: d!r3k [ www.dir3k.xt.pl ]
Screen:
Instrukcja:
Otwórz:
Kod: | includes/functions_add.php |
Znajdź:
Kod: | $sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, u.user_jr, u.user_session_time, u.user_session_start, u.user_posts, u.user_avatar, |
Po tym dodaj:
Kod: | u.user_beers_dst, u.user_beers_src, |
Znajdź:
Kod: | if($row['user_avatar'])
{
if(stristr($row['user_avatar'], "http"))
$overlib_online = 'onMouseOver="return overlib(\'<center><table><tr align=center><td align=center><img src=' . $row['user_avatar'] . '></td></tr><tr><td align=top>' . sprintf($lang_online, $time_online) . '<br />Obecnie: <b>' . str_replace(array("'", '"'), array('&#039;', '&quot;'), $location) . '</b><br />Postów: <b>' . $row['user_posts'] . '</b></td></tr></center></table>\', CAPTION, \'<center>' . str_replace("'","&#039;", $row['username']) . '</center>\')" onMouseOut="nd();"';
else
$overlib_online = 'onMouseOver="return overlib(\'<center><table><tr align=center><td align=center><img src=./images/avatars/' . $row['user_avatar'] . '></td></tr><tr><td align=top>' . sprintf($lang_online, $time_online) . '<br />Obecnie: <b>' . str_replace(array("'", '"'), array('&#039;', '&quot;'), $location) . '</b><br />Postów: <b>' . $row['user_posts'] . '</b></td></tr></center></table>\', CAPTION, \'<center>' . str_replace("'","&#039;", $row['username']) . '</center>\')" onMouseOut="nd();"';
}
else
$overlib_online = 'onMouseOver="return overlib(\'<center><table><tr><td align=top>' . sprintf($lang_online, $time_online) . '<br />Obecnie: <b>' . str_replace(array("'", '"'), array('&#039;', '&quot;'), $location) . '</b><br />Postów: <b>' . $row['user_posts'] . '</b></td></tr></center></table>\', CAPTION, \'<center>' . str_replace("'","&#039;", $row['username']) . '</center>\')" onMouseOut="nd();"'; |
Zamień na:
Kod: | if($row['user_avatar'])
{
if(stristr($row['user_avatar'], "http"))
$overlib_online = 'onMouseOver="return overlib(\'<center><table><tr align=center><td align=center><img src=' . $row['user_avatar'] . '></td></tr><tr><td align=top>' . sprintf($lang_online, $time_online) . '<br />Obecnie: <b>' . str_replace(array("'", '"'), array('&#039;', '&quot;'), $location) . '</b><br />Postów: <b>' . $row['user_posts'] . '</b><br />Piwa: <b>' . $row['user_beers_dst'] . '</b> / <b>' . $row['user_beers_src'] . '</b></td></tr></center></table>\', CAPTION, \'<center>' . str_replace("'","&#039;", $row['username']) . '</center>\')" onMouseOut="nd();"';
else
$overlib_online = 'onMouseOver="return overlib(\'<center><table><tr align=center><td align=center><img src=./images/avatars/' . $row['user_avatar'] . '></td></tr><tr><td align=top>' . sprintf($lang_online, $time_online) . '<br />Obecnie: <b>' . str_replace(array("'", '"'), array('&#039;', '&quot;'), $location) . '</b><br />Postów: <b>' . $row['user_posts'] . '</b><br />Piwa: <b>' . $row['user_beers_dst'] . '</b> / <b>' . $row['user_beers_src'] . '</b></td></tr></center></table>\', CAPTION, \'<center>' . str_replace("'","&#039;", $row['username']) . '</center>\')" onMouseOut="nd();"';
}
else
$overlib_online = 'onMouseOver="return overlib(\'<center><table><tr><td align=top>' . sprintf($lang_online, $time_online) . '<br />Obecnie: <b>' . str_replace(array("'", '"'), array('&#039;', '&quot;'), $location) . '</b><br />Postów: <b>' . $row['user_posts'] . '</b><br />Piwa: <b>' . $row['user_beers_dst'] . '</b> / <b>' . $row['user_beers_src'] . '</b></td></tr></center></table>\', CAPTION, \'<center>' . str_replace("'","&#039;", $row['username']) . '</center>\')" onMouseOut="nd();"'; |
Kriss^ - 23-12-2012, 13:18
Ten mod jest w ogóle optymalny??!!
Ja tu widzę teraz piwa, posty obecny przynajmniej po dwa albo i trzy razy w tym kawału kodu...
Poza tym, mam moda domyślne awatary jak ktoś nie ma swojego i to nie działa
|
|
|