|
Joined: Jun 2002
Posts: 63
Junior Member
|
Junior Member
Joined: Jun 2002
Posts: 63 |
I am looking into creating a site to go with my UBB forums. I was wondering if someone could tell me how UBBDev did thier homepage. It's one of teh better potals that I've seen around and was wondering how it was set up. Was PHP used or was SSI?
I've downloaded PHP Nuke and have been trying to get the Calendar hack for UBB v 6.3 to work with it. Unfortunantly, I can't figure out how to get the SSI script and PHP to play together.
I know I've asked alot of questions here. Any help would be appreciated. Thanks.
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
UBBDev use SSI Calling for the Latest Threads/Hacks, UBBNews and Calendar.
As for the PHP Nuke, go to add a block but select PHP code type block. One you do that, use the include line to put it in. If you don't have an include line that you can remember I can get you one.
|
|
|
|
Joined: Jun 2002
Posts: 63
Junior Member
|
Junior Member
Joined: Jun 2002
Posts: 63 |
Thanks LD! I'm gonna go try that and let you know how I made out.
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
BTW if that doesn't work and you used an include line with a at the end of it, try removing the two bits I mentioned.
|
|
|
|
Joined: Jun 2002
Posts: 63
Junior Member
|
Junior Member
Joined: Jun 2002
Posts: 63 |
It seems that I'm not getting it  . I go to "Add a Block" but I don't see an option to add a PHP code block.I'm trying to add the calendar hack to the page: [code][/code]The fields I have to choose from are: Title RSS/RDF file URL Filename Content Position Activate Refresh Time and Who Can View This Do I have to take the SSI code for teh Calendar Hack and make it into a PHP file?
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
No SSI code on PHP, you need to use the include call I mentioned. And try a "Filename" block.
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
There should be a PHP Script option... Are you sure you have the latest version of Rogue? (Go to the PostNuke site, get the very latest stable version... You should find it here .) Then, it's [code][/code]in the PHP Script box. I tried adding it to every other type of block and couldn't get it to work...
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
He's using PHP Nuke, not PostNuke CTM.
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
Oh, yeah... Damn, I always get those two confused... <.<;; Never mind... The code that you'll need to add to the box will stay the same...
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Maybe be different for PHP Nuke, there are a few different PHP calls.
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
[code][/code]Isn't that standard PHP code though?
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Yes, thats what should work.
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
That will not work. PHP include() calls in a FILE, not executes a program.
The closest you're gonna get is doing a web request for it, assuming your host has installed the PHP bits that allow it to make such requests..
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Jun 2002
Posts: 99
Member
|
Member
Joined: Jun 2002
Posts: 99 |
Hey where cna I get UBB News?
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
UBBNews for UBB 6.1 can be found here . 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
ubbdev.com homepage uses:[code][/code]And it works fine.
|
|
|
|
Joined: Jun 2002
Posts: 63
Junior Member
|
Junior Member
Joined: Jun 2002
Posts: 63 |
Cool, thank's LK. Lemme try that.
|
|
|
|
Joined: Jun 2002
Posts: 99
Member
|
Member
Joined: Jun 2002
Posts: 99 |
|
|
|
|
Joined: Jun 2002
Posts: 63
Junior Member
|
Junior Member
Joined: Jun 2002
Posts: 63 |
Well, it seems that the calendar just doesn't want to display. I get the infamous PHP "include_path" error even though I have the code written right I think.
[code][/code]This is the code I'm using. I've been putting it into it's own PHP file and uploading it to the "blocks" directory. Anyone have any ideas?
Maybe the calendar is just a lost cause for this site.
Oh, I also tried the "virtual" command you recomended LK and the whole site went crazy. I just replaced the "include" tag with it.
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Try this code:
include("./cgi-bin/ultimatebb.cgi?ubb=calendar_ssi");
And if that doesn't work, are you putting in the FULL url?
|
|
|
|
Joined: Jun 2002
Posts: 63
Junior Member
|
Junior Member
Joined: Jun 2002
Posts: 63 |
Well, LD it's not working and I'm not using the entire path either. I'm just using the path in the code I posted before. I get the following error: [code][/code]I shouldn't get this b/c I have the "./" at the beginning of the path. This is starting to get me frustrated. It's probably my host's fault  .
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
Your inclusion path says C: and your block-calendar.php says D:...
Windows server?
|
|
|
|
Joined: Jun 2002
Posts: 63
Junior Member
|
Junior Member
Joined: Jun 2002
Posts: 63 |
Yeah TheX 
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
I am a Windows Professional but a PHP no0bie. I know that you use the C:include_dir type of command in the PHP.ini to set the include directory but you need a virtual since you're on a hosted server...you might be able to use a require. I found this. quote:
The path for the include command is set by the include_path setting in the php.ini file, which defaults to the current directory.
For a site-wide include that doesn't require settings in php.ini, consider using something like:
require($DOCUMENT_ROOT . "/header.html");
For security reasons, though, be careful about including PHP code this way... it's better to keep it outside the document root directory, where it is only accessible by file sytem commands.
|
|
|
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: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|