Add Homepage link in header

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Add Homepage link in header

Post by ChriZathens » Sun Sep 13, 2009 11:23 pm

To manually uninstall you need to run the query from this post: http://www.phpbb.com/community/viewtopi ... #p10718995
And undo file edits which are mentioned in the install.xml. Of course you can also uninstall using Automod. Although I quite haven't really understood what happened in the first place (when you used Automod to install)
Could you elaborate on this so that I can perhaps help more?
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

extramsg
Registered User
Posts: 7
Joined: Tue Jan 18, 2005 5:31 am

Re: Add Homepage link in header

Post by extramsg » Mon Sep 14, 2009 6:25 am

Normally when I use Automod, I upload the folder, choose to install it, then it gives me a list of what's to be done, then I get a tarball with files to upload and replace.

This time I got a file with various xml and xsl documents, but none of the files it said would be edited -- no functions.php, etc.

So, I'm planning to go through the list of file edits and do them manually -- I haven't done them yet -- but I don't know exactly how Automod installs and uninstalls, so I was wondering if I needed to put in commenting or do something else when I make the manual edits.

User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Add Homepage link in header

Post by ChriZathens » Mon Sep 14, 2009 8:30 am

To manually install it, just open install_mod.xml and follow the instructions. Since you believe that Automod did not actually did something (weird, though..) then manual installation should be no problem. It would be a good idea to check for duplicate edits, though..
If you face any problems during the manual installation post here and I will help. ;)
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

dimaba
Registered User
Posts: 4
Joined: Sat Sep 19, 2009 6:38 pm

Re: Add Homepage link in header

Post by dimaba » Sat Sep 19, 2009 6:48 pm

This appears at the top of my forum after installation:

Code: Select all

Warning: Cannot modify header information - headers already sent by (output started at /home/www/marnixgroep09.awardspace.info/phpBB3/language/en/common.php:1) in /home/www/marnixgroep09.awardspace.info/phpBB3/includes/functions.php on line 3828

Warning: Cannot modify header information - headers already sent by (output started at /home/www/marnixgroep09.awardspace.info/phpBB3/language/en/common.php:1) in /home/www/marnixgroep09.awardspace.info/phpBB3/includes/functions.php on line 3830

Warning: Cannot modify header information - headers already sent by (output started at /home/www/marnixgroep09.awardspace.info/phpBB3/language/en/common.php:1) in /home/www/marnixgroep09.awardspace.info/phpBB3/includes/functions.php on line 3831

Warning: Cannot modify header information - headers already sent by (output started at /home/www/marnixgroep09.awardspace.info/phpBB3/language/en/common.php:1) in /home/www/marnixgroep09.awardspace.info/phpBB3/includes/functions.php on line 3832
I have checked that both the files mentioned in the errors are saved without BOM. One thing I think might cause a problem is that I'm not using one of the styles that have pre-existing installation instructions. I'm using RedSilver3. This is how I have attempted to make the changes necessary in overall_header.php:

Code: Select all

<table cellpadding="0" cellspacing="0" width="100%" style="height: 100px;background: url({T_IMAGESET_PATH}/top_bkg.gif) repeat-x;">
		<tr>
			<td><center>
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td style="padding: 0;">
							<!-- IF S_SHOW_HOMEPAGE and U_HOMEPAGE --><li class="icon-home"><a href="{U_HOMEPAGE}" <!-- IF U_HOMEPAGE_TITLE -->title="{U_HOMEPAGE_TITLE}"<!-- ENDIF --><!-- IF S_SHOW_HOMEPAGE_IN_NEW -->onclick="window.open(this.href); return false;"<!-- ENDIF --> accesskey="y">{L_HOMEPAGE}</a></li><!-- ENDIF --><a href="{U_INDEX}">
<img style="margin: -4px 40px -4px -4px;" src="{T_IMAGESET_PATH}/site_logo.gif" alt="{SITENAME}" /></a>
						</td><td>
							<h1>{SITENAME}</h1><span class="gen">{SITE_DESCRIPTION}</span>
						</td>
					</tr>
				</table>
			</center></td>
		</tr>
	</table>
Does anyone have any suggestions as to what I'm doing wrong? I'd guess the most likely place to find a mistake is in the overall_header.php code posted above since it is the only part that I did without following the instructions.

User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Add Homepage link in header

Post by ChriZathens » Sun Sep 20, 2009 12:45 pm

This error is not caused only if you have saved your language file with BOM. There maybe also a whitespace or a blank line before <?php in that files :
output started at /home/www/marnixgroep09.awardspace.info/phpBB3/language/en/common.php:1
;)
Your templates would cause no such problem AFAIK...However, you should use the template edits for subsilver2 as redsilver is subsilver2 based. Post your overall_header.html here in code tags and I can help you with that... :)
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

dimaba
Registered User
Posts: 4
Joined: Sat Sep 19, 2009 6:38 pm

Re: Add Homepage link in header

Post by dimaba » Sun Sep 20, 2009 5:30 pm

I've made sure that there are no whitespaces or blank lines before the <?php in that file.

My overall_header.php is below:

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="2000, 2002, 2005, 2007 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>

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

<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td width="15" style="padding: 0;background: url('{T_IMAGESET_PATH}/left_bkg.gif') repeat-y; width: 15px;"></td>
		<td style="padding: 0;">

<div id="wrapheader">

				

	<table cellpadding="0" cellspacing="0" width="100%" style="height: 100px;background: url({T_IMAGESET_PATH}/top_bkg.gif) repeat-x;">
		<tr>
			<td><center>
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td style="padding: 0;">
							<a href="{U_INDEX}"><img style="margin: -4px 40px -4px -4px;" src="{T_IMAGESET_PATH}/site_logo.gif" alt="{SITENAME}" /></a>
						</td><td>
							<h1>{SITENAME}</h1><span class="gen">{SITE_DESCRIPTION}</span>
						</td>
					</tr>
				</table>
			</center></td>
		</tr>
	</table>
	
	<table id="menu_bkg" cellpadding="0" cellspacing="0" width="100%" style="height: 34px;background: url({T_IMAGESET_PATH}/menu_bkg.gif) repeat-x;">
		<tr>
			<td style="padding: 0;">
				<center>
				<!-- IF S_SHOW_HOMEPAGE and U_HOMEPAGE --><a href="{U_HOMEPAGE}" <!-- IF U_HOMEPAGE_TITLE -->title="{U_HOMEPAGE_TITLE}"<!-- ENDIF --><!-- IF S_SHOW_HOMEPAGE_IN_NEW -->onclick="window.open(this.href); return false;"<!-- ENDIF -->><img src="{T_THEME_PATH}/images/icon_mini_home.gif" width="12" height="13" alt="*" /> {L_HOMEPAGE}</a>&nbsp;&nbsp;<!-- ENDIF -->
					<a href="{U_FAQ}">{L_FAQ}</a>
							
					<!-- IF U_RESTORE_PERMISSIONS --> &nbsp;-&nbsp;<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
				
					<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --> &nbsp;-&nbsp;<span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF -->
				
					<!-- IF not S_IS_BOT -->
						<!-- IF S_USER_LOGGED_IN -->
							<!-- IF S_DISPLAY_PM --> &nbsp;-&nbsp;<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF -->
						<!-- ELSEIF S_REGISTER_ENABLED --> &nbsp;-&nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a>
						<!-- ENDIF -->
					<!-- ENDIF -->
				
					<!-- IF S_DISPLAY_SEARCH --> &nbsp;-&nbsp;<a href="{U_SEARCH}">{L_SEARCH}</a><!-- ENDIF -->
					<!-- IF not S_IS_BOT -->
						<!-- IF S_DISPLAY_MEMBERLIST --> &nbsp;-&nbsp;<a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a><!-- ENDIF -->
						<!-- IF S_USER_LOGGED_IN --> &nbsp;-&nbsp;<a href="{U_PROFILE}">{L_PROFILE}</a><!-- ENDIF -->
					<!-- ENDIF -->
				
					<!-- IF not S_IS_BOT -->&nbsp;-&nbsp;<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>&nbsp;<!-- ENDIF -->
				</center>
			</td>
		</tr>
	</table>
	
	
	<table cellpadding="0" cellspacing="0" width="100%" style="height: 30px;background: url({T_IMAGESET_PATH}/below_menu_bkg.gif) repeat-x;">
		<tr>
			<td style="padding: 0;">
				&nbsp;
			</td>
		</tr>
	</table>
	
	<div id="datebar">
		<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>
	</div>

