Jump to content
TNG Community
Martin Kilkie

integrating TNG with Jooma

Recommended Posts

Martin Kilkie

To say I am impressed by TNG would be an understatement. Not only the continual work by Darrin but the whole community approach. In particular I have had phenomenal responses when I didnt know what I was doing, or wanted a wee tweak here or there.

However, I also want my family to talk, share stories, give general public info about the weirdnesses in our genes and that is all a bit beyond the core structure. I have had and still keep a traditional Joomla site kilkie.org which does all those things but there is no automatic method for easy integration with Joomla.

I have found a way around this as I can run TNG from my joomla and make it an option on the private side of the joomla site for family members only. There are still a number of problems, some of which are liveable with but some that irk family members. I would be grateful for comments/suggestions/criticism of any /all of them.

1. You need to log in twice - once to Jooma and once to TNG. I cannot see a way of adding login parameters to the call to TNG which might simplify things. They are both PHP and MySQL so it should be possible, just beyond my abilities. At present my family members are enjoying TNG so much they ignore the other part and so updating on stories, birthdays etc is all falling by the wayside.

2. More important is that I havent figured out how to make it impossible to run TNG directly, ie not via my joomla programme. I have put TNG in subfolder of my Joomla site but that doest stop people running things from there.

 

Any ideas?

 

with grateful thanks for any suggestions.

 

Martin

Share this post


Link to post
Share on other sites
manofmull

I once had Wordpress installed. Some are happy with that (or Joomla) but for me it was extra work for not much benefit.

I would recommend this mod as it allows your site users to comment on anything (people, families and media). It's very popular on my own website

https://tng.lythgoes.net/wiki/index.php?title=Comments

 

M

Share this post


Link to post
Share on other sites
Martin Kilkie

Hi M O'M

Thanks for that. I have the forum installed but it still doesnt cover the wide range of content and design styles I can do on Joomla. Im not criticising the range of add-ins (mods) in TNG as it would end up being a tail wagging a dog and needs to stick to being TNG.

There shouldnt be that much extra work. If I could pass the password and username to TNG it would be great as would blocking access to php files manually.

Martin

Share this post


Link to post
Share on other sites
Martin Kilkie

Hi manomull,

I have taken your suggestion and installed the comments mod. I misunderstood its purpose and confused it with a forum. I can see the benefit to comments on pages. 

I installed it (12.0.1.2) for TNG 12.2.

line 69: %copyfile: comments_add.php  copied
Source: mods/comments2/comments_add.php
line 70: %copyfile: comments_pagelist.php  copied
Source: mods/comments2/comments_pagelist.php
line 71: %copyfile: ajx_commentsmod.php  copied
Source: mods/comments2/ajx_commentsmod.php
line 72: %copyfile2: img/commentsIcon3.png  copied
Source: mods/comments2/commentsImg/commentsIcon3.png
line 73: %copyfile2: img/commentsIcon_big.jpg  copied
Source: mods/comments2/commentsImg/commentsIcon_big.jpg
line 74: %copyfile2: img/cmmt101.jpg  copied
Source: mods/comments2/commentsImg/cmmt101.jpg
line 75: %copyfile2: img/cmmt102.jpg  copied
Source: mods/comments2/commentsImg/cmmt102.jpg
line 76: %copyfile2: img/cmmt103.jpg  copied
Source: mods/comments2/commentsImg/cmmt103.jpg
line 77: %copyfile2: img/cmmt104.jpg  copied
Source: mods/comments2/commentsImg/cmmt104.jpg
line 78: %copyfile2: img/cmmt105.jpg  copied
Source: mods/comments2/commentsImg/cmmt105.jpg
line 79: %copyfile2: img/cmmt106.jpg  copied
Source: mods/comments2/commentsImg/cmmt106.jpg
line 80: %copyfile2: img/cmmt107.jpg  copied
Source: mods/comments2/commentsImg/cmmt107.jpg
line 81: %copyfile2: img/cmmt108.jpg  copied
Source: mods/comments2/commentsImg/cmmt108.jpg
line 87: %target:genlib.php% verified
line 89: %location:% #1 Installed
line 128: %location:% #2 Installed
line 288: %target:customconfig.php% verified
line 291: %parameter:$commentsPublic:false
line 300: %parameter:commentsPublicAdd:false
line 310: %parameter:commentsGuestcaptcha:true
line 319: %parameter:commentsApproveguests:true
line 328: %parameter:commentsApproveusers:false
line 337: %parameter:$commentsAlwayson:false
line 345: %location:% #1 Installed
line 374: %target:admin_genconfig.php% verified
line 376: %location:% #1 Installed
line 394: %target:admin_utilities.php% verified
line 395: %location:% #1 Installed
line 412: %target:admin_backup.php% verified
line 413: %location:% #1 Installed
line 430: %target:admin_optimize.php% verified
line 431: %location:% #1 Installed
line 448: %target:admin_restore.php% verified
line 449: %location:% #1 Installed
line 468: %target:@ajx_commentsmod.php% verified
line 472: %parameter:$commentsAdminmailGuest:true
line 481: %parameter:$commentsAdminmail:true
line 492: %target:getperson.php% verified
line 495: %parameter:$commentsPersonOn:true
line 503: %location:% #1 Installed
line 535: %target:familygroup.php% verified
line 538: %parameter:$commentsFamilyOn:true
line 546: %location:% #1 Installed
line 572: %location:% #2 Installed
line 590: %target:placesearch.php% verified
line 593: %parameter:$commentsPlaceOn:true
line 601: %location:% #1 Installed
line 616: %location:% #2 Installed
line 645: %target:showmedia.php% verified
line 648: %parameter:$commentsMediaOn:true
line 656: %location:% #1 Installed
line 687: %target:languages/English/cust_text.php% verified
line 689: %location:% #1 Installed
line 754: %target:languages/English-UTF8/cust_text.php% verified
line 756: %location:% #1 Installed
line 821: %target:@languages/Dutch/cust_text.php% verified
line 824: %location:% #1 Installed
line 889: %target:@languages/Dutch-UTF8/cust_text.php% verified
line 892: %location:% #1 Installed
line 957: %target:@languages/French/cust_text.php% verified
line 960: %location:% #1 Installed
line 1026: %target:@languages/French-UTF8/cust_text.php% verified
line 1029: %location:% #1 Installed
line 1096: %target:@languages/German/cust_text.php% verified
line 1099: %location:% #1 Installed
line 1164: %target:@languages/German-UTF8/cust_text.php% verified
line 1167: %location:% #1 Installed
line 1232: %target:@languages/Swedish/cust_text.php% verified
line 1235: %location:% #1 Installed
line 1300: %target:@languages/Swedish-UTF8/cust_text.php% verified
line 1303: %location:% #1 Installed

  • code modifications specified: 24; modified: 24
  • file copies specified: 13; copied: 13
  • new files specified: 0; created: 0
  • new folders specified: 0; created: 0
  • errors: 0

It installs correctly, I add the database table ok and get 

Attempting to create database table(s)...   Database table(s) created succesfully.
Attempting to add keys to database table(s)...   All keys added succesfully.
Attempting to add autoincrements to database tables...   All autoincrements added succesfully.

BUT! When I add a comment I get this error message.

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/16/d387908500/htdocs/KILKIEFHS3/tng/genlib.php on line 1538

 

Any ideas. I have reinstalled 4 times same error.

thanks for any help

 

Martin

Share this post


Link to post
Share on other sites
Ken Roy
3 hours ago, Martin Kilkie said:

BUT! When I add a comment I get this error message.

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/16/d387908500/htdocs/KILKIEFHS3/tng/genlib.php on line 1538

Martin,

You are evidently running a PHP level that is higher than the mod developer, who is dealing with health issues, has tested his mod on.

14 hours ago, Martin Kilkie said:

There shouldnt be that much extra work. If I could pass the password and username to TNG it would be great as would blocking access to php files manually.

If it were that simple the Joomla / TNG integration project from several years ago would have survived and provided the integration...😎

Share this post


Link to post
Share on other sites
Martin Kilkie

Hi Ken,

My provider has limits on PHP versions and has just upped the supported version to 7.2. The wiki on mods doesnt mention version of PHP and it is usually not an issue. I cannot go back down as my host has stopped support for 7.1 which I presume would work.

re the wish list, it is just that. A full blown integration with joomla MVC isnt what I expect but I do think a halfway house would be worth developing. I am not sure for example if YNG can take parameters and if so I could get my joomla routine to call the url with the parameters to log in users. To keep it secure I would use a separate login to TNG and keep those details in Joomla. 

 

Martin

Share this post


Link to post
Share on other sites
Ken Roy

Martin,

Sorry, I am not a Joomla user and am just a user like you.  I did help test the Mod Manager re-write so that it would work in a Joomla environment back in TNG v7 before it became part of TNG v8.

All I am saying is that Erik Hoppe is dealing with health issues, so might not be in a position to update his mod, which I do not use.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×