Extension talk:WikiForum/Archive

From mediawiki.org
Latest comment: 4 years ago by Gerryval in topic Error while editing

Please report WikiForum bugs on Phabricator rather than on this page.

WikiForum link in the toolbox[edit]

is there a way to Move the WikiForum link out from the Toolbox area —The preceding unsigned comment was added by Lynxcub (talkcontribs) . Please sign your posts with ~~~~!

Not really. If you don't like it, you can always comment out the appropriate $wgHooks line in WikiForum.php. --Jack Phoenix (Contact) 21:40, 20 May 2011 (UTC)Reply

No access to mysql command line[edit]

I'm on godaddy hosting and they do not allow access to their mysql database from outside their network, as i've been told by a representative. I've never had to add tables to a mysql database via the phpMyAdmin interface.

What should i enter for the field name and number of entries in the 'Create new table on database' section? -June 5, 2011 —The preceding unsigned comment was added by 24.140.145.42 (talkcontribs) . Please sign your posts with ~~~~!

You don't need to create a new database. Instead, open phpMyAdmin and go to the existing MediaWiki database. Select the "SQL" tab and paste the queries from wikiforum.sql into that input field, replacing /*_*/ with the value of $wgDBprefix (or if you don't use $wgDBprefix, you can just delete the /*_*/ comment, it doesn't matter) and /*$wgDBTableOptions*/ with the value of $wgDBTableOptions and then press the submit button. --Jack Phoenix (Contact) 14:31, 8 June 2011 (UTC)Reply

sql errors[edit]

I've gotten the tables installed, but i get this error on the Special:WikiForum page


Database error A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "WikiForumClass::showOverview". Database returned error "1146: Table 'MYDATABASE.mw_wikiforum_category' doesn't exist (MYDATABASE.db.6835840.hostedresource.com)".

-22:50 EST 6/7/2011 —The preceding unsigned comment was added by 24.140.145.42 (talkcontribs) . Please sign your posts with ~~~~!

Apparently you didn't do it correctly. My guess is that you forgot the $wgDBprefix from the queries. --Jack Phoenix (Contact) 14:31, 8 June 2011 (UTC)Reply
Maybe? Problem Solved! The tables were improperly named when they were created, and needed to have 'mw_' added to the beginning of each. Seems to be working now. 24.140.145.42 23:01, 9 June 2011 (UTC)Reply

database returned error 1146[edit]

Hi. I'm having this problem too with a MW/ SemanticBundle - It says "A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "SMWSqlStore2IdCache::getId". Database returned error "1146: Table 'sbundle.smw_ids' doesn't exist (localhost)". Could someone explain (to a newbie) how you solved this problem? Perhaps I need a smw_ on the front of my tables - if so, how do I do this? Its running locally using MAMP at the moment. Yours hopefully, Open Research (talk) 20:56, 9 October 2012 (UTC)Reply

This issue has absolutely nothing to do with WikiForum. You have a Semantic extension installed that for some reason failed to create all the database tables it needs. Visit Special:SMWAdmin on your wiki to (try to) create the necessary tables and consult Semantic MediaWiki's developers for further assistance. --Jack Phoenix (Contact) 16:30, 31 July 2013 (UTC)Reply

smiles[edit]

in the original wikiforum there is a link "show list of smiles/icons", which shows the smiles if the ones have been configured. how can i do the same with this wikiforum? --Erithion 08:56, 17 June 2011 (UTC)Reply

You can't, at least not at the moment. WikiForum's smiley support is something that I need to clean up and test; I really want to get rid of that $wgWikiForumSmilies global variable, as it's not a flexible way to configure smilies (since it means that site administrators cannot edit them). --Jack Phoenix (Contact) 14:08, 30 June 2011 (UTC)Reply
ok, I see. thanks for your reply --Erithion 21:40, 30 June 2011 (UTC)Reply

There's another mediawiki extension called Emoticons that would make a good starting point for this. BradLeeBH (talk) 13:04, 26 August 2015 (UTC)Reply

email notifications[edit]

I've noticed that there's no email notification on any replies, no way to watch the thread etc. Is it something that I missed in config or notifications are just absent indeed? --Erithion 21:57, 30 June 2011 (UTC)Reply

For now, e-mail notifications are indeed absent. --Jack Phoenix (Contact) 17:32, 19 December 2011 (UTC)Reply
Hello Jack,
are there any news on the email notification?
Your extension is great - but to make a really usable forum we would need some sort of notification...
Thanks!
--Stefahn (talk) 18:17, 3 September 2012 (UTC)Reply
I wish I had, but nope. As much as I hate to admit this, WikiForum is — more or less — bitrotting for the time being. There are some rather annoying bugs that are yet to be fixed (as you can see by just reading this very page), I don't have the time to focus on WikiForum right now due to various other (both online and offline) projects and, in true open source spirit, no-one else seems to have any interest in bugfixing and/or developing the extension, not even the author of the original extension. --Jack Phoenix (Contact) 21:48, 3 September 2012 (UTC)Reply
Thanks for your quick reply! I understand that you have more important things to do...
Can you maybe recommend another forum solution for MediaWiki that offers notification mails?
I already searched for bridges to common forum softwares such as phpbb but couldn't find any uptodate solution...
--Stefahn (talk) 08:45, 4 September 2012 (UTC)Reply
To the best extent of my knowledge, there really aren't any. That's why I ended up hacking the original WikiForum. In my humble opinion, duplicating efforts is just silly, which is why I'd strongly recommend you to at least try to get some people interested in bugfixing and developing WikiForum further. There is a strong demand for some kind of a discussion thingy inside MediaWiki and LiquidThreads (LQT) hasn't succeeded in its mission.
Therefore I imagine that spreading the word about WikiForum would gather interest and maybe someone with sufficient PHP (& (My)SQL) skills...then again that could just be my wishful thinking. --Jack Phoenix (Contact) 20:54, 6 September 2012 (UTC)Reply
Thanks for the info. Was LQT supposed to be a forum? I think it is a good tool for discussion pages. I don't understand/know why its development is on hold...
Yes, it would be great if any people extended WikiForum. Unfortunately I only have little PHP skills up2now.
I think I will try to integrate WordPress with MediaWiki. WordPress offers proper forum extensions. Only question is how good the bridge between WordPress and MediaWiki will work...
--Stefahn (talk) 23:21, 6 September 2012 (UTC)Reply
Stefahn, you might check out AWC's Forum extension. It's got the features you're looking for (a few too many features imo). Not as clean as WikiForum, but pretty good. - Lbillett (talk) 03:47, 18 November 2012 (UTC)Reply
Thanks for the hint, Lbillett. I already tried AWC Forum a while ago and wasn't happy with it. Its settings were confusing and it doesn't seem to be maintained... Currently I'm trying to combine MediaWiki and MyBB. If anyone can help regarding a working bridge between MediaWiki and MyBB please help. --Stefahn (talk) 10:50, 18 November 2012 (UTC)Reply

I've got 50 USD for anyone who adds e-mail notifications to the WikiForum extension.

Small/Configurable "New Entries" for the Main Page[edit]

Is there a way to config the <WikiForumList> tag? I need a smaller, unobtrusive output for the main page (i.e. a link with the title and date of the tree newest entries). Thank you in advance! --129.206.90.2 15:18, 14 July 2011 (UTC)Reply

Tweaks to wikiforum.sql for SQLite[edit]

I had to make the following updates create the necessary tables in SQLite 3.7.5 (via the Firefox SQLite Manager extension)

  • Change int(10) to INTEGER
  • Change AUTO_INCREMENT to AUTOINCREMENT

--74.70.123.165 18:07, 26 August 2011 (UTC)Reply

Error: Non-string key given[edit]

