Jump to content
TNG Community
thewag

Wiki Integration

Recommended Posts

Yves Bergeron

Hi Brian,

Is the authentication transfer from tng to mediawiki always on the todo list ?

Maybe that feature for the tng add-on will also implicate some modifications to the mediawiki config like removing the possibility for anyone to create a new login. Right now, I don't know what is the proper way to do it. For the moment, my own login to mediawiki was created but I don't want new login to be created.

When the tng add-on will be completely integrated to mediawiki, the only way to create a new mediawiki login should be through tng and the process of validating new tng logins by an administrator.

Thank you for your efforts.

Yves

Share this post


Link to post
Share on other sites
B McFadyen

Is the authentication transfer from tng to mediawiki always on the todo list ?

Maybe that feature for the tng add-on will also implicate some modifications to the mediawiki config like removing the possibility for anyone to create a new login. Right now, I don't know what is the proper way to do it. For the moment, my own login to mediawiki was created but I don't want new login to be created.

When the tng add-on will be completely integrated to mediawiki, the only way to create a new mediawiki login should be through tng and the process of validating new tng logins by an administrator.

Yves,

The logon integration was only raised as an issue over the last few weeks. I'm sure a few others have been thinking about it previously, but not bothered to raise the question. I hope to work on this task within the next month. My real job has taken on a few more responsibilities in the last few weeks, so I am finding I have less time to do mod work. It is a challenge to trade off mod work with genealogy research especially when spare hours are a premium.

My plan would be to implement it as you described. Logins would only be validated against TNG user data. Wiki account creation would be turned off. In fact, I have already turned off account creation on my wiki. I am currently the only registered user, which works for me since no one else is presently assisting with my research.

I guess it would likely follow the access rights as described under TNG. Perhaps if the user has the right to add/delete TNG records, then perhaps they can also have wiki page creation rights.

Any thoughts on this would be appreciated.

Brian

Share this post


Link to post
Share on other sites
Carlton Brooks

I have installed your mod for Wiki integration.

I have an error as follows

Fatal error: Call to undefined function linkwiki() in

M:\XAMPP\xampp\htdocs\gpjgs_genealogy\getperson.php on line 101

I am creating the site on my own server these are the link_wiki.php settings

$wiki_host_name = "localhost";

$wiki_admin_name = "carltonb";

$wiki_admin_pwd = "xxxxxx";

$wiki_url = "gpjgs_wiki/index.php";

$wiki_db = "gpjgs_genealogy";

my Joomla site is at gpjgs

my tng is at gpjgs_genealogy

my wiki is at gpjgs_wiki

all wiki files are in the MySql gpjgs_genealogy database

link_wiki.php, new_doc.gif, and the v 6.04 personlib.php and getperson.php are in gpjgs_genealogy

What did I do wrong. What else might you need to diagnose the problem

Thanks

Carlton Brooks

Mesa, arizona

Share this post


Link to post
Share on other sites
B McFadyen

I have installed your mod for Wiki integration.

I have an error as follows

Fatal error: Call to undefined function linkwiki() in

M:\XAMPP\xampp\htdocs\gpjgs_genealogy\getperson.php on line 101

I am creating the site on my own server these are the link_wiki.php settings

$wiki_host_name = "localhost";

$wiki_admin_name = "carltonb";

$wiki_admin_pwd = "xxxxxx";

$wiki_url = "gpjgs_wiki/index.php";

$wiki_db = "gpjgs_genealogy";

my Joomla site is at gpjgs

my tng is at gpjgs_genealogy

my wiki is at gpjgs_wiki

all wiki files are in the MySql gpjgs_genealogy database

link_wiki.php, new_doc.gif, and the v 6.04 personlib.php and getperson.php are in gpjgs_genealogy

What did I do wrong. What else might you need to diagnose the problem

Thanks

Carlton Brooks

Mesa, arizona

Carlton,

I'm responding directly to your email ...

Brian

Share this post


Link to post
Share on other sites
Thomas

I'm following this topic with interest. One of the things I wanted to try and make was a placeholder script for any individual, family, place, source, etc. that wasn't present in the Wiki already. My problem with a manually created Wiki page for each element of my tree is that my tree contains over 20,000 individuals.

I imagine that this placeholder, at least for individuals and families, would take the form of something like standard Ahnentafel output. For places, you could auto-crib information off of Wikipedia.org, as their formatted links are standardized as http://en.wikipedia.org/wiki/City,_State.

For regular places as well as placeholders, I would imagine that any Wiki integration would naturally itemize sources used in TNG. I can't quite tell if your implementation does that.

