Strona 1 z 1
problem z niusami ;/
: 05 sierpnia 2005, 18:35
autor: maslaq
Kod: Zaznacz cały
################################################################
## Mod Title: Board Message MOD
## Mod Version: 1.0.5
## Author: Shannado - <sven@shannado.nl> - Sven - http://www.shannado.nl/forumorg
## Description: With this MOD the admin is able to set a message at the top of the board.
## He/She can choose in the board configuaration, if the message appear on ALL pages or on the Index ONLY or
## not at all.
##
## Installation Level: Easy
## Installation Time: 10 - 20 Minutes
## Files To Edit: page_header.php, lang_admin.php, admin_board.php, board_config_body.tpl, index.php, index_body.tpl, overall_header_tpl
## Included Files: board_msg_inst.php
##############################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
##
## Author Note:
##
## First upload the file 'board_msg_inst.php' to the root of your forum directory AND
## run the file. After the run, delete the file immediately !!!!!!!!!!
##
## Upload the 'board_msg_big.gif' to templates/subSilver/images.
##
##
## If you don't like the icons:
## ---- [ FIND ] -----
## <img src="{BOARD_MSG_IMG}" />
##
## ---- [ REPLACE WITH ] -----
##
##
## The icon included is made by Alabama
##
## Compliant with phpBB v2.0.x
##
## History:
## ------------
## 0.9.0 beta
## - Beta
##
## 1.0.0 Final
## - Added title to the messagebox
##
## 1.0.1 Final
## - Fixed small typo (I left out a space in ['BOARD_MSG' => $board_msg,])
##
## 1.0.2 Final
## - Fixed small typo (was: $lang['board_msg'] = 'Board Message';
## must be: $lang['board_msg_title'] = 'Board Message';
##
## 1.0.3 Final
## - phpBB v2.0.1 compliant. No changes since v1.0.2
## - correct a small typo in the HOW TO (FIND), doesnt effect the MOD.
##
## 1.0.4 Final
## - added icons (made by Alabama) to the board message
##
## 1.0.5 Final
## - Changed some code regarding the images
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
pytania do tego
katalog root to główny z php ??
jak uruchomić ten install php??
i jak pozbyć sie obrazka w czym to mam znaleźć
p.s.
pliki już wyedytowałem
: 05 sierpnia 2005, 20:45
autor: mateusz
maslaq pisze:katalog root to główny z php ??
to głowny katalog twojego forum. czyli ten katalog gdzie jest plik members.php topic.php i tak dalej
maslaq pisze:jak uruchomić ten install php??
w adresie swojego forum kasujesz index.php a wpisujesz nazwe pliku instal
maslaq pisze: jak pozbyć sie obrazka w czym to mam znaleźć
tego zbytnio nie rozumiem ale jeśli chodzi ci o ten fragment:
maslaq pisze: If you don't like the icons:
to
znajdujesz
maslaq pisze:## ---- [ FIND ] -----
## <img src="{BOARD_MSG_IMG}" />
zamieniasz na
maslaq pisze:## ---- [ REPLACE WITH ] -----
##
w pliku templates/SubSilver/overall_header.tpl - ten wpis dodawałeś podczas modyfikacji plików

