Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 12:37 pm EDT

Geeklog Forums

External pages problem !!!!!!!!!!!!!


Newbie

Anonymous
blank
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 Cry
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

Newbie

Anonymous
Thanks again Dirk, I'll try this
 Quote

Status: offline

trampoline

Forum User
Full Member
Registered: 02/24/06
Posts: 392
Quote by: Newbie

Thanks again Dirk, I'll try this



Did you get this working ?
 Quote

Newbie

Anonymous
angry
Cry 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
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
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 a try and see if it helps.

Thanks!
Mark
 Quote

Status: offline

trampoline

Forum User
Full Member
Registered: 02/24/06
Posts: 392
I will try that thanks Mark.
I'll post back here on any developement...maybe a few days...
 Quote

Newbie

Anonymous
cheerful
Thanks Mark, I'll get back with the result
 Quote

Status: offline

trampoline

Forum User
Full Member
Registered: 02/24/06
Posts: 392
Quote 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 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.....
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
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
 Quote

Status: offline

trampoline

Forum User
Full Member
Registered: 02/24/06
Posts: 392
Quote 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


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'Wink;
//
// 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'Wink;
$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]
 Quote

Status: offline

trampoline

Forum User
Full Member
Registered: 02/24/06
Posts: 392
Hmmm forum plugin is inserting smilies there when I did not want it to....
 Quote

Status: offline

trampoline

Forum User
Full Member
Registered: 02/24/06
Posts: 392
Ok a bit more...
Permissions are working and call header etc but when logged in header etc are not called,
not sure why ???
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Quote by: trampoline

Hmmm forum plugin is inserting smilies there when I did not want it to....

Your /code and code tags are reversed.
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
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
 Quote

Status: offline

trampoline

Forum User
Full Member
Registered: 02/24/06
Posts: 392
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
 Quote

All times are EDT. The time is now 12:37 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content