Mod. Gotowe < [ 1.9.5 ] - Color ranks
piterownik - 28-08-2005, 06:53
qbs napisał/a: | SYNCHRONIZACJA RANG UZYSZKODNIKOW |
Ja też to robiłem, ale i tak mi się niki nie kolorują!!!!!
Do orginalnych plików 1.9.5 zainstalowałem paczke gotowych plików do 1.9.5.
Pliki napewno pliki good bo wgrywałem kilka razy...
carol - 28-08-2005, 08:31
Wcześniej tak robiłem i nic nie dało. Teraz jakoś jest dobrze. DZIĘKI!
irekk - 28-08-2005, 13:05
odnosnie ominiecia ciaglej synchronizacji:
plik: admin/admin_users.php
odzukaj:
Kod: | $sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "' $sql_custom_fields user_interests = '" . str_replace("\'", "''", $interests) . "', user_custom_color = '" . str_replace("\'", "''", $custom_color) . "', user_custom_rank = '" . str_replace("\'", "''", $custom_rank) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allow_signature = $allow_sig, user_allow_sig_image = $allow_sig_image, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowsig = $user_allowsig, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_posts = $user_posts, user_urank = $user_rank, user_gender = '$gender', user_birthday = $birthday, user_next_birthday_greeting = $next_birthday_greeting " . $avatar_sql . $signature_sql . ", disallow_forums = '" . str_replace("\'", "''", $disallow_forums) . "', can_custom_ranks = $can_custom_ranks, can_custom_color = $can_custom_color, can_topic_color = $can_topic_color, user_allow_helped = $user_allow_helped
WHERE user_id = $user_id"; |
zamien na:
Kod: | $sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "' $sql_custom_fields user_interests = '" . str_replace("\'", "''", $interests) . "', user_custom_color = '" . str_replace("\'", "''", $custom_color) . "', user_custom_rank = '" . str_replace("\'", "''", $custom_rank) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allow_signature = $allow_sig, user_allow_sig_image = $allow_sig_image, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowsig = $user_allowsig, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_posts = $user_posts, user_urank = $user_rank, user_rank = $user_rank, user_gender = '$gender', user_birthday = $birthday, user_next_birthday_greeting = $next_birthday_greeting " . $avatar_sql . $signature_sql . ", disallow_forums = '" . str_replace("\'", "''", $disallow_forums) . "', can_custom_ranks = $can_custom_ranks, can_custom_color = $can_custom_color, can_topic_color = $can_topic_color, user_allow_helped = $user_allow_helped
WHERE user_id = $user_id"; |
czyli po: Cytat: | user_urank = $user_rank, |
dodalem: Cytat: | user_rank = $user_rank, |
i po sprawie
piterownik - 28-08-2005, 18:12
qbs napisał/a: | odnosnie ominiecia ciaglej synchronizacji:
odzukaj: |
W jakim pliku?
irekk - 28-08-2005, 18:21
racja hehe admin/admin_users.php
piterownik - 28-08-2005, 19:08
Zrobiłem tą porade, ale dalej niki się nie kolorują :cry:
Próbowałem wszystkiego :cry:
irekk - 28-08-2005, 19:28
podaj adres do forum
ORI - 28-08-2005, 19:39
A co z moim problemem pare postow wczesniej? Nikt nie potrafi mi pomoc ?
piterownik - 28-08-2005, 19:42
Narazie na moim kompie http://84.40.175.6/~phpBB_modified_by_Przemo/
Jeszcze będzie troche mój komp chodził
irekk - 28-08-2005, 19:46
ORI, wrzucilem twoj plik do siebie na forum i:
Kod: | Fatal error: Call to undefined function: color_username() in c:\usr\apache\httpd\html\forum\includes\page_header.php on line 505 |
zaincludowales plik functions_color_rank.php ?
jak nie to w functions.php
znajdz:
Kod: | function selectbox($box_name, $ignore_forum = false, $select_forum = '')
{
$s_id = ($select_forum != '') ? POST_FORUM_URL . $select_forum : '';
$s_list = get_tree_option($select_forum);
$res = '<select name="' . $box_name . '">' . $s_list . '</select>';
return $res;
} |
i pod to wklej:
Kod: | include($phpbb_root_path . 'includes/functions_color_rank.'.$phpEx); |
ORI - 28-08-2005, 20:13
qbs, jak pisalem wczesniej wrzucilem gotowe przerobione pliki... Na forum mialem tylko mod Chat z Polchat i dopisalem odpowiednie linijki, nie wazne czy jest ten mod czy nie ma, wyswietla sie biala strona... To co podales jest wklejone...
Edit: Dziala wszystko juz, dalbym Ci pomogl ale nie moge.. Jakims cudem pliku functions.php mi nie zastepowalo...
irekk - 28-08-2005, 20:21
ORI napisał/a: | dalbym Ci pomogl ale nie moge. |
lepiej nie bo soniak bedzie zazdrosny
piterownik - 28-08-2005, 20:28
A z moim forum da sie coś zrobić :cry: ??
irekk - 28-08-2005, 20:36
czy modyfikowales plik stylu? czy na subSilver'ze tez nie masz kolorow?
piterownik - 28-08-2005, 20:41
na SB też nie ma :cry:
|
|
|