Hi

We have MW 1.17 installed and we want to use this cool extension. Unfortunately the following error message appears, after we deleted a thread:

Non-string key given

Backtrace:

#0 C:\wrs\www\w\includes\GlobalFunctions.php(781): MessageCache->get(NULL, true, Object(Language))
#1 C:\wrs\www\w\includes\GlobalFunctions.php(902): wfMsgGetKey(NULL, true, Object(Language), false)
#2 C:\wrs\www\w\languages\Language.php(513): wfMsgExt(NULL, Array)
#3 C:\wrs\www\w\languages\Language.php(525): Language->getMessageFromDB(NULL)
#4 C:\wrs\www\w\languages\Language.php(799): Language->getMonthName(false)
#5 C:\wrs\www\w\languages\Language.php(1560): Language->sprintfDate('H:i, j F Y', false)
#6 C:\wrs\www\w\extensions\WikiForum\WikiForumClass.php(1187): Language->timeanddate('2147483647????')
#7 C:\wrs\www\w\extensions\WikiForum\SpecialWikiForum.php(321): WikiForumClass->showOverview()
#8 C:\wrs\www\w\includes\SpecialPage.php(578): WikiForum->execute(NULL)
#9 C:\wrs\www\w\includes\Wiki.php(251): SpecialPage::executePath(Object(Title))
#10 C:\wrs\www\w\includes\Wiki.php(63): MediaWiki->handleSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
#11 C:\wrs\www\w\index.php(114): MediaWiki->performRequestForTitle(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
#12 {main}

What could be the problem? Thx, Dorian & Erwan --193.247.250.35 10:59, 4 September 2011 (UTC)Reply

Problem resolved by us - this is no issue any more! Dorian & Erwan --91.137.20.132 07:36, 8 September 2011 (UTC)Reply

How do you resolve the problem?? 10:57, 3 November 2011 (UTC)

I analyzed a little bit why this error appears, and I noticed that in WikiForumClass.php the timestamp value of wff_last_post_timestamp was converted in an intval. When I removed that, it worked (see below):
			$row = $dbw->fetchRow( $new );
			// Update the forum table so that the data shown on
			// Special:WikiForum is up to date
			$dbw->update(
				'wikiforum_forums',
				array(
					"wff_reply_count = wff_reply_count - $replyCount",
					'wff_thread_count = wff_thread_count - 1',
					'wff_last_post_user' => intval( $row['wft_last_post_user'] ),
					// 'wff_last_post_timestamp' => intval( $row['wft_last_post_timestamp'] ) // OLD
					'wff_last_post_timestamp' => $row['wft_last_post_timestamp'] // NEW
				),
				array(
					'wff_forum' => intval( $thread->wft_forum )
				),
				__METHOD__
			);

Cheers, Dorian --85.4.133.156 12:39, 26 December 2011 (UTC)Reply

I got the same problem, and when I tried fixing it like above it now just gives me a server error (even after reverting the change). Any ideas? Ajraddatz (Talk) 23:14, 3 March 2013 (UTC)Reply
This issue has been fixed in version 1.3.0-SW (gerrit:76937), released on 31 July 2013. --Jack Phoenix (Contact) 16:30, 31 July 2013 (UTC)Reply

PostgreSQL 8.4.8[edit]

Prompt how to install please WikiForum having database PostgreSQL if it generally is possible.

