Page 2 of 2

Re: Dark Fantasy

Posted: 11. February 2010 16:28
by nightowl04
also bei den Umbau verstehe ich den letzten Part nicht

Code: Select all

öffne: styles/DarkFantasy/template/overall_header.html
finde:

Code: Alles auswählen
    <div id="content1">
    <div id="content2">
    <div id="content3">


danach einfügen:

Code: Alles auswählen
      <!-- IF not $S_IN_PORTAL or S_DISPLAY_PHPBB_MENU -->



finde:

Code: Alles auswählen
       <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --><br /><span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF --></p>


davor einfügen:

Code: Alles auswählen
      <!-- ENDIF -->



[b]finde:

Code: Alles auswählen
       <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --><br /><span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF --></p>


danach einfügen:

Code: Alles auswählen
    <!-- IF not $S_IN_PORTAL or S_DISPLAY_PHPBB_MENU -->[/b]
Den Part zweimal, ich finde den Part nicht zweimal oder bin ich nur blind?

Re: Dark Fantasy

Posted: 11. February 2010 18:59
by Mike
Es is die selbe Zeile... Einmal musst du etwas davor einfügen, und einmal danach... ;)

Re: Dark Fantasy

Posted: 11. February 2010 23:50
by nightowl04
oh mann, entschuldige, ich war dann nicht blind, sondern nur mächtig blöd. Sorry, danke für deine Mühe, ich bin Esel.

Re: Dark Fantasy

Posted: 12. February 2010 07:36
by Frutton
Hab alles wie beschrieben getan, konnte Portal allerdings nur in der Theorie installieren...

Kriege nach der Installation folgenden Fehler:
Parse error: syntax error, unexpected $end in /srv/www/httpd/phost/f/com/pytalhost/frutton/web/Spaceballs/cache/tpl_DarkFantasy_overall_header.html.php on line 204
Was mich etwas verwundert. Hab auch schon den Cache Ordner geleert, aber bringt irgendwie nichts.

Re: Dark Fantasy

Posted: 12. February 2010 10:16
by Mike
Kopiere mal bitte deine overall_header.html hier rein.

Re: Dark Fantasy

Posted: 12. February 2010 10:40
by Frutton

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>
<!-- IF S_ENABLE_FEEDS -->
        <link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" />
        <!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF -->
        <!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF -->
        <!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_TOPICS}" href="{U_FEED}?mode=topics" /><!-- ENDIF -->
        <!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF -->
        <!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&t={S_TOPIC_ID}" /><!-- ENDIF -->
<!-- ENDIF -->
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
<!--[if IE]><link rel="stylesheet" href="{T_THEME_PATH}/ie.css" type="text/css" /><![endif]-->
<!--[if lte IE 6]>
<script defer type="text/javascript" src="{T_TEMPLATE_PATH}/pngfix.js"></script>
<link rel="stylesheet" href="{T_THEME_PATH}/ie6.css" type="text/css" />
<![endif]-->
<script type="text/javascript">
// <![CDATA[
<!-- IF S_USER_PM_POPUP -->
        if ({S_NEW_PM})
        {
                popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
        }
<!-- ENDIF -->

function popup(url, width, height, name)
{
        if (!name)
        {
                name = '_popup';
        }

        window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
        return false;
}

function jumpto()
{
        var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
        var per_page = '{PER_PAGE}';
        var base_url = '{A_BASE_URL}';

        if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
        {
                if (base_url.indexOf('?') == -1)
                {
                        document.location.href = base_url + '?start=' + ((page - 1) * per_page);
                }
                else
                {
                        document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
                }
        }}

/**
* Find a member
*/
function find_username(url)
{
        popup(url, 760, 570, '_usersearch');
        return false;
}

/**
* Mark/unmark checklist
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
        var parent = document.getElementById(id);
        if (!parent)
        {
                eval('parent = document.' + id);
        }

        if (!parent)
        {
                return;
        }

        var rb = parent.getElementsByTagName('input');

        for (var r = 0; r < rb.length; r++)
        {
                if (rb[r].name.substr(0, name.length) == name)
                {
                        rb[r].checked = state;
                }
        }
}

<!-- IF ._file -->

        /**
        * Play quicktime file by determining it's width/height
        * from the displayed rectangle area
        *
        * Only defined if there is a file block present.
        */
        function play_qt_file(obj)
        {
                var rectangle = obj.GetRectangle();

                if (rectangle)
                {
                        rectangle = rectangle.split(',')
                        var x1 = parseInt(rectangle[0]);
                        var x2 = parseInt(rectangle[2]);
                        var y1 = parseInt(rectangle[1]);
                        var y2 = parseInt(rectangle[3]);

                        var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
                        var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
                }
                else
                {
                        var width = 200;
                        var height = 0;
                }

                obj.width = width;
                obj.height = height + 16;

                obj.SetControllerVisible(true);

                obj.Play();
        }
<!-- ENDIF -->

