Extension talk:WikiForum/Archive

Please report WikiForum bugs on the Bugzilla rather than on this page.

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


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

No access to mysql command line
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 (talk • contribs). 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   with the value of $wgDBTableOptions and then press the submit button. --Jack Phoenix (Contact) 14:31, 8 June 2011 (UTC)

sql errors
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 (talk • contribs). 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)


 * 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)

smiles
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)


 * 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)
 * ok, I see. thanks for your reply --Erithion 21:40, 30 June 2011 (UTC)

email notifications
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)


 * For now, e-mail notifications are indeed absent. --Jack Phoenix (Contact) 17:32, 19 December 2011 (UTC)

Small/Configurable "New Entries" for the Main Page
Is there a way to config the  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)

Tweaks to wikiforum.sql for SQLite
I had to make the following updates create the necessary tables in SQLite 3.7.5 (via the Firefox SQLite Manager extension) --74.70.123.165 18:07, 26 August 2011 (UTC)
 * Change int(10) to INTEGER
 * Change AUTO_INCREMENT to AUTOINCREMENT

Error: Non-string key given
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))
 * 1) 10 C:\wrs\www\w\includes\Wiki.php(63): MediaWiki->handleSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
 * 2) 11 C:\wrs\www\w\index.php(114): MediaWiki->performRequestForTitle(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
 * 3) 12 {main}

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


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

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)

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

Excuse for the bad English.

Spam Protection
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)


 * I beleive that setting  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)


 * 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)

$this in Linker.php
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)

I also have the same problem. I am using mediawiki 1.17. Any suggestions? --87.202.73.87 12:27, 14 November 2011 (UTC)
 * I believe that I may have located the problem and found a simple solution. The problem is in line 175 of Linker.php :  which is inside public function link of class Linker. That function is called by WikiForumClass.php on line 2349. That part is as follows


 * 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


 * 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)


 * Just update your MediaWiki to 1.18.0 and WikiForum to the latest version &mdash; the Linker class is static since 1.18. :) --Jack Phoenix (Contact) 17:32, 19 December 2011 (UTC)

Integrate with SocialProfile
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)


 * Yes, it's possible to add such support into WikiForum. You'd need to add a new column (for example, ) into the   database table, and then in the appropriate part of WikiForum, you'd call SocialProfile's UserStatsTrack class, maybe something like this:


 * 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)

Fatal error: Call to undefined method OutputPage::addModuleStyles in /home/dvswiki/wiki.dvsport.com/extensions/WikiForum/WikiForumHooks.php on line 284
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 (talk • contribs). Please sign your posts with ~ !


 * The documentation page is &mdash; once again &mdash; 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)

Concerning security
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.

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

Does this extension support image?
I think it should have external images support.

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