Topic: post nuke .8
Guest 
Unregistered User

Posted:
7.Feb 2008 - 02:03

Hi,
Just wondering if you are planning on a new release for PN .8?
Also, are you still planning an update to pntng for tng 6.2?

Thanks
Patrick
Wendel

Posts: 82

Posted:
7.Feb 2008 - 08:40

I am just starting to dabble in PostNuke .8 I'm in the process of converting one of my other sites to it (but it does not use pnTNG.) Many of the modules work fine in the update process. So I am hopeful it will be the same for pnTNG (famous last words, eh?) In the past, I've tried to bring pnTNG up to all the coding standards for PostNuke. I'm hoping that pays off.

Also, with the new Content module coming on board for PostNuke .8, I'm toying with the idea of adding some more blocks -- like a search block, Top x surname list block, Display Photo block, etc. So the blocks could be easily added to a home page. Just in the thinking stage on those. So feedback/thoughts would be welcome.

And yes, the update for TNG 6.2 was pushed on the stack and buried. I'll try to get that out soon.
- Wendel
Wendel

Posts: 82

Posted:
9.Feb 2008 - 18:18

I have added pnTNG 3.11 to the Downloads section at http://www.voig...-lid-13.html.
It has the minor updates for TNG 6.2.0.
I guess I can start working on the PostNuke .800 version now icon_smile
- Wendel
Guest 
Unregistered User

Posted:
10.Feb 2008 - 00:16

Thanks for the update!
I can't wait to try out the .8 version. Hopefully everything goes smoothly.
Patrick
Wendel

Posts: 82

Posted:
16.Feb 2008 - 17:36

A small update on pnTNG with PostNuke .800:

I have a version up and running on a test site. PostNuke has made some big changes with .800, but for the most part things are still backwards compatible. There were a few quirks to work out:
  • You can't access items in the modules directory directly. Therefore by default you can no longer get to TNG directly, nor run any of the administration tools. It can be overcome by adding a .htaccess file in the TNG directory. So this file will now be included in the TNG folder of pnTNG.
  • PostNuke would not recognize the TNG directory as a module without a pnversion.php file. So this has been added to the TNG folder in pnTNG. It has the added benefit that now in the PostNuke Module module, your TNG module will now show the official TNG name and version number from TNG's files.

