Hi folks! Good to be here!
Ok I have this very annoying problem with my board that I have no idea how to solve.
I am using the latest release of phpbb2.0.2 and the board is running on a unix server. The style I am using is the "BMan1Blue".
Now if you take a look at this style at [URL=http://]http://www.phpbb.com/styles/styles_demo/index.php?s=28[/URL] you will see a very beautiful top header menu with links to Forum, Portal, Profile, FAQ and so on.. this is why I like this style so much!
Now, The problem is this: Whenever I make a new post or reply to an existing post and then click on Portal link on this top menu to go to the Portal page and view the latest topics there, I see no update of that page of any kind. And the new post or the new reply to a post that should bring up that post right to the top of the Portal page automatically, is not there. In other words, the Portal page simply is not refreshed. And that will not happen even if I would use IE refresh button.
This "update" in the Portal page after making a post is standard and should happen automaticaly, I know this because I was a member in another forum which used the same style and the feature worked fine! And I do not believe we're talking about installing or making a bigger hack or something here..
So to view the new posts or get an updated Portal page, I have to manually empty my cache directory EVERY TIME! And suddenly all the new posts that were invisible before, now appear right on the top of the Portal page!
I have studied some solution suggestions here on the phpbuilder forum, suggesting to add these lines to all the php scripts to deactivate any proxy-cache:
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
And also suggesting to insert following meta tag to the produced html codes to deactivate browser cache:
<META http-equiv="expires" content="0">
So what is my problem you might wonder?! Well, the problem is that I have no idea where to put these tags! I am a php-script looser and can not figure out where to put the code lines! I tried to manually put the php lines in the very beginning of the script after "<?php" but it does not work.. I still have to empty my cache dir to see the newest posts. And putting the meta tag on the html index page does not help either..
Could it be that the host simply prevent this feature? Does these code lines always help against caching? What should I do?!
Please help me! Thx in advance!
/Carpe