Results 1 to 10 of 10

Thread: How do I add a link to my main page on ..

  1. #1
    Join Date
    Mar 2009
    Posts
    5

    Default How do I add a link to my main page on ..

    How do I add a link to my main page on a phpbb 3 forum?

  2. #2
    Join Date
    Jan 2008
    Location
    Cheney, WA
    Posts
    16

    Default

    What I did was add links to the header file. You will find the file "overall_header.html" in the templates folder under the style that you are using.

    Bill

  3. #3
    Join Date
    Mar 2009
    Posts
    5

    Default

    Ok thanks ill try that

  4. #4
    Join Date
    Mar 2009
    Posts
    5

    Post

    I'm using the theme Milky way red & I opened up that file for editing and this is what I get this:

    Code:
    <!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>
    <!-- INCLUDE _mg_config.html -->
    
    <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" src="{T_TEMPLATE_PATH}/scripts.js"></script>
    <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(/&amp;/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(/&amp;/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>
    <!--[if lt IE 7]>
    <script type="text/javascript" 
    
    src="{T_TEMPLATE_PATH}/pngfix.js"></script>
    <![endif]-->
    </head>
    <body class="{S_CONTENT_DIRECTION}">
    
    <a name="top"></a>
    
    <div style="width:{$MG_GLOBAL_WIDTH};clear:both;margin: 0 
    
    auto;">
    <table width="100%" align="center" cellspacing="0" cellpadding="0" border="0">
    	<tr>
    		<td class="leftshadow" width="9" valign="top"><img 
    
    src="{T_THEME_PATH}/images/spacer.gif" alt="" width="9" height="1" /></td>
    		<td class="np-body" width="100%" valign="top">
    
    <div id="top_logo">
    <table width="100%" 
    
    cellspacing="0" cellpadding="0" border="0">
    <tr>
    <td height="100" valign="middle"><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>
    <td align="center" valign="middle"><h1></h1><span 
    
    class="gen"></span></td>
    <td align="right" valign="top">&nbsp;</td>
    </tr>
    </table>
    </div>
    
    <!-- INCLUDE menu_block.html -->
    
    <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --><span 
    
    style="color:#CC3333;">{L_BOARD_DISABLED}</span><!-- ENDIF -->
    
    <div id="wrapcentre">
    
    <!-- IF S_USER_PM_POPUP and S_NEW_PM -->
    <div style="margin-top:50px;margin-bottom:50px;text-
    
    align:center;clear:both;"><div class="popuppm-new"><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a></div></div>
    <!-- ENDIF -->
    not really a Language i speak

  5. #5
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    4,951

    Default

    Find the <body in that code as that is where the HTML for the page starts.

  6. #6
    Join Date
    Mar 2009
    Posts
    5

    Default

    <td valign="middle"><a href="http://example.com">Example.com</a></td>

    above

    <td height="100" valign="middle"><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>

    would work?

    I dunno I've been trying lots of things with that file and forum stays the same, maybe UNLIMITED FTP isnt working right for me.

  7. #7
    mhJr_ Guest

    Default

    Add the following where you want the link:
    <a href="" title="" alt="">Link Description</a>

    IE : <a href="index.html" title="Home Page" alt="Home Page">Our home page</a>
    Tweak it to your needs.
    Last edited by mhJr_; 03-20-2009 at 01:03 AM.

  8. #8
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    4,951

    Default

    Quote Originally Posted by mhJr_ View Post
    Add the following where you want the link:
    <a href="" title="" alt="">Link Description</a>

    IE : <a href="index.html" title="Home Page" alt="Home Page">Our home page</a>
    Tweak it to your needs.
    There is no alt attribute for anything but the <img> tag since only images can have images turned off and need ALTernative text to display in place of the image.

    Any tag including <a> and <img> can have a title attribute because that either displays as a tooltip or in the status bar depending on the browser.

  9. #9
    Join Date
    Feb 2009
    Posts
    4

    Default

    Quote Originally Posted by vtmtech View Post
    How do I add a link to my main page on a phpbb 3 forum?
    Tons of ways to add links, what theme are you running?

  10. #10
    Join Date
    Mar 2009
    Posts
    5

    Default

    Quote Originally Posted by dankster View Post
    Tons of ways to add links, what theme are you running?
    I'm using Red Milky Way, this theme might be the problem after all with PHPBB3's Default theme I was able to add google ads without trouble. I've been adding the link here & there on the file with no effect.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •