Extension talk:DPLforum

From MediaWiki.org

Jump to: navigation, search

Contents

[edit] Examples Wanted

Please Provide a little more Information. I've no idea how I can implement this like your example page. Please give an running example wiki code or a step by step tutorial.

Thanks

-Stefan-

79.211.199.66 16:55, 20 September 2007 (UTC)

[edit] Forum on each Discussion page

Is it possible to show a forum for each Discussionpage automaticly? I dont wanna insert this tags on every new page. Because this would be a lot of work.


I wonder also, if it would be possible to implement this to replace the discussion page on each article? --Rovo 16:20, 28 September 2007 (UTC)

[edit] Important topics

Is there the possibility to show first the topics tagged by a particular category (es. [[Category:Important topic]]) and last all the others? Something like this:

<forum>
namespace={{NAMESPACE}}
prefix={{PAGENAME}}/
firstshowcategory=Important topic
addauthor=true
addlasteditor=true
historylink=true
compact=all
count=20
</forum>

I think it's not very complicated... --Heavymachinegun 08:17, 30 September 2007 (UTC)

[edit] List Talk Pages

Has anyone figured out how to use this extension to list all the Talk pages of the wiki? I can't figure out how to set the parameters to do so. Thanks. --Rovo 16:48, 10 October 2007 (UTC)

[edit] How To Send E-Mail on New Topic

Hey, I run a wiki for Primus Technical Support and I'd like to be able to send an E-Mail to an address when a new topic is created in the Forum, whith hopefully the topic name.

Does anyoen know if this is possible??


And if not, does anyoen know how to modify the code to make this happen.


Thank You

[edit] MediaWiki 1.12 Forum Link issue

There seems to be an incompatibility between the {{#forumlink: parser function provided by this extension and the current alpha MediaWiki. Line 147 (function link()) currently looks like:

return '[{{fullurl:{{FULLPAGENAME}}|offset='.$page.'}} '.$text.']';

This used to work. Now, the fullurl: and FULLPAGENAME variables are not being expanded into the actual values. They display instead as if they were plaintext. To force lookup as variables, this line needs to use a function like $parser->replaceVariables($arg) for each variable expression that it uses. --205.150.76.181 23:30, 3 January 2008 (UTC)

I have just hit this problem - here is how you resolve it:

In DPLforum_body.php (or forum.php in older versions) Replace:

return '[{{fullurl:{{FULLPAGENAME}}|offset='.$page.'}} '.$text.']';

With:

return '['.$parser->replaceVariables('{{fullurl:{{FULLPAGENAME}}|offset='.$page.'}} ') .$text.']' ;

--161.65.16.253 23:47, 5 June 2008 (UTC)

Another solution, if you have StringFunctions and ParserFunctions installed, is to create a template that replaces all those rubbish wikicode by a working link. For example, put the following code in a template (for example, [[Template:Forumlink]]:
{{#ifeq:{{#forumlink:{{{1|50}}}|{{{2|+1<50}}}|{{{3}}}}}|||[{{fullurl:{{FULLPAGENAME}}|{{#replace:{{#replace:{{#forumlink:{{{1|50}}}|{{{2|+1<50}}}|{{{3|→}}}}}|[{{(}}{{(}}fullurl:{{(}}{{(}}FULLPAGENAME{{)}}{{)}}{{!}}|}}|{{)}}|}}}}}}
It requires you to create also a [[Template:(]] (which only contains the { character) and [[Template:)]] (which only contains the } character).
Then use {{forumlink|A|B|C}} instead of {{#forumlink:A|B|C}}. At the time of writing this, it works at [1]. --Ciencia Al Poder 14:28, 8 December 2008 (UTC)

[edit] "Previous page"

You give an example how to create nex page link:

{{#forumlink:30|+1<10|Next page}}

How can I create a "previous page" link?

Thanks --Peter 217.153.125.219 11:03, 6 February 2008 (UTC)

Use: {{#forumlink|30|-1>0|Previous page}} --Ciencia Al Poder 14:31, 8 December 2008 (UTC)

[edit] running example

Hello, do you got a running example of this extension? It would be nice. :-) --212.23.103.118 19:47, 15 March 2008 (UTC)

All Wikia sites run DPLforum and most sites have forums set up. See Forum:Index on the Central Wikia or on Wookieepedia for a couple examples. --Sayuri 20:29, 15 March 2008 (UTC)