Created an account on your site but can't even find the links "My talk" etc. on jtf-2.com/wiki ... Perhaps you should go through your navbar template again... (btw: nice background image! )
below to see you wiki edits ({vb:raw post.wikiedits} is set by vbMediaWiki):
(Can someane confirm this? Not sure if really correct, since I first installed and later uninstalled Mediawiki Edits in Postbit & Profile. Or does anyone know how to put this Templatemodification into a plugin instead? {vb:raw template_hook.postbit_userinfo_right_after_posts} seems to give us this possibility.)
Regarding setting up a starting value for edits (for existing users):
Quote:
Originally Posted by bepe
hm... not that easy for me... might take some time
add the following to the install code section. this will create a column (and index) to get the initial values for wikiedits, and then drop that column. so you start with initial values, and your database looks as it does right now.
Code:
$vbulletin->db->query_write("ALTER TABLE mw_user ADD vbusername varchar(255) collate latin1_swedish_ci default NULL");
$vbulletin->db->query_write("ALTER TABLE mw_user ADD INDEX vbusername_idx (vbusername)");
$vbulletin->db->query_write("UPDATE mw_user SET vbusername = user_name WHERE vbusername is null");
$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . "user AS user
SET user.wikiedits =
( SELECT sum(user_editcount)
FROM mw_user
WHERE user.username = vbusername );
");
$vbulletin->db->query_write("ALTER TABLE mw_user DROP vbusername");
have to do a roundabout way to get a case insensitive username to compare to the vbulletin username, hence the latin1_swedish_ci for the column...
also, we need to change mw_user to wiki-database-name.mw_user (and mw_ to whatever prefix we are using), in case the wiki database is different. what this will still not populate is pages created (not sure if mediawiki can track that directly?)
a cleaner option might be to provide a link on the config page to update the data (after installing the app). that way no edits required to the xml file. but do not know how to set that up.
below to see you wiki edits ({vb:raw post.wikiedits} is set by vbMediaWiki):
(Can someane confirm this? Not sure if really correct, since I first installed and later uninstalled Mediawiki Edits in Postbit & Profile. Or does anyone know how to put this Templatemodification into a plugin instead? {vb:raw template_hook.postbit_userinfo_right_after_posts} seems to give us this possibility.)
since the field name is the same (wikiedits), it will work. so bepe can just add this to the template mods, and this feature can be activated here too. the other mod is really redundant after bepe's awesome work!
Created an account on your site but can't even find the links "My talk" etc. on jtf-2.com/wiki ... Perhaps you should go through your navbar template again... (btw: nice background image! )
Perhaps you don't want any media wiki discussions any more. One solution: Create a Subforum (e.g. "Wiki Articles") and link to this forum instead to the wiki discussion page:
in vbMediaWiki.php search for
I like that Bruno! I already have a sub-forum set up for wiki discussion, and it just never occurred to me to do that, I love the idea, will do it later.