Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
how to add banner php file to a html file
Old 10-06-2010, 09:32 AM how to add banner php file to a html file
Super Talker

Posts: 113
Trades: 0
Hi guys

I am trying to work on a forum. i am currently editing a template and within the header html file i want to add my own website banner which is inside a php page. but i am struggling to find the place where i should add the banner or php file and which code to use. can someone help me please

thanks in advance

PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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-style-type" content="text/css" />
<
meta http-equiv="content-language" content="{S_USER_LANG}" />
<
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 http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
{
META}
<
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}&amp;t={S_TOPIC_ID}" /><!-- ENDIF -->
<!-- ENDIF -->

<!--
    
phpBB style nameprosilver
    Based on style
:   prosilver (this is the default phpBB3 style)
    
Original author:  Tom Beddard http://www.subBlue.com/ )
    
Modified by:      
    
    
NOTEThis page was generated by phpBBthe free open-source bulletin board package.
          
The phpBB Group is not responsible for the content of this page and forum. For more information
          about phpBB please visit http
://www.phpbb.com
-->

<
script type="text/javascript">
// <![CDATA[
    
var jump_page '{LA_JUMP_PAGE}:';
    var 
on_page '{ON_PAGE}';
    var 
per_page '{PER_PAGE}';
    var 
base_url '{A_BASE_URL}';
    var 
style_cookie 'phpBBstyle';
    var 
style_cookie_settings '{A_COOKIE_SETTINGS}';
    var 
onload_functions = new Array();
    var 
onunload_functions = new Array();

    <!-- IF 
S_USER_PM_POPUP -->
        if ({
S_NEW_PM})
        {
            var 
url '{UA_POPUP_PM}';
            
window.open(url.replace(/&amp;/g'&'), '_phpbbprivmsg''height=225,resizable=yes,scrollbars=yes, width=400');
        }
    <!-- ENDIF -->

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

    
/**
    * New function for handling multiple calls to window.onload and window.unload by pentapenguin
    */
    
window.onload = function()
    {
        for (var 
0onload_functions.lengthi++)
        {
            eval(
onload_functions[i]);
        }
    }

    
window.onunload = function()
    {
        for (var 
0onunload_functions.lengthi++)
        {
            eval(
onunload_functions[i]);
        }
    }

// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/styleswitcher.js"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>


<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />

<link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
<link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />

<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
    <link href="{T_THEME_PATH}/bidi.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->

</head>

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
{SVMODS_FACEBOOK_JS}
<div style="text-align:center">
<!-- logo -->
<a id="top" name="top" accesskey="t"></a>
<table class="center" width="80%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="headerwrap"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="logowrap" valign="top"><a href="{U_INDEX}"><img src="{T_THEME_PATH}/images/achik/spacer.gif" alt="{L_INDEX}" width="460" height="110"  style="border:0px;"/></a></td>
        <td >&nbsp;</td>
        <td class="headerR">&nbsp;</td>
      </tr>
    </table></td>
</tr>
  <tr>
    <td class="navwrap">
<!-- nav buttons bar -->
            <div id="site-description">
            
                
                {SITE_DESCRIPTION}
                
            </div>

        <!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH -->
            <div id="search-box">
                <form action="{U_SEARCH}" method="post" id="search">
                <fieldset>
                    <input name="keywords" id="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" /> 
                    <input class="button2" value="{L_SEARCH}" type="submit" />
                </fieldset>
                </form>
            </div>
        <!-- ENDIF -->
<!-- / nav buttons bar --></td>
  </tr>
  <tr>
    <td valign="top" class="cwrap">
<!-- /logo -->
<div id="wrap">
    <div id="page-header">
<br/>
        <div class="navbar">
            <div class="inner"><span class="corners-top"><span></span></span>

            <ul class="linklist navlinks">
                <li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>‹</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>

                <li class="rightside"><a href="#" onclick="fontsizeup(); return false;" onkeypress="return fontsizeup(event);" class="fontsize" title="{L_CHANGE_FONT_SIZE}">{L_CHANGE_FONT_SIZE}</a></li>
                
                <!-- IF U_EMAIL_TOPIC --><li class="rightside"><a href="{U_EMAIL_TOPIC}" title="{L_EMAIL_TOPIC}" class="sendemail">{L_EMAIL_TOPIC}</a></li><!-- ENDIF -->
                <!-- IF U_EMAIL_PM --><li class="rightside"><a href="{U_EMAIL_PM}" title="{L_EMAIL_PM}" class="sendemail">{L_EMAIL_PM}</a></li><!-- ENDIF -->
                <!-- IF U_PRINT_TOPIC --><li class="rightside"><a href="{U_PRINT_TOPIC}" title="{L_PRINT_TOPIC}" accesskey="p" class="print">{L_PRINT_TOPIC}</a></li><!-- ENDIF -->
                <!-- IF U_PRINT_PM --><li class="rightside"><a href="{U_PRINT_PM}" title="{L_PRINT_PM}" accesskey="p" class="print">{L_PRINT_PM}</a></li><!-- ENDIF -->
            </ul>

            <!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
            <ul class="linklist leftside">
                <li class="icon-ucp">
                    <a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="e">{L_PROFILE}</a>
                        <!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>)<!-- ENDIF -->
                    <!-- IF S_DISPLAY_SEARCH --> &bull;                    
                    <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>
                    <!-- ENDIF -->
                    <!-- IF U_RESTORE_PERMISSIONS --> &bull;
                    <a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
                    <!-- ENDIF -->
                </li>
            </ul>
            <!-- ENDIF -->

            <ul class="linklist rightside">
                <li class="icon-faq"><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}">{L_FAQ}</a></li>
                <!-- IF not S_IS_BOT -->
                    <!-- IF S_DISPLAY_MEMBERLIST --><li class="icon-members"><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}">{L_MEMBERLIST}</a></li><!-- ENDIF -->
                    <!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) --><li class="icon-register"><a href="{U_REGISTER}">{L_REGISTER}</a></li><!-- ENDIF -->
                    <li class="icon-logout"><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="x">{L_LOGIN_LOGOUT}</a></li>
                <!-- ENDIF -->
            </ul>

            <span class="corners-bottom"><span></span></span></div>
        </div>

    </div>

    <a name="start_here"></a>
    <div id="page-body">
        
         <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) --> 
        <div id="information" class="rules">
            <div class="inner"><span class="corners-top"><span></span></span>
                <strong>{L_INFORMATION}:</strong> {L_BOARD_DISABLED}
            <span class="corners-bottom"><span></span></span></div>
        </div>
        <!-- ENDIF --> 
checkmate is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-06-2010, 10:33 AM Re: how to add banner php file to a html file
ScrapingWeb.com's Avatar
Average Talker

Posts: 25
Location: ScrapingWeb.com
Trades: 0
Give us your site so we can examine it against the code to find out where you should put the code.
__________________

Please login or register to view this content. Registration is FREE
for webmasters who need the data to get started on niche information sites. Here are
Please login or register to view this content. Registration is FREE
.
ScrapingWeb.com is offline
Reply With Quote
View Public Profile Visit ScrapingWeb.com's homepage!
 
Old 10-06-2010, 11:56 AM Re: how to add banner php file to a html file
Super Talker

Posts: 113
Trades: 0
www.swaminarayanmandir .org.uk

link to where i want the header is www.swaminarayanmandir .org.uk/forums

thanks
checkmate is offline
Reply With Quote
View Public Profile
 
Old 10-06-2010, 05:28 PM Re: how to add banner php file to a html file
miki86's Avatar
Extreme Talker

Posts: 185
Location: print_r($serbia);
Trades: 0
Why are you editing files when you can design your logo and replace the current one?

Width: 400px
Height: 110px

./styles/achik/theme/images/achik/spacer.gif

Edit: Check your skin folder, they usually put a psd file for that stuff

Last edited by miki86; 10-06-2010 at 05:31 PM..
miki86 is online now
Reply With Quote
View Public Profile
 
Old 10-07-2010, 05:24 AM Re: how to add banner php file to a html file
Super Talker

Posts: 113
Trades: 0
can i add the menu i have as well? as i need the menu added as well
checkmate is offline
Reply With Quote
View Public Profile
 
Old 10-07-2010, 05:36 AM Re: how to add banner php file to a html file
miki86's Avatar
Extreme Talker

Posts: 185
Location: print_r($serbia);
Trades: 0
If your menu is in header you need to edit file named overall_header.html(don't know if that file exist in newer phpbb versions) as i recall, im not really sure i've done this several years ago, but i have that file on my hdd and it looks like i changed some stuff there.
Whatever you add in that file will be visible on all skins.

Last edited by miki86; 10-07-2010 at 05:37 AM..
miki86 is online now
Reply With Quote
View Public Profile
 
Old 10-07-2010, 05:44 AM Re: how to add banner php file to a html file
Super Talker

Posts: 113
Trades: 0
the above code i pasted on my first post, is the code from the overall header.html file

but i am struggling to find where i should paste my code, wether i should call the file or copy code from my header page and paste on the overall header.html file
checkmate is offline
Reply With Quote
View Public Profile
 
Old 10-07-2010, 12:03 PM Re: how to add banner php file to a html file
miki86's Avatar
Extreme Talker

Posts: 185
Location: print_r($serbia);
Trades: 0
You need to experiment, i would put it in the end of that file.
I dont know where you want that menu to apear.
miki86 is online now
Reply With Quote
View Public Profile
 
Old 10-08-2010, 03:17 AM Re: how to add banner php file to a html file
Super Talker

Posts: 113
Trades: 0
i have tried every where but no luck...tried something different but that has completely messed it up lol
checkmate is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to how to add banner php file to a html file
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.39778 seconds with 12 queries