: 05 sierpnia 2005, 22:36
autor: maslaq
Kod: Zaznacz cały
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//board msg MOD
$lang['Enable_board_msg'] = 'Enable Board Message';
$lang['board_msg'] = 'Board Message';
$lang['board_msg_explain'] = 'Enter the message that you will show. Max. 255 characters (including HTML - tags)';
$lang['board_msg_none'] = 'No message';
$lang['board_msg_index'] = 'Index ONLY';
$lang['board_msg_all'] = 'ALL pages';
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//board msg MOD
$lang['board_msg_title'] = 'Board Message';
#
#-----[ OPEN ]------------------------------------------
#
include/page_header.php
#
#-----[ FIND ]------------------------------------------
#
//
// The following assigns all _common_ variables that may be used at any point
// in a template.
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// BEGIN - Board msg MOD
//
if ( $board_config['board_msg_enable'] )
{
$board_msg = $board_config['board_msg'];
}
else
{
$board_msg ='';
}
//
// END - Board msg MOD
//
#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
'SITENAME' => $board_config['sitename'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'BOARD_MSG' => $board_msg,
'BOARD_MSG_IMG' => $images['board_msg_img'],
#
#-----[ FIND ]------------------------------------------
#
'L_USERNAME' => $lang['Username'],
#
#-----[ BEFORE, ADD ]------------------------------------------
#
'L_BOARD_MSG' => $lang['board_msg_title'],
#
#-----[ FIND ]------------------------------------------
#
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// BEGIN - board msg MOD
//
if ($board_config['board_msg_enable'] == '2')
{
$template->assign_block_vars('switch_enable_board_msg', array());
}
//
// END - board msg MOD
//
#
#-----[ OPEN ]------------------------------------------
#
templates/SubSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
</table></td>
</tr>
</table>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN switch_enable_board_msg -->
<br />
<center>
<table border="0" class="forumline">
<tr>
<th colspan="3" class="thCornerL" height="25" nowrap="nowrap"> {L_BOARD_MSG} </th>
</tr>
<tr>
<td class="row1"><img src="{BOARD_MSG_IMG}" /></td>
<td class="row1"><span class="gen">{BOARD_MSG}</a></span></td>
<td class="row1"><img src="{BOARD_MSG_IMG}" /></td>
</tr>
</table>
</center>
<!-- END switch_enable_board_msg -->
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$images['board_msg_img'] = "$current_template_images/board_msg_big.gif";
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
//
// Generate the page
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// BEGIN - board msg MOD
//
if ($board_config['board_msg_enable'] == '1')
{
$template->assign_block_vars('switch_enable_board_msg_index', array());
}
//
// END - board msg MOD
//
#
#-----[ OPEN ]------------------------------------------
#
templates/SubSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="bottom"><span class="gensmall">
<!-- BEGIN switch_user_logged_in -->
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- BEGIN switch_enable_board_msg_index -->
<center>
<table border="0" class="forumline">
<tr>
<th colspan="3" class="thCornerL" height="25" nowrap="nowrap"> {L_BOARD_MSG} </th>
</tr>
<tr>
<td class="row1"><img src="{BOARD_MSG_IMG}" /></td>
<td class="row1"><span class="gen">{BOARD_MSG}</a></span></td>
<td class="row1"><img src="{BOARD_MSG_IMG}" /></td>
</tr>
</table>
<br />
</center>
<!-- END switch_enable_board_msg_index -->
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]------------------------------------------
#
$prune_yes = ( $new['prune_enable'] ) ? "checked=\"checked\"" : "";
$prune_no = ( !$new['prune_enable'] ) ? "checked=\"checked\"" : "";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$board_msg_none = ( $new['board_msg_enable'] == '0' ) ? "checked=\"checked\"" : "";
$board_msg_index = ( $new['board_msg_enable'] == '1') ? "checked=\"checked\"" : "";
$board_msg_all = ( $new['board_msg_enable'] == '2') ? "checked=\"checked\"" : "";
#
#-----[ FIND ]------------------------------------------
#
"L_ENABLE_PRUNE" => $lang['Enable_prune'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
"L_ENABLE_BOARD_MSG" => $lang['Enable_board_msg'],
"L_BOARD_MSG_NONE" => $lang['board_msg_none'],
"L_BOARD_MSG_INDEX" => $lang['board_msg_index'],
"L_BOARD_MSG_ALL" => $lang['board_msg_all'],
"L_BOARD_MSG" => $lang['board_msg'],
"L_BOARD_MSG_EXPLAIN" => $lang['board_msg_explain'],
#
#-----[ FIND ]------------------------------------------
#
"PRUNE_NO" => $prune_no,
#
#-----[ AFTER, ADD ]------------------------------------------
#
"BOARD_MSG_NONE" => $board_msg_none,
"BOARD_MSG_INDEX" => $board_msg_index,
"BOARD_MSG_ALL" => $board_msg_all,
"BOARD_MSG" => $new['board_msg'],
#
#-----[ OPEN ]------------------------------------------
#
templates/SubSilver/admin/board_config_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="row2"><input type="radio" name="board_disable" value="1" {S_DISABLE_BOARD_YES} /> {L_YES} <input type="radio" name="board_disable" value="0" {S_DISABLE_BOARD_NO} /> {L_NO}</td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1">{L_ENABLE_BOARD_MSG}</td>
<td class="row2"><input type="radio" name="board_msg_enable" value="0" {BOARD_MSG_NONE} />{L_BOARD_MSG_NONE} <input type="radio" name="board_msg_enable" value="1" {BOARD_MSG_INDEX} />{L_BOARD_MSG_INDEX} <input type="radio" name="board_msg_enable" value="2" {BOARD_MSG_ALL} />{L_BOARD_MSG_ALL}</td>
</tr>
<tr>
<td class="row1">{L_BOARD_MSG}<br /><span class="gensmall">{L_BOARD_MSG_EXPLAIN}</span></td>
<td class="row2"><textarea name="board_msg" rows="5" cols="45">{BOARD_MSG}</textarea></td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
jeszcze jedno pytanie (wszystko działa) dodała sie nowa tabelka z newsami ale chce na góże tej tabelki napisac tytuł news (tutaj jest adres:
http://www.bmx.slask.prv.pl) chodzi mi zeby pisało takimi białymi literkami jak w ramce poniżej formu itp itd to tam chce zeby pisało forum z góry dzieki za pomoc
: 06 sierpnia 2005, 20:42
autor: mateusz
edytuj odpowiednio plik index_body.tpl wystarczą podstawy html. wpisanie tekstu i nadanie mu koloru.
: 06 sierpnia 2005, 22:12
autor: maslaq
Kod: Zaznacz cały
<!-- BEGIN switch_enable_board_msg_index -->
<center>
<table border="0" class="forumline">
<tr>
<th colspan="3" class="thCornerL" height="25" nowrap="nowrap"> {L_BOARD_MSG} </th>
</tr>
<tr>
<td class="row1"><img src="{BOARD_MSG_IMG}" /></td>
<td class="row1"><span class="gen">{BOARD_MSG}</a></span></td>
<td class="row1"><img src="{BOARD_MSG_IMG}" /></td>
</tr>
</table>
<br />
</center>
<!-- END switch_enable_board_msg_index -->
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
<tr>
<td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
<td align="right" valign="bottom" class="gensmall">
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
<!-- END switch_user_logged_in -->
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_FORUM} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_POSTS} </th>
<th class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN catrow -->
<tr>
<td class="catLeft" colspan="5" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
<!-- END catrow -->
</table>
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
<tr>
<td align="left"><span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td>
<td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
</tr>
</table>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
</tr>
<tr>
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
</td>
</tr>
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
</table>
<table width="100%" cellpadding="1" cellspacing="1" border="0">
<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</table>
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
<input class="post" type="text" name="username" size="10" />
{L_PASSWORD}:
<input class="post" type="password" name="password" size="10" />
{L_AUTO_LOGIN}
<input class="text" type="checkbox" name="autologin" />
<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
</span> </td>
</tr>
</table>
</form>
<!-- END switch_user_logged_out -->
<br clear="all" />
<table cellspacing="3" border="0" align="center" cellpadding="0">
<tr>
<td width="20" align="center"><img src="templates/ashGrunge/images/folder_new_red.gif" alt="{L_NEW_POSTS}"/></td>
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/ashGrunge/images/folder_lock_red.gif" alt="{L_FORUM_LOCKED}" /></td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
tu jest kod idex_body.tpl
pomóż mi gdzie to wpisac plz wielkie dzięki z góry
P.S.
html znałem powyżej podstawy ale od 1 gimn nic nie robiłem (3 lata) i wszystko zapomniałem

: 07 sierpnia 2005, 13:44
autor: mateusz
po pierwsze to przestań wklejać tak duże fragmenty tekstu. pliki podawaj w załącznikach. takie twoje cudo źle się czyta.
co do białego tekstu to:
przed:
<!-- BEGIN switch_enable_board_msg_index -->
wstaw coś takiego:
Kod: Zaznacz cały
<table border="0" class="forumline">
<tr>
<td><font color="white">news</font></td>
</tr>
</table>
prosty przykład tabeli z wstawionym tekstem. wyświetlany tekst możesz zmieniać wpisując go w miejsce słowa "news" i kolor wpisujać go po: color="
możesz oczywiście eksperymentować z tym tekstem polecenie:
podaje tekst i go koloruje to możesz wsadzać w dowolne miejsce na stronie.
: 07 sierpnia 2005, 23:13
autor: maslaq
wielkie dzięki mateuszu z textem wiem tylko nie wiedziałem jak z tabelą

pozdro 600 dla ciebie