Author Topic: custom footer page  (Read 4868 times)

0 Members and 1 Guest are viewing this topic.

Offline haider512

  • Full Member
  • ***
  • Posts: 153
    • View Profile
custom footer page
« on: February 19, 2011, 01:24:07 PM »
Hi i want to have custom footer page..

i mean the default custom footer page is footer.html

and i want to have footer2.html.

how to do that??

any ideas?

Rembrandt

  • Guest
Re: custom footer page
« Reply #1 on: February 20, 2011, 07:03:08 AM »
Hi!

so it works for me:
search in includes/template.php:
($name == 'header' || $name == 'footer')
and replace:
($name == 'header' || $name == 'footer' || $name == 'footer2')

search:

print $this->clean_template($template);

insert above:

    
if (strpos($template$this->start.'footer2'.$this->end) !== false) {
      
$footer2 $this->parse_template("footer2");
      
$template str_replace($this->start.'footer2'.$this->end$footer2$template);
    }


in your *html (e.g. details.html) can you now write {footer2}

mfg Andi

Offline haider512

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: custom footer page
« Reply #2 on: February 20, 2011, 07:16:21 PM »
Hi!

so it works for me:
search in includes/template.php:
($name == 'header' || $name == 'footer')
and replace:
($name == 'header' || $name == 'footer' || $name == 'footer2')

search:

print $this->clean_template($template);

insert above:

    
if (strpos($template$this->start.'footer2'.$this->end) !== false) {
      
$footer2 $this->parse_template("footer2");
      
$template str_replace($this->start.'footer2'.$this->end$footer2$template);
    }


in your *html (e.g. details.html) can you now write {footer2}

mfg Andi

thanks you sir..im gonna try now...Many thanks for reply..

so is it also possible if i use {footer2} out side template folder.. if so..please help..will love you for ever.
Actually i added the custom google search inside my website.

http://cusitlibrary.com/search/index.php

so i put it search folder..

so is it possible to use {footer2} in root/search ??

If so..please tell..

Many thanks for reply..

Rembrandt

  • Guest
Re: custom footer page
« Reply #3 on: February 20, 2011, 07:32:08 PM »
...so is it also possible if i use {footer2} out side template folder..
i think not..

Offline haider512

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: custom footer page
« Reply #4 on: February 20, 2011, 07:46:18 PM »
...so is it also possible if i use {footer2} out side template folder..
i think not..

ok.. Many thanks for {footer2}..its working..awesome..

if there is any chance of using header and footer of my 4images on my custom pages out side the template..will be really glad to know.. im banging my head around to find any strategy to integrate my 4images with my webiste.. :-(

actually i header and footer of 4images because there is profile box on header which i want to keep on header even if user clicks the search or any other site i put in.. but not able to figure out any way :-(