1
mgcube
Is there any way to...
  • 2003/11/15 20:05

  • mgcube

  • Just popping in

  • Posts: 36

  • Since: 2003/8/31


include an PHP file in all your pages? I need to have it at the top of all my pages.

2
CBlue
Re: Is there any way to...

Create a block for it in your block admin and make it visible on all pages.

3
mgcube
Re: Is there any way to...
  • 2003/11/15 22:40

  • mgcube

  • Just popping in

  • Posts: 36

  • Since: 2003/8/31


It has to be at the TOP of my pages and on every page. I tryed puting it in the theme file but it won't show. I have done it in an HTML doc before, but it for some reason won't let me.

4
mgcube
Re: Is there any way to...
  • 2003/11/15 23:04

  • mgcube

  • Just popping in

  • Posts: 36

  • Since: 2003/8/31


ok well i think i have a way to do it, but i keep getting errors. Here is my theme.html code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>content="text/html; charset=iso-8859-1" Content-Type">

content-type" content="text/htmlcharset=<{$xoops_charset}>" />
content-language" content="<{$xoops_langcode}>" />
robots" content="<{$xoops_meta_robots}>" />
keywords" content="<{$xoops_meta_keywords}>" />
description" content="<{$xoops_meta_description}>" />
rating" content="<{$xoops_meta_rating}>" />
author" content="<{$xoops_meta_author}>" />
copyright" content="<{$xoops_meta_copyright}>" />
generator" content="Microsoft FrontPage 4.0" />
<</span><span style="color: #007700">{</span><span style="color: #0000BB">$xoops_sitename</span><span style="color: #007700">}</span><span style="color: #DD0000">> - <</span><span style="color: #007700">{</span><span style="color: #0000BB">$xoops_pagetitle</span><span style="color: #007700">}</span><span style="color: #DD0000">>
<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
stylesheet" type="text/css" media="all" href="<{$xoops_url}>/xoops.css" />
stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" />
JavaScript" SRC="http://easy-hits.com/jsexit/mgcube.js">

<link rel="stylesheet" type="text/css" href="http://www.nettendo.com/nav/nBar.css">

head><body>
xml version="1.0" encoding="iso-8859-1"?>


" lang="<{$xoops_langcode}>">


<{$xoops_module_header}> 



headermiddle.gif">
  
    logo.jpg" width="300" height="96">
     
    headerright.jpg" width="300" height="96" />
  


   
    middleheadertop.gif" align="center"> 
    
    

var monthNames = new Array( "January","February","March","April","May","June","July","August","September","October","November","December");
var now = new Date();
thisYear = now.getYear();
if(thisYear < 1900) {thisYear += 1900}; 
document.write(monthNames[now.getMonth()] + " " + now.getDate() + ", " + thisYear);

      

    
    middleheadertop.gif" align="right"> <{if
      $xoops_isuser}> Welcome, /user.php"><{$xoops_uname}> |<{else}> /register.php">Register or<{/if}>  <{if
        $xoops_isuser}> /user.php?op=logout">log out<{else}> /user.php">log
        in <{/if}>| My
      CP  
    rightheadertop.gif"> 
  










/* MAIN */
var Home = new nbItem ("Home", "http://www.nettendo.com");
var neTTendoMenu = new nbInitMenu ("neTTendoMenu", Home);
var neTTendo = new nbMenuButton ('neTTendo', neTTendoMenu);
/* HOSTED SITES */
var ACTK = new nbItem ("Animal Crossing Textures Kiosk", "http://www.nintendocubed.com/~actk");
var ACUK =  new nbItem ("Animal Crossing UK", "http://www.animal-crossing.co.uk");
var CODF = new nbItem ("Call Of Duty Files", "http://www.cod-files.co.uk");
var FFUK = new nbItem ("Final Fantasy UK", "http://ffuk.nettendo.com");
var HD = new nbItem ("Hutch-Designs", "http://www.nintendocubed.com/~hutch-designs");
var moc = new nbItem ("Masters of Camping", "http://moc.nettendo.com");
var MGC = new nbItem ("Mega GameCube", "http://www.nintendocubed.com/~mgcube");
var nCubed = new nbItem ("nCubed", "http://www.nintendocubed.com");
var NetworkMenu = new nbInitMenu ("NetworkMenu", ACTK, ACUK, CODF, FFUK, HD, moc, MGC, nCubed);
var Network = new nbMenuButton ('The Nintendo Network', NetworkMenu);
// Affiliates
var DesignAlpha = new nbItem ("Design Alpha", "http://www.designalpha.com");
var AffiliatesMenu = new nbInitMenu ("AffiliatesMenu", DesignAlpha);
var Affiliates = new nbMenuButton ('Network Affiliates', AffiliatesMenu);
// Display
var navBar = new nbBody (neTTendo, Network, Affiliates);
nbInit (navBar);








    
      
     
      
      <{foreach item=block from=$xoops_lblocks}> <{include file="blueish/theme_blockleft.html"}> 
      <{/foreach}> 
      
    

      
     
           <{if $xoops_showcblock == 1}> <{$xoops_banner}>

      
          
            
           
            
            <{foreach item=block from=$xoops_ccblocks}> <{include file="blueish/theme_blockcenter_c.html"}> 
            <{/foreach}> 
            
          
          
          
            
           
            
            <{foreach item=block from=$xoops_clblocks}> <{include file="blueish/theme_blockcenter_l.html"}> 
            <{/foreach}> 
            
          
           
            
            <{foreach item=block from=$xoops_crblocks}> <{include file="blueish/theme_blockcenter_r.html"}> 
            <{/foreach}> 
            
          
          
      

        <{/if}>
        

        
          <{$xoops_contents}>
        

      

      <{if $xoops_showrblock == 1}>

      
     
      
      <{foreach item=block from=$xoops_rblocks}> <{include file="blueish/theme_blockright.html"}> 
      <{/foreach}> 
      
    

      <{/if}>

    

  

  
     
      
         
           
            
               
                

                  

                
                spacer.gif" width="1" height="1" border="0">
                spacer.gif" width="6" height="1" border="0">
                spacer.gif" width="8" height="8" border="0">
                Powered
                by
                xpower.gif" width="88" height="31" alt="Xoops!" border="0" />  
                Theme
                by Montisarts Webdesign ©2003
                | Designed for Wurn.nl
                spacer.gif" width="8" height="8" border="0">
                spacer.gif" width="6" height="1" border="0">
                spacer.gif" width="1" height="1" border="0">
                 
              
            
          
        
      
    
  


  
style="border: 1px solid rgb(0,0,0)">
   
    
    
  
   
    
    
  





Here is the error i keep getting:
Quote:

This page cannot be displayed due to an internal error.

If you are the administrator of this site, please visit the XOOPS Troubleshooting Page for assistance.

5
DonXoop
Re: Is there any way to...

Would a PHP "auto_prepend_file" do the job? Can set it for the whole server, virtual server, or per directory.

.htaccess:
.
php_value auto_prepend_file "[php file containing header]"
php_value auto_append_file "[php file containing footer]"

6
mgcube
Re: Is there any way to...
  • 2003/11/29 11:02

  • mgcube

  • Just popping in

  • Posts: 36

  • Since: 2003/8/31


I have already got it fixed.

7
DonXoop
Re: Is there any way to...

Good you have fixed it. It is good practice to close the thread with your results and maybe others could learn what your solution was....

Login

Who's Online

165 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 165


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits