Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorGene
    • CommentTimeMar 1st 2009
     
    Hello hello! First of all - just wanna shoot out a random thanks to all who helped develop this software. Plogger is pretty EXACTLY what I was looking for in a gallery. I'm really looking forward to using it but I seem to have run-in with a small problem relating to including the script on a page. I did do a search of the forum but didn't turn up any solutions to similar questions posted, so I'm sorry to be a pain and report another repeat issue!

    My PHP isn't really very sharp and my overall coding is a bit rusty, so do please bear with me as I attempt to bumble through an explanation.

    Basically, my site's run through an index.php file containing the main template/layout/design/whatever of the site and contains a php switch/include script to pull each page and include it into the site using - surprise! - an include() function. So, basically, I followed the install instructions and created a gallery.php file with the necessary code lines and proceeded to call gallery.php from the main include script to generate an index.php?id=gallery link pulls the gallery page and slots it into the layout. The gallery is visible, all the albums/collections/thumbnails etc. are visible but actually clicking any of the links or collections just returns you to the index page.

    I can, in theory, figure out WHY it does this - sort of. To the best of my knowledge and limited terminology (see failed attempt above at being technical) because the code is embedded into the page it looks at the filename/root path of the page it's embedded into or something, and obviously my url is index.php?id=whatever, so naturally, it reads 'index.php' and adds the rest of the path onto that.

    My question is, what could I do to work around this problem? I don't think I can include the actual gallery itself directly into the switch, so that ones out of the window. I could quite simply just point my link at gallery.php and embed the layout into that same seperate file so the effect would be the same, only the url would be different - however, doing that would double the amount of navigation links etc. I have (and subsequently have to edit) and potentially break a few other scripts I have running on the page. It's not a HUGE deal, as I can just grab all the navigation links and throw them into a seperate file, then use an include to throw it up on each page, but I wouldn't like to resort to that method if I can avoid it and make some changes to fix the switch problem.

    I do hope this made some kind of sense - I'm really sorry for waffling so much - and sorry to be a bother! Any help or advice you can provide would be really, truly appreciated. Thank you very, very much in advance!

    <3 Gene
  1.  
    Gene, let me explain to you what i understand and my possible solution..

    You have a INDEX.PHP whit your layout and you put an include in the content section for the switch...

    i think the problem is not yours, Plogger do not find the root of your gallery, instead he use a general url (index.php), your layout name file is INDEX.PHP and the root page of plogger its INDEX.PHP too... thats why he returns you to your frontpage... I think, you must modify the plogger script an change urls like /?level=collection to ../index.php?id=gallery?level=collection... or something like that.. i mean whit "../index.php?id=..." the URL of your layout.

    Its not probably the best answer and the best english jajaja (sorry, im from venezuela) but here its hard to find and answer... i just translate the entire .po file and have 3 days waiting for a explain about how to install the spanish file...

    I past like 30 min trying to translate my answer, i hope i do it well and you cant understand it.

    Good luck!
    • CommentAuthorGene
    • CommentTimeMar 1st 2009
     
    Thank you so much for the input, I managed to adjust the code accordingly so that the path points to /index.php?id=gallery?level=collection... but unfortunately, it still doesn't work! :[ I really do appreciate the help, though; perhaps I just did something wrong...? Either way, thank you very much for trying. I really appreciate it. <3
    •  
      CommentAuthorsidtheduck
    • CommentTimeMar 2nd 2009 edited
     
    Gene,

    Unfortunately, your current switch script uses the $_GET variable "id" which Plogger also uses at this time. I've updated the current codebase to keep switch script variables, but it will run into issues with conflicting variables if your CMS switch scripting uses the $_GET variables "level", "id", "mode", "plog_page", "searchterms", "sortby", or "sortdir". There is a bug ticket for this, but it may be a little bit until we get around to fixing it.

    Is there a quick way for you to edit your current site from "id=" to something like "page=" or "pid=" (I'm not sure what you are using for a CMS or if you are hand-coding everything)? If not, you may need to just wait for a bit until we can get to fully fixing this conflict bug (we will get to it :D ).
    • CommentAuthorGene
    • CommentTimeMar 2nd 2009 edited
     
    sidtheduck,

    thank you so much for the response! In answer to your question, I'm hand-coding my site, the script is really simple - so yes, I can change the id= into anything at all :D Had a look at the support ticket you posted, thanks for directing me to that. I wasn't aware it was being seen to - I do apologise! Just to make sure I'm absolutely clear on this - is altering the ?id= all I'd have to do, or would I need to alter plogger's function scripts as well?

    Thanks again! <D
    •  
      CommentAuthorsidtheduck
    • CommentTimeMar 2nd 2009 edited
     
    Gene,

    If you change your script to use something other than 'id', download the current codebase from SVN (which may have some small bugs in it still as we haven't "officially" released it yet), and run the plog-admin/_upgrade.php then you do not need to change Plogger at all. It should work just fine.
    • CommentAuthorGene
    • CommentTimeMar 5th 2009
     
    Ah! Gallery seems to work perfectly now - only issue is that there seems to be a bit of conflict with the CSS as the layout looks a bit muddled up but I'm sure that can easily be solved :] thank you very, very much for the help - I really appreciate it! Thank you again!
    •  
      CommentAuthorkimparsell
    • CommentTimeMar 5th 2009
     
    Gene: Which theme are you using for the gallery? If you provide a link to your site, I can take a look and see what the style issues might be.