SimplePortal

Support => English Support => Topic started by: J Dub on January 13, 2013, 08:56:56 AM

Title: PHP Page
Post by: J Dub on January 13, 2013, 08:56:56 AM
SMF: 2.0.3
SP: 2.3.5
Site: http://dubhq.net/AT

Firstly, Hello and forgive me as this to me seems really simple, but I have serached, tried things and can not find the answer, so sorry if I am wasting peoples time with a duplicate question.

This is simple.

I want to embed in a SP PHP page the following.

I have added a gallery (external one) it live on my site in the same folder as SMF/TP yet in a folder called (yes you guessed it gallery)

I have added it to a page currently as HTML in an iframe, yet would rather it was embedded from HTML as an include, yet i just get errors, am I missing something?

As a footnote, I have to say having used SMF and various portals over the years, I do find simple portal as a super nice simple to use portal. The site I am doing at the moment is a test one to see what i can and can not do with the view of rolling this out to several of mine, keep up the great work.

Regards J
Title: Re: PHP Page
Post by: AngelinaBelle on January 14, 2013, 08:24:14 PM
Because I have not seen the site, I cannot comment much on the best way to do this.

If you are embedding an entire page within an SP block or page, then iframe is the way to go.

embedding an entire HTML page(headers, html, head, and body tags and all)  within an another HTML  is not the way to go.

If you want to get any fancier, you will have to do some php coding to allow you to embed just the "guts" of the page within a custom php page or block within simple portal.  That would involve significantly more work than putting an iframe in an HTML page or block.
Title: Re: PHP Page
Post by: J Dub on January 16, 2013, 05:05:19 AM
Hi there,

Thank you for the reply, yes I have looked and it would seem the best way is to do it via iframe, I am not home currently to look at the way I have now gone about this, but will come back to it. How I have gone about the site is things such as gallery and downloads are seperate external software (hosted on the same server) yet just trying to make them look as intergrated as possible. :)
Title: Re: PHP Page
Post by: AngelinaBelle on January 16, 2013, 01:47:43 PM
Yes. iframe is the quickest way.

More integration will require more work, from someone with a little bit of php experience, I think.

Welcome to Simple Portal and Good Luck!

I hope you won't mind me marking this topic solved for you.
Title: Re: PHP Page
Post by: J Dub on January 16, 2013, 04:03:53 PM
Yes no problem for resolved, I am pretty good with PHP yet now and then i just get stuck on something as was not sure what is possible and quick.
Thank you for the welcome and replies also :) I am sure I will be back with more input, I always used TP before, yet like SP better currently as it forces me to use more external items, which often on hindsight is a better option rather than full intergration.
I will either use global $boardurl; echo ' iframe for php input or just iframe html.
Again thank you and glad to be a user.
SimplePortal 2.3.8 © 2008-2024, SimplePortal