UWAGA: Pojawiła się nowa wersja systemu - phpBB 3.3.19. Ostatnie wydania (od wersji 3.3.17 do najnowszej) przynoszą kluczowe poprawki, które chronią Twoje forum przed zagrożeniami i dbają o spokój Twojej społeczności. Polecam nie odkładać tego na później, tyllko zaktualizować fora!

Polski pakiet językowy dla phpBB 3.3.19

szerokosc forum

Jeżeli masz pomysł na jakąś modyfikację bądź poszukujesz jakiegoś moda to zerknij do tego działu.
Bebolek
Posty: 52
Rejestracja: 02 kwietnia 2006, 08:41

szerokosc forum

Post autor: Bebolek » 19 kwietnia 2006, 15:12

Szukam modyfikacji pozwalajacej zmienic szerokosc forum, ktora bedzie mozna dostosowac w swoim profilu ? bo chcialbym np. zeby moje forum mialo taka szerokosc jak forum na phpbb2, czy ktos moze mi pomoc ?/

Awatar użytkownika
daroPL
Administrator
Posty: 4564
Rejestracja: 24 czerwca 2005, 13:36
Lokalizacja: Poznań
Kontakt:

Post autor: daroPL » 19 kwietnia 2006, 15:28

Kod: Zaznacz cały

####################################################### 
## ## 
## [] [] [][][][] [][][][] [][][][] [] ## 
## [] [] [] [] [] [] [] [] [] ## 
## [][] [][][][] [][][][] [] [] [] ## 
## [] [] [] [] [] [] [] [] [] [] ## 
## [] [] [] [] [] [] [][][][] [][][][] ## 
## [] ## 
## ## 
################### MADE BY KARQL ##################### 
############################################################## 
## MOD Title: Indywidualna szerokość forum 
## MOD Author: KARQL < karql@op.pl > 
## MOD Description: Modyfikacja pozwala indywidualnie każdemu 
## użytkownikowi ustalić w profilu w pixelach 
## lub procentach szerokość forum. 
## 
## MOD Version: 1.0.0 
## 
## Installation Level: Easy 
## Installation Time: 10 Minute 
## Files To Edit: (5) 
## includes/page_header.php 
## includes/usercp_register.php 
## language/lang_polish/lang_main.php 
## templates/twójstyl/overall_header.tpl 
## templates/twójstyl/profile_add_body.tpl 
############################################################## 
## MOD History: 
## 
## 2005-05-15 - Version 1.0.0 
## - Powstanie modyfikacji 
## 
############################################################## 

# 
#----[SQL]----- 
# 

ALTER TABLE `phpbb_users` ADD `user_width` char( 4 ) DEFAULT '768' 

# 
#----[OTWÓRZ]---- 
# 

includes/page_header.php 

# 
#----[ZNAJDŹ]---- 
# 

$user_forum_sql = ( !empty($forum_id) ) ? "AND s.session_page = " . intval($forum_id) : ''; 
$sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip 
FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s 
WHERE u.user_id = s.session_user_id 
AND s.session_time >= ".( time() - 300 ) . " 
$user_forum_sql 
ORDER BY u.username ASC, s.session_ip ASC"; 

# 
#----[DOKŁADNIE ZNAJDŹ TO]----- 
# 

u.user_level 

# 
#----[DODAJ PO]---- 
# 

, u.user_width 

# 
#----[ZNAJDŹ]---- 
# 

'PRIVMSG_IMG' => $icon_pm, 

# 
#----[DODAJ PO]---- 
# 

'WIDTH' => $userdata['user_width'], 

# 
#----[OTWÓRZ]---- 
# 

includes/usercp_register.php 

# 
#----[ZNAJDŹ]---- 
# 

$strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests'); 

# 
#----[W TEJ LINI ZNAJDŹ]---- 
# 

'interests' 

# 
#----[DODAJ PO TYM]---- 
# 
, 'width' => 'width' 

# 
#----[ZNAJDŹ]---- 
# 

validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature); 

# 
#----[W TEJ LINI ZNAJDŹ]---- 
# 

$interests 

# 
#----[DODAJ PO TYM]---- 
# 

, $width 

# 
#----[ZNAJDŹ]---- 
# 

$interests = stripslashes($interests); 

# 
#----[DODAJ PO]---- 
# 


