go.
1. XML File:
Requirements :
* MediaWiki
* ElfMage's MediaWiki/vB integration hack (no need to get the premium version)
To install :
* Upload the attached product file.
* Perform the 2-3 simple template edits outlined below.
Editing the postbit/postbit_legacy template
In: postbit_legacy (or "postbit" if you use that template)
Find the <div> section with : $vbphrase[posts] and the post count in it.
Add the following below that :
<if condition="$post[wikiedits] > 0">
<div>
Wiki Edits: <a href="http://www.yoursite.com/wiki/index.php/Special:Contributions/$post[username]" rel="nofollow">$post[wikiedits]</a>
</div>
</if>
Editing the MEMBERINFO (profile page) template
In: MEMBERINFO
Find : the bit about threads/posts recently made to your forum.
If you aren't sure where this is, search for $userinfo[posts].
You will find some table rows each containing one piece of information.
e.g. one row contains information about how many posts the user has.
Add the following after one of those "</TR>" tags :
<tr>
<td>$vbphrase[total_wikiedits]: <strong>$userinfo[wikiedits]</strong> (<phrase 1="$wikieditsperday">$vbphrase[x_wikiedits_per_day]</phrase>)</td>
</tr>
Scroll down a bit and you will see the <TR> sections for showing search links for a user.
If you can't find them, search for find_all_posts_by_x.
After those "<TR>" ... "</TR>" bits, add :
<if condition="$userinfo[wikiedits] > 0">
<tr>
<td><a href="http://www.yoursite.com/wiki/index.php/Special:Contributions/$userinfo[username]" rel="nofollow">$vbphrase[find_all_wikiedits_by_x] $userinfo[username]</a></td>
</tr>
</if>
Notes / Disclaimers
1. This hack assumes that your mediawiki install uses a "mw_" table prefix. If this is not the case, do a search/replace for "me_"/"" on the product XML file before you install it.
2. This hack does NOT implement any automatic visual changes on your forum. Rather, it provides an extra "wikiedits" field in the user database (also accessible in postbits) and instructions for modifying your templates to make use of this information. Failure to perform the template edits will result in your forum not looking any different.
3. This hack has not been extensively tested. Use at your own risk, backup your database, feel free to examine the code yourself, etc.
4. The wiki edits section won't appear in the postbit unless the user actually has wiki edits to show.
2. XML File
To get this to work with the vB SSO all you need to do is change the query (appears twice in the XML) from:
SELECT user_editcount
FROM mw_user
WHERE user.username = user_real_name
to
SELECT user_editcount
FROM wiki_user
WHERE user.username = user_name
For me wiki_ is my prefix, it may be different for everyone else, the vB SSO however requires you to use user_name rather than user_real_name.
Zip-File:
MediaWiki/vBulletin Single Sign-On
Requirements:
MediaWiki Version: 1.12.0+
vBulletin Version: 3.7.0+ (has also been tested on 3.6.9)
Features:
- Provides single sign on capability between vBulletin and Mediawiki. vBulletin user repository is used
- Configurable sysop/bureaucrat groups
- Configurable disallowed user groups
- Configurable "Who's Online" display
- Counts users viewing wiki in vBulletin's "Who's Online"
Installation/Upgrade:
Please read the included "readme.txt" file in the "docs (do not upload)" folder.
Options:
Admin Control Panel->vBulletin Options->MMOG Wiki Options
Change Log:
1.0.0.0 - Sep 18, 2008
- Initial Release
1.0.3.0 - Sep 29, 2008
- Bugfix: Incorrect redirects for login/logout
2.0.0.0 - Sep 30, 2008
- Feature: Streamlined installation procedure
- Feature: Wiki path set in ACP
- Bugfix: Forum paths no longer hardcoded
2.1.0 - Oct 4, 2008
- Feature: ACP option to use MediaWiki Short URLs
- Feature: ACP option to set sysop groups
- Feature: ACP option to set bureaucrat groups
- Feature: ACP option to disallow login to certain groups
- Feature: ACP option to change WOL display text