Extension talk:Forum extension/Archive 1

From mediawiki.org
Latest comment: 14 years ago by 149.211.153.93 in topic Questionable Status
The following discussion has been transferred from Meta-Wiki.
Any user names refer to users of that site, who are not necessarily users of MediaWiki.org (even if they share the same username).

I like it wery mach (on your Wiki)! Can You test it under 1.5? And ofcouse add native language support. (i`m ready to help with eanglish & russian translation)

It should work on MW 1.5, because it is using it's own tables, the only MW Table used is the users Table. For NLS I have to review the Code, exchanging every hardcoded bit of text whith it's corresponding NLS call. After that you can translate it easily in your MediaWiki Namespace. But it will take time, I've a lot of work todo, at the moment, so it could take up to 6 weeks, anyway I will make a tar available for download, next few days. ;-) Zem 13:56, 23 January 2006 (UTC)Reply
I whait with patience--T O X I N 11:51, 24 January 2006 (UTC)Reply
I added some localisation yesterday the original messages are still in german, but you can use the MediaWiki: namespace to localize it. All messages used are preset in extensions/Forum.php I thought about an extension tag to link a discussion thread directly into a discussion page, but it is still unwritten. ;-) Zem 18:19, 29 January 2006 (UTC)Reply

Request for source code[edit]

I'd like to request your source code for this extension so that I may use on my own wiki. Thanks for your time. --64.243.177.194 19:34, 26 January 2006 (UTC)Reply

The source code is available now! :) Zem 18:19, 29 January 2006 (UTC)Reply

Moved from front page[edit]

Hi, overall, it is a nice extension and fits my needs... I found a small bug because a user is not able to edit his own contributions with the appropriate buttons (edit/delete).

 Calling the function renderArticleButtons from ForumClass.php, a variable ($user_name) is missing. 

Therefore, the request if the current user is the author goes wrong. What I have done:

 added value at call function renderArticleButtons ($id, $thread, $user_name); 
 and in function showThread(..., this was added: $output.=$this->renderArticleButtons($row->id,
 $thread, $row->user_name);.

I'm not a real php-coder, just someone, who tinkers around, so I want to ask for some more functions:

  • Could the issues be searchable (added to the wiki search)?
  • Could you set up an rss-feed of entries and replies or
  • extend the extension for having a modul to show new entries?

Thanks, Peter

Error[edit]

Special:Forum gives me a MySQL error:

    (SQL query hidden)

from within function "". MySQL returned error "1064: You have an error in your SQL syntax; <br />
check the manual that corresponds to your MySQL server version for the right syntax to use near '50 LIMIT 0' at line 4 (localhost)".

I can call Special:WriteArticle but posting it Special:WriteArticle&action=post gives me a 404 :(

Doesn't work[edit]

If I include the extension in LocalSettings.php and load it, the following error appears (german wiki):

SELECT id, user_name, topic, relevance, article_count FROM forum_thread LEFT JOIN `user` ON user_id = user ORDER BY relevance DESC 50 LIMIT 0 
aus der Funktion „“. MySQL meldete den Fehler „1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '50 LIMIT 0' at line 4 (localhost)“.

What should I do?

Questionable Status[edit]

This extension ("Forum") does not appear to have received any attention for some time. In fairness, the author states that he developed it for MW 1.4. If you are new to wikis and/or PHP, and/or are using a version of MediaWiki newer than 1.4, you will probably not have good results with this extension. (Too bad, because I liked its simple interface and layout.)

Using MW version 1.11, I receive this database error:

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 "".
MySQL returned error "1064: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right syntax
to use near '50 LIMIT 0' at line 4.

My limited knowledge of SQL, PHP and even MediaWiki prevents me from being able to remedy this myself. I don't want to detract from the work that authors of extensions do, but this one seems to have been abandoned, even though it appears that the extension is running on the author's web site. Too bad, because this was my first choice of forum due to its simple interface. Respectfully: Brian7632416 04:16, 13 April 2008 (UTC)Reply


SOLVED!!!
Just tried about 20minutes of changing some lines in the code but nothing :helped, except one change.
Open the ForumClass.php and go to line 203 and find the following
ORDER BY relevance DESC'. $dbr->limitResult( $limit,$offset ));
and change it to
ORDER BY relevance DESC LIMIT '. $limit.','.$offset);
and that's it.
Yours sincerly
modmatt!--149.211.153.93 08:17, 17 July 2009 (UTC)Reply

Why not implement PHPbb[edit]

Why not base it out of a good forum software such as PHPbb. Version 3 has good support for PHP 5 and has a LOT of features including forum-based lists and more. Jjupiter100 15:24, 9 May 2009 (UTC)Reply