![]() |
Mediawiki Edits in Postbit & Profile
1 Attachment(s)
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']"> Code:
<dl class="stats"> 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 |
1 Attachment(s)
Screenshots:
|
Nice work!
Bruno (Tested on vB 4.0.1 + MW 1.14, 7 replaces 'mw_user' -> 'sqlwiki.user' in product-mediawiki-editcount.xml) |
Quote:
|
I will as soon I use it on the server. :)
|
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 |
Thanks,, installed an nice work,
|
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"> |
anyone know how this works along side vbMediaWiki?
|
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.
|
All times are GMT. The time now is 11:20 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|