Forumsregeln wie FAQ - hinzufügen

Fragen zur Bedienung von phpBB 3.0.x, Probleme bei der Benutzung und alle weiteren Fragen inkl. Update auf die neuste phpBB 3.0.14 Version
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Benutzeravatar
@ndre
Mitglied
Beiträge: 71
Registriert: 13.04.2008 20:28
Wohnort: Köln
Kontaktdaten:

Forumsregeln wie FAQ - hinzufügen

Beitrag von @ndre »

jooo ich wollte nach vorlage der faq mir forumregeln bauen aber das will nicht .. WARUM ?


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();

?> 
forumsregeln_body.html
-----------------------------------------------------------------------------

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 -->
help_forumsregeln.php
-------------------------------------------------------------------------------

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
http://portalunion.de/ - Wir möchten hier etwas Neues anbieten, woran alle profitieren können. Dabei geht es darum, unsere Forengemeinschaft mit deinen Forum zu bereichern, um eine große Community zu betreiben. Jedes Forum agiert eigenständig und kann auch individuell angepasst werden..
Benutzeravatar
BaerchenHH
Mitglied
Beiträge: 1067
Registriert: 29.02.2008 01:42
Wohnort: Hamburg

Re: Forumsregeln wie FAQ - hinzufügen

Beitrag von BaerchenHH »

Dann bau dir den MOD rules_page_0_1_2 ein.
Meistens sitzt der Fehler nicht im Computer, sondern davor... :D :D

Das Diskussionsforum für Schule und Bildung: http://www.SchulBildungsForum.de
Antworten

Zurück zu „[3.0.x] Administration, Benutzung und Betrieb“