Problem1: css für Tabelle Problem2: $template->display()

Alles zu Styles, Templates, Icons und Smilies für phpBB 3.0.x, sowie allgemeine Designfragen zur Integration von phpBB in bestehende Websites.
phpBB Styles Demo
Forumsregeln
Bei Style spezifischen Fragen ist der Stylename und die Downloadquelle des Styles erforderlich, besser noch die URL vom betroffenen Forum.
Antworten
speedtouch92
Mitglied
Beiträge: 104
Registriert: 11.12.2005 16:52
Kontaktdaten:

Problem1: css für Tabelle Problem2: $template->display()

Beitrag von speedtouch92 »

ich habe ein Problem:

Wie kann ich eine tabelle machen, die Farblich / optisch zu phpbb3 passt?

Also,
wo ist die css-Datei für die Tabellen,
und was muss ich in die class tags eingeben?


Bsp:
<table class="????">
<tr class="?????">
<th class="??????">
<td class="?????">





Ausserdem:
Wenn ich $template->display('site'); aufrufe, um die Seite auszugeben, erhalte ich diesen Fehler:


SecureSSI: Das Script (/usr/export/www/vhosts/funnetwork/hosting/hujiko/phpbb3/radiomod.php) hat versucht, ausserhalb von seinem Userverzeichniss, auf die Datei /radiomod.html zuzugreifen.
Aus Sicherheitsgruenden ist dies nicht erlaubt!


Zugriff habe ich eigentlich auf en übergeordneten Ordner
Hier der Code:
(Datei im Verzeichnis http://hujiko.funpic.de/phpbb3/)

Code: Alles auswählen

<?php
define('IN_PHPBB', true); // we tell the page that it's going to be using phpBB, this is important.
$phpbb_root_path = '../phpbb3/'; // See phpbb_root_path documentation
$phpEx = substr(strrchr(__FILE__, '.'), 1); // Set the File extension for page-wide usage.
include($phpbb_root_path . 'common.' . $phpEx); // include the common.php file, this is important, especially for database connects.

// Start session management -- This will begin the session for the user browsing this page.
$user->session_begin();
$auth->acl($user->data);

$memberselect = mysql_query("SELECT `user_id` FROM `".USER_GROUP_TABLE."` WHERE `user_id` = ".$user->data['user_id']." AND `group_id` = ".$config['radiobutton_group']." LIMIT 1;") or die(mysql_error());


if(!$user->data['username'] == "Anonymous" || mysql_num_rows($memberselect) != 1) {
    redirect('ucp.'.$phpEx.'.?mode=login');
}

$radiolang = array();

// SPRACHKONFIGURATION START
$radiolang['seitentitel'] = "Webradio Konfiguration";
$radiolang['useberschrift'] = "Webradio Moderationslampe";
$radiolang['modgroup'] = "Benutzergruppe, die die<br>Lampe ver&auml;ndern d&uuml;rfen";
$radiolang['modonline'] = "Status des Webradios:";
$radiolang['onlinetext'] = "Wird moderiert";
$radiolang['offlinetext'] = "Wird nicht moderiert";
$radiolang['submittext'] = "Absenden";
$radiolang['closetext'] = "Dieses Fenster schließen";
// SPRACHKONFIGURATION STOP







if(isset($_POST['submit'])) {
	if(is_numeric($_POST['group']) && ($_POST['status']=="online" || $_POST['status'] == "offline")) {
		mysql_query("UPDATE `".CONFIG_TABLE."` SET `config_value` = ".$_POST['group']." WHERE `config_name` = 'radiobutton_group' LIMIT 1;") or die(mysql_error());
		mysql_query("UPDATE `".CONFIG_TABLE."` SET `config_value` = '".$_POST['status']."' WHERE `config_name` = 'radiobutton_mod' LIMIT 1;") or die(mysql_error());
		header('Location: radiomod.php?xx');
	}
	else {
		die("Hacking attempt!");
	}
}




$template->set_filenames(array(
    'site' => 'radiomod.html',
));

$gettemplateqry = mysql_query("SELECT `theme_path` FROM `".STYLES_THEME_TABLE."` WHERE `theme_id` = ".$user->data['user_style']." LIMIT 1;") or die(mysql_error());
$gettemplateinfo = mysql_fetch_array($gettemplateqry);

$getusergroupsqry = mysql_query("SELECT * FROM `".GROUPS_TABLE."`") or die(mysql_error());

while($getusergroupsinfo = mysql_fetch_array($getusergroupsqry)) {
		$checked = ($config['radiobutton_group'] == $getusergroupsinfo['group_id']) ? " selected=\"selected\"" : "";
		$template->assign_block_vars('usergroups', array(
			'ID' => $getusergroupsinfo['group_id'],
			'NAME' => $getusergroupsinfo['group_name'],
			'CHECKED' => $checked
		));
}

$modonline = ($config['radiobutton_mod'] == "online") ? " checked" : "";
$modoffline = ($config['radiobutton_mod'] == "offline") ? " checked" : "";

$template->assign_vars(array(
	'L_SEITENTITEL' => $radiolang['seitentitel'],
	'L_UEBERSCHRIFT' => $radiolang['useberschrift'],
	'L_MODGROUP' => $radiolang['modgroup'],
	'L_MODONLINE' => $radiolang['modonline'],
	'L_ONLINETEXT' => $radiolang['onlinetext'],
	'L_OFFLINETEXT' => $radiolang['offlinetext'],
	'L_CLOSETEXT' => $radiolang['closetext'],
	'L_SUBMITTEXT' => $radiolang['submittext'],
    'TEMPLATENAME' => $gettemplateinfo['template_name'],
    'TEMPLATESTYLE' => $gettemplateinfo['head_stylesheet'],
	'ONLINE' => $modonline,
	'OFFLINE' => $modoffline
));
$template->display('site');
?>
Antworten

Zurück zu „[3.0.x] Styles, Templates und Grafiken“