The Arcive of vBulletin Modifications Site. |
|
Mediawiki Edits in Postbit & Profile Details »»
|
|||||||||||||||||||||||||||
This hack enables better integration between MediaWiki and vBulletin.
This hack displays a user's total edits made in mediawiki in their posts and on their profile page (similar to vBulletin post count). Release Info: v1.0.0: Initial Release Requirements: * MediaWiki * MediaWiki/vBulletin Single Sign-On integration hack. If there is a problem making it work with vb4, please also see Post 112 in that thread. To install: * Add the product using the attached product file. * Perform the 2 simple template edits outlined below. Template Edits: 1. postbit_legacy or postbit Find: Code:
<dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd>
Code:
<dt>{vb:rawphrase total_wikiedits}</dt> <dd>{vb:raw post.wikiedits}</dd>
Find: Code:
<vb:if condition="$prepared['lastposturl']">
<dl class="stats">
<dt>{vb:rawphrase last_post}</dt>
<dd><a href="{vb:raw prepared.lastposturl}">{vb:raw prepared.lastposttitle}</a> {vb:raw prepared.lastpostdate} <span class="time">{vb:raw prepared.lastposttime}</span></dd>
</dl>
</vb:if>
Code:
<dl class="stats">
<dt>{vb:rawphrase total_wikiedits}</dt><dd><a href="/home/Special:Contributions/{vb:raw userinfo.username}"> {vb:raw userinfo.wikiedits} </a>
</dd>
</dl>
Thats it! Notes: 1. This hack assumes that your mediawiki install uses a "mw_" table prefix in the same database as vbulletin. If this is not the case, do a search/replace in the product XML file before you install it. 2. If mediawiki is installed in a different database, then replace "mw_user" with "wikidatabase.mw_user" (make sure that the forums' database user has access to the other db). --- This hack is broadly based off AngelBlue's hack hack for a previous release. --- ndahiya Download Now
Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Screenshots:
|
|
#3
|
|||
|
|||
|
Nice work!
Bruno (Tested on vB 4.0.1 + MW 1.14, 7 replaces 'mw_user' -> 'sqlwiki.user' in product-mediawiki-editcount.xml) |
|
#4
|
|||
|
|||
|
Quote:
|
|
#5
|
|||
|
|||
|
I will as soon I use it on the server.
|
|
#6
|
|||
|
|||
|
Thanks for the mod, we have wiki connected to vb4 on my forum.
![]() Is possible to add post directly to the wiki on the future? Cu |
|
#7
|
||||
|
||||
|
Thanks,, installed an nice work,
|
|
#8
|
|||
|
|||
|
Thanks again for you work! Now installed on the server, with this modification, so it appears not for users with 0 Edits and this one, to also link to the Wiki Edits Page.
Code:
<vb:if condition="$post['wikiedits'] > 0">
<dt>{vb:rawphrase total_wikiedits}</dt> <dd><a title="Beitr?ge Wiki" href="/wiki/Spezial:Beitr%C3%A4ge/{vb:raw post.username}">{vb:raw post.wikiedits}</a></dd>
</vb:if>
|
|
#9
|
||||
|
||||
|
anyone know how this works along side vbMediaWiki?
|
|
#10
|
|||
|
|||
|
I have vbMediaWiki installed, and now reinstalled this one. Works nice, but you don't have to edit memberinfo_block_aboutme, since this is done by vbMediaWiki.
|
![]() |
|
|