forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: wintersdorff on October 11, 2003, 02:14:44 pm

Title: ....Illegal usage....
Post by: wintersdorff on October 11, 2003, 02:14:44 pm
Hi

When I use Postwrap for coppermine and open application full screen I got the error .....Illegal Usage...... When I switch ...open application full screen off.... it does not find the module ( or link ti copermine) .

Cas in you old forum, somebody had about the same problem, could you eventually send to me the file you send to him as well to me.

Thanks

Winti
Title: ....Illegal usage....
Post by: casNuy on October 12, 2003, 11:47:11 am
Winti,

your problem can be easily fixed.
Open up the pnuser.php and look for the following code :
Code: [Select]

if ($CPGwindow == 1 ) {
Header('Location: '.$url );
} else {


replace this with this code :
Code: [Select]

if ($CPGwindow == 1 ) {
$url="$CPGloc/index_pn.php?parm=$parm&check=$check";
Header('Location: '.$url );
} else {


If it does not solve the problem, try using the module with Postwrap disabled and let me know if it then runs fine.

Cas
Title: ....Illegal usage....
Post by: wintersdorff on October 12, 2003, 02:38:30 pm
Thanks Cas,

This did solve the problem of the illegal usage. Another effect now is I cannot get it to run properly in Postwrap. It always "jumps" to the standalone version, but running thru the login and end up as logged in . It makes no difference if Run with Postwrap is ticked or not.

I can get it to run thru postwrap by, instead of calling it thru {pnCPG} calling it with ........modules.php?op=modload&name=pnCPG&file=index&url=../coppermine, but of course than it does not run thru the login in so the client needs to login twice.

Any ideas ??

If you want to see the effect go to www.winti.lu on the left menu there are 3 different version of calling it so you see. (Gal; Gal test; and Gal Test2)

Thanks again

Winti
Title: ....Illegal usage....
Post by: casNuy on October 12, 2003, 02:55:50 pm
Winti,
looks to me , you have Full  Screen enabled in the config of pnCPG. If this is enabled, it looks like jumping to standalone mode but it will log you in.
If you disable full screen, it will open up within PostNuke (with or wirhout PostWrap).

Cas
Title: ....Illegal usage....
Post by: wintersdorff on October 12, 2003, 05:23:44 pm
Dummy I am...of course. You are great support. Now I can switch from my eGallery to coppermine.

The only thing is that it does not work with Postwrap, its giving me a blank page, but without PostWrap it works fine.

Thanks again,

Cheerio

PS: Anyway I prefer this hack to a real modul. It is much quicker in loading as i doesent need to always reload the complete postnukepage. The only enoying thing is the fixed height only working with px in frame, but I can live with that.
Title: ....Illegal usage....
Post by: wintersdorff on October 13, 2003, 11:19:29 am
Sorry...I have to revise a little.

If one does use it without PostWrap the effect is while logging out of PostNuke and for instance logging back in again, the logging into Coppermine will remain on Guest account. ( Cookies ??) This happens as well on your site.

But with Postwrap enabled I just get a blank page with nothing on it. Do you have an idea of what it could be ?

Thanks
Title: ....Illegal usage....
Post by: hardlocke on October 13, 2003, 11:46:44 am
i have also the problem, when i enable the postwrap option and open now the coppermine gallery with the pnCPG link, all other postwrap link don't work (404 error)  :cry:  :cry:
Title: ....Illegal usage....
Post by: casNuy on October 13, 2003, 12:20:20 pm
Winti & Hardlocke,

can you supply me with your OS, Webserver,PHP & PN version please ?

Cas
Title: ....Illegal usage....
Post by: hardlocke on October 13, 2003, 01:10:02 pm
Windows 2003 Server (IIS), PHP 4.33, Postnuke 0.726
Title: ....Illegal usage....
Post by: wintersdorff on October 13, 2003, 07:46:34 pm
PHP 4.3.3  and latest Linux. Here more info .http://www.server-2.com/phpinfo.php

 My CMS is Envolution based on the latest Postnuke
Title: ....Illegal usage....
Post by: casNuy on October 13, 2003, 11:05:24 pm
Winti,Hardlocke

Have send you3 updated files by e-mail.
Please post your comments here.

Cas
Title: ....Illegal usage....
Post by: hardlocke on October 14, 2003, 07:54:11 am
now i get the error
Wrong method of calling this module use {} instead of []..
after upgrading the specified files... (postwrap modus doesn't care)
Title: ....Illegal usage....
Post by: wintersdorff on October 14, 2003, 08:54:05 am
Hi Cas,

Its weird, now I get this: You must be logged in to use our projekt environment...
The "Guest"account doesent seem to function anymore.

After having logged to Postnuke, I can get to the Gallery again.

With PostWrap enabled I still got the blank page.


Thanks
Title: ....Illegal usage....
Post by: hardlocke on October 14, 2003, 05:51:36 pm
Okey, the above problem is resolved (now i start pnCPG wit {pnCPG})

i installed the new files, but after i switch to postwrap-mode and access
to the gallery (this work fine) all other postwrap link doesn't work anymore!
Title: ....Illegal usage....
Post by: casNuy on October 14, 2003, 07:16:27 pm
Hardlocke,
what are your settings within Postwrap ?
Why use postwrap, is there a special reason ?
Cas
Title: ....Illegal usage....
Post by: casNuy on October 14, 2003, 07:19:17 pm
Winti,
i took out the Guest account since Coppermine does not really need it,  will bring it back as an option in the next version.
As for postwrap, how did you configure that ?
Same question for you, why postwrap (which also uses an iframe) ?

Cas
Title: ....Illegal usage....
Post by: hardlocke on October 14, 2003, 08:26:39 pm
with postwrap i have no unwanted additional border  :lol:
can i remove this in the pnCPG configuration?
Title: ....Illegal usage....
Post by: casNuy on October 14, 2003, 09:28:53 pm
on my site, they look the same, with or without postwrap.
Can you set up 2 links so I can see the difference ?

Cas
Title: ....Illegal usage....
Post by: wintersdorff on October 14, 2003, 09:50:30 pm
Did not know it uses iframe as well.

Cas , as you took out the guest account in the new files you sent to us, it does not work anymore at my end, when you are not logged in into Postnuke.

I agree the guest account is not needed, the more it was confusing.

Here the message.

You must be logged in to use our projekt environment...

As in most of the visitors are not logged in they wont be able to see the gallery unless they log in or first have to create an account.

I rather prefer the non guest account changed files but working for non registered or on logged users.

Thanks Cas
Title: ....Illegal usage....
Post by: casNuy on October 14, 2003, 10:59:59 pm
Again easy to achieve. Open up index.php, located in the pcCPG directory.
Take out the following code :
Code: [Select]

if (!pnUserLoggedIn()) {
die ("You must be logged in to use our Gallery...");
}


It still says 'projekt environment' on your end which was a type from me.

Cas
Title: ....Illegal usage....
Post by: hardlocke on October 14, 2003, 11:33:06 pm
ok, here are the links to coppermine in postnuke:

[list=1]
Title: ....Illegal usage....
Post by: hardlocke on October 15, 2003, 04:49:17 am
and what's about this message (when i try to access {pnCPG} as anonymous)???


Code: [Select]
You can't access this file from and external site...
Title: ....Illegal usage....
Post by: casNuy on October 15, 2003, 09:33:10 pm
Hardlocke,

I registered on your site but did not receive the password, can you take a look ?

Cas
Title: ....Illegal usage....
Post by: casNuy on October 16, 2003, 05:28:47 pm
Winti, Hardlocke

In order to take away the additional border, just take out the foolowing statements from index.php :
Code: [Select]
Opentable() ; and
Code: [Select]
CloseTable() ;

I think, you then have exactly what you want.

the message
Code: [Select]
You can't access this file from and external site...
 

is triggerred if there is no local referer (Location of Coppermine is a different domain from where you are running it), again if not wanted, you can take it out from index.php.

Cas
Title: ....Illegal usage....
Post by: hardlocke on October 16, 2003, 09:58:42 pm
yes, now it work all fine  :lol:

thank a lot for your support!
Title: without PostWrap ?
Post by: zecompadre on December 12, 2003, 03:19:37 pm
without PostWrap , how can i configure ?
Title: ....Illegal usage....
Post by: casNuy on December 13, 2003, 12:51:05 pm
All configuration is done wuthin the admin section of pnCPG. There is no additional configuration if you use it without Postwrap.

Cas
Title: Sharing of this solution?
Post by: lexebus on December 14, 2003, 09:08:35 pm
The files that you are talking about in this thread! Are thaey released, or are we able to see the changes anywhere?
Title: ....Illegal usage....
Post by: casNuy on December 16, 2003, 04:20:26 pm
They are released and available in the download section.

Cas
Title: ....Illegal usage....
Post by: terryjianlin on February 09, 2004, 12:21:46 am
hi, cas
I have the same problem by using the pncpg 1.6 with postnuke.726. I will get a 404 error when check the postwrap option,  it works just fine without it.  now, seem this problem have been solve by delete the opentable() and closetable() in index.php, my question which index.php i have to edit, the one on postnuke root folder or the one in coppermine's root folder ?
regard
Title: ....Illegal usage....
Post by: casNuy on March 05, 2004, 06:01:15 pm
Better late than never, should be the one in pnCPG

Cas
Title: Re: ....Illegal usage....
Post by: tempo on October 12, 2008, 03:23:25 pm
I converted from Postnuke 0.7.5.0 to 0.7.6.4 recently. Still using CPG 1.3.4. Flawlessly. Then I moved to a new HostEurope Server with PHP5 where I got this "....Illegal Usage...." Error. Setting register_long_arrays to "On" helped for me in this case.

Take care

Thorsten
Title: Re: ....Illegal usage....
Post by: tempo on October 24, 2011, 09:54:57 am
New server again, same problem, same solution.