1
griffin2001
Wrapping PHP pages
  • 2005/8/28 23:12

  • griffin2001

  • Just popping in

  • Posts: 6

  • Since: 2005/8/15


I am trying to figure out how to show my PHP pages that I create to a seperate database through DW (I know...). I cant seem to wrap with CJContent as it can not find the connection, I can use WF Section - but I can only link to a separate page instead of having the contents show inside the XOOPS framework. Is there a handy way of doing this, or is it even possible? Thanks.

2
Lance_
Re: Wrapping PHP pages
  • 2005/8/28 23:28

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting

3
JMorris
Re: Wrapping PHP pages
  • 2005/8/28 23:29

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Use the following include statements to wrap your pages, then hand code the link to them using a custom HTML block:

In the files you wish to "wrap":
include '../mainfile.php';
include 
XOOPS_ROOT_PATH.'/header.php';

//your php code here//

include XOOPS_ROOT_PATH.'/footer.php';
?>


Custom HTML Block:
<a href="http://yourdomain.com/subdir/file1.php" target="_self">Link 1a><br />
<
a href="http://yourdomain.com/subdir/file2.php" target="_self">Link 2a><br />
<
a href="http://yourdomain.com/subdir/file3.php" target="_self">Link 3a>

Hope this helps.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

4
griffin2001
Re: Wrapping PHP pages
  • 2005/8/29 0:28

  • griffin2001

  • Just popping in

  • Posts: 6

  • Since: 2005/8/15


I have been so impressed with how great this group is! That did the trick, thanks!

5
JMorris
Re: Wrapping PHP pages
  • 2005/8/29 1:27

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


No problem. That's what we're here for. And in case nobody else has said it yet, Welcome to XOOPS!

Best Regards,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

6
monique
Re: Wrapping PHP pages
  • 2005/8/29 23:19

  • monique

  • Just popping in

  • Posts: 62

  • Since: 2005/5/23


That is very cool. I had a follow up question: If I just want to display the content that my PHP page produces in a block (rather than a link), can you suggest a way to do that?

Monique.

Login

Who's Online

451 user(s) are online (406 user(s) are browsing Support Forums)


Members: 0


Guests: 451


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits