Forumsregeln wie FAQ - hinzufügen
Verfasst: 20.03.2009 09:50
jooo ich wollte nach vorlage der faq mir forumregeln bauen aber das will nicht .. WARUM ?
forumsregeln.php
-----------------------------------------------------------------------------
forumsregeln_body.html
-----------------------------------------------------------------------------
help_forumsregeln.php
-------------------------------------------------------------------------------
und in der datenbank kann ich nix finden
weiße seite .... [ externes Bild ]
http://www.ladiesgentlemen.de/phpbb3/forumsregeln.php
forumsregeln.php
-----------------------------------------------------------------------------
Code: Alles auswählen
<?php
/**
*
* @package phpBB3
* @version $Id: forumsregeln.php 8479 2008-03-29 00:22:48Z naderman $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
$mode = request_var('mode', '');
// Load the appropriate faq file
switch ($mode)
{
case 'bbcode':
$l_title = $user->lang['BBCODE_GUIDE'];
$user->add_lang('bbcode', false, true);
break;
default:
$l_title = $user->lang['FORUMSREGELN_EXPLAIN'];
$user->add_lang('forumsregeln', false, true);
break;
}
// Pull the array data from the lang pack
$forumsregeln_blocks = array();
foreach ($user->help as $forumsregeln_ary)
{
if ($forumsregeln_ary[0] == '--')
{
$template->assign_block_vars('forumsregeln_block', array(
'BLOCK_TITLE' => $forumsregeln_ary[1])
);
continue;
}
$template->assign_block_vars('forumsregeln_block.forumsregeln_row', array(
'FORUMSREGELN_QUESTION' => $forumsregeln_ary[0],
'FORUMSREGELN_ANSWER' => $forumsregeln_ary[1])
);
}
// Lets build a page ...
$template->assign_vars(array(
'L_FORUMSREGELN_TITLE' => $l_title,
'L_BACK_TO_TOP' => $user->lang['BACK_TO_TOP'])
);
page_header($l_title);
$template->set_filenames(array(
'body' => 'forumsregeln_body.html')
);
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?> -----------------------------------------------------------------------------
Code: Alles auswählen
<!-- INCLUDE overall_header.html -->
<h2>{L_FAQ_TITLE}</h2>
<div class="panel bg1" id="faqlinks">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="column1">
<!-- BEGIN faq_block -->
<!-- IF faq_block.S_ROW_COUNT == 4 -->
</div>
<div class="column2">
<!-- ENDIF -->
<dl class="faq">
<dt><strong>{faq_block.BLOCK_TITLE}</strong></dt>
<!-- BEGIN faq_row -->
<dd><a href="#f{faq_block.S_ROW_COUNT}{faq_block.faq_row.S_ROW_COUNT}">{faq_block.faq_row.FAQ_QUESTION}</a></dd>
<!-- END faq_row -->
</dl>
<!-- END faq_block -->
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<div class="clear"></div>
<!-- BEGIN forumsregeln_block -->
<div class="panel <!-- IF forumsregeln_block.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF -->">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="content">
<h2>{forumsregeln_block.BLOCK_TITLE}</h2>
<!-- BEGIN forumsregeln_row -->
<dl class="forumsregeln">
<dt id="f{forumsregeln_block.S_ROW_COUNT}{forumsregeln_block.forumsregeln_row.S_ROW_COUNT}"><strong>{forumsregeln_block.forumsregeln_row.FORUMSREGELN_QUESTION}</strong></dt>
<dd>{forumsregeln_block.forumsregeln_row.FORUMSREGELN_ANSWER}</dd>
<dd><a href="#forumsregelnlinks" class="top2">{L_BACK_TO_TOP}</a></dd>
</dl>
<!-- IF not forumsregeln_block.forumsregeln_row.S_LAST_ROW --><hr class="dashed" /><!-- ENDIF -->
<!-- END forumsregeln_row -->
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- END forumsregeln_block -->
<!-- INCLUDE jumpbox.html -->
<!-- INCLUDE overall_footer.html -->
-------------------------------------------------------------------------------
Code: Alles auswählen
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
$forumsregeln = array(
array(
0 => '--',
1 => 'hier Text1'
),
array(
0 => 'hier text2',
1 => 'hier text3'
);
?>und in der datenbank kann ich nix finden
weiße seite .... [ externes Bild ]
http://www.ladiesgentlemen.de/phpbb3/forumsregeln.php