Advertisement:

Author Topic: SMF MediaWiki integration released  (Read 362194 times)

Offline Biology Forums

  • SMF Hero
  • ******
  • Posts: 3,781
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: SMF MediaWiki integration released
« Reply #140 on: July 21, 2013, 11:18:07 PM »
I would love to see a "related topics" block in this theme. Is anyone interested in developing such a thing?

For example, if a wiki article is simple to a thread title, it shows it below. :D

I would pay for its development.

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: SMF MediaWiki integration released
« Reply #141 on: July 22, 2013, 03:36:01 AM »
Definatly...the SMF Bridge for MW (v1.21.1) are not working.

(fresh installed on both, XAMPP)

Have an error:
Warning: session_destroy(): Trying to destroy uninitialized session...
I have installed the auth on a forum several weeks ago following few of the tricks I posted in this very topic and everything works as expected, so it *is* working.

One thing I remember I did at least once, but don't remember any more if it was related to the session_destroy or not, was to truncate the users table of the wiki...not a big suggestion, I know...


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline Draffi

  • Jr. Member
  • **
  • Posts: 268
Re: SMF MediaWiki integration released
« Reply #142 on: July 22, 2013, 05:35:20 PM »
After trying almost the half day, to make the Bridge working, i finsihed this with a success.

you need to truncate the mediawiki user table, for to make this working

(smf 2.0.4 /MW 1.21.1)

I`m using the smfcurve-skin for the wiki - and i have a question:

How can i delete the "Logoff" Button in the UserInfo above the sidebar?

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: SMF MediaWiki integration released
« Reply #143 on: July 22, 2013, 05:53:19 PM »
After trying almost the half day, to make the Bridge working, i finsihed this with a success.

you need to truncate the mediawiki user table, for to make this working
Probably when you created the user while installing MediaWiki, you created one with the same username as the one in SMF.

Why do you want to remove the logoff button?
I'm not sure it's possible.


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline Draffi

  • Jr. Member
  • **
  • Posts: 268
Re: SMF MediaWiki integration released
« Reply #144 on: July 22, 2013, 06:02:23 PM »
Grr.....i was changing some settings in MW in the user-profile and now, i`m not able to log-in anymore....

 >:(

Exactly for this reason, i want to delete the logoff-Button: When i click on this, i logged off from the MW not from SMF !!!

(this was different when i was bridging MW 1.16)

HELP! How can i login again into MW?

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.


Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,673
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF MediaWiki integration released
« Reply #147 on: July 24, 2013, 01:02:09 AM »
The code their does not work with SMF 1.1.x
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Biology Forums

  • SMF Hero
  • ******
  • Posts: 3,781
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: SMF MediaWiki integration released
« Reply #148 on: July 24, 2013, 01:14:03 AM »
The code their does not work with SMF 1.1.x

Thanks, just wondering.

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: SMF MediaWiki integration released
« Reply #149 on: July 24, 2013, 04:19:28 AM »
Live627 adapted it for 1.1: https://github.com/live627/smf-mw-auth


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline Biology Forums

  • SMF Hero
  • ******
  • Posts: 3,781
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: SMF MediaWiki integration released
« Reply #150 on: July 24, 2013, 03:49:51 PM »

Offline Draffi

  • Jr. Member
  • **
  • Posts: 268
Re: SMF MediaWiki integration released
« Reply #151 on: July 24, 2013, 04:23:07 PM »
Quote
https://github.com/SimpleMachines/smf-mw-auth/blob/master/Auth_SMF.php#L44

If this answer was for me: I was donig this - bridge not working correctly, if you are log-out from MW 1.21.1 (and 1.19, too)

You CAN only re-log-in, if you are trunkate the mw_user table...

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: SMF MediaWiki integration released
« Reply #152 on: July 24, 2013, 05:26:19 PM »
The answer was for you, yes.
Did you set the variable mentioned in the paragraph I linked?


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline Draffi

  • Jr. Member
  • **
  • Posts: 268
Re: SMF MediaWiki integration released
« Reply #153 on: July 24, 2013, 05:39:57 PM »

Quote
# Make sure "Use database driven sessions" is checked in the
# SMF Admin -> Server Settings -> Feature Configuration section

CHECKED

Quote
# NOTE: Make sure to configure the wgCookeDomain below
#$wgSMFLogin = true;

Deleted the #-Symbol

Quote
#$wgCookieDomain = 'domain.com';
insert my domain, tested with myforum.com and www.myforum.com - not function.

Furthermore, when you use the smfcurve-skin with MW 1.21.1 you never can use the upper-menu-tabs in the wiki-personal settings...(Where timezone, skin-select, editor settings are stored...)


Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: SMF MediaWiki integration released
« Reply #154 on: July 24, 2013, 05:45:03 PM »
Quote
# NOTE: Make sure to configure the wgCookeDomain below
#$wgSMFLogin = true;

Deleted the #-Symbol
Is wgCookeDomain enabled or not in your case?
I've seen it work better if disabled (commented out).


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline Draffi

  • Jr. Member
  • **
  • Posts: 268
Re: SMF MediaWiki integration released
« Reply #155 on: July 24, 2013, 05:52:48 PM »
i tried at first only with the "main setting" (require smf_auth), was not working (login), so step-by-step i turn all the settings on (together with the fixes from this thread, eg. comment out one line in smf_aut, trunkate the mw_user table...) at the end, i can login, but when i logout (in mw !) i never can login again.

for this reason i was asking to disable the link...

Offline Draffi

  • Jr. Member
  • **
  • Posts: 268
Re: SMF MediaWiki integration released
« Reply #156 on: July 24, 2013, 05:54:05 PM »
well....i stepback to MW 1.16 - in some month i will see if somebody have a better Bridge/newer version...


Offline studentforums

  • Jr. Member
  • **
  • Posts: 107
  • Gender: Male
    • Click here
Re: SMF MediaWiki integration released
« Reply #157 on: November 04, 2013, 05:36:49 AM »
I installed the bridge and the wiki pages load but I am not logged into the wiki by logging into smf and I get this error when I log into the wiki

Unable to view external table
MySQL Error Number: 1054
MySQL Error Message: Unknown column 'memberName' in 'field list'

I have just upgraded bith smf to 2.05 and wikimedia to 1.21.2
I only help those that help themselves. I suppose I am a bit like GOD that way.
If you realise anything useful, say something useful and help someone else.

Student forum for GCSE, IGCSE, IB, O & A Level and University Students

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: SMF MediaWiki integration released
« Reply #158 on: November 04, 2013, 06:32:21 AM »
Considering memberName is a 1.x column name, I bet you are using the wrong code.
Where exactly did you download it?


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline studentforums

  • Jr. Member
  • **
  • Posts: 107
  • Gender: Male
    • Click here
Re: SMF MediaWiki integration released
« Reply #159 on: November 04, 2013, 07:01:14 AM »
SMF from the smf website, mediawiki from mediawiki.
The file SMF_Auth.php was alread installed. I have not edited it.
I only help those that help themselves. I suppose I am a bit like GOD that way.
If you realise anything useful, say something useful and help someone else.

Student forum for GCSE, IGCSE, IB, O & A Level and University Students