forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 plugins => Topic started by: just_some_guy on November 10, 2007, 11:16:18 am
-
Hello,
I am very confused about how to access a second page from the plugin config (the page that is the result of clicking on the plugin admin menu button).
I know that pages can be accessed through the forms of.
index.php?file=plugin/config
plugins/plugin/config.php
But when you have a url like "plugin.php?id=20" i have problems.
index.php?file=plugin/plugin.php?id=20 - will just go to the index page.
index.php?file=plugin/plugin?id=20 - will just go to the index page.
plugins/plugin/plugin.php?id=20 - either produces a "Not in Coppermine..." or a failed to open stream include/init.inc.php
Now i understand that if the plugin has a second page and is accessed through the form of ?file= then it is not neccessary include init again. Whereas if init is not included and the page is accessed in the style of "plugins/plugin/plugin.php?id=20" then it works but not with $pageheader and $pagefooter as these vars are defined in init.
How is it possible to access a url of ?id= ?
thanks,
-
I think i know what the problem might be.
Instead of $_GET['id'];
Would i need to do something with switches?
-
index.php?file=plugin/plugin.php?id=20
index.php?file=plugin/plugin?id=20
these are just wrong
index.php?file=plugin/plugin.php&id=20
index.php?file=plugin/plugin&id=2
is much better
-
I knew it was wrong. That seems to work.
Thanks Stramm.