|
Joined: Nov 2006
Posts: 30
newbie
|
newbie
Joined: Nov 2006
Posts: 30 |
Hello,
We just upgraded our forums to 7.3.1 and the HTML INCLUDE that was serving up our ad in the upper right is no longer working. It works on our old test boards. We're trying to put it in the "Default Header" section.
The code is provided by OpenX:
<?php //<!--/* OpenX Local Mode Tag v2.6.0 */-->
define('MAX_PATH', 'path_removed/openx'); if (@include_once(MAX_PATH . '/path_removed/alocal.php')) { if (!isset($phpAds_context)) { $phpAds_context = array(); } $phpAds_raw = view_local('', 22, 0, 0, '', '', '0', $phpAds_context, ''); } echo $phpAds_raw['html']; ?>
Last edited by Rick; 09/19/2008 1:15 PM.
|
|
|
|
Joined: Nov 2006
Posts: 30
newbie
|
newbie
Joined: Nov 2006
Posts: 30 |
In fact if I type "blah" in either the header or footer Include fields, I get zero output. It worked fine right before we upgraded from 7.2.2.
I do get output from the Header Insert field.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Just for tests, I'd make sure that your cache isn't stuck. Since your getting zero output in either the default header or footer. Try FTPing into your site and go into the templates/compile directory and delete everything except for index.html file.
I put the same include into my test board, and I didn't get any output from it either (because it doesn't output anything if some conditions aren't met. I was able to add an "echo 'test';" right before the closing php tag though and I did see that.
|
|
|
|
Joined: Nov 2006
Posts: 30
newbie
|
newbie
Joined: Nov 2006
Posts: 30 |
Hi Rick,
I did as you said (deleted the templates/compile files except index.html), and I'm still getting zero output.
Thanks for your help.
/porter
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Hmm, if you change the opening lines from: <?php
//<!--/* OpenX Local Mode Tag v2.6.0 */--> To: <?php
//<!--/* OpenX Local Mode Tag v2.6.0 */-->
echo "Can you see me?"; DO you get any output?
|
|
|
|
Joined: Nov 2006
Posts: 30
newbie
|
newbie
Joined: Nov 2006
Posts: 30 |
Nothing! Its like its not even looking at that include (or the footer include).
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Hmm, I see that you have a logo up top, is that in your header include?
|
|
|
|
Joined: Nov 2006
Posts: 30
newbie
|
newbie
Joined: Nov 2006
Posts: 30 |
It was, but on the upgrade it disappeared. It is set in the styles and I'm moved it down to Header Insert section...and it worked there. But If I put it in either the header or footer it doesn't show up.
<div id="banner"> </div>
Is how I'm getting the logo in there in the Header Insert.
|
|
|
|
Joined: Jun 2004
Posts: 207
enthusiast
|
enthusiast
Joined: Jun 2004
Posts: 207 |
Hi Rick,
I've done an echo test as well as use plain html and it appears that neither the header or footer includes are working.
Won't you take me to Funkytown?
|
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
4 members (Gizmo, Baldeagle, Ruben, 1 invisible),
779
guests, and
156
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|