While TNG is a great product, it's rather dry, and doesn't do well featuring an organic approach to a person's, family's or place's impact on your genealogy. I imagine a Wiki integration could do a great deal to cement this gap.

Does any of that sound feasible?

Share this post


Link to post
Share on other sites
thewag

Does any of that sound feasible?

I had something working with pmWiki with places and names at letting you know when something was there or not. But I've discontinued work on that front. I'm now patiently awaiting the 6.1.2 update to the genWiki concept which is MediaWiki (aka Wikipedia) based.

~Ben

Share this post


Link to post
Share on other sites
Yves Bergeron

Hi everybody,

I use the Mediawiki add-on for over a year. I'm for a large part satisfied from that TNG-Mediawiki integration. The only thing I wish to improve is the single sign-on. In the current version of the add-on, every user logged in TNG must also sign-in to the wiki.

I looked at the way Drupal (http://www.mediawiki.org/wiki/AuthDrupal) does this. There is some kind of cookies generation that simulate Mediawiki login. I think we can do something like this in TNG that generates the cookies for Mediawiki so a user does not have to login with Mediawiki.

I will take a look a this and I think there will be another TNG files that should be modified, probably processlogin.php.

I hope to come back soon about this. If anyone got other ideas, don't hesitate to post them.

Yves Bergeron

Share this post


Link to post
Share on other sites
Les-S

Hi,

Am wondering if Yves, or anyone else, worked out the single sign-on without implementing CMS?

Les

Share this post


Link to post
Share on other sites
Yves Bergeron

Hi Les,

I'm now working on the integration of my TNG site under Joomla! (it was before under E107). As such, the connexion to my Joomla! site should authenticate the access to Mediawiki.

Currently, all is in place for Mediawiki to authenticate itself against the Joomla! user database (it could have been the TNG user database). What is to complete, is the SSO (Single Sign-On). Mediawiki checks for the presence of an encrypted cookie to deterrmine if the user is already logged on to the wiki. That cookie must be created before the first access to the wiki.

So, TNG or Joomla! must create that cookie when the user log on to either TNG or Joomla!. What I'm trying to do, is decide where is the best place to put the code to create that famous Mediawiki cookie though the recipe for creating that cookie is already known.

Check here.

Yves

Share this post


Link to post
Share on other sites
Seeria

I see here that genwiki was last updated at

Revision 4.7b Jul 3, 2008 - added an alternate file for no comma after the Surname. (alt genlib.php)

Revision 4.7a Jul 2, 2008 - missed a file for V7.0.0, package updated. (genlib.php)

Revision 4.7 Jul 2, 2008 - updated for TNG V7.0.0 files.

Is that current with the present TNG release CURRENT VERSION: 7.0.3?

Hate to go thru the coding and it not be. I really suck at coding. :P

Share this post


Link to post
Share on other sites
John Paulding

I know there's some newer threads regarding genwiki but I think this is the officialish one so heregoes.

How does this work with more than one tree? I see in the mod manager when editing the details of this mod, there's a place to specify the tree. The tail end of the wiki web address for adding a person page to the wiki looks like /w/index.php/Alden,_John_-_I513

It almost looks like that address has room for a tree id in there perhaps where the dash is before the I513. I see the foreach in the new persons.php references $treeID and that it has something to do with a url.

I added a small version of my gedcom for testing and at least one duplicate person actually ended up with the same individual ID so without the tree id specified in the address this could turn into a conflict.

getperson.php?personID=I1717&tree=tree2
getperson.php?personID=I1717&tree=tree1

/w/index.php/Bartlett,_Benjamin_-_I1717
/w/index.php/Bartlett,_Benjamin_-_I1717

Without a tree specified in the create wiki page link, two people would be fighting over that page. In this particular case it's the same person from the same gedcom but it could happen for real. Or two people might just want to make their own version of a page for an identical person.

I already had a tree1 which is recorded with the mod and now have tree2 and I tried putting tree1, tree2 in the mod edit area and re-copied the file to mods\mediawiki folder but it didn't change anything on the site. Seems like it would have to become an array but would the foreach statement have to change?

The wiki feature seems to be available in both trees but I'm confused as to whether it should be or not and why the tree ID isn't in the create wiki page link.

Share this post


Link to post
Share on other sites
Ken Roy

Sorry John,

The Wiki Integration mod does NOT support multiple trees.  While I have been keeping the mod current, I am not the mod author nor do I know how to fix the code to handle more than one tree.

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

×