News only on index.php and not on other pages
                                
                                 suchamatt   0
From: -
                                 
                              
                            From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: News only on index.php and not on other pages
                                                
                         Rushian   0
From: -
                         
                      
                  From: -
                    News only on index.php and not on other pages
Nevermind.. figured it out..
                  
                  
                Nevermind.. figured it out..
1 Re: News only on index.php and not on other pages
                                                
                         Rushian   0
From: -
                         
                      
                  From: -
                    News only on index.php and not on other pages
Along the same lines, is there a way to print just the login_header_XXXX template at the top of every page, and the login template(s) plus the headlines block on the main page?
I'm sure it's the same code, just at a lower spot in the script.
[Edited by Rushian on 2005-05-24 08:36:08]
                  
                  
                Along the same lines, is there a way to print just the login_header_XXXX template at the top of every page, and the login template(s) plus the headlines block on the main page?
I'm sure it's the same code, just at a lower spot in the script.

[Edited by Rushian on 2005-05-24 08:36:08]
1 Re: News only on index.php and not on other pages
                                                
                         suchamatt
                
                OP
   0
From: -
                         
                      
                  From: -
                    News only on index.php and not on other pages
Worked like a charm!
You're the man Phillip, many thanks!
genius!
                  
                  
                Worked like a charm!
You're the man Phillip, many thanks!
genius!
1 Re: News only on index.php and not on other pages
                                                
                         Philipp 
                        
                        
From: Austria
                         
                      
                   Administrator
  1342From: Austria
                    News only on index.php and not on other pages
Open core.php in an editor and find:
Replace this line with:
Find:
and replace with:
                  
                  
                Open core.php in an editor and find:
        $cache = GetCache("news", "header_block");
Replace this line with:
if (preg_match("/index.php/i",$_SERVER[PHP_SELF]))
{
        $cache = GetCache("news", "header_block");
Find:
            WriteCache("news", "header_block", $thisblock, MkTime()+3600);
             
             
        }
and replace with:
            WriteCache("news", "header_block", $thisblock, MkTime()+3600);
             
             
        }
}
                  
              
          
Hey Phillip,
How do I get the 5 news headlines and 5 forum posts to stay to the main page only and not show up as a header block in all my other pages - I find it rather bulky on any page besides the front page and it requires the user to have to scroll down every page.
Thanks