Previous Thread
Next Thread
Print Thread
Rate Thread
#107029 12/15/2001 9:00 PM
Joined: Jun 2001
Posts: 120
Member
Member
Offline
Joined: Jun 2001
Posts: 120
I'm trying to install newspro on my server (which went just fine) I got all the files uploaded and everything, and got the account setup, etc. That part is going fine.

However, what I want to do is put the news on my main UBB page (http://udbzn.netfirms.com/cgi-bin/ubb/ultimatebb.cgi). However, when I tried to use the SSI, nothing happened.

I used "/news/news.txt" as the path to the file, since the file is in root > news > news.txt - Is there something I'm doing wrong?

Does the extension really have to be .shtml? Does .cgi not work with SSI's?

Please help!

Sponsored Links
Joined: Nov 2001
Posts: 436
Member
Member
Offline
Joined: Nov 2001
Posts: 436
in CGI, the document just thinks you're commenting out the text #include ... etc. So you need to include it with some special code, I'm not sure what it is, I know for PHP it looks like:
----------------------
<?php print implode("n", file("http://www.yoursite.com/yourfile.txt"));?>
----------------------
Maybe it's similar in CGI? Not sure, sorry.

Joined: Jun 2001
Posts: 120
Member
Member
Offline
Joined: Jun 2001
Posts: 120
Thanks, I see what you mean.

Does anybody know what the code is to do this??

Thanks!

Edit: I put the code in the header of my style template, so shouldn't it be read as html? Dunno if that makes a difference........

[ 12-15-2001 09:04 PM: Message edited by: UltimateDBZ ]

Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
Moderator / Template Diva
Offline
Joined: Mar 2000
Posts: 3,594
Most servers only allow SSI calls in pages with .SHTML/.SHTM extensions. SSI calls in pages without those extensions - in this case, .CGI - are simply ignored. I believe there is a way to use SSI in files with non-standard extensions by properly configuring an .HTACCESS file, but I have no idea what the proper configuration for that would be. You might also just ask your host if they could configure .CGI as an acceptable SSI extension.

The other problem is, UBB's Cache system typically doesn't like non-static content like that. I know people seem to always have problems with random banners and stuff because of the way the Cache works. So even if you could make it possible to use SSI, it still may not work.

---Jamin


Don't put that signature in your mouth! You don't know where it's been!
Joined: Aug 2001
Posts: 155
Member
Member
Offline
Joined: Aug 2001
Posts: 155
Only thing I can think of is to have an Iframe and have it load a shtml file making the ssi call. I don't even think Iframes work with Netscape though, and there might be other problems I don't know of, so this might be a bad idea.


I'm not really back. I went away again.
Sponsored Links
Joined: Jun 2001
Posts: 120
Member
Member
Offline
Joined: Jun 2001
Posts: 120
Well, it seems I may have to resort to an IFrame after all. I recieve mainly IE visitors with the latest versions, so compatibility is not a huge issue. On top of that, I have news forum, so if need be, they can look there.

*can't really remember*

What's the tag for IFrame's? I forgot....

Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
Moderator / Template Diva
Offline
Joined: Mar 2000
Posts: 3,594
Why do you even want to put Newspro in your UBB in the first place? UBBNews and/or the News Fader hacks will accomplish basically the same thing without the need to alienate a chunk of your audience, and only a tad bit more work on your part.

---Jamin


Don't put that signature in your mouth! You don't know where it's been!
Joined: Jun 2001
Posts: 120
Member
Member
Offline
Joined: Jun 2001
Posts: 120
Well, I know... But his simplifies the process, because I will be posting news on other pages of my site, and this way using SSI, I don't have to type the news twice as I would using the news fader and newspro.

Now about that IFrame code... Anybody know it?

Joined: Jul 2001
Posts: 45
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 45


that should be ur basic code.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)