Can't find some code in Overall_header.html

Kein Support auf phpBB Styles direkt!
No support directly to phpBB Styles!

Post Reply

Topic author
GWAVE 23 xDoWx
Active Member
Posts: 13
Joined: 26. March 2009 15:01
phpBB.com User: GWAVE 23 xDoWx

Can't find some code in Overall_header.html

Post by GWAVE 23 xDoWx »

Your Portal Version: 1.0.3
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Beginner
Boardlink: http://xdowx.co.uk/forums

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
Hi.

I used the older version of the BoardPortal and I had the same problem. I am having some trouble with finding some of the code that is in the instructions. The theme I am using is based on "subsilver2" so I am following those instructions.

I can't find any of the code in my overall_header.html that is instructed to find in the install instructions.


Here is my overall_header.html

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>

<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="2002-2006 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

<style type="text/css">

/*Credits: CSSplay */
/*URL: http://www.cssplay.co.uk/menus/pro_drop2 */
.preload2 {background: url(prodrop2/button4.gif);}
.menu2 {padding:0 0 0 32px; margin:0; list-style:none; height:40px; background:#fff url({T_THEME_PATH}/images/button1a.gif) repeat-x; position:relative; font-family:arial, verdana, sans-serif; }
.menu2 li.top {display:block; float:left; position:relative;}
.menu2 li a.top_link {display:block; float:left; height:40px; line-height:33px; color:#bbb; text-decoration:none; font-size:11px; font-weight:bold; padding:0 0 0 12px; cursor:pointer;}
.menu2 li a.top_link span {float:left; display:block; padding:0 24px 0 12px; height:40px;}
.menu2 li a.top_link span.down {float:left; display:block; padding:0 24px 0 12px; height:40px; background:url({T_THEME_PATH}/images/down.gif) no-repeat right top;}
.menu2 li a.top_link:hover {color:#fff; background: url({T_THEME_PATH}/images/button4.gif) no-repeat;}
.menu2 li a.top_link:hover span {background:url({T_THEME_PATH}/images/button4.gif) no-repeat right top;}
.menu2 li a.top_link:hover span.down {background:url({T_THEME_PATH}/images/button4a.gif) no-repeat right top;}

.menu2 li:hover > a.top_link {color:#fff; background: url({T_THEME_PATH}/images/button4.gif) no-repeat;}
.menu2 li:hover > a.top_link span {background:url({T_THEME_PATH}/images/button4.gif) no-repeat right top;}
.menu2 li:hover > a.top_link span.down {background:url({T_THEME_PATH}/images/button4a.gif) no-repeat right top;}


.menu2 table {border-collapse:collapse; width:0; height:0; position:absolute; top:0; left:0;}

/* Default link styling */

/* Style the list OR link hover. Depends on which browser is used */

.menu2 a:hover {visibility:visible;}
.menu2 li:hover {position:relative; z-index:200;}

/* keep the 'next' level invisible by placing it off screen. */
.menu2 ul, 
.menu2 :hover ul ul, 
.menu2 :hover ul :hover ul ul,
.menu2 :hover ul :hover ul :hover ul ul,
.menu2 :hover ul :hover ul :hover ul :hover ul ul {position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;}

.menu2 :hover ul.sub {left:2px; top:40px; background: #fff; padding:3px 0; border:1px solid #4ab; white-space:nowrap; width:93px; height:auto;}
.menu2 :hover ul.sub li {display:block; height:20px; position:relative; float:left; width:90px;}
.menu2 :hover ul.sub li a {display:block; font-size:11px; height:20px; width:87px; line-height:20px; text-indent:5px; color:#000; text-decoration:none; border:3px solid #fff; border-width:0 0 0 3px;}
.menu2 :hover ul.sub li a.fly {background:#fff url({T_THEME_PATH}/images/arrow.gif) 80px 7px no-repeat;}
.menu2 :hover ul.sub li a:hover {background:#4ab; color:#fff;}
.menu2 :hover ul.sub li a.fly:hover {background:#4ab url({T_THEME_PATH}/images/arrow_over.gif) 80px 7px no-repeat; color:#fff;}
.menu2 :hover ul li:hover > a.fly {background:#4ab url({T_THEME_PATH}/images/arrow_over.gif) 80px 7px no-repeat; color:#fff;} 

.menu2 :hover ul :hover ul,
.menu2 :hover ul :hover ul :hover ul,
.menu2 :hover ul :hover ul :hover ul :hover ul,
.menu2 :hover ul :hover ul :hover ul :hover ul :hover ul
{left:90px; top:-4px; background: #fff; padding:3px 0; border:1px solid #4ab; white-space:nowrap; width:93px; z-index:200; height:auto;}
</style>

<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />

<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 perpage = '{PER_PAGE}';
	var base_url = '{A_BASE_URL}';

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

/**
* 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>

<center>
<div id="wrap">

	<div id="brd_outer">
	<div id="brd_in">
        <a href="{U_PORTAL}"><img src="{T_THEME_PATH}/images/banner.png" width="940" height="250" alt="Dogs Of War- Doing It Doggy Style" /></a>
<span class="preload2"></span>

<ul class="menu2">
	<li class="top"><a href="{U_INDEX}" id="home" class="top_link"><span>{L_INDEX}</span></a></li>
	<li class="top"><a href="{U_PROFILE}" id="products" class="top_link"><span class="down">Control Panel</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
	<li class="top"><a href="" id="services" class="top_link"><span class="down">Search Post</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
		<ul class="sub">
			<li><a href="{U_SEARCH_SELF}">My Post</a></li>
			<li><a href="{U_SEARCH_UNANSWERED}">Unanswered</a></li>
			<li><a href="{U_SEARCH_NEW}">New Post</a></li>
			<li><a href="{U_SEARCH_ACTIVE_TOPICS}">Active Post</a></li>
		</ul>
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
	</li>
	<li class="top"><a href="{U_MEMBERLIST}" id="contacts" class="top_link"><span class="down">{L_MEMBERLIST}</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
		<li class="top"><a href="{U_FAQ}" id="shop" class="top_link"><span class="down">{L_FAQ}</span><!--[if gte IE 7]><!--></a><!--<![endif]--><!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED -->
	<li class="top"><a href="{U_REGISTER}" id="privacy" class="top_link"><span>{L_REGISTER}</span></a></li><!-- ENDIF -->
<!-- IF not S_IS_BOT -->
	<!-- IF S_USER_LOGGED_IN -->
			<!-- IF S_DISPLAY_PM --><li class="top"><a href="{U_PRIVATEMSGS}" id="home" class="top_link"><span>{PRIVATE_MESSAGE_INFO}</span></a></li><!-- ENDIF --><!-- ENDIF --><!-- ENDIF -->
        <!-- IF not S_IS_BOT --><li class="top"><a href="{U_LOGIN_LOGOUT}" id="home" class="top_link"><span>{L_LOGIN_LOGOUT}</span></a></li><!-- ENDIF -->
</ul>
        <div id="hdr"><div id="hdr_ls">
	</div></div>


	<div id="nav_btm"></div>
	<div id="nav_shadow"></div>
<br />
	<div id="menubar">
		<table width="100%" cellspacing="0">
		<tr>
			<td class="genmed">
				<!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF -->
			</td>
			<td class="genmed" align="right">{CURRENT_TIME}</td>
		</tr>
		</table>
	</div>
<br />
<div id="wrapcentre">

	

	<br style="clear: both;" />
	<!-- INCLUDE announcement_centre.html -->

     <!-- INCLUDE breadcrumbs.html -->
	

	<br />
Please help. Thank you.[/i]
User avatar

~HG~
Active Member
Posts: 22
Joined: 9. February 2008 23:07
Location: Australia
Contact:

Re: Can't find some code in Overall_header.html

Post by ~HG~ »

The edits to the overall_header.html is adding a link to the portal only.

You can place this link just about anywhere that suits your board.

I suggest you post it before Board index and in the same format that the current .html has the menu links listed.

Topic author
GWAVE 23 xDoWx
Active Member
Posts: 13
Joined: 26. March 2009 15:01
phpBB.com User: GWAVE 23 xDoWx

Re: Can't find some code in Overall_header.html

Post by GWAVE 23 xDoWx »

Ok Thanks but im still not sure where to put it
User avatar

Mike
Former Team Member
Posts: 1862
Joined: 3. July 2008 23:59
Location: Schwarzwald / FDS
Contact:

Re: Can't find some code in Overall_header.html

Post by Mike »

Make a copy of your overall_header first, and then try this code:

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>

<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="2002-2006 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

<style type="text/css">

/*Credits: CSSplay */
/*URL: http://www.cssplay.co.uk/menus/pro_drop2 */
.preload2 {background: url(prodrop2/button4.gif);}
.menu2 {padding:0 0 0 32px; margin:0; list-style:none; height:40px; background:#fff url({T_THEME_PATH}/images/button1a.gif) repeat-x; position:relative; font-family:arial, verdana, sans-serif; }
.menu2 li.top {display:block; float:left; position:relative;}
.menu2 li a.top_link {display:block; float:left; height:40px; line-height:33px; color:#bbb; text-decoration:none; font-size:11px; font-weight:bold; padding:0 0 0 12px; cursor:pointer;}
.menu2 li a.top_link span {float:left; display:block; padding:0 24px 0 12px; height:40px;}
.menu2 li a.top_link span.down {float:left; display:block; padding:0 24px 0 12px; height:40px; background:url({T_THEME_PATH}/images/down.gif) no-repeat right top;}
.menu2 li a.top_link:hover {color:#fff; background: url({T_THEME_PATH}/images/button4.gif) no-repeat;}
.menu2 li a.top_link:hover span {background:url({T_THEME_PATH}/images/button4.gif) no-repeat right top;}
.menu2 li a.top_link:hover span.down {background:url({T_THEME_PATH}/images/button4a.gif) no-repeat right top;}

.menu2 li:hover > a.top_link {color:#fff; background: url({T_THEME_PATH}/images/button4.gif) no-repeat;}
.menu2 li:hover > a.top_link span {background:url({T_THEME_PATH}/images/button4.gif) no-repeat right top;}
.menu2 li:hover > a.top_link span.down {background:url({T_THEME_PATH}/images/button4a.gif) no-repeat right top;}


.menu2 table {border-collapse:collapse; width:0; height:0; position:absolute; top:0; left:0;}

/* Default link styling */

/* Style the list OR link hover. Depends on which browser is used */

.menu2 a:hover {visibility:visible;}
.menu2 li:hover {position:relative; z-index:200;}

/* keep the 'next' level invisible by placing it off screen. */
.menu2 ul,
.menu2 :hover ul ul,
.menu2 :hover ul :hover ul ul,
.menu2 :hover ul :hover ul :hover ul ul,
.menu2 :hover ul :hover ul :hover ul :hover ul ul {position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;}

.menu2 :hover ul.sub {left:2px; top:40px; background: #fff; padding:3px 0; border:1px solid #4ab; white-space:nowrap; width:93px; height:auto;}
.menu2 :hover ul.sub li {display:block; height:20px; position:relative; float:left; width:90px;}
.menu2 :hover ul.sub li a {display:block; font-size:11px; height:20px; width:87px; line-height:20px; text-indent:5px; color:#000; text-decoration:none; border:3px solid #fff; border-width:0 0 0 3px;}
.menu2 :hover ul.sub li a.fly {background:#fff url({T_THEME_PATH}/images/arrow.gif) 80px 7px no-repeat;}
.menu2 :hover ul.sub li a:hover {background:#4ab; color:#fff;}
.menu2 :hover ul.sub li a.fly:hover {background:#4ab url({T_THEME_PATH}/images/arrow_over.gif) 80px 7px no-repeat; color:#fff;}
.menu2 :hover ul li:hover > a.fly {background:#4ab url({T_THEME_PATH}/images/arrow_over.gif) 80px 7px no-repeat; color:#fff;}

.menu2 :hover ul :hover ul,
.menu2 :hover ul :hover ul :hover ul,
.menu2 :hover ul :hover ul :hover ul :hover ul,
.menu2 :hover ul :hover ul :hover ul :hover ul :hover ul
{left:90px; top:-4px; background: #fff; padding:3px 0; border:1px solid #4ab; white-space:nowrap; width:93px; z-index:200; height:auto;}
</style>

<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />

<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 perpage = '{PER_PAGE}';
	var base_url = '{A_BASE_URL}';

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

/**
* 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>

<center>
<div id="wrap">

	<div id="brd_outer">
	<div id="brd_in">
        <a href="{U_INDEX}"><img src="{T_THEME_PATH}/images/banner.png" width="940" height="250" alt="Welcome To TranceSounds: No.1 Place For Live Radio Sets" /></a>
<span class="preload2"></span>

<!-- IF not $S_IN_PORTAL or S_DISPLAY_PHPBB_MENU -->
<ul class="menu2">
	<!-- IF U_PORTAL --><li class="top"><a href="{U_PORTAL}" id="portal" class="top_link"><span>{L_PORTAL}</span></a></li> <!-- ENDIF -->
	<li class="top"><a href="{U_INDEX}" id="home" class="top_link"><span>{L_INDEX}</span></a></li>
	<li class="top"><a href="{U_PROFILE}" id="products" class="top_link"><span class="down">Control Panel</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
	<li class="top"><a href="" id="services" class="top_link"><span class="down">Search Post</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
		<ul class="sub">
			<li><a href="{U_SEARCH_SELF}">My Post</a></li>
			<li><a href="{U_SEARCH_UNANSWERED}">Unanswered</a></li>
			<li><a href="{U_SEARCH_NEW}">New Post</a></li>
			<li><a href="{U_SEARCH_ACTIVE_TOPICS}">Active Post</a></li>
		</ul>
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
	</li>
	<li class="top"><a href="{U_MEMBERLIST}" id="contacts" class="top_link"><span class="down">{L_MEMBERLIST}</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
		<li class="top"><a href="{U_FAQ}" id="shop" class="top_link"><span class="down">{L_FAQ}</span><!--[if gte IE 7]><!--></a><!--<![endif]--><!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED -->
	<li class="top"><a href="{U_REGISTER}" id="privacy" class="top_link"><span>{L_REGISTER}</span></a></li><!-- ENDIF -->
<!-- IF not S_IS_BOT -->
	<!-- IF S_USER_LOGGED_IN -->
			<!-- IF S_DISPLAY_PM --><li class="top"><a href="{U_PRIVATEMSGS}" id="home" class="top_link"><span>{PRIVATE_MESSAGE_INFO}</span></a></li><!-- ENDIF --><!-- ENDIF --><!-- ENDIF -->
        <!-- IF not S_IS_BOT --><li class="top"><a href="{U_LOGIN_LOGOUT}" id="home" class="top_link"><span>{L_LOGIN_LOGOUT}</span></a></li><!-- ENDIF -->
</ul>

        <div id="hdr"><div id="hdr_ls">
	</div></div>


	<div id="nav_btm"></div>
	<div id="nav_shadow"></div>
<br />

	<div id="menubar">
		<table width="100%" cellspacing="0">
		<tr>
			<td class="genmed">
				<!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF -->
			</td>
			<td class="genmed" align="right">{CURRENT_TIME}</td>
		</tr>
		</table>
	</div>
<br />
<!-- ENDIF -->
<div id="wrapcentre">



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

     <!-- INCLUDE breadcrumbs.html -->


	<br />
Now you can turn on/off the Headermenu in your ACP + have a Link to your Portal at this Menu.

Note that this style is for phpBB 3.0.2 only, and not recommended for use.
kein Support per PN / Messenger
no Support via PM / Messenger

Topic author
GWAVE 23 xDoWx
Active Member
Posts: 13
Joined: 26. March 2009 15:01
phpBB.com User: GWAVE 23 xDoWx

Re: Can't find some code in Overall_header.html

Post by GWAVE 23 xDoWx »

Its working now. Thanks alot mate
Post Reply

Return to “Styles Support”