Previous Thread
Next Thread
Print Thread
Rate Thread
#176308 07/19/2002 5:20 PM
Joined: Jun 2002
Posts: 63
Junior Member
Junior Member
Offline
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.

Sponsored Links
#176309 07/19/2002 6:40 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
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.

#176310 07/19/2002 7:30 PM
Joined: Jun 2002
Posts: 63
Junior Member
Junior Member
Offline
Joined: Jun 2002
Posts: 63
Thanks LD! I'm gonna go try that and let you know how I made out.

#176311 07/19/2002 7:48 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
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.

#176312 07/19/2002 7:51 PM
Joined: Jun 2002
Posts: 63
Junior Member
Junior Member
Offline
Joined: Jun 2002
Posts: 63
It seems that I'm not getting it frown . 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?

Sponsored Links
#176313 07/20/2002 1:18 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
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.

#176314 07/20/2002 1:33 AM
Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
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...

#176315 07/20/2002 1:39 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
He's using PHP Nuke, not PostNuke CTM.

#176316 07/20/2002 3:26 AM
Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
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...

#176317 07/20/2002 6:11 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Maybe be different for PHP Nuke, there are a few different PHP calls.

Sponsored Links
#176318 07/20/2002 7:33 AM
Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
[code][/code]Isn't that standard PHP code though?

#176319 07/20/2002 7:57 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Yes, thats what should work.

#176320 07/20/2002 12:45 PM
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.
#176321 07/20/2002 3:55 PM
Joined: Jun 2002
Posts: 99
Member
Member
Offline
Joined: Jun 2002
Posts: 99
Hey where cna I get UBB News?

#176322 07/20/2002 5:34 PM
Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
UBBNews for UBB 6.1 can be found here . smile

#176323 07/20/2002 5:43 PM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
ubbdev.com homepage uses:[code][/code]And it works fine.

#176324 07/20/2002 6:03 PM
Joined: Jun 2002
Posts: 63
Junior Member
Junior Member
Offline
Joined: Jun 2002
Posts: 63
Cool, thank's LK. Lemme try that.

#176325 07/20/2002 6:07 PM
Joined: Jun 2002
Posts: 99
Member
Member
Offline
Joined: Jun 2002
Posts: 99
Thanks CTM

#176326 07/20/2002 8:42 PM
Joined: Jun 2002
Posts: 63
Junior Member
Junior Member
Offline
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.

#176327 07/20/2002 9:34 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
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?

#176328 07/20/2002 10:09 PM
Joined: Jun 2002
Posts: 63
Junior Member
Junior Member
Offline
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 wink .

#176329 07/20/2002 10:28 PM
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Your inclusion path says C: and your block-calendar.php says D:...

Windows server?

#176330 07/20/2002 10:30 PM
Joined: Jun 2002
Posts: 63
Junior Member
Junior Member
Offline
Joined: Jun 2002
Posts: 63
Yeah TheX frown

#176331 07/20/2002 11:17 PM
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
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.



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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
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,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)