$width = stripslashes($width); 

# 
#----[ZNAJDŹ]---- 
# 

$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) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . " 

# 
#----[W TEJ LINI ZNAJDŹ]---- 
# 

$interests) . "' 

# 
#----[DODAJ PO TYM]---- 
# 

, user_width = '" . str_replace("\'", "''", $width) . "' 

# 
#----[ZNAJDŹ]---- 
# 

$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey) 
VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, "; 

# 
#----[W TEJ LINI ZNAJDŹ]---- 
# 

user_interests 

# 
#----[DODAJ PO TYM]---- 
# 

, user_width 

# 
#----[W TEJ LINI ZNAJDŹ]---- 
# 

$interests) . "' 

# 
#----[DODAJ PO TYM]---- 
# 

, '" . str_replace("\'", "''", $width) . "' 

# 
#----[ZNAJDŹ]---- 
# 

$interests = stripslashes($interests); 

# 
#----[DODAJ PO TYM]---- 
# 

$width = stripslashes($width); 

# 
#----[ZNAJDŹ]---- 
# 

$interests = $userdata['user_interests']; 

# 
#----[DODAJ PO TYM]---- 
# 

$width = $userdata['user_width']; 

# 
#----ZNAJDŹ]---- 
# 

display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, &$new_password, &$cur_password, $password_confirm, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $viewemail, $notifypm, $popuppm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat, $userdata['session_id']); 

# 
#----[W TEJ LINI ZNAJDŹ]---- 
# 

$user_dateformat 

# 
#----[DODAJ PO TYM]---- 
# 
, $width 

# 
#----[ZNAJDŹ]---- 
# 

'INTERESTS' => $interests, 

# 
#----[DODAJ PO TYM]---- 
# 

'WIDTH' => $width, 
'L_WIDTH' => $lang['width'], 

# 
#----[OTWÓRZ]---- 
# 

language/lang_polish/lang_main.php 

# 
#----[ZNAJDŹ]---- 
# 

?> 

# 
#----[DODAJ PRZED TYM]---- 
# 

$lang['width'] = 'Szeroko¶ć Forum'; 

# 
#----[OTWÓRZ]---- 
# 

templates/twójstyl/overall_header.tpl 

# 
#----[ZNAJDŹ]---- 
#pierwsze od góry 

<table width="100%" cellspacing="0" cellpadding="10" border="0" align="center"> 

# 
#----[ZAMIEŃ NA]---- 
# 

<table width="{WIDTH}" cellspacing="0" cellpadding="10" border="0" align="center"> 

# 
#----[OTWÓRZ]---- 
# 

templates/twójstyl/profile_add_body.tpl 

# 
#----[ZNAJDŹ]---- 
# 
<tr> 
<td class="row1"><span class="gen">{L_ALWAYS_ALLOW_SMILIES}:</span></td> 
<td class="row2"> 
<input type="radio" name="allowsmilies" value="1" {ALWAYS_ALLOW_SMILIES_YES} /> 
<span class="gen">{L_YES}</span>[space][space] 
<input type="radio" name="allowsmilies" value="0" {ALWAYS_ALLOW_SMILIES_NO} /> 
<span class="gen">{L_NO}</span></td> 
</tr> 

# 
#----[DODAJ PO TYM]---- 
# 

<tr> 
<td class="row1"><span class="gen">{L_WIDTH}:</span></td> 
<td class="row2"> <input type="text" class="post" name="width" size="4" maxlength="4" value="{WIDTH}" /> </td> 
</tr> 

# 
#-----[ OPEN ]-------------------------------------------- 
# 

includes/usercp_avatar.php 

# 
#-----[ FIND ]-------------------------------------------- 
# 

function display_avatar_gallery( 

# 
#-----[ IN-LINE FIND ]------------------------------------ 
# 

&$interests, 

# 
#-----[ IN-LINE AFTER, ADD ]----------------------------- 
# 

&$width, 

# 
#-----[ FIND ]-------------------------------------------- 
# 

$params = array 

# 
#-----[ IN-LINE FIND ]------------------------------------ 
# 

'interests', 

# 
#-----[ IN-LINE AFTER, ADD ]----------------------------- 
# 

'width',

# 
#----[ZAPISZ ZAMKNIJ]---- 
#
może to?

Zablokowany

Wróć do „Propozycje i Poszukiwania”