Topic: Adding "External" .php to a Block
cecilbergwin
avatar
Freshman
Freshman
Posts: 10

Posted:
9.Nov 2003 - 02:04

Hello people.

My problem is, I have several .php pages which i would like to display on (side) blocks.

How would i implement a working .php page into a block on PostNuke ?

Many thanx..

Cecil
Simon
online
avatar
Steering Committee
Steering Committee
Posts: 13427

Posted:
9.Nov 2003 - 02:08

use the core / PHP block and paste in the code

--
Regards,
Simon

itbegins.co.uk - Zikula Consulting

Please read the Support Guide
cecilbergwin
avatar
Freshman
Freshman
Posts: 10

Posted:
9.Nov 2003 - 02:23

Thx for reply. I scoured the forums and that suggestion was the only thing i found. Still no joy.

I get a parse error for the PHP script im trying to use. Ive got several scripts to use and none of these seem to be able to be added that way ?.

Any more help greatly appreciated.

Thank you.
Simon
online
avatar
Steering Committee
Steering Committee
Posts: 13427

Posted:
9.Nov 2003 - 02:31

when you add the script to the block, remove the PHP tags i.e as these are not needed.

--
Regards,
Simon

itbegins.co.uk - Zikula Consulting

Please read the Support Guide
cecilbergwin
avatar
Freshman
Freshman
Posts: 10

Posted:
9.Nov 2003 - 02:40

ok, Well that worked.

I now got a problem, my script had error and i cant get to my main page to even remove block ?

ANywhere i can go maually to now remove.? Need help bad now page dead.
Simon
online
avatar
Steering Committee
Steering Committee
Posts: 13427

Posted:
9.Nov 2003 - 02:46

look in the nuke_blocks table, and deactivate the block that is causing the problem by editing the pn_active field.

--
Regards,
Simon

itbegins.co.uk - Zikula Consulting

Please read the Support Guide
cecilbergwin
avatar
Freshman
Freshman
Posts: 10

Posted:
9.Nov 2003 - 02:54

Cant get to admin panel or nothing mate.
Simon
online
avatar
Steering Committee
Steering Committee
Posts: 13427

Posted:
9.Nov 2003 - 02:58

sorry, via phpMyAdmin - it should be available as a link in CPanel, if you have that at your host...

--
Regards,
Simon

itbegins.co.uk - Zikula Consulting

Please read the Support Guide
cecilbergwin
avatar
Freshman
Freshman
Posts: 10

Posted:
9.Nov 2003 - 02:58

*Problem Solved*

Thanx Hammerhead, i ended up going directly into the SQL DB an (deactivating) that block. Many thanx sir I owe you 1.
This should also clear my "original" problem up as the block was actually working the way you suggested to me Thanks, juts obviously i had PHP script error my side.

Thanx
Simon
online
avatar
Steering Committee
Steering Committee
Posts: 13427

Posted:
9.Nov 2003 - 03:04

Glad you got your problem sorted :)

--
Regards,
Simon

itbegins.co.uk - Zikula Consulting

Please read the Support Guide
cecilbergwin
avatar
Freshman
Freshman
Posts: 10

Posted:
9.Nov 2003 - 03:14

This is what im trying to acheive.

Im using PostNuke *main*
PhpBB "Forums"

Now If i would have been sensible in the 1st place, i should have done like you guys done with a PNphpBB conversion, but i Launched my site in June this year and things have grown somewhat now in"content" & "members" for both Site and Forums.

I only have User - Sign ups via forum, as my PostNuke install contains only myself and staff for administration. Now then... I want to make the main front site (PN) more dynamic with the Forum data. So i spotted the Fetch_all_phphbb scripts. This seemed do be a good idea to solve my problems for dynamic data on front end.

Errors now occuring via path data ../ from forum, "but" im sure ill sort that 1 out unless you have any suggestions. from paths i state below.

Do you have any suggestions yourself ? or anybody else who may have better ways to get my "forum" data segments like,Users online, Top Threads and so on without having to use any Mod at this current stage.

My site if you want to have a look is www.racing.edgegaming.com with forums being at www.racing.edgegaming,com/forums (2 seperate installs).

Any help, tips, advice is appreciated for sure. Thanx.
Simon
online
avatar
Steering Committee
Steering Committee
Posts: 13427

Posted:
9.Nov 2003 - 03:19

well the best best best thing to do would be to use a conversion script to take your standalone forums into the PNphpBB module. I think these are available. That would completley solve your problem...

If you are sure you dont want to do that, then the solution you have at the moment is the only one I can think of

--
Regards,
Simon

itbegins.co.uk - Zikula Consulting

Please read the Support Guide