Excuse for the bad English. —The preceding unsigned comment was added by 89.179.33.86 (talkcontribs


WikiForum doesn't have PostgreSQL support right now, someone needs to write the PostgreSQL schemas first. --Jack Phoenix (Contact) 21:48, 3 September 2012 (UTC)Reply

Spam Protection[edit]

My wiki was recently found by a number of spam bots. While there were plugins to stop them from generating lots of spam topics and editing articles, these plugins did not stop them from adding junk topics in the forums. How might I stop this? 164.107.85.71 17:54, 14 September 2011 (UTC)Reply

I beleive that setting
$wgWikiForumAllowAnonymous = false;
in the LocalSettings.php disables annonymous posting, which should bring down spam posts with a user verification system. I cannot confirm this as my forums are 'broken'. Jacobcia 01:04, 10 November 2011 (UTC)Reply
WikiForum currently doesn't support any CAPTCHA methods, such as Extension:ConfirmEdit, but it probably should. Feel free to file a bug ticket on Bugzilla about this. --Jack Phoenix (Contact) 17:32, 19 December 2011 (UTC)Reply

Is there any update for a possible CAPTCHA solution for the WikiForum ? --hollosch (talk) 22:50, 30 October 2014 (UTC)Reply

Not really, I'm afraid. You might want to poke UltrasonicNXT about this, given that he's the current maintainer of WikiForum, or maybe file a bug/feature request (lack of anti-spam measures is both, really, and it shouldn't be too complicated to implement at least the very basic CAPTCHA support — no-one's just done it yet, sadly). --Jack Phoenix (Contact) 23:06, 30 October 2014 (UTC)Reply

$this in Linker.php[edit]

Adding a new thread I get this error:

Fatal error: Using $this when not in object context in /var/wwwwiki/includes/Linker.php on line 175

Line 175 is: $target = $this->normaliseSpecialPage( $target ); Can some one help me?

I got the same error here, can anybody help? --193.16.163.243 11:27, 7 November 2011 (UTC)Reply

I also have the same problem. I am using mediawiki 1.17. Any suggestions? --87.202.73.87 12:27, 14 November 2011 (UTC)Reply

I believe that I may have located the problem and found a simple solution. The problem is in line 175 of Linker.php : Line 175 is: $target = $this->normaliseSpecialPage( $target ); which is inside public function link of class Linker. That function is called by WikiForumClass.php on line 2349. That part is as follows
		if ( $username ) {
			$retVal = Linker::link(
				Title::newFromText( $wgContLang->getNsText( NS_USER ) . ':' . $username ),
				htmlspecialchars( $username ) // @todo FIXME/CHECKME: double-escaping or not?
			);
From what I understand, that part of the code calls function link of Linker class without creating a Linker instance. Hence the error Using $this when not in object context. I changed the code to
		if ( $username ) {
			$linker = new Linker;
			$retVal = $linker->link(
				Title::newFromText( $wgContLang->getNsText( NS_USER ) . ':' . $username ),
				htmlspecialchars( $username ) // @todo FIXME/CHECKME: double-escaping or not?
			};
This way a new instance of Linker class gets created and its link function is called. So now you do have an object and you are using $this in object context. I haven't tested it fully yet but so far it seems to do the trick. Please try it out give feedback. by sf42--87.202.73.87 12:52, 14 November 2011 (UTC)Reply
Just update your MediaWiki to 1.18.0 and WikiForum to the latest version — the Linker class is static since 1.18. :) --Jack Phoenix (Contact) 17:32, 19 December 2011 (UTC)Reply

Integrate with SocialProfile[edit]

Is there a way to make it so that when users post, create threads, etc, that they could earn points in Extension:SocialProfile? i dont know enough about programming to make it work on my own... --24.140.146.29 00:02, 7 November 2011 (UTC)Reply

Yes, it's possible to add such support into WikiForum. You'd need to add a new column (for example, wikiforum_created_threads) into the user_stats database table, and then in the appropriate part of WikiForum, you'd call SocialProfile's UserStatsTrack class, maybe something like this:
$stats = new UserStatsTrack( /* user ID goes here */ );
$stats->incStatField( 'wikiforum_created_threads' );
Please keep in mind that the above code is somewhat pseudocode and you probably need to do something more to add a new stat into the user_stats table. While it's not exactly trivial, it's possible. --Jack Phoenix (Contact) 17:32, 19 December 2011 (UTC)Reply

Fatal error: Call to undefined method OutputPage::addModuleStyles() in /home/dvswiki/wiki.dvsport.com/extensions/WikiForum/WikiForumHooks.php on line 284[edit]

Not sure what I am doing wrong. I have not modified any of the files other than setting the anon variable to false to prevent anonymous creation of threads.

Also looked to report my error on Bugzilla, but there is no listing of WikiForum in the extensions and I don't know where else to post the error I am getting. —The preceding unsigned comment was added by Njhoudini (talkcontribs) . Please sign your posts with ~~~~!


The documentation page is — once again — out of date. WikiForum has required MediaWiki 1.18.0 since r99352 (9 October 2011). The module stuff is related to ResourceLoader, which is a new feature in MediaWiki 1.17+.
It's true that Bugzilla's MediaWiki extension list doesn't have WikiForum (that's because that listing isn't automatically updated, it's manually updated every now and then by the people who have administrative rights to Bugzilla), but you can use the "General/Unknown" component instead. --Jack Phoenix (Contact) 17:32, 19 December 2011 (UTC)Reply

Concerning security[edit]

Hi. Congrats for the extension, it works like a charm :) However I'm a bit worried about security. Are there any security risks that the users of the extension should be aware of? (ie XSS in post replies or similar possible attacks)? How does wikiForum extension deal with wikis having $rawHTML enabled? In my case I've been able to post html code during my testing, and immediately wondered if that could be exploited by malicious users. (just to let you know, I do not allow anonymous users posting on the forum) Thanks in advance. —The preceding unsigned comment was added by 195.235.9.98 (talkcontribs


Enabling $wgRawHtml on a publicly editable wiki is asking for your wiki to get cracked. WikiForum uses MediaWiki's standard parsing functions and it should have no security issues. If you do find security issues in WikiForum, please report them on the MediaWiki Bugzilla (Enter a new bug → pick "Security" as the product). --Jack Phoenix (Contact) 21:48, 3 September 2012 (UTC)Reply

'searchbox' ID[edit]

FYI: bug 33676: 'searchbox' collides with the Inputbox 'searchbox'. SPQRobin 00:19, 12 January 2012 (UTC)Reply

This was fixed in r115138. --Jack Phoenix (Contact) 21:48, 3 September 2012 (UTC)Reply

Does this extension support image?[edit]

I think it should have external images support.

--Zoglun (talk) 21:28, 1 March 2012 (UTC)Reply

It should, depending on the values of $wgAllowExternalImages and $wgAllowExternalImagesFrom. --Jack Phoenix (Contact) 21:48, 3 September 2012 (UTC)Reply

Cant add new forum[edit]

I install wikiforum, and add my user to "forum administrator". But in Special:WikiForum page, cant add new forum; i see normal user page. Whats wrong? (Mediawiki 1.17.3, WikiForum (verzió: 1.2.2-SW) (r115615) ) --Mkepler (talk) 16:39, 18 July 2012 (UTC)Reply

But! Add manually record to wikiforum_category, everything is fine.--195.228.124.2 06:25, 19 July 2012 (UTC)Reply
I dont understand, how did you fix this? I have the same problem, i am forum admin but cannot figure out how to add places to post in the Special:WikiForum page. Crazy Jake88 (talk) 16:52, 27 August 2012 (UTC)Reply
Same problem here - I keep getting "<wikiforum-error-category> You don't have the rights to perform this action." error while trying to create a new forum although I do have forum admin rights. 206.116.78.81 04:11, 6 September 2014 (UTC)Reply
Looks like it was fixed on master, maybe try to download the 'master' snapshot instead of the '1.23'? —Humchmon (talk) 16:13, 12 September 2014 (UTC)Reply

User Rights[edit]

Hi, congrats to the wonderful extension. Is it possible that a registered user can write in the forum without editing the normal wiki pages?

Thanks in advance —The preceding unsigned comment was added by 141.99.224.112 (talkcontribs


Probably not possible right now. --Jack Phoenix (Contact) 21:48, 3 September 2012 (UTC)Reply

Anonymous Users[edit]

Hi, is it possible that anonymous users can leave a name? Otherwise it is difficult to differ between different anonymous users. —The preceding unsigned comment was added by 141.99.224.112 (talkcontribs


Not really, unfortunately. This is a bug that should be fixed. --Jack Phoenix (Contact) 21:48, 3 September 2012 (UTC)Reply
This issue has been fixed in version 1.3.0-SW (gerrit:76937), released on 31 July 2013. --Jack Phoenix (Contact) 16:30, 31 July 2013 (UTC)Reply

One, minor " problem".[edit]

Hey, first of all - Great Job! The forum works perfectly, except:

When a user posts a reply to a topic, it will add to the topic's post counter ; however, when a user finds a small, spelling mistake and edits one's post to change it, the action will also add to the post counter and in result the actual value of the counter will be misleading. Maybe the solution is somewhat trivial for you, as person with expert knowledge in coding, but I have merely covered the basics so far (:. Thanks in advance! 78.88.254.118 11:13, 15 September 2012 (UTC)Reply

Italian translation[edit]

$messages['it'] = array( 'wikiforum-desc' => 'Estensione [[Special:WikiForum|Forum]] per MediaWiki', 'wikiforum' => 'Forum di Discussione', // Configuration variables -- do not translate! 'wikiforum-day-definition-new' => '3', 'wikiforum-max-threads-per-page' => '20', 'wikiforum-max-replies-per-page' => '10', 'wikiforum-anonymous' => 'Anonimo', 'wikiforum-announcement-only-description' => 'Forum di Annunci (solo i moderatori possono aggiungere discussioni)', 'wikiforum-by' => '$1<br />da $2', 'wikiforum-description' => 'Descrizione:', 'wikiforum-forum-is-empty' => 'Il forum è vuoto. Prego contattare un amministratore che possa aggiungere categorie e forum.', 'wikiforum-forum-name' => 'Forum $1', 'wikiforum-name' => 'Nome:', 'wikiforum-button-preview' => 'Anteprima', 'wikiforum-preview' => 'Anteprima', 'wikiforum-preview-with-title' => 'Anteprima: $1', 'wikiforum-save' => 'Salva', 'wikiforum-error-search' => 'Errore di ricerca', 'wikiforum-error-search-missing-query' => 'Devi inserire un termine per la ricerca!', 'wikiforum-search-hits' => 'Trovato {{PLURAL:$1|una voce|$1 voci}}', 'wikiforum-search-thread' => 'Discussione: $1', 'wikiforum-thread-deleted' => 'discussione cancellata', 'wikiforum-topic-name' => 'Forum - $1', 'wikiforum-updates' => 'Forum aggiornato di recente', 'wikiforum-write-thread' => 'Nuova Discussione', 'wikiforum-replies' => 'Risposte', 'wikiforum-views' => 'Visite', 'wikiforum-thread' => 'Discussione', 'wikiforum-threads' => 'Discussioni', 'wikiforum-latest-reply' => 'Ultima Risposta', 'wikiforum-latest-thread' => 'Ultima Discussione', 'wikiforum-forum' => 'Forum: $1 > $2', 'wikiforum-overview' => 'Overview', 'wikiforum-pages' => 'Pagine:', 'wikiforum-thread-closed' => 'Discussione Chiusa', 'wikiforum-new-thread' => 'Nuova discussione', 'wikiforum-edit-thread' => 'Modifica discussione', 'wikiforum-delete-thread' => 'Cancella discussione', 'wikiforum-close-thread' => 'Chiude discussione', 'wikiforum-reopen-thread' => 'Riapri discussione', 'wikiforum-write-reply' => 'Rispondi', 'wikiforum-edit-reply' => 'Modifica Risposta', 'wikiforum-delete-reply' => 'Cancella Risposta', 'wikiforum-save-thread' => 'Salva discussione', 'wikiforum-save-reply' => 'Salva risposta', 'wikiforum-thread-title' => 'Titolo della discussione', 'wikiforum-no-threads' => 'Nessuna discussione3 disponibile.', 'wikiforum-posted' => 'Inviato il $1 da $2', 'wikiforum-edited' => 'Modificato il $1 da $2', 'wikiforum-closed-text' => 'La discussione è stata chiusa il $1 da $2', 'wikiforum-cat-not-found' => 'Categoria non trovata', 'wikiforum-cat-not-found-text' => 'La categoria non esiste - torna a $1', 'wikiforum-forum-not-found' => 'Forum non trovato', 'wikiforum-forum-not-found-text' => 'Il Forum non esiste - torna a $1', 'wikiforum-thread-not-found' => 'Discussione non trovata', 'wikiforum-thread-not-found-text' => 'La Discussione non esiste o è stata cancellata - torna a $1.', 'wikiforum-error-thread-reopen' => 'Errore di risposta alla discussione', 'wikiforum-error-thread-close' => 'Errore di chiusura discussione', 'wikiforum-error-general' => 'Oggetto non trovato o non hai i permessi per eseguire questa azione.', 'wikiforum-error-no-rights' => 'Non hai i permessi per eseguire questa azione.', 'wikiforum-error-not-found' => 'Oggetto non trovato.', 'wikiforum-error-no-text-or-title' => 'Titolo o testo non inseriti.', 'wikiforum-error-no-reply' => 'Manca risposta.', 'wikiforum-error-double-post' => 'Protezione da doppio click discussione già aggiunta.', // @todo FIXME: better wording 'wikiforum-error-thread-closed' => 'La discussione è chiusa. Non si possono aggiungere rispote.', 'wikiforum-error-delete' => 'Errore di cancellazione', 'wikiforum-error-sticky' => 'Errore di cambio attributi', 'wikiforum-error-move-thread' => 'Errore di spostamento discussione', 'wikiforum-error-add' => 'Errore di inserimento', 'wikiforum-error-edit' => 'Errore di modifica', 'wikiforum-add-category' => 'Aggiungi Categoria', 'wikiforum-edit-category' => 'Modifica Categoria', 'wikiforum-delete-category' => 'Cancella categoria', 'wikiforum-add-forum' => 'Aggiungi forum', 'wikiforum-edit-forum' => 'Modifica forum', 'wikiforum-delete-forum' => 'Cancella forum', 'wikiforum-sort-up' => 'ordine crescente', 'wikiforum-sort-down' => 'ordine decrescente', 'wikiforum-remove-sticky' => 'Togli Importante', 'wikiforum-make-sticky' => 'Rendi Importante', 'wikiforum-move-thread' => 'Sposta Discussione', 'wikiforum-paste-thread' => 'Incolla Discussione', 'wikiforum-quote' => 'Quota', // For Special:ListGroupRights 'right-wikiforum-admin' => 'Aggiungi, modifica e cancella categorie sul [[Special:WikiForum|Forum di Discussione]]', 'right-wikiforum-moderator' => 'Modifica e cancella discussioni sul [[Special:WikiForum|Forum di Discussione]]', // Forum admin group, as per discussion with Jedimca0 on 30 December 2010 'group-forumadmin' => 'Amministratori Forum', 'group-forumadmin-member' => 'Amministratore Forum', 'grouppage-forumadmin' => '{{ns:project}}:Amministratori Forum', );

Group permissions[edit]

Can someone please explain the group permissions to me? There is just a massive dropdown list.--60.241.141.102 23:38, 19 February 2013 (UTC)Reply


SQLite to Create the 4 WikiForum tables Manually[edit]

if needed, create the tables manually with these sqlite statements

CREATE TABLE wikiforum_category (
wfc_category INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
wfc_category_name varchar(50) NOT NULL, 
wfc_sortkey mediumint(5) NOT NULL DEFAULT '9',
wfc_added_timestamp binary(14) NOT NULL DEFAULT '',
wfc_added_user INTEGER NOT NULL DEFAULT '0',
wfc_edited INTEGER NOT NULL DEFAULT '0',
wfc_edited_user INTEGER NOT NULL DEFAULT '0',
wfc_deleted INTEGER NOT NULL DEFAULT '0',
wfc_deleted_user INTEGER NOT NULL DEFAULT '0'
);
COMMIT

CREATE TABLE wikiforum_forums (
wff_forum INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
wff_forum_name varchar(50) NOT NULL,
wff_description varchar(255) NOT NULL,
wff_category INTERGER NOT NULL,
wff_sortkey mediumint(5) NOT NULL DEFAULT '9',
wff_thread_count INTEGER NOT NULL DEFAULT '0',
wff_reply_count INTEGER NOT NULL DEFAULT '0', 
wff_last_post_user INTEGER NOT NULL DEFAULT '0',
wff_last_post_timestamp binary(14) NOT NULL DEFAULT '',
wff_added_timestamp binary(14) NOT NULL DEFAULT '', 
wff_added_user INTEGER NOT NULL DEFAULT '0', 
wff_edited_timestamp binary(14) NOT NULL DEFAULT '', 
wff_edited_user INTEGER NOT NULL DEFAULT '0', 
wff_deleted INTEGER NOT NULL DEFAULT '0', 
wff_deleted_user INTEGER NOT NULL DEFAULT '0', 
wff_announcement tinyint(2) NOT NULL DEFAULT '0' 
);
COMMIT

CREATE TABLE wikiforum_threads (
wft_thread INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
wft_thread_name varchar(255) NOT NULL,
wft_text text NOT NULL,
wft_sticky tinyint(1) NOT NULL DEFAULT '0',
wft_posted_timestamp binary(14) NOT NULL DEFAULT '',
wft_user INTEGER NOT NULL DEFAULT '0',
wft_deleted INTEGER NOT NULL DEFAULT '0',
wft_deleted_user INTEGER NOT NULL DEFAULT '0',
wft_edit_timestamp binary(14) NOT NULL DEFAULT '',
wft_edit_user INTEGER NOT NULL DEFAULT '0',
wft_closed INTEGER NOT NULL DEFAULT '0',
wft_closed_user INTEGER NOT NULL DEFAULT '0',
wft_forum INTEGER NOT NULL DEFAULT '0',
wft_reply_count INTEGER NOT NULL DEFAULT '0',
wft_view_count INTEGER NOT NULL DEFAULT '0',
wft_last_post_user INTEGER NOT NULL DEFAULT '0',
wft_last_post_timestamp binary(14) NOT NULL DEFAULT ''
);
COMMIT


CREATE TABLE wikiforum_replies (
wfr_reply_id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
wfr_reply_text text NOT NULL,
wfr_posted_timestamp binary(14) NOT NULL DEFAULT '',
wfr_user INTEGER NOT NULL DEFAULT '0',
wfr_deleted INTEGER NOT NULL DEFAULT '0',
wfr_deleted_user INTEGER NOT NULL DEFAULT '0',
wfr_edit_timestamp binary(14) NOT NULL DEFAULT '',
wfr_edit_user INTEGER NOT NULL DEFAULT '0',
wfr_thread INTEGER NOT NULL
);
COMMIT

Internal Error - Non-string key given[edit]

Similar to an error listed above, though I tried the fix listed under that, and didn't seem to change anything.

Non-string key given
Backtrace:
#0 /var/www/wiki/includes/Message.php(641): MessageCache->get(NULL, true, Object(Language))
#1 /var/www/wiki/includes/Message.php(413): Message->fetchMessage()
#2 /var/www/wiki/includes/Message.php(476): Message->toString()
#3 /var/www/wiki/languages/Language.php(803): Message->text()
#4 /var/www/wiki/languages/Language.php(822): Language->getMessageFromDB(NULL)
#5 /var/www/wiki/languages/Language.php(1080): Language->getMonthName(false)
#6 /var/www/wiki/languages/Language.php(1949): Language->sprintfDate('H:i, j F Y', false)
#7 /var/www/wiki/extensions/WikiForum/WikiForumClass.php(1194): Language->timeanddate('2147483647????')
#8 /var/www/wiki/extensions/WikiForum/SpecialWikiForum.php(326): WikiForumClass->showOverview()
#9 /var/www/wiki/includes/SpecialPage.php(611): WikiForum->execute(NULL)
#10 /var/www/wiki/includes/SpecialPageFactory.php(494): SpecialPage->run(NULL)
#11 /var/www/wiki/includes/Wiki.php(290): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#12 /var/www/wiki/includes/Wiki.php(536): MediaWiki->performRequest()
#13 /var/www/wiki/includes/Wiki.php(446): MediaWiki->main()
#14 /var/www/wiki/index.php(73): MediaWiki->run()
#15 {main}

Visible here and here. The odd thing is, this error only appears in two of six wikis in a farm, yet they all share the same installation of WikiForum, and the same configurations in LocalSettings.php. For wikis that these do work on, see here, here, here, and here. --GeorgeBarnick (talk) 00:24, 5 May 2013 (UTC)Reply

It's not a PHP problem directly, but rather caused by the deletion of a post or topic (I already forgot which). The timestamp handling is seriously messed up (see, for example, #7 of your backtrace — the current year is 2013, not 2147 and WF should treat timestamps the same way the rest of MediaWiki does, but it unfortunately doesn't do that).
Long story short, it's a bug, a known and a rather fatal one, sadly. I'd encourage you to either disable WikiForum for the time being, or better yet, help in fixing this (and other) bug(s)! WikiForum has more or less been abandonware for almost a year (my last edit to the extension page was in August 2012); as a result, the code has known, outstanding bugs to be fixed and the extension page — somewhat erroneously — claims that the extension is stable; stability is what we want, but currently it's pretty unstable.
It's free and open source software, your help is very much wanted, needed and appreciated. :-) --Jack Phoenix (Contact) 13:55, 6 May 2013 (UTC)Reply
This is a fix that worked:
UPDATE `wikidb`.`wiki_wikiforum_threads` SET `wft_posted_timestamp` = '20130513173321',`wft_last_post_timestamp` = '20130513173321';
UPDATE `wikidb`.`wiki_wikiforum_forums` SET `wff_last_post_timestamp` = '20130513173321',`wff_added_timestamp` = '20130513173321',`wff_edited_timestamp` = '20130513173321'
The date was stored in epoch time when using the WikiForum/original and the current version does not deal with that. Go ahead and write some code to go in and convert every entry to the correct value; this fix above worked for our needs and demonstrates the issue. — Preceding unsigned comment added by 206.108.31.36 (talkcontribs)
This issue has been fixed in version 1.3.0-SW (gerrit:76937), released on 31 July 2013. --Jack Phoenix (Contact) 16:30, 31 July 2013 (UTC)Reply

How to move threads?[edit]

Perhaps a silly question, but when I press on the "move thread" button at the bottom of a thread, it takes me to the Special:Wikiforum page. From here I navigate to the forum that I want the thread to move to but there aren't any buttons that allows me to place it in that forum. What should I be doing exactly? I'm using WikiForum (Version 1.2-SW) on MW 1.18.2. — Preceding unsigned comment added by 193.120.204.227 (talkcontribs)

Bump!! —The preceding unsigned comment was added by 129.206.102.153 (talkcontribs

There isn't a way to move threads currently. If you want it implemented, feel free to start working on it (or if you don't know how to, you can always contact a MediaWiki developer for hire — many developers are available for paid work). --Jack Phoenix (Contact) 19:27, 25 October 2013 (UTC)Reply

Tables for Postgres[edit]

Create the following tables:

Note: Make sure to append the schema name before the table.

CREATE TABLE wikiforum_category (
   wfc_category SERIAL PRIMARY KEY,
   wfc_category_name VARCHAR(50) NOT NULL,
   wfc_sortkey INTEGER NOT NULL DEFAULT 9,
   wfc_added_timestamp bytea NOT NULL DEFAULT '',
   wfc_added_user INTEGER NOT NULL DEFAULT 0,
   wfc_edited INTEGER NOT NULL DEFAULT 0,
   wfc_edited_user INTEGER NOT NULL DEFAULT 0,
   wfc_deleted INTEGER NOT NULL DEFAULT 0,
   wfc_deleted_user INTEGER NOT NULL DEFAULT 0
);
CREATE TABLE wikiforum_forums (
   wff_forum SERIAL PRIMARY KEY,
   wff_forum_name VARCHAR(50) NOT NULL,
   wff_description VARCHAR(255) NOT NULL,
   wff_category INTEGER NOT NULL,
   wff_sortkey INTEGER NOT NULL DEFAULT 9,
   wff_thread_count INTEGER NOT NULL DEFAULT 0,
   wff_reply_count INTEGER NOT NULL DEFAULT 0,
   wff_last_post_user INTEGER NOT NULL DEFAULT 0,
   wff_last_post_timestamp bytea NOT NULL DEFAULT '',
   wff_added_timestamp BYTEA NOT NULL DEFAULT '',
   wff_added_user INTEGER NOT NULL DEFAULT 0,
   wff_edited_timestamp bytea NOT NULL DEFAULT '',
   wff_edited_user INTEGER NOT NULL DEFAULT 0,
   wff_deleted INTEGER NOT NULL DEFAULT 0,
   wff_deleted_user INTEGER NOT NULL DEFAULT 0,
   wff_announcement SMALLINT NOT NULL DEFAULT 0
);
CREATE TABLE wikiforum_threads (
   wft_thread SERIAL NOT NULL PRIMARY KEY,
   wft_thread_name VARCHAR(255) NOT NULL,
   wft_text TEXT NOT NULL,
   wft_sticky SMALLINT NOT NULL DEFAULT 0,
   wft_posted_timestamp BIGINT NOT NULL DEFAULT '20130513173321',
   wft_user INTEGER NOT NULL DEFAULT 0,
   wft_deleted INTEGER NOT NULL DEFAULT 0,
   wft_deleted_user INTEGER NOT NULL DEFAULT 0,
   wft_edit_timestamp bytea NOT NULL DEFAULT '',
   wft_edit_user INTEGER NOT NULL DEFAULT 0,
   wft_closed INTEGER NOT NULL DEFAULT 0,
   wft_closed_user INTEGER NOT NULL DEFAULT 0,
   wft_forum INTEGER NOT NULL DEFAULT 0,
   wft_reply_count INTEGER NOT NULL DEFAULT 0,
   wft_view_count INTEGER NOT NULL DEFAULT 0,
   wft_last_post_user INTEGER NOT NULL DEFAULT 0,
   wft_last_post_timestamp bytea NOT NULL DEFAULT ''
);
CREATE TABLE wikiforum_replies (
   wfr_reply_id SERIAL NOT NULL PRIMARY KEY,
   wfr_reply_text TEXT NOT NULL,
   wfr_posted_timestamp BIGINT NOT NULL DEFAULT '20130513173321',
   wfr_user INTEGER NOT NULL DEFAULT 0,
   wfr_deleted INTEGER NOT NULL DEFAULT 0,
   wfr_deleted_user INTEGER NOT NULL DEFAULT 0,
   wfr_edit_timestamp bytea NOT NULL DEFAULT '',
   wfr_edit_user INTEGER NOT NULL DEFAULT 0,
   wfr_thread INTEGER NOT NULL
);

Cheers. Let me know in case of any queries. Will be happy to answer. — Preceding unsigned comment added by Pdr3112 (talkcontribs)

Add line breaks when adding post[edit]

Hello,

I noticed whenever I add a post on WikiForum that my line breaks are only added if I do two of them. Do you know how to resolve this?

Thank you! — Preceding unsigned comment added by Goodtothet33 (talkcontribs)

Resolved it by changing the parseIt function in WikiForum Class. — Preceding unsigned comment added by 156.26.115.129 (talkcontribs)

Does not work with MW1.22wmf9[edit]

error message:

Language::sprintfDate: The timestamp should have 14 characters

Backtrace:

#0 /wiki/languages/Language.php(2073): Language->sprintfDate('Y???n???j??? (D...', false)
#1 /wiki/extensions/WikiForum/WikiForumClass.php(1193): Language->timeanddate('2147483647????')
#2 /wiki/extensions/WikiForum/SpecialWikiForum.php(326): WikiForumClass->showOverview()
#3 /wiki/includes/SpecialPage.php(631): WikiForum->execute(NULL)
#4 /wiki/includes/SpecialPageFactory.php(487): SpecialPage->run(NULL)
#5 /wiki/includes/Wiki.php(291): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#6 /wiki/includes/Wiki.php(565): MediaWiki->performRequest()
#7 /wiki/includes/Wiki.php(458): MediaWiki->main()
#8 /wiki/index.php(55): MediaWiki->run()
#9 {main}

— Preceding unsigned comment added by Zoglun (talkcontribs)

WikiForum is and has been abandonware for a long time and this issue has existed for at least equally long; see the #Internal Error - Non-string key given section above for some related discussion. You are more than welcome to work on the issue(s) yourself or find someone else to do it, but unfortunately my time does not permit supporting WikiForum at the moment, as making the codebase somewhat stable requires plenty of rewriting and refactoring of the messy codebase. --Jack Phoenix (Contact) 21:38, 17 July 2013 (UTC)Reply

OK, thank you for your resopnd. --Zoglun (talk) 00:44, 18 July 2013 (UTC)Reply

This issue has been fixed in version 1.3.0-SW (gerrit:76937), released on 31 July 2013. --Jack Phoenix (Contact) 16:30, 31 July 2013 (UTC)Reply
Thank you! --Zoglun (talk) 03:57, 7 December 2013 (UTC)Reply

Not allowing anonymous to create topics[edit]

How to allow anonymous users to add posts but not allow to create topics? Gleki.arxokuna (talk) 07:27, 1 March 2014 (UTC)Reply

Template:UILANGCODE[edit]

How I can implement an template similar to Template:UILANGCODE in my wiki (that returns the current language code selected by user)?. My wiki uses Extension:UniversalLanguageSelector.

I copy Template:UILANGCODE with this code:

 
{{int:LangX}}

and Template:LangX with this code:

 
<span lang="{{{1}}}" xml:lang="{{{1}}}" class="description {{{1}}}">{{{2}}}</span><noinclude>[[Category:Internationalization templates]]</noinclude>

and always returns "<LangX>"

Or exists any similar function, variable or template to use in normal pages or templates?.

Very thanks

--Jmarchn (talk) 22:50, 26 August 2014 (UTC)Reply

Catchable fatal error: Object of class WFReply could not be converted to string[edit]

If using the current version from master you might get this error when editing someone else's message.

It can be fixed by replacing

$$this->getThread()->isClosed()

with

$this->getThread()->isClosed()

in WikiForum/Reply.php on line 230.

31.221.83.26 15:00, 15 September 2014 (UTC)Reply

Good catch, thanks for spotting this & providing the fix! I've submitted and merged the fix (see gerrit:160692). --Jack Phoenix (Contact) 17:06, 16 September 2014 (UTC)Reply

Fatal error on accessing deleted thread[edit]

While testing out the extension, I created a new forum, and a new topic within it, and then deleted the forum without first deleting the topic. I then tried to access the topic, which still shows up in the Forum log, and I get sent to where the topic should be, but I get the following message:

Fatal error: Call to a member function showHeaderLinks() on a non-object in /.../extensions/WikiForum/Thread.php on line 863

When trying to get to the deleted forum, I get an appropriately placed "Forum not found" message, but the topic itself takes me to this. Schiffy (talk) 05:33, 13 October 2014 (UTC)Reply

Anywho, figured that one out. The thread was still in the wikiforum_threads table, but the forum in the forums table it was referencing was gone. I manually deleted the thread from the table and I get the expected "Thread not found" message. Schiffy (talk) 17:14, 14 October 2014 (UTC)Reply

Error when deleting a thread[edit]

An error is shown when trying to delete one of threads from older versionsof WikiForum:

Fatal error: Cannot use object of type stdClass as array in .../extensions/WikiForum/Thread.php on line 352

Gleki.arxokuna (talk) 08:46, 13 October 2014 (UTC)Reply

I can confirm this issue !!! --hollosch (talk) 16:37, 4 November 2014 (UTC)Reply
Looking into it. UltrasonicNXT (talk)
Should be fixed if you update to the newest version. UltrasonicNXT (talk)

Migrating from another platform to this one[edit]

I'd like to know how someone can migrate from another platform to WikiForum. I'm currently using AWCforums but it's outdated now. 70.31.230.203 17:23, 13 November 2014 (UTC)Reply

User:Krusher wrote some SQL queries to do this in 2012, which I turned into a maintenance script. Bear in mind that I haven't tested this and WikiForum has been significantly updated since that, namely the rewrite (version 2.0) done by UltrasonicNXT earlier this year, so use this script at your own risk! Save this as migrateFromAWC.php and place it in $IP/extensions/WikiForum/maintenance (since that directory doesn't exist, you'll have to create it):
<?php
/**
 * Migration script to migrate from AWC Forum to WikiForum.
 *
 * @file
 * @ingroup Maintenance
 * @author [KrusheR]
 * @author Jack Phoenix <jack@countervandalism.net>
 * @date 16 September 2012
 */

/**
 * Set the correct include path for PHP so that we can run this script from
 * $IP/extensions/WikiForum/maintenance and we don't need to move this file to
 * $IP/maintenance/.
 */
ini_set( 'include_path', __FILE__ . '/../../../maintenance' );

require_once( 'Maintenance.php' );

class MigrateFromAWCForum extends Maintenance {
	public function __construct() {
		parent::__construct();
		$this->mDescription = 'Migrates data from AWC Forum\'s database tables to WikiForum\'s tables.';
	}

	public function execute() {
		$dbw = wfGetDB( DB_MASTER );

		$this->output( "Migrating categories...\n" );
		$dbw->query(
			"INSERT INTO {$dbw->tableName( 'wikiforum_category' )} SELECT cat_id, cat_name, cat_order, NOW(), 1, null, null, null, null FROM {$dbw->tableName( 'awc_f_cats' )}",
			__METHOD__
		);

		$this->output( "Migrating forums...\n" );
		$dbw->query(
			"INSERT INTO {$dbw->tableName( 'wikiforum_forums' )} SELECT f_id, f_name, f_desc, f_parentid, f_order, f_threads, f_replies, f_lastuserid, 
DATE_FORMAT(f_lastdate, \"%Y%m%d%H%i%s\"), NOW(), 1, null, null, null, null, 0 FROM {$dbw->tableName( 'awc_f_forums' )}",
			__METHOD__
		);

		$this->output( "Migrating threads...\n" );
		$dbw->query(
			"INSERT INTO {$dbw->tableName( 'wikiforum_threads' )} SELECT t_id, t_name, t_name, t_pin, DATE_FORMAT(t_date, \"%Y%m%d%H%i%s\"), t_starterid, 0, 0, 0, 0, 0, 0, t_forumid, t_topics, t_hits, t_lastuserid, DATE_FORMAT(t_lastdate, \"%Y%m%d%H%i%s\") FROM fp_awc_f_threads",
			__METHOD__
		);

		$this->output( "Migrating replies...\n" );
		$dbw->query(
			"INSERT INTO {$dbw->tableName( 'wikiforum_replies' )} SELECT p_id, p_post, DATE_FORMAT(p_date, \"%Y%m%d%H%i%s\"), p_userid, 0, 0, DATE_FORMAT(p_editdate, \"%Y%m%d%H%i%s\"), (SELECT user_name FROM {$dbw->tableName( 'user' )} b WHERE b.user_id = p_editwho), p_threadid FROM {$dbw->tableName( 'awc_f_posts' )}",
			__METHOD__
		);

		$this->output( "Done!\n" );
	}
}

$maintClass = 'MigrateFromAWCForum';
require_once( RUN_MAINTENANCE_IF_MAIN );
--Jack Phoenix (Contact) 07:30, 14 November 2014 (UTC)Reply

a updated version when migrating from awc to curent db scheme, after that execute this sql query to remove bogus edits: update wikiforum_replies set wfr_edit_timestamp = 0 WHERE wfr_posted_timestamp = wfr_edit_timestamp

<?php
/**
 * Migration script to migrate from AWC Forum to WikiForum.
 *
 * @file
 * @ingroup Maintenance
 * @author [KrusheR]
 * @author Jack Phoenix <jack@countervandalism.net>
 * @date 16 September 2012
 */

/**
 * Set the correct include path for PHP so that we can run this script from
 * $IP/extensions/WikiForum/maintenance and we don't need to move this file to
 * $IP/maintenance/.
 */
ini_set( 'include_path', '../../maintenance' );

echo __FILE__ . '/../../../maintenance' ;
require_once( '/var/www/catchall/htdocs/CineToVidWiki/maintenance/Maintenance.php' );

class MigrateFromAWCForum extends Maintenance {
	public function __construct() {
		parent::__construct();
		$this->mDescription = 'Migrates data from AWC Forum\'s database tables to WikiForum\'s tables.';
	}

	public function execute() {
		$dbw = wfGetDB( DB_MASTER );

		$this->output( "Migrating categories...\n" );
		$dbw->query(
			"INSERT INTO {$dbw->tableName( 'wikiforum_category' )} SELECT cat_id, cat_name, cat_order, NOW(), 1, null, null, null, null, null, null, null FROM {$dbw->tableName( 'awc_f_cats' )}",
			__METHOD__
		);

		$this->output( "Migrating forums...\n" );
		$dbw->query(
			"INSERT INTO {$dbw->tableName( 'wikiforum_forums' )} SELECT f_id, f_name, f_desc, f_parentid, f_order, f_threads, f_replies, f_lastuserid, null, 
DATE_FORMAT(f_lastdate, \"%Y%m%d%H%i%s\"), NOW(), 1, null, null, null, null,null,null,null, 0 FROM {$dbw->tableName( 'awc_f_forums' )}",
			__METHOD__
		);

		$this->output( "Migrating threads...\n" );
		$dbw->query(
			"INSERT INTO {$dbw->tableName( 'wikiforum_threads' )} SELECT t_id, t_name, t_name, t_pin, DATE_FORMAT(t_date, \"%Y%m%d%H%i%s\"), t_starterid, 0, 0, 0, 0, 0, 0, 0,0,0,0,0,t_forumid, t_topics, t_hits, t_lastuserid, 0, DATE_FORMAT(t_lastdate, \"%Y%m%d%H%i%s\") FROM awc_f_threads",
			__METHOD__
		);

		$this->output( "Migrating replies...\n" );
		$dbw->query(
			"INSERT INTO {$dbw->tableName( 'wikiforum_replies' )} SELECT p_id, p_post, DATE_FORMAT(p_date, \"%Y%m%d%H%i%s\"), p_userid, 0, 0,0,0, DATE_FORMAT(p_editdate, \"%Y%m%d%H%i%s\"), (SELECT user_id FROM {$dbw->tableName( 'user' )} b WHERE b.user_name = p_editwho),0, p_threadid FROM {$dbw->tableName( 'awc_f_posts' )}",
			__METHOD__
		);

		$this->output( "Done!\n" );
	}
}

$maintClass = 'MigrateFromAWCForum';
require_once( RUN_MAINTENANCE_IF_MAIN );

--88.76.33.17 23:03, 13 November 2017 (UTC)Reply

Fatal error: Call to a member function show() on a non-object in ....\extensions\WikiForum\SpecialWikiForum.php on line 111[edit]

Got this error when i am trying to create a new Forum. Need your help guys.I am not so good in PHP so have no idea where do i have to search to solve this one. I Found the solution Line 111 in SpecialWikiForum.php:

$output .= $forum->show(); use $output .= $forum;

Line 159: Instead of: $output .= $thread->show(); use: $output .= $thread;

Are there any more settings?[edit]

Aside from $wgWikiForumAllowAnonymous $wgWikiForumSmilies and $wgWikiForumLogsInRC, are there any more settings I can customize? Like the order in which posts appear? (showing most recent first and oldest last) If so, it would be nice to have a complete list of everything we can change.

Is this extension still active?[edit]

The status is beta, and reading though this page, I see people saying that the extension has been abandoned. However, the main page shows that the source has been updated this month. Does anyone know if there is any genuine development still being made to this extension, and if it's compatible with the latest 1.24 Media Wiki build? Thanks! --TheAlmightyGuru (talk) 23:43, 25 January 2015 (UTC)Reply

I don't know its development status, but I can confirm that it works with MW 1.24 (I'm installing it on my wiki right now). There are a few minor bugs (reply counts don't update when deleting a reply, and ConfirmEdit CAPTCHAs will not show up no matter what I do), but all of the core functionality is fine. 70.48.43.161 14:54, 28 January 2015 (UTC)Reply
Thank you very much for the feedback. I'm looking for a replacement for AWC forums, but I don't want to exchange one abandoned forum for another. --TheAlmightyGuru (talk) 16:01, 6 February 2015 (UTC)Reply

Error while editing[edit]

When trying to edit their own replies, my registered users get this error: "Error while editing You don't have the rights to perform this action."

Is there a permission that I can manually add to my local settings to force them to be able to?.

Concerned forum is here: http://www.adventuretimecardwars.com/Special:WikiForum

I had the same problem. I fixed it by changing a few lines in Reply.php. Open this file in Notepad++ (or similar. Compare the lines from 183 until return error message (190) for deletion with lines from 225 until return error message for editing. You see a difference there: for editing there is something included about closed pages. This is what causes the problem. If you change this bit of code such that the lines from 225 until return error message are exactly identical to the lines from 183 until return error message, then you'll have "solved" your problem. -- Lajosb (talk) 01:17, 14 May 2015 (UTC)Reply
Thanks for the tip Lajosb! I followed your method but fixed it a bit differently as that second section seems to be needed for closing threads. Instead, I copied from that first section the line " $user->getId() != $this->getPostedById() && " and inserted it above " !$user->isAllowed( 'wikiforum-moderator' ) " at ca. line 232 - exactly as those two lines also appear together in the first section. That seems to work perfectly on my new site with forum https://infocheckers.org/wiki/Special:WikiForum. Users can now edit their own posts and closing a thread seems to work fine as well. Gerryval (talk) 14:50, 2 May 2019 (UTC)Reply

Error while trying to delete thread[edit]

I'm trying to delete a thread but I get this error:

Fatal error: Cannot use object of type stdClass as array in ..extensions/WikiForum/Thread.php on line 352

I already have the latest version of WikiForum, I never had an old version of it before either, fresh new install with fresh new posts.

Error while trying to create Category[edit]

I just downloaded and installed WikiForum and I'm running it on MW 1.23 and I get the following error:

"<wikiforum-error-category> You don't have the rights to perform this action."

I tried this with both of my accounts for the site and get the same message. Both accounts have the rights to perform the action. --Maldarthe1st 11 February 2015

I get the same error on my http://www.kubbwiki.de. Bastor 31.8.2015

Insert Text on top of the forum page?[edit]

Is it possible to insert a text before the forum is displayed (in forum view)?

(i have a category with 3 forums and i want a text that is shown on top of each forum)

something like this: http://de.tinypic.com/r/1smc5y/8


http://xxxxxxxxxxxxxx?title=Special%3AWikiForum&forum=1

Text text text text Text text text text Text text text text

Forum

Overview > Forum > Forum 1

Here is the actual forum....

Could this be made to work with WikiEditor and/or VisualEditor?[edit]

It would be really useful if it could utilize either of these extensions. Thanks, BradLeeBH (talk) 09:43, 25 August 2015 (UTC)Reply

^ WikiEditor now works with the latest trunk version of WikiForum. Cheers Adam. BradLeeBH (talk) 07:58, 14 September 2015 (UTC)Reply

Add WhosOnline Extension underneath[edit]

Could this be made to work with the WhosOnline extension, adding a "who's online" box underneath? Regards, BradLeeBH (talk) 08:16, 14 September 2015 (UTC)Reply

Smiles?[edit]

I'm curious to know if there has been any progress on the smiles/emoticons for this? Or if they're working, if there's a clearer documentation on how to set them up available somewhere. Thank you, Kitsufox (talk) 20:04, 22 February 2016 (UTC)Reply

Catchable fatal error - QuestyCaptcha[edit]

So on my wiki, whenever a user tries to view the forum when not logged in, you get a blank screen with this message:

"Catchable fatal error: Argument 1 passed to QuestyCaptcha::getForm() must be an instance of OutputPage, none given, called in /home/content/06/10282706/html/nexus/extensions/WikiForum/WikiForumClass.php on line 358 and defined in /home/content/06/10282706/html/nexus/extensions/ConfirmEdit/QuestyCaptcha/QuestyCaptcha.class.php on line 44"

Although the forum works fine when you are actually logged in, this message still appears at the top of the page:

"Warning: OutputPage::getModuleStyles: style module should define its position explicitly: ext.wikiForum ResourceLoaderFileModule [Called from OutputPage::getModuleStyles in /home/content/06/10282706/html/nexus/includes/OutputPage.php at line 623] in /home/content/06/10282706/html/nexus/includes/debug/MWDebug.php on line 300"

Any advice on how to fix this?Krayfishkarl (talk) 16:54, 20 June 2016 (UTC)Reply

Only ADMINISTRATORS can even load forum topics[edit]

Okay, I'm pretty sure that no one's going to come across this, but I'll post it anyway. My WikiForum has some weird, dumb glitch where only administrators can create topics. As in, the things where you actually discuss. If an anonymous user or just ANY user that isn't an admin tries to even LOAD a topic, it will give them an HTTP 500 error. They also can't post topics. I have no clue how to fix this. Please help. Someone. Please. MediaWiki 1.26. 71.15.112.25 01:55, 10 August 2016 (UTC)Reply

Okay! I figured out my problem. Even though I used MediaWiki 1.26, the version that worked correctly for me was the WikiForum for 1.27. So if you have that problem, try that. 71.15.112.25 07:46, 19 August 2016 (UTC)Reply

Installation Error[edit]

After placing the line in my localsettings.php, when I run the update.php, I get an error stating that extensions.json is missing and the update script stops. when I returned to my Wiki home page I now only see the following "Fatal error: Uncaught exception 'Exception' with message 'C:\inetpub\wwwroot\wiki/extensions/WikiForum/extension.json does not exist!' in C:\inetpub\wwwroot\wiki\includes\registration\ExtensionRegistry.php:106 Stack trace: #0 C:\inetpub\wwwroot\wiki\includes\GlobalFunctions.php(115): ExtensionRegistry->queue('C:\\inetpub\\wwwr...') #1 C:\inetpub\wwwroot\wiki\LocalSettings.php(155): wfLoadExtension('WikiForum') #2 C:\inetpub\wwwroot\wiki\includes\WebStart.php(124): require_once('C:\\inetpub\\wwwr...') #3 C:\inetpub\wwwroot\wiki\index.php(40): require('C:\\inetpub\\wwwr...') #4 {main} thrown in C:\inetpub\wwwroot\wiki\includes\registration\ExtensionRegistry.php on line 106"


Can anyon shed some ligh on what I need to do ???

Problem with pagination[edit]

I had a problem with pagination, thought someone might wanna know my solution. Edited WikiForumGui.php:

	static function showFooterRow( $page, $maxissues, $limit, $params ) {
		$output = '';
		$specialPage = SpecialPage::getTitleFor( 'WikiForum' );

		if ( $maxissues / $limit > 1 ) {
			$output = '<table class="mw-wikiforum-footerrow"><tr><td class="mw-wikiforum-leftside">' .
			wfMessage( 'wikiforum-pages' );
			
			for ( $i = 1; $i < (( $maxissues / $limit ) + 1); $i++ ) {
				$urlParams = array_merge( array( 'page' => $i ), $params );

				if ( $i <= 9 ) {
					$pageNumber = '0' . $i;
				} else {
					$pageNumber = $i;
				}

				if ( $i != $page + 1 ) {
					$output .= '<a href="' . htmlspecialchars( $specialPage->getFullURL( $urlParams ) ) . '">' . $pageNumber . '</a>';
				} else {
					$output .= '[' . $pageNumber . ']';
				}

				$output .= wfMessage( 'word-separator' )->plain();
			}
			$output .= '</td><td class="mw-wikiforum-rightside">';
			$output .= '</td></tr></table>';
		}
		return $output;
	}

No way to have two post that have the same title?[edit]

It looks like impossible because it is using the post title as a link... How can I change it to post id or something else? —File:LovelyA72 avatar.pngA72(留言·贡献) 02:33, 10 September 2017 (UTC)Reply

Is it possible to change the appearance of the sidebar?[edit]

Is it possible to change the appearance of the sidebar while on the forums?

Also, is there a screenshot of a list of threads within a subforum?--NostalgicColorBird (talk) 20:56, 16 October 2017 (UTC)Reply

Wiki Forum.[edit]

I would really wish I could use this forum for my current Wiki, which is the 1.30 it seems to install okay but soon as I click on the link to discussion board this came up. [W-ElANQv7U@-VMFAEt4DVgAAAIo] 2018-11-18 08:38:25: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"

no Special:WikiForum page[edit]

Hi, I have just installed the extension Wikiforum on a local mediaWiki website. Installed extensions: Extension Version License Description Authors WikiForum 2.5.0 (e81d863) 14:22, 11 October 2018 GPL-3.0-or-later Forum extension for MediaWiki Michael Chlebek, Jack Phoenix and Adam Carter (UltrasonicNXT)

The problem is that there is no Special:WikiForum page where I can start setting categories for the forum.

I do have admin rights. Any help is appreciated!

word wrap fixed in ccs[edit]

See the solution in accessdenied-rms . net

The css code also works on my new website, running on MediaWiki 1.32. :-)

/* for word wrap put the following six lines of css code on your Common.css page:
td.mw-wikiforum-thread-main,
td.mw-wikiforum-thread-sub {
    word-wrap: break-word;
    word-break: normal;
    table-layout: fixed;
}