Posted on: 06/19/07 05:10pm
By: Anonymous (Newbie)
Just tried installing External Pages - all goes OK, and it appears in plugins. When I click on 'install now' NOTHING happens !!!
I had the same problem recently with Chatterbox - this proved to be a register_globals issue - is this the same?
As a workaround I used to iframe implementation recommended - this works OK, but gave a fixed height of approx. 180 pixels, so isn't a lot of use for me.
My other site is PostNuke - much prefer Geeklog, but feeling a dummy with plugins so far
Re: External pages problem !!!!!!!!!!!!!
Posted on: 06/19/07 05:24pm
By: Dirk
You could try switching register_globals on for the install, then back off afterwards. Many of the older plugins are based on the "universal plugin" framework, where the install script required register_globals to be on. At least some of them work with it "off" after that step, though.
bye, Dirk
Re: External pages problem !!!!!!!!!!!!!
Posted on: 06/20/07 07:02am
By: Anonymous (Newbie)
Thanks again Dirk, I'll try this
Re: External pages problem !!!!!!!!!!!!!
Posted on: 06/30/07 06:07am
By: trampoline
Quote by: NewbieThanks again Dirk, I'll try this
Did you get this working ?
Re: External pages problem !!!!!!!!!!!!!
Posted on: 07/03/07 09:03am
By: Anonymous (Newbie)
NOPE !!!! Tried turning register_globals on with .htaccess, it just broke the site. Is anyone willing to look at this for me ?? I really need external pages - can live without chatterbox for now. Thanks
Re: External pages problem !!!!!!!!!!!!!
Posted on: 07/03/07 10:30am
By: mevans
Someone asked me to help them with the external pages plugin a while back. I made some edits to allow it to work with GL 1.4+ and register_global off, give
this one[*1] a try and see if it helps.
Thanks!
Mark
Re: External pages problem !!!!!!!!!!!!!
Posted on: 07/03/07 10:31am
By: trampoline
I will try that thanks Mark.
I'll post back here on any developement...maybe a few days...
Re: External pages problem !!!!!!!!!!!!!
Posted on: 07/03/07 10:54am
By: Anonymous (Newbie)
Thanks Mark, I'll get back with the result
Re: External pages problem !!!!!!!!!!!!!
Posted on: 07/03/07 05:45pm
By: trampoline
Quote by: mevansSomeone asked me to help them with the external pages plugin a while back. I made some edits to allow it to work with GL 1.4+ and register_global off, give this one[*1] a try and see if it helps.
Thanks!
Mark
Hi mark it installed without a hitch...
One question...
how does this line go ?
if (!SEC_externalAccess(substr(SCRIPT_NAME,/sponsor/index.php))) {
where /sponsor/index.php is a sub directory of the main html documents of the site i.e.public_html/sponsor/index.php
how do I do this line at the mo it just whites out, probably because I got it wrong.....
Re: External pages problem !!!!!!!!!!!!!
Posted on: 07/03/07 05:54pm
By: mevans
I think it should be like this:
Text Formatted Code
if (!SEC_externalAccess(substr('yourexternalhtmlfilehere.html',1))) {
Basically, you replace $SCRIPT_NAME with the name of the .html external page. I guess the external page could also be a .php file if you wanted.
Thanks!
Mark
Re: External pages problem !!!!!!!!!!!!!
Posted on: 07/03/07 06:33pm
By: trampoline
Quote by: mevansI think it should be like this:
Text Formatted Code
if (!SEC_externalAccess(substr('yourexternalhtmlfilehere.html',1))) {
Basically, you replace $SCRIPT_NAME with the name of the .html external page. I guess the external page could also be a .php file if you wanted.
Thanks!
Mark
Great That works...
had to alter
require once ../lib-common by putting ../ infront of lib-common
so it displays, but without any header blocks etc
I have this in the header so I think the header and left blocks should show ???
[/code]
require_once('../lib-common.php'
;
//
// Its best to change the substr($SCRIPT_NAME,1) to the actual file name or relative url here
//
if (!SEC_externalAccess(substr('/sponsor/index.php',3))) {
$display = COM_siteHeader('menu'
;
$display .= COM_startBlock($LANG_EX00['access_denied']);
$display .= '<div align="center"><b>' . $LANG_EX00['access_msg'] . '</b></div>';
$display .= COM_endBlock();
$display .= COM_siteFooter(yes);
echo $display;
exit;
[code]
Re: External pages problem !!!!!!!!!!!!!
Posted on: 07/03/07 06:50pm
By: trampoline
Hmmm forum plugin is inserting smilies there when I did not want it to....
Re: External pages problem !!!!!!!!!!!!!
Posted on: 07/03/07 07:17pm
By: trampoline
Ok a bit more...
Permissions are working and call header etc but when logged in header etc are not called,
not sure why ???
Re: External pages problem !!!!!!!!!!!!!
Posted on: 07/03/07 08:02pm
By: jmucchiello
Quote by: trampolineHmmm forum plugin is inserting smilies there when I did not want it to....
Your /code and code tags are reversed.
Re: External pages problem !!!!!!!!!!!!!
Posted on: 07/03/07 08:04pm
By: mevans
OK, let me look at the code again, remember I didn't write it I just upgraded it so it would work with Geeklog 1.4.x.
Instead of following the example in the README look in the externalpages_templates/ directory and use those examples. They show you how to setup each type of page.
Give that a try and let me know if that helps.
Thanks!
Mark
Re: External pages problem !!!!!!!!!!!!!
Posted on: 07/05/07 04:37am
By: trampoline
Thanks Mark,
Actually even without calling any blocks this is fantastically useful,
I am fairly thick so being able to incorporate any page into Geeklog's security is immensely helpful,
the possibilities are quite exciting, using database data adding more detail, the possiblitiy of a searchable database withing the geeklog system...
Anyway thanks mark, I now realise that I habve to put the header and footer calls into may page code so that is why they are not showing up...
I tried to do that but it's not that simple I think, anyway I will ahve another go.
On a side note, I would love to help rationalise the plugins / Hacks for geeklog, it seems to me people are working hard on things like you mark and the results of this work are not always easy to access i.e. this external pages plugin which I was struggling with for so long.
I have noticed that it's like a detective story trying to track down bits and bobs for geeklog and I am sure more people would come over if these hard to find bit's were easier to find.
Thanks again,
Vincent