Previous Thread
Next Thread
Print Thread
Hop To
Joined: Nov 2006
Posts: 30
O
newbie
newbie
O Offline
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
O
newbie
newbie
O Offline
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: Nov 2006
Posts: 30
O
newbie
newbie
O Offline
Joined: Nov 2006
Posts: 30
Here is the header.php include. It works fine if I call it directly!!!

http://cascadeclimbers.com/forum/includes/header.php

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
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
O
newbie
newbie
O Offline
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
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, if you change the opening lines from:

Code
<?php
//<!--/* OpenX Local Mode Tag v2.6.0 */-->

To:

Code
<?php
//<!--/* OpenX Local Mode Tag v2.6.0 */-->
echo "Can you see me?";


DO you get any output?

Joined: Nov 2006
Posts: 30
O
newbie
newbie
O Offline
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
R
Former Developer
Former Developer
R Offline
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
O
newbie
newbie
O Offline
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
C
enthusiast
enthusiast
C Offline
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?

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Nightcrawler), 607 guests, and 159 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)