Thread: Integration with vBulletin - vbMediaWiki Vector
View Single Post
  #421  
Old 01-21-2013, 06:21 PM
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi guys,

Here is an updated version to SpankMe's version (https://vborg.vbsupport.ru/showpost....&postcount=392) with some fixes and one that is working with VB 4.2 PL3 and Mediawiki 1.20.2 .

You can access the manual and diagnostics at www.YourSite.com/YourWiki/vbmediawiki/

** To avoid the edit permissions issue, navigate to your wiki/maintenance/ directory
and run :
Code:
 php resetUserTokens.php
Alternatively, upload the attached resetUserTokensNull.php to the wiki-maintenance directory (it only sets the tokens for users who do not have one - much faster). And set it up as a cron job every hour... This is (still) the best solution I've found so far.


Installation instructions:
1. Upload the wiki_upload files to the wiki folder, and the forum_upload files to the forums folder.
2. Import the product in vbulletin.
3. Set the variables in Settings --> Options --> vBulletin Mediawiki.
4. Grant permissions to various usergroups.
5. Add tab to the wiki under Settings-->Navigation Manager. Set the "Tab scripts" field to "mediawiki".

Release Notes:
Version 1.1 (21 Jan 13):
* The diagnostics page is fixed.
* The navigation bit (login and logout links) in the Vector skin is fixed. <-- If you use the vector skin with memcached, this improved my cache efficiency meaningfully (suspect because how the login/logout link was created for not-logged in users).

Version 1.2 (2 Feb 13):
* Upgrade instructions: upload files, upgrade product using XML file.
* Support for short URLs. You MUST update the wiki path if you install this version. The previous version works fine, except that the sitemap (and other links to the wiki) create by vbulletin refers to the old style links.
Now, Instead of specifying the wiki path as www.SITE.com/YourWiki (no trailing slash), you now should enter it as www.SITE.com/YourWiki/index.php?title= OR www.SITE.com/ShortURL/ (with trailing slash).
* For more on mediawiki short URLs, see: http://www.mediawiki.org/wiki/Manual:Short_URL/Apache or http://shorturls.redwerks.org/ .

Version 1.32 (13 Feb 13): (also changes from 1.30, 1.31):
* Upgrade instructions: upload files, upgrade product using XML file.
* Wiki submenus show in integrated skins.
* Loss of session data errors should be fixed.
* Reduced queries for logged-in users.
* Fixed issue with diagnostics page (likely linked with a apc bug).

Regards
ndahiya
Attached Files
File Type: php resetUserTokensNull.php (2.3 KB, 39 views)
File Type: zip vbMediawiki Vector v1.32.zip (799.2 KB, 83 views)
Reply With Quote
4 благодарности(ей) от:
bzcomputers, daviet, Elenna, hollosch
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03369 seconds
  • Memory Usage 1,800KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (4)post_thanks_box_bit
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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
  • showpost_complete