|
Joined: Jun 2001
Posts: 120
Member
|
Member
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!
|
|
|
|
Joined: Nov 2001
Posts: 436
Member
|
Member
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
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
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
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.
|
|
|
|
Joined: Jun 2001
Posts: 120
Member
|
Member
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
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
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
Joined: Jul 2001
Posts: 45 |
that should be ur basic code.
|
|
|
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.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|