Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
MediaWiki Latest Additions & Changes Details »»
MediaWiki Latest Additions & Changes
Version: 1.4, by majorxp majorxp is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.6.5 Rating:
Released: 03-18-2007 Last Update: 03-21-2007 Installs: 29
Additional Files  
No support by the author.

Last Updated Wiki pages block
Version 1.4

Purpose
This extension will list the last updated or new wiki entries.


It can be included as a vbAdvanced block or included wherever you desire. It was designed to be included in a vbAdvanced block for vBulletin. It also goes nicely with Nuhit's MediaWiki integration tool but is not required.


Requirements
This is only supported on MediaWiki 1.8.2 - 1.10. It might run on a lower version, but it hasn't been tested. It has been reported 1.12 not to function. If you are interested in updating this to support additional versions as they are released let me know and you can be a co-developer on this.

Warning
This is only designed for boards with less than 50 wiki page edits per minute. If you have more, it almost becomes a useless mod (and puts a senseless burden on the server).

No warranty other than this file will take up a few kb on your hard drive.


Instructions
  1. Edit the setting where you want the created file (wikichanges.htm) placed
  2. If you have a table prefix on your WIKI, then edit the sql to reflect your prefix
  3. Place this file in the extensions directory in your wiki
  4. add this line at the bottom of LocalSettings.php (before the "?>")
    PHP Code:
    //  Add last updates
    require_once "$IP/extensions/makevbmodule.php"
  5. Edit a wiki article
  6. Browse to the file in your setting below to see if it worked
  7. Add vbAdvanced block to include the file
  8. Test links inside included page to ensure it works (you may have to edit depending upon your configuration)
Upgrade Instuctions
  1. Backup your old version
  2. Edit the current version's settings locally
  3. Replace the old version with the updated version with your settings
  4. Edit a wiki article (to generate a new wikichanges.htm file)
  5. Confirm new file generation

Demos

Here are some demos of the plugin. If you would like yours to be included, just post your url in the thread.
www.golegend.com
www.euro-chimaera.co.uk
PinataIsland.info


Support
Support is limited to this forum and to those who click install (yes I can see who did). If you have any questions or find a bug, post it here. I spend time with my family on the weekends, so expect long waits then.


Versions
1.4 - Important bug fix. This fixes two issues:
  • Links to namespaces were not being included in links
  • Special or other undesirable pages being listed when updated
This version correctly generates links and will only show updated articles, user pages, images, and categories.

1.3 -Added namespace for User pages (thanks jimmcq)
1.2 - Removed some personal code references
1.1 - Update with table prefix setting (thanks jimmcq)
1.0 - Initial Release

Keywords: MediaWiki, Wiki, vbAdvanced, vbWiki, Nuhit

Supporters / CoAuthors

Show Your Support

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

Comments
  #32  
Old 01-22-2009, 05:55 AM
KrisP KrisP is offline
 
Join Date: Jun 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Major, I was hoping you could take a look at this error with mediawiki 1.13.3:

Detected bug in an extension! Hook UpdateBlock failed to return a value; should return true to continue hook processing or false to abort.

Backtrace:

#0 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/Article.php(1564): wfRunHooks('ArticleSaveComp...', Array)
#1 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/Article.php(1317): Article->doEdit('test5?gr?fe', '', 98)
#2 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/EditPage.php(997): Article->updateArticle('test5?gr?fe', '', false, false, false, '')
#3 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/EditPage.php(2274): EditPage->internalAttemptSave(false, false)
#4 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/EditPage.php(464): EditPage->attemptSave()
#5 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/EditPage.php(349): EditPage->edit()
#6 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/Wiki.php(492): EditPage->submit()
#7 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/Wiki.php(59): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#8 /var/www/vhosts/mydomain.com/httpdocs/wiki/index.php(93): MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
#9 {main}
Reply With Quote
  #33  
Old 01-22-2009, 08:20 AM
KrisP KrisP is offline
 
Join Date: Jun 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isent it possible to make a bug trace on a finer level to see what actually goes wrong inside the Updateblock ?
Reply With Quote
  #34  
Old 01-22-2009, 08:34 AM
KrisP KrisP is offline
 
Join Date: Jun 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The wikichanges.htm actully gets data on the following form:

<tr class="alt2"><td colspan="7"><span class="smallfont"><a href="/wiki/index.php?title=Test5" title="Test5">Test5</a> - by Euroman<BR></span></td></tr>

<tr class="alt1"><td colspan="7"><span class="smallfont"><a href="/wiki/index.php?title=Test3" title="Test3">Test3</a> - by Euroman<BR></span></td></tr>

<tr class="alt2"><td colspan="7"><span class="smallfont"><a href="/wiki/index.php?title=Teset1" title="Teset1">Teset1</a> - by Euroman<BR></span></td></tr><tr class="alt1">

etc.
Reply With Quote
  #35  
Old 01-22-2009, 08:54 AM
KrisP KrisP is offline
 
Join Date: Jun 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Conclusion so far:

Mod is actully working as far as:

1. Output gets produced correctly in: wikichanges.htm
2. Also I can se page actully gets correctly updated with saved change

Only problem:
Error message after saving because updateblock is not "true".

Possible solution: Can we somehow define/set updateblock to "true" so we wont get the error message? It that is possible then mod is working 100 pt.
Reply With Quote
  #36  
Old 01-22-2009, 09:47 AM
KrisP KrisP is offline
 
Join Date: Jun 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the patch to mediawiki 1.13.3:

In makevbmodule.php:

After:
PHP Code:
$wik $wik '</span>';
$fh fopen($myFile'w') or die("Can't open file.");
fwrite($fh$wik);
fclose($fh); 
Add:

PHP Code:
return true

Reply With Quote
  #37  
Old 01-22-2009, 10:35 AM
KrisP KrisP is offline
 
Join Date: Jun 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could anybody help me rewrite links to piniata style: http://pinataisland.info/index.php?t...451&oldid=prev ?
PHP Code:
http://pinataisland.info/index.php?title=Swanana&diff=24451&oldid=prev 
I believe the diff parameter can be fetched from recent changes as o.rc_this_oldid and refered to as $row['rc_this_oldid'] in url. Should be pretty easy, but I cant seem to get syntax right and I am not sure I understand conventions for use of ' vs. " ...
Reply With Quote
  #38  
Old 01-23-2009, 02:12 AM
majorxp majorxp is offline
 
Join Date: Aug 2005
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

KrisP -

Looks like you found your answer!

I'm not really sure what exactly you are asking in post 36 though.
Reply With Quote
  #39  
Old 01-23-2009, 07:55 PM
KrisP KrisP is offline
 
Join Date: Jun 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, if you look at the demo website http://pinataisland.info/central.php their recent wiki links are different. They point to a page where you can see the change of the article on the top of the page and the article itself on the bottom. I would like that too on my site.
Reply With Quote
  #40  
Old 01-25-2009, 03:50 AM
majorxp majorxp is offline
 
Join Date: Aug 2005
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

most interesting idea........

I like that.

You can edit that by the code you found above...
Reply With Quote
  #41  
Old 01-25-2009, 04:13 PM
KrisP KrisP is offline
 
Join Date: Jun 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the code:

$query = "SELECT o.rc_this_oldid, ...

$wik = $wik . '<a href="/wiki/index.php?title=' . $row['rc_title'] . '&diff=' . $row['rc_this_oldid'] . '&oldid=prev' . '">' . $row['rc_title']. '</a>' . $new . ' - by ' . $row['rc_user_text'] . '<BR>';
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 08:47 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05136 seconds
  • Memory Usage 2,304KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete