Header and Footer - >:@

Do you have suggestions how to improve myLounge Redirection? Want to give a feedback? Or even found a bug? Then please post in here.

Moderator: Scooby

Header and Footer - >:@

Postby Ifurl » Sat Mar 26, 2005 6:14 pm

Yesterday i spent about 1 hours changing each individual HTML files.

i suggest there should be a header and a fotter file to automatically change them all :?
Ifurl
 

agree

Postby tz25.com » Sun Jul 24, 2005 6:03 pm

Yes it would make editing the templates a lot easier...

The best way to edit the html files is to use copy & paste if your using front page you could use the option to replace all open files. ;)

If i get time i will edit the files to include a header and footer file and put a link here for you all to download..

http://tz25.com
tz25.com
 

Postby plastikaa » Sat Aug 06, 2005 3:38 pm

Edit the files and use php include()
plastikaa
 

Postby AsianGuyJTran » Sun Aug 07, 2005 6:55 pm

its not as easy as it sounds ... because of the template files.

for the time being im going to make an index.php file that does the variable assignments along with header and footer. its gonna take some time though
AsianGuyJTran
Newbie
Newbie
 
Posts: 4
Joined: Fri Aug 05, 2005 7:20 pm

Postby msolution » Mon Mar 19, 2007 1:55 pm

i tackled this problem by removing the header, left menu and the footer from all html files, and place them in a seperate file!

and then all php file would be like:
Code: Select all

###########################
#### The faq.php file              ####
###########################

$template = new MyredTemplate("html/$theme/faq.html");
//--
include("header.php");
include("left.php");
//--
$template->assign("text_1", $text_1);
...
...
...
$template->assign("startpage", $startpage);
$template->assign("title", $pagetitle);
$template->myred_print() or die($template->error);
//--
include("footer.php");
//--
exit;



the header/ left menu/ and the footer files to be included so
if u want to add a menu, or change the footer it will be easier....

i took it as a one time labour!

hope this helps someone

M
http://www.Bizz.cc/
msolution
Newbie
Newbie
 
Posts: 3
Joined: Mon Mar 19, 2007 11:50 am

Postby msolution » Mon Mar 19, 2007 2:03 pm

Here's my left.php if someone needs it!

Left.php
Code: Select all

<?

$VAR = str_replace('myred/',"",$_SERVER['REQUEST_URI']);
$AOFF = "";

$mtext_1 = (eregi("home",$VAR))? "<b> HOME </b>" : "<a href='http://www.bizz.cc/myred/home.php'> HOME </a>";

$mtext_2 = (eregi("register",$VAR))? "<b> Sign Up </b>" : "<a href='http://www.bizz.cc/myred/register.php'> Sign Up </a>";

$mtext_3 = (eregi("members",$VAR))? "<b> Members </b>" : "<a href='http://www.bizz.cc/myred/members.php'> Members </a>";

$mtext_4 = (eregi("features",$VAR))? "<b> Features </b>" : "<a href='http://www.bizz.cc/myred/features.php'> Features </a>";

$mtext_5 = (eregi("hosting",$VAR))? "<b> HOSTING </b>" : "<a href='http://www.bizz.cc/myred/hosting.php'> HOSTING </a>";

$mtext_6 = (eregi("faq",$VAR))? "<b> FAQ </b>" : "<a href='http://www.bizz.cc/myred/faq.php'> FAQ </a>";

$mtext_7 = (eregi("contact",$VAR))? "<b> Contact </b>" : "<a href='http://www.bizz.cc/myred/contact.php'> Contact </a>";

$mtext_8 = (eregi("whois",$VAR))? "<b> Who Is </b>" : "<a href='http://www.bizz.cc/myred/whois.php'> Who Is </a>";

$mtext_9 = (eregi("latest",$VAR))? "<b> Latest </b>" : "<a href='http://www.bizz.cc/myred/latest.php'> Latest </a>";

$mtext_10 = (eregi("topsites",$VAR))? "<b> Top Sites </b>" : "<a href='http://www.bizz.cc/myred/topsites.php'> Top Sites </a>";

$mtext_11 = (eregi("tell",$VAR))? "<b> Tell a Friend </b>" : "<a href='http://www.bizz.cc/myred/tell.php'> Tell a Friend </a>";

$mtext_12 = (eregi("dir",$VAR))? "<b> Directory </b>"   : "<a href='http://www.bizz.cc/myred/dir.php'> Directory </a>";

$mtext_13 = (eregi("affiliates",$VAR))? "<b> Affiliates </b>" : "<a href='http://www.bizz.cc/myred/affiliates.php'> Affiliates </a>";

$mtext_14 = (eregi("resources",$VAR))? "<b>Web Resources</b>" : "<a href='http://www.bizz.cc/myred/resources.php'>Web Resources</a>";

$mtext_15 = (eregi("forums",$VAR))? "<b> FORUMS </b>" : "<a href='http://www.googlepayments.co.in' target='_blank'> FORUMS </a>";

?>
<table cellspacing=0 cellpadding=0 width="760" align=center border=0>
  <tbody>
  <tr>
    <td valign=top width="120" height="290">
      <table cellspacing=2 cellpadding=0 width="100%" align=left border=0>
        <tbody>
        <tr>
          <td valign=top nowrap height=8>
<!-- Search Google -->
<!-- insert google search box-->
<!-- Search Google -->
      </td>
        </tr>
        <tr>
          <td class="sidemenu" nowrap><?=$mtext_1?></td>
        </tr>
        <tr>
          <td class="sidemenu" nowrap><?=$mtext_2?></td>
        </tr>
        <tr>
          <td class="sidemenu" nowrap><?=$mtext_3?></td>
        </tr>
        <tr>
          <td class="sidemenu" nowrap><?=$mtext_4?></td>
        </tr>
        <tr>
          <td class="sidemenu" nowrap><?=$mtext_5?></td>
        </tr>
        <tr>
          <td class="sidemenu" nowrap><?=$mtext_15?></td>
        </tr>
        <tr>
          <td class="sidemenu" nowrap><?=$mtext_6?></td>
        </tr>
        <tr>
          <td class="sidemenu" nowrap><?=$mtext_7?></td>
        </tr>
        <tr>
          <td class="sidemenu" nowrap><?=$mtext_8?></td>
        </tr>
        <tr>
          <td class="sidemenu" nowrap><?=$mtext_9?></td>
        </tr>
        <tr>
          <td class="sidemenu" nowrap><?=$mtext_10?></td>
        </tr>
        <tr>
          <td class="sidemenu" nowrap><?=$mtext_11?></td>
        </tr>
        <tr>
          <td class="sidemenu" nowrap><?=$mtext_12?></td>
        </tr>
        <tr>
          <td class="sidemenu1" nowrap><?=$mtext_13?></td>
        </tr>
        <tr>
          <td class="sidemenu2" nowrap><?=$mtext_14?></td>
        </tr>
        <tr>
      <td>
<br><br>
<!-- Search Google -->
<!-- insert google adsense-->
<!-- Search Google -->

          </td>
      </tr>
      </table>
</td>





Hope this helps someone!

M.
http://www.Bizz.cc
msolution
Newbie
Newbie
 
Posts: 3
Joined: Mon Mar 19, 2007 11:50 am

Re: Header and Footer - >:@

Postby achrafo » Sun Jul 20, 2008 10:01 am

hello, thank you for the code,

how to change the title automaticly when the page change?

thanks
achrafo
Newbie
Newbie
 
Posts: 8
Joined: Mon Jul 30, 2007 8:28 pm


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 4 guests

cron