// ]]>
</script>
</head>
<body class="{S_CONTENT_DIRECTION}">
<a name="top"></a>

<div id="container">
<div id="wrapper">

<div id="header">
<a href="{U_INDEX}">{SITE_LOGO_IMG}</a>
<div id="top_menu">
        <!-- IF S_DISPLAY_SEARCH --><a id="search" href="{U_SEARCH}">{L_SEARCH}</a><!-- ENDIF -->
        <!-- IF not S_IS_BOT --><!-- IF S_DISPLAY_MEMBERLIST --><a id="members" href="{U_MEMBERLIST}">{L_MEMBERLIST}</a><!-- ENDIF -->
        <!-- IF S_USER_LOGGED_IN --><a id="ucp" href="{U_PROFILE}">{L_PROFILE}</a><!-- ENDIF --><!-- ENDIF -->
        <a id="faq" href="{U_FAQ}">{L_FAQ}</a>
</div>
</div>

<div id="content1">
<div id="content2">
<div id="content3">
  <!-- IF not $S_IN_PORTAL or S_DISPLAY_PHPBB_MENU -->

        <br style="clear: both;" />

        <p class="genmed"><!-- IF not S_IS_BOT --><a href="{U_LOGIN_LOGOUT}"><b>{L_LOGIN_LOGOUT}</b></a><!-- ENDIF -->
        <!-- IF not S_IS_BOT -->
        <!-- IF S_USER_LOGGED_IN -->
        <!-- IF S_DISPLAY_PM --> | <a href="{U_PRIVATEMSGS}"><b>{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></b></a><!-- ENDIF -->
        <!-- ELSEIF S_REGISTER_ENABLED --> | <a href="{U_REGISTER}"><b>{L_REGISTER}</b></a>
        <!-- ENDIF -->
        <!-- ENDIF -->
        <!-- IF U_RESTORE_PERMISSIONS --><br /><a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
      <!-- ENDIF -->
        <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --><br /><span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF --></p>
<!-- IF not $S_IN_PORTAL or S_DISPLAY_PHPBB_MENU -->

        <br style="clear: both;" />

        <!-- INCLUDE breadcrumbs.html -->

        <br />

        <table width="100%" cellspacing="0">
        <tr>
                <td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
                <td class="gensmall" align="{S_CONTENT_FLOW_END}">{CURRENT_TIME}<br /></td>
        </tr>
        </table>

        <!-- IF S_DISPLAY_SEARCH -->
        <p class="searchbar">
                <span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
                <!-- IF S_USER_LOGGED_IN -->
                <span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_UNREAD}">{L_SEARCH_UNREAD}</a> | <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
                <!-- ENDIF -->
        </p>
        <!-- ENDIF -->

        <br style="clear: both;" /><br />

        <div id="wrapheader"></div>

Re: Dark Fantasy

Posted: 12. February 2010 17:15
by nightowl04
Kann leider auch nur bestätigen:

Code: Select all

Parse error: syntax error, unexpected $end in ...../site/cache/tpl_DarkFantasy_overall_header.html.php on line 203

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>
<!-- IF S_ENABLE_FEEDS -->
	<link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" />
	<!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_TOPICS}" href="{U_FEED}?mode=topics" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&t={S_TOPIC_ID}" /><!-- ENDIF -->
<!-- ENDIF -->
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
<!--[if IE]><link rel="stylesheet" href="{T_THEME_PATH}/ie.css" type="text/css" /><![endif]-->
<!--[if lte IE 6]>
<script defer type="text/javascript" src="{T_TEMPLATE_PATH}/pngfix.js"></script>
<link rel="stylesheet" href="{T_THEME_PATH}/ie6.css" type="text/css" />
<![endif]-->
<script type="text/javascript">
// <![CDATA[
<!-- IF S_USER_PM_POPUP -->
	if ({S_NEW_PM})
	{
		popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
	}
<!-- ENDIF -->

function popup(url, width, height, name)
{
	if (!name)
	{
		name = '_popup';
	}

	window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
	return false;
}

function jumpto()
{
	var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
	var per_page = '{PER_PAGE}';
	var base_url = '{A_BASE_URL}';

	if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
	{
		if (base_url.indexOf('?') == -1)
		{
			document.location.href = base_url + '?start=' + ((page - 1) * per_page);
		}
		else
		{
			document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
		}
	}}

/**
* Find a member
*/
function find_username(url)
{
	popup(url, 760, 570, '_usersearch');
	return false;
}