</div>

<div id="wrapcentre">

	<!-- 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_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
		<!-- ENDIF -->
	</p>
	<!-- ENDIF -->

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

	<!-- INCLUDE breadcrumbs.html -->

	<br />
I have followed the subsilver2 instructions as much as possible.

User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Add Homepage link in header

Post by ChriZathens » Sun Sep 20, 2009 5:46 pm

overall_header.html looks OK the way you placed the edits. You could omit the

Code: Select all

<img src="{T_THEME_PATH}/images/icon_mini_home.gif" width="12" height="13" alt="*" /> 
part, though, since I see that your other links have no images...
As for your error the only way to check it is to have the actual file. So, please zip it and attach it here for me to take a look.
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

dimaba
Registered User
Posts: 4
Joined: Sat Sep 19, 2009 6:38 pm

Re: Add Homepage link in header

Post by dimaba » Mon Sep 21, 2009 8:56 pm

I've attached a .zip with both of the mentioned files (includes\functions.php and language\en\common.php). I hope you can find what I'm doing wrong. Whatever the result, I really appreciate the effort you're making to help me out.
Attachments

[The extension zip has been deactivated and can no longer be displayed.]


User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Add Homepage link in header

Post by ChriZathens » Mon Sep 21, 2009 10:09 pm

Your functions.php file looks fine
However, your language file was not fine (was encoded as utf8 and not utf8 without bom)
Try this file instead and let me know how it goes:

[The extension zip has been deactivated and can no longer be displayed.]

My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

dimaba
Registered User
Posts: 4
Joined: Sat Sep 19, 2009 6:38 pm

Re: Add Homepage link in header

Post by dimaba » Mon Sep 21, 2009 10:46 pm

Yes! It works now. Strange, I could've sworn I'd saved all my files without bom. Should've triple-checked I guess. Sorry to have troubled you with such a basic mistake and thanks a lot for your help. Much appreciated.

kev loomes
Registered User
Posts: 18
Joined: Wed Jun 10, 2009 10:21 pm

Re: Add Homepage link in header

Post by kev loomes » Wed Oct 14, 2009 3:53 pm

Hi guys

I hope you can help big time.

I have changed my header icon image(site logo) and linked it fine - to the site's html homepage :) BUT I want to change the whole header into a different hyperlink (but retain the site logo link). Basically I have placed another image onto the header (as one whole image) and so if I can use this to hyperlink to another site it would be great.

Can you help?

http://www.ccdo.co.uk/forum/index.php

A million thanks to anyone who can help :!:

Kev

User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Add Homepage link in header

Post by ChriZathens » Wed Oct 14, 2009 3:59 pm

Try posting your question in the support forum, where people will see your problem and will most likely help you faster.
Posting in this topic in unlikely for most people to see your question, since this topic is mostly visited by people who have installed this mod and seek support specifically for it...
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

kev loomes
Registered User
Posts: 18
Joined: Wed Jun 10, 2009 10:21 pm

Re: Add Homepage link in header

Post by kev loomes » Wed Oct 14, 2009 4:12 pm

Ok Cheers, I'll do that now ;)

Kev

wolvenmoon
Registered User
Posts: 2
Joined: Thu Apr 13, 2006 2:11 am

Re: Add Homepage link in header

Post by wolvenmoon » Thu Oct 22, 2009 1:09 am

Hi,

I installed with automod but the link is displaying as { Homepage }, I saw a post earlier in this thread that the poster had gotten it fixed but he didn't say how. My style is glass darkblue which uses prosilver as its template.

User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Add Homepage link in header

Post by ChriZathens » Thu Oct 22, 2009 7:23 am

This means that you have not edited the language files. You need to add the language entries for all the languages you have. Automod will do the job for the English language (language/en/).
If you also have your own language just edit it manually...
So, open language/your_language/common.php and language/your_language/acp/board.php and follow the instructions from install_mod.xml
Just make sure that you use a descent text editor to edit the language files (I use Notepad++) and also make sure that after editing you save the files as UTF8 WITHOUT BOM
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...

Locked

Return to “[3.0.x] MOD Database Releases”