EzPortal - Portal Software for Forums

EzPortal Forums => Support => Topic started by: thellie on August 02, 2010, 03:41:18 am

Title: using ezportal outside smf... possible?
Post by: thellie on August 02, 2010, 03:41:18 am
i can create pages outside of smf, using the SSI.php file etc... what i'm hoping though is that i can add ezblocks into these pages too.

a quick no, or a well-explained yes would be great :)
Title: Re: using ezportal outside smf... possible?
Post by: EzPortal on August 02, 2010, 03:30:17 pm
After you do your ssi.php include
Do this
Code: [Select]
// Setup EzPortal
require_once($sourcedir . '/EzPortal.php');
SetupEzPortal();
If using SMF 2.0 change EzPortal.php to EzPortal2.php
Title: Re: using ezportal outside smf... possible?
Post by: thellie on August 02, 2010, 05:20:03 pm
thanks  :)

and then to get a block onto the external, i need have another column type in the admin area?

ie, left, right, top, bottom, external...?

then add blocks as normal...

that's an educated(?) guess...
Title: Re: using ezportal outside smf... possible?
Post by: thellie on August 03, 2010, 01:58:59 pm
i think maybe i didn't explain fully enough initially...

i would like to use ezblocks on external pages, but these pages are NOT created through page manager. in which case they don't appear in the ezblock's 'visible pages' section...

i can, and have, created via the page manager, but would prefer to continue building the pages in dreamweaver, as the rest of the site sits there... it would be too problematic to have these pages sitting as code in a cached area, like the blocks do.

if i create a page independently, but add in the ssi.php, and the setup exportal code below, how do i get the block onto the page?
Title: Re: using ezportal outside smf... possible?
Post by: EzPortal on August 03, 2010, 02:29:50 pm
I see what you are saying. I think you would need to define a custom action maybe ssi
so have action=ssi

Then before you loadezportal define $action = 'ssi';

And when you add blocks just on ssi have them defined

Hmm myabe you can skip the above parts and just call template_ezportal_above() and template_ezportal_below(); around your php code
Title: Re: using ezportal outside smf... possible?
Post by: thellie on August 03, 2010, 05:17:28 pm
thanks, i'll give it a go and let you know... i've already called the main smf menu above and below in with no problem :)
Title: Re: using ezportal outside smf... possible?
Post by: thellie on August 03, 2010, 05:51:51 pm
a quick go hasn't worked, but i don't have time to try further for a while...

i called the template in a number of places on the page (following 'setup ezportal', above the body, inside the body) and none seemed to work.

i loked inside the ezportal php pages to see if i could strip code out and place it directly on the external page... then backed away slowly, so's not to wake up fate.

i'm quite logical with this stuff, but i think is a bit too far for me at the moment  :-\