Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 10:13 am EDT

Geeklog Forums

MediaWiki integration with Geeklog


Status: offline

Euan

Forum User
Full Member
Registered: 04/22/02
Posts: 292
Hi all. Just posted a brief how-to and some files for a very basic integration of MediaWiki with Geeklog. See it here on my site.

If you have any questions let me know. Please note this is a very basic integration, but it allows your users to log in with their Geeklog username and password.

Cheers,

Euan.
-- Heather Engineering
-- No job too small
 Quote

Darren

Anonymous
PHP v4.2 switched off register_globals, so if you haven't changed this setting, you'll need to add 'global $_DB_host, $_DB_user, $_DB_pass' to each function in AuthGeeklog.php that uses them (userExists, authenticate etc.)
 Quote

Status: offline

Euan

Forum User
Full Member
Registered: 04/22/02
Posts: 292
Thanks - I'll get on to it.
-- Heather Engineering
-- No job too small
 Quote

Status: offline

romantaran

Forum User
Junior
Registered: 03/19/05
Posts: 34
Location:Russia
Quote by euan: Hi all. Just posted a brief how-to and some files for a very basic integration of MediaWiki with Geeklog.


Wow! It is very necessary! I'll try it!
 Quote

Status: offline

romantaran

Forum User
Junior
Registered: 03/19/05
Posts: 34
Location:Russia
I have two separate databases for GL and for MediaWiki. Maybe because of this integration doesn't work. What can I do?
 Quote

Status: offline

Euan

Forum User
Full Member
Registered: 04/22/02
Posts: 292
At the moment, the integration doesn't support having register globals off. I need to fix it - maybe this weekend, but I'm way behind schedule on too many things....
There should be no problem to allow having two databases. I'll see if I can add a config section to allow choosing your database, but no promises.
-- Heather Engineering
-- No job too small
 Quote

Status: offline

romantaran

Forum User
Junior
Registered: 03/19/05
Posts: 34
Location:Russia
Now it works! I have register_globals "on" but there was the problem like Darren wrote. So I have done what he said.
 Quote

Status: offline

Euan

Forum User
Full Member
Registered: 04/22/02
Posts: 292
Glad it worked. I'll post here when I have something new for you.

Cheers, Euan.
-- Heather Engineering
-- No job too small
 Quote

Status: offline

samstone

Forum User
Full Member
Registered: 09/29/02
Posts: 820
I am using MediaWiki 1.6.2, and tried this integration but it didn't work. Is the version the problem?

Sam
 Quote

Status: offline

Euan

Forum User
Full Member
Registered: 04/22/02
Posts: 292
Don't know - I'll have a look and post here. The last version I tried was a 1.5 series release.

Cheers,

Euan.
-- Heather Engineering
-- No job too small
 Quote

Status: offline

samstone

Forum User
Full Member
Registered: 09/29/02
Posts: 820
Hi Euan,

Thanks for the quick response.

Since we are on this topic, could you point out why I should use ErfurtWiki rather than mediawiki? Mediawiki seems to have more programmers behind it.

After seeing that you have ErfurtWiki integration with Geeklog, I checked the features and found that it doesn't support Unicode. I am a little confused because I understand you site is unicode. Have you had any problem using ErfurtWiki with unicode?

Sam
 Quote

Status: offline

Euan

Forum User
Full Member
Registered: 04/22/02
Posts: 292
The only real difference is that ErfurtWiki is embedded within the Geeklog page - just a looks thing. The MediaWiki integration at the moment is just a login thing - when you log into MediaWiki, it checks your credentials against the Geeklog database. Clearly, MediaWiki also has a more mature feature set than ErfurtWiki.

I would like to improve this integration - there is potential, I'm sure - but don't have much time. I'll look into getting 1.6.2 working, and that's about it for the moment. If other people want to cooperate on this, I'm open to offers (I'm already starting to work with people on the Rating and Glinks plugins).

As for UTF-8 in ErfurtWiki, I hadn't noticed any problems.... I always just set up my sites in UTF-8 only. Are you finding it doesn't work?

Cheers, Euan.
-- Heather Engineering
-- No job too small
 Quote

Status: offline

ItsCurly

Forum User
Junior
Registered: 12/05/05
Posts: 24
Hi,

I have installed MediaWiki, looks great. Now have to figure out how to use it.

I have also followed the instructions for integrating into Geeklog, but now I can't log into MediaWiki at all, it rejects my username and password, although accepts the username. Password requests don't arrive but could be a setting on the server.

1. Is there any logical reason for this that anyone could think of?
2. Not really geeklog related, but how can I re run the setup of MediaWiki? I still have config directory intact although not writeable.
3. The instructions for the integration as per heatherengineering.com say to log into MediaWiki when done. Will this automatically allow existing users to login, or do I need to create them initially in MediaWiki and then they won't need to log in twice?

Curly
 Quote

Status: offline

Euan

Forum User
Full Member
Registered: 04/22/02
Posts: 292
The latest version of MediaWiki has changed in some way - I need to update the integration. I haven't had time recently but I'll try and get around to it asap.

Euan.
-- Heather Engineering
-- No job too small
 Quote

Status: offline

Euan

Forum User
Full Member
Registered: 04/22/02
Posts: 292
I had a look at the integration again, and it seems to be working for me with the latest version of MediaWiki.

If you are having trouble with this integration, make sure that you are editing the path to your Geeklog config.php in the AuthGeeklog.php file. If things still don't work and the path is definitely correct, feel free to post here with details of the problem.

Cheers,

Euan.
-- Heather Engineering
-- No job too small
 Quote

Yeraze

Anonymous
excited
I just got this working with Geeklog 1.4 & Mediawiki 1.6.7... Like Darren said, even with register_globals enabled I had to add the "globals " lines in AuthGeeklog.php...

But to further complicate things, I have both geeklog & MediaWiki saving into the same database... WIth the newer PHP versions, "mysql_connect" is not guaranteed to return a new connection if one already exists, so the mysql_close at the end was closing previously opened connections, generrally trashing everything. I had to add the extra "bool new_link" parameter to all the mysql_connect lines, and it's workin like a charm.
 Quote

All times are EDT. The time is now 10:13 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content