/**
* Mark/unmark checklist
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
	var parent = document.getElementById(id);
	if (!parent)
	{
		eval('parent = document.' + id);
	}

	if (!parent)
	{
		return;
	}

	var rb = parent.getElementsByTagName('input');

	for (var r = 0; r < rb.length; r++)
	{
		if (rb[r].name.substr(0, name.length) == name)
		{
			rb[r].checked = state;
		}
	}
}

<!-- IF ._file -->

	/**
	* Play quicktime file by determining it's width/height
	* from the displayed rectangle area
	*
	* Only defined if there is a file block present.
	*/
	function play_qt_file(obj)
	{
		var rectangle = obj.GetRectangle();

		if (rectangle)
		{
			rectangle = rectangle.split(',')
			var x1 = parseInt(rectangle[0]);
			var x2 = parseInt(rectangle[2]);
			var y1 = parseInt(rectangle[1]);
			var y2 = parseInt(rectangle[3]);

			var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
			var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
		}
		else
		{
			var width = 200;
			var height = 0;
		}

		obj.width = width;
		obj.height = height + 16;

		obj.SetControllerVisible(true);

		obj.Play();
	}
<!-- ENDIF -->

// ]]>
</script>
</head>
<body class="{S_CONTENT_DIRECTION}">
<a name="top"></a>

<div id="container">
<div id="wrapper">

<div id="header">
<a href="{U_INDEX}">{SITE_LOGO_IMG}</a>
<div id="top_menu">
	<!-- IF S_DISPLAY_SEARCH --><a id="search" href="{U_SEARCH}">{L_SEARCH}</a><!-- ENDIF -->
	<!-- IF not S_IS_BOT --><!-- IF S_DISPLAY_MEMBERLIST --><a id="members" href="{U_MEMBERLIST}">{L_MEMBERLIST}</a><!-- ENDIF -->
	<!-- IF S_USER_LOGGED_IN --><a id="ucp" href="{U_PROFILE}">{L_PROFILE}</a><!-- ENDIF --><!-- ENDIF -->
	<a id="faq" href="{U_FAQ}">{L_FAQ}</a>
</div>
</div>

<div id="content1">
<div id="content2">
<div id="content3">
<!-- IF not $S_IN_PORTAL or S_DISPLAY_PHPBB_MENU -->

	<br style="clear: both;" />

	<p class="genmed"><!-- IF not S_IS_BOT --><a href="{U_LOGIN_LOGOUT}"><b>{L_LOGIN_LOGOUT}</b></a><!-- ENDIF -->
	<!-- IF not S_IS_BOT -->
	<!-- IF S_USER_LOGGED_IN -->
	<!-- IF S_DISPLAY_PM --> | <a href="{U_PRIVATEMSGS}"><b>{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></b></a><!-- ENDIF -->
	<!-- ELSEIF S_REGISTER_ENABLED --> | <a href="{U_REGISTER}"><b>{L_REGISTER}</b></a>
	<!-- ENDIF -->
	<!-- ENDIF -->
	<!-- IF U_RESTORE_PERMISSIONS --><br /><a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
	<!-- ENDIF --><!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --><br /><span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF --></p><!-- IF not $S_IN_PORTAL or S_DISPLAY_PHPBB_MENU -->

	<br style="clear: both;" />

	<!-- INCLUDE breadcrumbs.html -->

	<br />

	<table width="100%" cellspacing="0">
	<tr>
		<td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
		<td class="gensmall" align="{S_CONTENT_FLOW_END}">{CURRENT_TIME}<br /></td>
	</tr>
	</table>

	<!-- IF S_DISPLAY_SEARCH -->
	<p class="searchbar">
		<span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
		<!-- IF S_USER_LOGGED_IN -->
		<span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_UNREAD}">{L_SEARCH_UNREAD}</a> | <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
		<!-- ENDIF -->
	</p>
	<!-- ENDIF -->

	<br style="clear: both;" /><br />

	<div id="wrapheader"></div>

Re: Dark Fantasy

Posted: 12. February 2010 17:29
by Marc
Bei den Edits in der overall_header.html fehlt noch:
Finde:

Code: Select all

	<div id="wrapheader"></div>
Davor einfügen:

Code: Select all

<!-- ENDIF -->

Re: Dark Fantasy

Posted: 12. February 2010 18:57
by Frutton
Hab ich hinzugefügt, der Fehler bleibt allerdings der selbe. :o

Re: Dark Fantasy

Posted: 12. February 2010 19:29
by Mike
Oh, Marc hat recht, da ist mir leider ein kleiner copy&paste Fehler unterlaufen. :oops:
Hab das eben in der Anleitung berichtigt, und den Header nochmal genau nach dieser Anleitung neu bearbeitet, und es funktioniert....

Wahrscheinlich musst du einfach nochmal die Caches leeren, nachdem die Zeile dazugekommen ist.

Re: Dark Fantasy

Posted: 12. February 2010 19:37
by Frutton
Hatte ich davor eigentlich schon, habs aber jetzt nochmal gelöscht und es geht tatsächlich.

Danke für die Anleitung :)

Re: Dark Fantasy

Posted: 13. February 2010 10:12
by nightowl04
Dito, ich kann mich auch ganz herzlich für deine Mühe dankbar und dankbar sagen, das ich den Style nun gerne nutze. Ein schönes Wochenende.