For the moment I think things will work ok. Hopefully there will not be any hiccups with the final released version of PostNuke .800 (or PostNuke's new name 1.0).

If anyone wants to beta test things, let me know and I will email you a version to try.

- Wendel
patrick

Posts: 17

Posted:
28.Feb 2008 - 13:53

I would like to test the .8 version.
Can you send me the file?

Thanks
Patrick
Guest 
Unregistered User

Posted:
25.Apr 2008 - 02:47

I finally found some time to get this working.
However, I did run into a few snags along the way.
The first problem was I did not use your suggested index.php for TNG. This caused TNG to not open up inside postnuke. Can you make it more clear in the readme that this needs to be done or add this as a step.
Another problem was with the headstone link on the index.php you suggest. I believe Line 51 should be
Quote
  • <a href="<?php echo getURL( "browsemedia" , 1 )."mediatypeID=headstones" ?>"><?php echo $text[headstones] ?>

  • The third problem is the Welcome sign on the index page, it should say "welcome guest" but the guest is missing. It is showing "Welcome Admin" when I am logged in.
    My fourth question is about the admin page. The tng admin page opens in an Iframe with horizontal bars in some pages, is this normal or should it open in a seperate window or...?
    Lastly, Regarding the links. Which one should be used TNG or pntng? They have different urls but they go to pretty much the same place. The only difference is pntng has a "Welcome to Postnuke" message above it.
    patrick

    Posts: 17

    Posted:
    25.Apr 2008 - 02:49

    That message was from me.
    Forgot to add, Great work!
    Thanks
    Wendel

    Posts: 82

    Posted:
    25.Apr 2008 - 23:25

    Patrick,
    Thanks for trying it out.
    QuoteThe first problem was I did not use your suggested index.php for TNG. This caused TNG to not open up inside postnuke. Can you make it more clear in the readme that this needs to be done or add this as a step.

    I will update the readme.txt to state you must have an index.php file.

    QuoteAnother problem was with the headstone link on the index.php you suggest...

    You are correct. I will update that as well.

    QuoteThe third problem is the Welcome sign on the index page, it should say "welcome guest" but the guest is missing. It is showing "Welcome Admin" when I am logged in.

    This works for me. The only thing I can think of .... possibly the TNG description for the user "Guest"
    did not have a description. I put in a check to use the userid (in this case "Guest") if
    the user description field is blank in TNG. I also found a spot where the guest account was
    created as "Guest" even if you chose a different name. So I think that is correct now. Please
    let me know if this corrected the problem.

    QuoteThe tng admin page opens in an Iframe with horizontal bars in some pages, is this normal or should it open in a seperate window or...?

    It should open in an Iframe. The way TNG uses frames, it is the only way I could get it to work. I'm not sure what you mean by horizontal bars. There are stripes on some of the images (around the big TNG) and the background. Not sure what other bars you are talking about. Can you describe better or email a screen shot to pntng@voigtworld.com

    QuoteRegarding the links. Which one should be used TNG or pntng?

    The pntng links are a leftover from a prior way of integrating TNG with PostNuke. At this point,
    the best way to call the links is with TNG (or whatever you name your TNG module.) I've redone pntng.php to basically mimic that call now. That was done for those that might have had an old link.

    I'm emailing you an update version for you to try. Among the things I added
    was a search feature for .800 You can now search for TNG people names from the
    PostNuke search function.
    - Wendel
    Guest 
    Unregistered User

    Posted:
    26.Apr 2008 - 19:05

    Hi Wendel,
    I found a problem in the new code in index_pnTNG.php. When opening the link to tng a white screen appears with no errors. When using the file from beta1 it works again except for the guest problem of course.
    QuoteIt should open in an Iframe. The way TNG uses frames, it is the only way I could get it to work. I'm not sure what you mean by horizontal bars. There are stripes on some of the images (around the big TNG) and the background. Not sure what other bars you are talking about. Can you describe better or email a screen shot to pntng@voigtworld.com

    I was speaking of the horizontal scroll bar in some tng admin screens (ie. user management). It's not a concern when you access administration directly like this /modules/genealogy/administration/.
    But I was hoping to block direct access somehow.

    Thanks
    Wendel

    Posts: 82

    Posted:
    27.Apr 2008 - 00:04

    Patrick,
    Sorry, I had a syntax error in index_pnTNG.php on line 19. I will email you a new version.

    Ahh, so the scroll bars. I think I understand. I don't know a way around that right now.
    The whole administration part of TNG is not compatible with direct access through PostNuke.
    Hence the use of the IFRAMES there. You can always forgo doing administration
    items in PostNuke and access directly. You can then add your own .htaccess file to add an
    extra layer of login/password.
    - Wendel
    patrick

    Posts: 17

    Posted:
    27.Apr 2008 - 00:24

    Wendel,
    I got your email, it works great now.
    However, I found another problem. My realname from postnuke is not passing through to tng.
    Patrick
    Wendel

    Posts: 82

    Posted:
    27.Apr 2008 - 00:59

    By "not passing through to tng", you mean in the User data on TNG, or on the login screen from index_pnTNG.php (renamed to index.php)?

    I'm assuming you mean to the actual TNG user data. If so, a few more questions:

    Did you have the real name set when pnTNG created the TNG user? I'm assuming you have that option checked in the pnTNG options.

    Have you checked the pnTNG option to keep TNG user information up to date (near the bottom)?





    edited by: Wendel, Apr 27, 2008 - 12:04 AM
    patrick

    Posts: 17

    Posted:
    27.Apr 2008 - 01:15

    Wendel,
    The real name, or true name in postnuke, was filled in prior to setting up tng. I also tried deleting the username in tng and then logging back in but it still does not pass through.

    Just to run by you what info got passed to tng:
    The guest account has username--Guest and description--blank and real name--Guest Account

    The admin account has username--admin and description--admin and real name--blank(should be patrick)
    If you are also trying to pass over the website url then that is also blank.

    If you need access to my site let me know I can email you my information.
    Patrick
    patrick

    Posts: 17

    Posted:
    27.Apr 2008 - 01:38

    sorry, forgot to answer your question.
    QuoteHave you checked the pnTNG option to keep TNG user information up to date (near the bottom)?

    Yes I have that option checked.
    Wendel

    Posts: 82

    Posted:
    28.Apr 2008 - 08:36

    It is still working with PostNuke 764. I've confirmed it is not updating correctly with PostNuke 80x. It appears that the way to obtain user information may have changed in PostNuke. I'm still investigating.
    patrick

    Posts: 17

    Posted:
    29.Apr 2008 - 00:54

    thanks for the heads up.
    Patrick
    patrick

    Posts: 17

    Posted:
    2.May 2008 - 04:02

    In order to get the real name from PN you need to change line 149 in pnuserapi.php from name to _urealname. And...possibly on lines 199 and 200?

    So, now when you are logged on the user information in tng is like this:
    username admin
    description patrick
    real name patrick
    Prior to fixing the real name issue it was like this:
    username admin
    description admin
    real name blank
    There might be a problem with this in that your index_pntng.php file has
    Quote<?php
    if( $currentuser ) {
    echo "

    $text[welcome] $currentuserdesc.

    \n";
    }
    ?>

    This will now show the real name instead of the user name. I personally do not care which one it shows, I just wanted to make you aware of it.

    Patrick
    patrick

    Posts: 17

    Posted:
    2.May 2008 - 04:09

    The "URL" doesn't work either and I am not smart enough to figure that one out.
    I just know it is stored in the PN_user_data table on row 2 of the pn_uda_id field.
    I hope that helps.
    Wendel

    Posts: 82

    Posted:
    2.May 2008 - 23:07

    Patrick,
    Yes you are correct. I figured this out a couple of days ago and wanted to work up a version that would work for both PostNuke .800 and .764. They now use different variable names for the information. I also wanted to test it out a bit. I emailed you a version that I believe fixes the problem.