Ticket #153 (accepted defect)

Opened 4 months ago

Last modified 6 weeks ago

Plogger doesnt function; returns to main within PHP switch scriped pages

Reported by: Dillusion Owned by: sidtheduck
Priority: normal Milestone: 1.1
Component: General Version: 1.0b3
Severity: normal Keywords: needs-testing
Cc:

Description

I have a website which uses a PHP index.php page with a switch script inside which uses include(); to display HTML pages.

The gallery is located at www.scooporlando.com/?location=pics

As you can see, when an album is clicked on, it brings you back to main. This is because inside the PHP switch script, you cannot use php get's inside that page because of the libraries hierarchy.

The gallery works when you type in the addresses manually as shown here:

http://www.scooporlando.com/?location=pics&level=collection&id=2&level=album&id=2

The problem is, this address cannot be generated by plogger from within the switch script. I cannot add the " <?php the_gallery(); ?> " within "include ('place it here'); " because it's not a file, its a function from another running script or PHP file.

The gallery works ON my index.php page when " <?php the_gallery(); ?> " is placed OUTSIDE of the switch script.

The only solution I can think of, is to add my PHP get "?location=page" before the main link within the plogger script so it has the library hierarchy correct, but I can't seem to find it anywhere.

Is plogger not usable in this case?

Change History

follow-up: ↓ 3   Changed 3 months ago by sidtheduck

  • owner changed from mike to sidtheduck
  • status changed from new to assigned

I can take a look at this. Should be able to do this without too much trouble by having a text input in the Admin Options for a $_GET variable switch / alias. There was a post on the board by someone who hacked / manually hardcoded this into his installation, but I can't seem to find it right away, I'll look for it later.

  Changed 3 months ago by sidtheduck

  • milestone 1.0 deleted

in reply to: ↑ 1   Changed 3 months ago by Dillusion

Replying to sidtheduck:

I can take a look at this. Should be able to do this without too much trouble by having a text input in the Admin Options for a $_GET variable switch / alias. There was a post on the board by someone who hacked / manually hardcoded this into his installation, but I can't seem to find it right away, I'll look for it later.

Awesome. For now I have just re-directed my 'Pictures' link to /index2.php, where index2.php is simply the stock plogger index.php renamed so the server doesnt default it as home.

Will this be a change in the next release, or is there as way for me to implement your idea right away?

  Changed 2 months ago by sidtheduck

A follow up to this would be the possible need to prefix any Plogger $_GET variables with "plog-" or "plog_" (much like the current setup for pagination) so we don't conflict with other CMS's use of "level", "id", "search", "mode" (etc.) variables.

  Changed 2 months ago by sidtheduck

  • milestone set to 1.0

  Changed 7 weeks ago by sidtheduck

  • milestone changed from 1.0 to 1.1

This is *somewhat* fixed in r550 and will integrate automatically into a $_GET switch script (as long as the CMS that Plogger is embedded in does not use the $_GET variables "level", "id", "mode", "plog_page", "searchterms", "sortby", or "sortdir".

Perhaps this can be completely resolved by version 1.1 or 2.0 if there are any conflicts.

  Changed 6 weeks ago by sidtheduck

  • keywords needs-testing added
Note: See TracTickets for help on using tickets.