Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
[obsolete!] vbMediaWiki 4.0.2 RC 3 Details »»
[obsolete!] vbMediaWiki 4.0.2 RC 3
Version: 4.0.2RC3, by bepe bepe is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 4.0.2 Rating:
Released: 02-07-2010 Last Update: 02-28-2010 Installs: 130
DB Changes Uses Plugins Template Edits Auto-Templates
Additional Files Is in Beta Stage  
No support by the author.

This version is obsolete:
New version:
https://vborg.vbsupport.ru/misc.php?...diawiki_vector

Download Now

File Type: zip vbMediaWiki_4.0.2_RC3.zip (118.4 KB, 678 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #332  
Old 03-04-2010, 09:17 PM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Set Options correct?
Reply With Quote
  #333  
Old 03-05-2010, 12:45 AM
karkey karkey is offline
 
Join Date: Feb 2010
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

seems like i have, see image

it located at http://www.jtf-2.com/wiki/ and my CMS is installed at http://www.jtf-2.com/

any more info will be appreciated
Attached Images
File Type: gif wilk.GIF (25.7 KB, 0 views)
Reply With Quote
  #334  
Old 03-05-2010, 05:25 AM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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! )
Reply With Quote
  #335  
Old 03-05-2010, 11:59 AM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For german users: Perhaps you preferr to remove 4x
Code:
  text-transform: lowercase;
in w\skins\vbmediawiki\main.css to capitalize the tabs and headers.

Example with some more modifications here.
Attached Files
File Type: zip main.zip (7.4 KB, 9 views)
Reply With Quote
  #336  
Old 03-06-2010, 02:52 PM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting News (from Mediawiki Edits in Postbit & Profile): In Template postbit_legacy (or postbit) search for
Code:
{vb:raw template_hook.postbit_userinfo_right_after_posts}
and add
Code:
<vb:if condition="$post['wikiedits'] > 0">
    <dt>Wiki Edits</dt> <dd><a title="Wiki Edits" href="/wiki/Special:Contributions/{vb:raw post.username}">{vb:raw post.wikiedits}</a></dd>
</vb:if>
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.)
Reply With Quote
  #337  
Old 03-06-2010, 04:34 PM
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi bepe,

Regarding setting up a starting value for edits (for existing users):
Quote:
Originally Posted by bepe View Post

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.


thanks.

ndahiya
Reply With Quote
  #338  
Old 03-06-2010, 04:38 PM
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BRotondi View Post
Interesting News (from Mediawiki Edits in Postbit & Profile): In Template postbit_legacy (or postbit) search for
Code:
{vb:raw template_hook.postbit_userinfo_right_after_posts}
and add
Code:
<vb:if condition="$post['wikiedits'] > 0">
    <dt>Wiki Edits</dt> <dd><a title="Wiki Edits" href="/wiki/Special:Contributions/{vb:raw post.username}">{vb:raw post.wikiedits}</a></dd>
</vb:if>
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!
Reply With Quote
  #339  
Old 03-06-2010, 06:23 PM
karkey karkey is offline
 
Join Date: Feb 2010
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BRotondi View Post
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! )
Hi probably not a template problem

As non of the wiki links go to the correct place
They all go to
http://www.jtf-2.com/wiki/index.php
Reply With Quote
  #340  
Old 03-07-2010, 10:14 AM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Code:
                    echo'><a href="'.htmlspecialchars($tab['href']).'"';
and replace with
Code:
                    if ($key != "talk") {
                        echo'><a  href="'.htmlspecialchars($tab['href']).'"';
                    } else {
                        echo'><a  href="/forum/forums/69-Wiki-Artikel"';
                    }
replacing the bold part with the correct link for your forum.

The same way you can remove the user discussion: In vbMediaWiki.php search for
Code:
        foreach($this->data['personal_urls'] as $key => $item) { ?>
            <li><a href="<?php echo htmlspecialchars($item['href']) ?>"><?php echo htmlspecialchars($item['text']) ?></a></li><?php
        }
and replace with
Code:
        foreach($this->data['personal_urls'] as $key => $item) { 
            if ($key != "anontalk" && $key != "mytalk") { ?>
                <li><a href="<?php echo htmlspecialchars($item['href']) ?>"><?php echo htmlspecialchars($item['text']) ?></a></li><?php
            }
        }
Example

Greetings, Bruno
Reply With Quote
  #341  
Old 03-07-2010, 10:46 AM
benjaminlwells's Avatar
benjaminlwells benjaminlwells is offline
 
Join Date: Jan 2010
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:55 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
  • Page Generation 0.05174 seconds
  • Memory Usage 2,337KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete