Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (Bjab), 25 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 469
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#27280 - 06/27/03 04:02 PM Threads 6.3: Unable to get includes to work
Anonymous
Unregistered

I cannot get my generic footer to display. This is a site-wide footer, here is the code I am using:

<hr>
<!-- MANDATORY FOOTER STARTS -->
<!--#include virtual="/orn/common/mainfooter.stm" -->
<!-- MANDATORY FOOTER ENDS -->

The hr displays but nothing else. The path is correct. This is just a 6.3 test board for now, url is http://www.4x4wire.com/forums/categories.php?Cat=

I tried removing the <!-- and no luck. Per Josh, I also dropped the code directly into the ubbt_footer template and no luck.

Any help is appreciated.

[]Joe@4x4Wire.com[/] | Beat up '94 Toyota 4WD | 4x4Wire Forums
Top
#27281 - 06/28/03 04:20 PM Re: Threads 6.3: Unable to get includes to work
Anonymous
Unregistered

I don't think it will work just like that since that is an SSI type of an include and those won't get executed in php. I think what you might need to do is actually copy the HTML code from the common footer into the generic footer so it's duplicated in the forums as well.

-------------------
Rick Baker
UBBThreads developer
Top
#27282 - 06/29/03 10:11 AM Re: Threads 6.3: Unable to get includes to work
Anonymous
Unregistered

I think, you could change that to something like:

<hr>
<!-- MANDATORY FOOTER STARTS -->
<?
virtual("/orn/common/mainfooter.stm");
?>
<!-- MANDATORY FOOTER ENDS -->

Assuming you are doing mixed html/php page.

-Srinivas<br>Global Hindu Electronic Networks: http://www.hindunet.org/
Top
#27283 - 06/29/03 10:28 AM Re: Threads 6.3: Unable to get includes to work
Anonymous
Unregistered

Srinivas, thanks for the suggestion but that didn't work.

Rick, maintaining this footer across 50+ forums will be a major PITA - there has got to be some other solution.

[]Joe@4x4Wire.com[/] | Beat up '94 Toyota 4WD | 4x4Wire Forums
Top
#27284 - 06/29/03 11:24 AM Re: Threads 6.3: Unable to get includes to work
Anonymous
Unregistered

Is it the same footer that appears on all the forums? If so, then if you put it into the generic footer then it will show across all forums and you'll only have to maintain it in one place.

-------------------
Rick Baker
UBBThreads developer
Top
#27285 - 06/29/03 02:17 PM Re: Threads 6.3: Unable to get includes to work
Anonymous
Unregistered

Use a php include in the ubbt_footer.tmpl and leave the html footer empty. I do this on mine.

UBBTPRINT;
include ="/orn/common/mainfooter.stm";
echo <<<UBBTPRINT


--
UBBDesign.com: UBB ™ customizer, webdesigner and custom graphics creator.
Creator of the JCTemplates used in the ubb.classic ™ software. Addons & Graphics
Installation services and custom add-on creation available. Contact me
Top
#27286 - 06/29/03 06:15 PM Re: Threads 6.3: Unable to get includes to work
Anonymous
Unregistered

Rick, I do want this to display forum-wide, that's the beauty of the include and why I'm going nuts trying to get this work. It does not work as the generic footer nor does it work as custom footer for a forum nor does it work when thrown in the ubbt_footer.tmpl file.

JC, thanks for your help. I know almost nothing about PHP so actual complete code would be helpful for this noobie.

[]Joe@4x4Wire.com[/] | Beat up '94 Toyota 4WD | 4x4Wire Forums
Top
#27287 - 06/29/03 08:57 PM Re: Threads 6.3: Unable to get includes to work
Anonymous
Unregistered

Joe,

Are you using this in .tmpl page or in the header.php include page. For example, on our forums we have our includes/header.php as below:

</font><blockquote><font size="1" face="">quote:</font><hr /><font size="" face=""><?php
//--
virtual ("/hindunet_includes/top.shtml");

?></font><hr /></blockquote><font size="" face="">And it works as intended. You can check if the INCLUDED file itself is accessible on your server first. On mine you can access:

http://www.hindunet.com/hindunet_includes/top.shtml

As far as I know "virtual" is a quick and dirty way to include another page from your server into a PHP page.

I am not able to access your 'virtual' file directly from the browser itself:

http://www.4x4wire.com/orn/common/mainfooter.shtm

May be once this is configured correctly the "virtual" will work as it supposed to.

Hope this helps.

-Srinivas<br>Global Hindu Electronic Networks: http://www.hindunet.org/
Top
#27288 - 06/30/03 10:50 AM Re: Threads 6.3: Unable to get includes to work
Anonymous
Unregistered

Srinivas, our footer can be called in a browser on its own. I tried your suggestion in the ubbt_footer.tmpl and it still doesn't work.

I give up.

[]Joe@4x4Wire.com[/] | Beat up '94 Toyota 4WD | 4x4Wire Forums
Top
#27289 - 06/30/03 05:11 PM Re: Threads 6.3: Unable to get includes to work
Anonymous
Unregistered

Is there something special in the footer that you're trying to include or is is it just standard HTML?

-------------------
Rick Baker
UBBThreads developer
Top
Page 1 of 2 1 2 >



Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image