Menu

postnuke module

Help
Jim Carey
2004-04-20
2004-04-29
  • Jim Carey

    Jim Carey - 2004-04-20

    a new version of this module will be needed to support V3.0 . I have tested this and will send John a version asap

    Jim

     
    • Jim Carey

      Jim Carey - 2004-04-21

      As I have to make changes for V3.0 I decided to add the ability to bring phpGedView up in an iFrame on a PostNuke site. So when you click on the link it will open the gedview in the main content area. Given that the real estate is at a premium you can then click on a link (just like PostWrap) to open the gedview in a new browser window.
      I have nearly completed testing this - seems to work well so far  - assuming no errors come out then I will send to John in the next 24 hours or so

      So current capability is:

      when linked it will check to see if you are logged into PostNuke.

      if so then it will check to see if the userid is valid for phpGedView.
      If it is valid it will login and then link to phpGedView.
      If it isn't valid it will create a user in phpGedView and then link to it.

      If you aren't logged in it will llink but as a guest/std entry to phpGedView

      and now it will open up in an iFrame (like PostWrap) - so improving the integration

      cheers - any ideas on further changes needed ?

      Jim

       
    • rfield

      rfield - 2004-04-28

      Hi Jim,

      I tried the V3 and had an issue in that it wouldn't come up in the iframe only as a seperate window.

      My previous configuration was your V2 and PostWrap 2.5 on PN 726 which is what if gone back to.  I continue to run phpGedView 3.0.1.  Have you ever seen this issue?

      Thanks for the great work!

      Ron

       
      • Jim Carey

        Jim Carey - 2004-04-28

        nope - haven't seen this. Can you let me know what happened when you called the routine - which I assume you did via the modload process ?
        Was there an error message, a blank frame or something else.
        Did it actually create the frame but not display for some reason (ie if you are able to retest then could you do a view source in the blank frame - if that's what you got - to see what is in there ?)

        got me confused (easily done !) - works on my system as you probably saw when you went to http://carey.id.au and clicked on Family Tree - so any further info you may have would be much appreciated (I am a testing group of one only :-)

        Jim

         
        • rfield

          rfield - 2004-04-28

          Hi Jim,

          There were no visible errors other than the phpGedView not being embedded it always came up as a seperate window and PN remained as it was prior to clicking the link.  The password functionality worked fine.

          One thing comes to mind that I've come across in a couple other apps.  My PN install is not in the root.  A few times I've seen this mess up paths in some code.  My PN install is in a sub directory called /bar off the root.

          I'll do some more testing today and see what I can find out.  I guess you're two now ;-)

          Ron

           
          • rfield

            rfield - 2004-04-28

            Hi Jim,

            I made a couple changes to the file and I'm no longer using static Var.  I've now switched over http://field.ath.cx and I'm no longer using PostWrap.

            Take a look at the changes and let me know.  I have not tested it with an install in the root.
            Here's the file http://field.ath.cx/pvgindex.zip

            Ron

             
    • Anonymous

      Anonymous - 2004-04-28

      hi,
      i have the same problem using phpgetview with the postnuke-hack (both the latest versions). i am not running postnuke in the root-dir either (http://myhomepage.de/portal). when i click on the link (http://homepage.de/portal/modules.php?op=modload&name=gedview&file=pgvindex), phpgetview opens in the same window in an i-frame, but not inside my postnuke-environment. this program is really great and i'd love to use it within postnuke. unfortunately i'm no programer, but i know the elite skills of copy-pasting ;)
      if you could point me into the right direction to fix this issue, I#d be very very happy.
      thx in advance
      philipp

       
      • rfield

        rfield - 2004-04-28

        It is a path issue because we're not in the root.
        I've resolved most of it but I still have one little static item to clean up.  I had previously liked the V2 idea that you had to be logged into PN to be logged into phpGedView so I added back the "?logout=1".
        I changed the following.  It's all in pgvindex.php.

        Line 109 I've changed to,
        $next = "$GEDBASEDIR/index.php?logout=1";

        And I've inserted at line 72 the following,

        $DOCUMENT_ROOT = "$DOCUMENT_ROOT/bar";

        The "/bar" is my PN directory.  This is the line I need to finish.

        Jim please jump in and correct me make suggestions, I'm not a programmer, just a hacker.

        Ron

         
        • Jim Carey

          Jim Carey - 2004-04-29

          Ron - that's excellent - just tested it on my version and it works great ! - You realise you have now been confirmed as a tester for new releases of the code :-)

          philipp - if you want to wait a short while I will upload the revised version via John Finlay and that should suit you - from what I read in your email :-)

          philipp - if you want to get the code change a bit quicker send me an email - jim at carey.id.au and I will send you the revised pgvindex.php

          cheers

          Jim

           
      • Jim Carey

        Jim Carey - 2004-04-28

        ok - thanks to Ron I should be able to look at a mod soon to take into account the non root dir usage - perhaps you could take a look at Ron's post and you could do a temp hack until I release the generic one ?

        Jim

         
    • Jim Carey

      Jim Carey - 2004-04-28

      Ron,
      thanks for the work you have done on it - sorry for my delay in replying - because of the time diff here in Sydney I was in bed :-)
      Any chance you could send me any changed modules to jim at carey.id.au so I can go through your changes  and look at putting them in the "official" version - just want to make 100% sure that I have exactly what you have done

      cheers

      jim

       
    • Anonymous

      Anonymous - 2004-04-29

      Hi everybody,

      I just wanted to say thanks for all your help on the postnuke module. It will surely make a lot of people happy :)

      Regards,

      Roland

       
    • Jim Carey

      Jim Carey - 2004-04-29

      Hi,
      have sent a revised version to John for loading to the site. If anyone wants the change pgvindex.php b4 it gets uploaded they can ask me - jim at carey.id.au

      cheers

      Jim

       
    • John Finlay

      John Finlay - 2004-04-29

      I've uploaded the new PostNuke module to the modules download area. 

      http://sourceforge.net/project/showfiles.php?group_id=55456&package_id=88140&release_id=234024

      Thanks for all of your work to integrate the two products.

      --John

       

Log in to post a comment.