Hello Guest [ Registration | Log in ]

Main Menu

Login





 


 Log in Problems?
 New User? Sign Up!

Genealogy Quote

Genealogy Fever: a deadly and infectious disease.

Stories

Online

There are 0 Members online.

You can log-in or register for a user account here.
search pnForum latest posts Note: Registered users can subscribe to notifications about new posts Note: Registered users can subscribe to notifications about new posts
Reply to: pnTNG install instructions for v 3.04?


Options:




  


:


Author pnTNG install instructions for v 3.04?
Wendel

Posts: 82
Here are the all the changes that need to be made to make pnTNG 3.04 work with TNG 6.0.4. These changes will be in the next pnTNG and hopefully in TNG 6.0.5. In the time being, if anyone has trouble with them, please send me a note at pnTNG@VoigtWorld.com and I will send you a copy of the edited files.

In customconfig.php:
Code
Replace the code:
$this_modulebasename(dirname(realpath(__file__)));
$homepage = ($dot = strrchr($homepage, '.')) ? substr($homepage, 0, -strlen($dot)): $homepage;
if ($cms[pnTNG] == 1) {
    $cms[support] = "postnuke";
    $cms[module] = "$this_module";   
    $cms[url] = "index.php?name=$this_module&file";
    $cms[tngpath] = "./modules/$this_module/";
    $cms[cloaklogin] = "Yes";
    $cms[credits] = "<!-- pnTNG without frames -->
"
;
 } elseif ($cms[pnTNG] == 2) {

with the code:

$this_modulebasename(dirname(realpath(__file__)));
if ($cms[pnTNG] == 1) {
    $cms[support]    = "postnuke";
    $cms[module]     = "$this_module";   
    $cms[url]        = "index.php?name=$this_module&file";
    $cms[tngpath]    = "modules/$this_module/";
    $cms[cloaklogin] = "Yes";
    $cms[credits]    = "<!-- pnTNG without frames -->
"
;
    // Fix up file paths
    $homepage = ($dot = strrchr($homepage, '.')) ? substr($homepage, 0, -strlen($dot)): $homepage;// strip .php or .html
    $rootpath        = dirname(dirname(dirname(realpath(__file__)))) . "/";
    $gendexfile      = $cms[tngpath] . $gendexfile ;
    $mediapath       = $cms[tngpath] . $mediapath ;
    $headstonepath   = $cms[tngpath] . $headstonepath ;
    $historypath     = $cms[tngpath] . $historypath ;
    $backuppath      = $cms[tngpath] . $backuppath ;
    $documentpath    = $cms[tngpath] . $documentpath ;
    $photopath       = $cms[tngpath] . $photopath ;
 } elseif ($cms[pnTNG] == 2) {


In genlib.php, function getSmallPhoto, line 109:
Code
Replace the code:
        $imgsrc = "<img src=\"$cms[tngpath]" . "$usefolder/" . str_replace("%2F","/",rawurlencode( $medialink[thumbpath] )) . "\" border=\"0\" width=\"$photowtouse\" height=\"$photohtouse\" alt=\"" . str_replace("\"","","$medialink[description]") . "\" title=\"" . str_replace("\"","","$medialink[description]") . "\">";

with the code:
        $imgsrc = "<img src=\"" . "$usefolder/" . str_replace("%2F","/",rawurlencode( $medialink[thumbpath] )) . "\" border=\"0\" width=\"$photowtouse\" height=\"$photohtouse\" alt=\"" . str_replace("\"","","$medialink[description]") . "\" title=\"" . str_replace("\"","","$medialink[description]") . "\">";


In file genlib.php, function showSmallPhoto, line 156:
Code
Replace the code:
        $photo = "$prefix<img src=\"$cms[tngpath]" . "$photoref\" border=\"$border\" alt=\"$alttext\" width=\"$photowtouse\" height=\"$photohtouse\" $align style=\"border-color:#000000\"/>$suffix";

with the code:
        $photo = "$prefix<img src=\"" . "$photoref\" border=\"$border\" alt=\"$alttext\" width=\"$photowtouse\" height=\"$photohtouse\" $align style=\"border-color:#000000\"/>$suffix";


In file File tngpedigree.js, function FillSlot, lines 315 through 321
Code
Replace the code:
        if( slotperson.photosrc && slotperson.photosrc != "-1" ) {
            if( slotperson.photolink )
                content = '<a href="' + slotperson.photolink + '"><img src="' + cmstngpath + slotperson.photosrc + '" id="img' + slot + '" border="0"></a>';
            else
                content = '<img src="' + cmstngpath + slotperson.photosrc + '" id="img' + slot + '" border="0">';
            content = '<td align="left" valign="top">' + content + '</td>';
        }

with the code:

        if( slotperson.photosrc && slotperson.photosrc != "-1" ) {
            if( slotperson.photolink )
                content = '<a href="' + slotperson.photolink + '"><img src="' + slotperson.photosrc + '" id="img' + slot + '" border="0"></a>';
            else
                content = '<img src="' + slotperson.photosrc + '" id="img' + slot + '" border="0">';
            content = '<td align="left" valign="top">' + content + '</td>';
        }



 
 
Guest
Unregistered User
Hi Wendel,

I am still having issues with thumbnails not showing up in media and photo listings as well as on the pedigree and ancestoral charts.

Could you please point me to the right script?

Thanks

dlassen
 
 
Guest
Unregistered User
Wendel,

I have now applied the suggested tweaks and it helped but there were a couple more issues:

1) similar error referencing globallib.php
2) similar error referencing /English/text.php

Without knowing much php I made similar edits in these 2 files and things seem to be working now with the integrated login and a (very basic) menu when I select the genealogy link.

Thanks again

Dennis



 
 
dlassen

Posts: 3
Hi,

I have now installed everything according to instructions and have all lights "green" in the PN admin module setup). I created a submenu under Main menu linking to [pnGenealogy] (which is the name of my newly created TNG instance).

However, when I try to access TNG from my newly created menu link, I get these about 5 error messages that look something like this:

Warning: main(/home/jutlinkn/public_html/postnuke/modules/pnGenealogy/./modules/pnGenealogy/mediatypes.php) [function.main]: failed to open stream: No such file or directory in /home/jutlinkn/public_html/postnuke/modules/pnGenealogy/globallib.php on line 8

After the 5 errors it shows a skeleton Home page and a bunch of TNG menu points, but selecting them brings up an error page in the browser.

Any help you can give would be appreciated!

Thanks

dlassen
 
 
dlassen

Posts: 3
Thanks Wendel - that did the trick! I am looking forward to attempting to integrate my TNG site with PN.
 
 
Wendel

Posts: 82
You need to unzip the files -- PostNuke will not do it. The files are zipped using the free 7-zip program found at http://www.7-zip.org/. Different people have reported similar problems, but they have never been consistent enough for me to figure out what might be going on in the zip process. If all else fails, try to unzip it with 7-zip.

Installation instructions are then in the readme.txt file located in the pndocs directory.

- Wendel
 
 
dlassen

Posts: 3
Hi,

I was wondering if someone could point me to the installation instructions for pnTNG v. 3.04. I am getting an error on my PC when trying to unzip the download "The Compressed Folder is Invalid or Corrupted"

Not sure whether it should be unzipped on my local PC or whether Postnuke performs that during install.


Thanks !

dlassen
 
 
Users online:


This list bases on the users active in the last 10 minutes


Powered by pnForum Version 2.6