Extension talk:DPLforum

Latest comment: 1 year ago by 102.23.99.14 in topic Who incidentally used person detection?

external forums edit

Is there an extension to show the most recent external forum's threads on a particular page? Farvardyn (talk) 08:51, 14 February 2021 (UTC)Reply

Examples Wanted edit

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

Forum on each Discussion page edit

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

Important topics edit

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

List Talk Pages edit

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

How To Send E-Mail on New Topic edit

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

MediaWiki 1.12 Forum Link issue edit

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

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

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

"Previous page" edit

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

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

running example edit

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

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

For that matter, all Uncyclopedia projects have the extension, regardless of where they're hosted, as this originated on that project. --Carlb (talk) 17:02, 28 February 2012 (UTC)Reply

Dates edit

First of all: Is this extension still being actively developed?
If so, the output of dates needs to have a mw-formatted-date class added to the generated elements, like:

<element class="someclass mw-formatted-date">a date</element>

This way scripts etc can recognize it as such. fe. for sorting in sortable tables.
-- TriMoon 04:47, 1 December 2010 (UTC)Reply

Works for 1.16? edit

I cannot get this to work for 1.16. anyone else has? If so can you provide link? Adamtheclown 20:06, 15 December 2010 (UTC)Reply

I am not sure if this is the same error you are speaking of, but in our wiki (version 1.16.5) we received the error:
Warning: Parameter 3 to parseForum() expected to be a reference, value given in /[...]/includes/parser/Parser.php on line 3333
This is because the function parseForum() in DPLForum.php expects the argument to be given as a reference (&$parser) while the function extensionSubstitution() in Parser.php returns the argument as a value ($this); see also [2] for more information on passing arguments to functions. By removing the ampersand from &$parser we were able to fix the issue, although we are not sure if this might lead to other problems. --24.103.97.6 00:27, 24 July 2011 (UTC)Reply

Compatibility with Liquid Threads edit

Is this extension compatible with Liquid Threads? MyrtonosTry liquid theads 11:04, 18 January 2011 (UTC)Reply

Uninstall edit

How do you uninstall this? I'd like to completely purge it from my database, and I'm not sure what it added. 216.107.215.226 15:44, 22 January 2011 (UTC)Reply

DPLforum doesn't add anything to the database (except maybe some sort of cache in the objectcache). It's only a new tag for the parser. You only have to comment out or remove the lines that include the files from your LocalSettings.php. --Ciencia Al Poder 13:53, 22 May 2011 (UTC)Reply

Weird Bug. Doubling of namespace in header edit

We're seeing a weird issue where creating a new forum will spawn the following in the header. Editing Forum:Forum:Testing

Our setup for it is as follows:

PHP - 5.3.8 Mediawiki - 1.18.1 (Test Server) & 1.17.2 (LIVE) Lastest DPL download for each version Latest CreateBox for each version

Any insight into this issue would be appreciated. —The preceding unsigned comment was added by ProgramCeltic (talkcontribs00:34, 7 February 2012‎ (UTC)Reply


I had the same issue. Therefore I changed as workaround using extension inputbox instead of createbox for creating new forum articles. Example:
<inputbox>
type=create
prefix=Forum:
break=no
preload=Vorlage:Forumheader/preload
buttonlabel=Neues Thema hinzufügen
width=30
</inputbox>
Hope that helps. --Singlespeedfahrer 14:09, 7 February 2012 (UTC)Reply
I have this issue with one of my two wikis that are using DPLforum, but strangely enough, it's fine on the other. I'm using Singlespeedfahrer's workaround, but the issue with that is that if a thread with the same title already exists, it'll take me to the edit page for the already-existing page rather than telling me it already exists and I should use a different title, which can cause confusion. —71.197.220.208 23:12, 26 February 2012 (UTC)Reply
See also: Extension talk:CreateBox#Weird doubled namespace prefix problem
It was fixed there with this use of inputbox:
http://www.sturmkrieg.us/Template:Forumlist
See it transcluded here for example:
http://www.sturmkrieg.us/Forum:Wiki_discussion --Timeshifter (talk) 13:50, 2 August 2013 (UTC)Reply

What if Namespace 110 is already in use for something else? edit

Is there anything 'magical' about the default of 110 for auto-created Forum: space or is this arbitrary?

I've been seeing desciclopédia.org (where fórum: was 20 and dicionar.io was 110) malfunction in such a way that clicking on [[Forum:uma coisa...]] would actually send the user to a page with the same base name but the prefix of whatever namespace is on 110 locally; the tab at the upper-left of the page still indicates (ns-forum) instead of the name of whatever's on 110. The use of non-standard numbering (20 as Forum:) worked without incident on every MediaWiki version from 1.07 to 1.17 but is now breaking as of this revision onward because 110: is now hard-coded into the source files.

Fixing this requires renumbering *everything* to send the existing 110: to a vacant namespace (in this case, 100:) then send Forum: to 110:

UPDATE `page` set page_namespace=100 WHERE page_namespace=110;
UPDATE `page` set page_namespace=101 WHERE page_namespace=111;
UPDATE `page` set page_namespace=110 WHERE page_namespace=20;
UPDATE `page` set page_namespace=111 WHERE page_namespace=21;

Total 1693+4061 = 4754 pages moved (plus 125 talk pages) for the two namespaces, with corresponding changes to Special:Namespaces (to update $wgExtraNamespaces) and MediaWiki:Common.css (which was being used on-wiki to set a logo per-namespace). :(

This was not the only wiki with Forum: on some other number, 110 already in use and MW upgraded to 1.18-1.20 with the latest version of this extension, taking forum: from working to broken and dumping visitors to these pages to some other, already-extant namespace. It was just the highest-traffic site on that one server set to be using 110 for something else. I am seeing issues on other wikis with (Forum: - some arbitrary namespace not 110, 110: vacant) as well - but those appear just as missing Forum pages. --Carlb (talk) 18:38, 18 February 2012 (UTC)Reply

Working example, for anyone needing help setting up the forum after installation edit

I just provided a link to Sturmkrieg at the bottom. Wondering if I should add a section for other working examples. --Inquisitor Sasha Ehrenstein aus Sturmkrieg Sektor (Talk) (Contributions) 05:47, 7 March 2012 (UTC)Reply

DPL Forum and protected namespaces edit

I have a protected namespace on my wiki. I am using the CreateBox extension, but however can not get the DPL Forum extension to work. I have it working throughout the rest of the site. Will this extension not work with protected namespaces? Here is an example of how I would like it to work.

<createbox><br/>
width=50<br/>
prefix=Mr._James:Info-<br/>
buttonlabel=Create New Info<br/>
break=yes<br/>
</createbox><br/>
<br/>
<table><forum><br/>
prefix=Mr._James:Info-<br/>
</forum></table><br/>

What happened? edit

You can't download DPLForum anymore! If you click Download, Extension Distributor says there is no such extension! What happened to it?

SVN is used now. I changed the infobox. Arkondi (talk) 05:46, 19 July 2012 (UTC)Reply

Version 3.4 edit

I see version 3.4 of Extension:DPLforum listed in Special:Version for some of these wikis using DPLforum listed below. Uncyclopedia, Wookiepedia, DDO, and Wikia all currently use 3.4. The alphabetical links go directly to the main forum index.

--Timeshifter (talk) 00:14, 22 July 2013 (UTC)Reply

Forum templates edit

Once you install the DPLforum extension you will need some templates. They can be copied from other DPLforum installations. For example;

--Timeshifter (talk) 13:37, 17 March 2014 (UTC)Reply

So how do I implement this exactly? edit

I'm trying to install this extension on my wiki : www.adventuretimecardwars.com but I don't really get how the whole thing works. The page here says I have to find a template but every link I follow leads to like 5 to 10 different templates so which one must I use? It would be nice to have a tutorial. I see a bunch of parameters on the extension's main page but I don't understand any of it. It's like taking advanced mechanics classes before going through the general one.

Any pointers as to where to start would be nice. And I don't mean how to install the extension itself, but how to get it working. What are the page names I'm supposed to give to whatever needs to be set up? Does this extension create a special page to start from, Special:DPLForum? I'm being linked to other forums with different numbers of templates, does that mean they have extended the number of functions with custom codes?

Will this forum create new pages in my wiki for every topic or will it all be contained within a special page like other forum extensions?

An accurate list of tasks to do would be nice. Something better than this please:

1-Install Wiki 2-Get templates 3- 4-Profit

Thank you for understanding — Preceding unsigned comment added by 70.31.228.189 (talkcontribs)

Each "thread" in the forum will be a separate page. As you can see forum tag will select pages based on category, so you should add pages to specific categories for them to show up in the forum list. No special page is used.
There's no requirement for templates, but they'll help, specially when combined with Extension:CreateBox. Ideally you should use one page to specify what text will be preloaded into the page when creating a new thread, that will contain the category where the page should be added, and optionally, an editintro page to display to the user when creating the page, with instructions like not removing that category. That is accomplished by the CreateBox extension and not the DPLforum --Ciencia Al Poder (talk) 10:27, 27 January 2015 (UTC)Reply

"Too few categories" edit

When trying to use only a namespace, I get this error: "Too few categories"

Apparently the code wants at least one category or notcategory parameter. It can easily be tricked by adding notcategory=foo so I'm not sure what's the point of this error.

--Rudloff (talk) 21:29, 1 May 2017 (UTC)Reply

Output name link of most recently updated page? edit

This extension is working great, but there is one function I cannot figure out for my subforum system:
Is it possible to include a link to the last updated thread page, the same as last edit & last author output shows up??

Example

-QcQ (talk) 03:13, 10 May 2017 (UTC)Reply

Working example of usage edit

I too had to go the long route to figure out how to implement this extension (visiting the various example sites, viewing source, sniffing out the templates, then copying them and reconfiguring as needed). The lack of examples will perhaps put newer MediaWiki users off of using it which is a shame because this is a great extension! I tried to add this examples section to the Extension page but I don't have enough edits to be considered an auto-confirmed user to edit the protected page. Here it is, I hope someone finds this helpful! Perhaps the extension maker will consider moving this to the extension page. ;) ;) ;)

Create Templates edit

To wrap your head around how this extension works, consider the different page areas that a forum usually has (header navigation/bread crumbs, forum index, page body, notices, search input, new topic buttons etc.). To create a standard forum appearance you need to create some templates to match these different parts:

  • Template:Forumheader
  • Template:Forumpage
  • Template:Forumheader/preload
  • Template:Forumnotice (optional: text you wish to appear on all the index and subtopic pages to warn users about conduct/rules etc.)

Template:Forumheader edit

The forum header template can provide breadcrumb navigation for wayfinding and to help users easily return the forum index. In the Forumheader template, place something like the following:

<div class="forum-header">
'''Forums:''' {{#ifeq:{{PAGENAME}}|Index||[[Forum:Index|Index]] '''→'''}}
{{#if:{{#if:{{{1|}}}||1}}{{#ifeq:{{{1}}}|$1|1}}|{{PAGENAME}}|[[Forum:{{{1}}}|{{{1}}}]]}}
</div>{{#ifeq:{{NAMESPACE}}|{{ns:110}}|{{#if:{{{1|}}}|[[Category:{{{1}}}]]}}}}<noinclude>
</noinclude>

Template:Forumnotice edit

The Forumnotice template can provide a notice at the top of the Index and forum pages to remind users of forum rules, reminders, how-to's etc. In the Forumnotice template, place something like the following:

Please note (your text here). 

* '''Do not''' post ... (your text here)
* Individual topic threads can be put on your watchlist. 
* Enable email notifications in [[Special:Preferences|your preferences]].
* ''View [{{fullurl:Special:Recentchanges|namespace=110&limit=500}} recent changes for all topics in all forums]. Choose [{{fullurl:Special:Recentchanges|namespace=110&limit=500&days=14}} 14], [{{fullurl:Special:Recentchanges|namespace=110&limit=500&days=30}} 30], or [{{fullurl:Special:Recentchanges|namespace=110&limit=500&days=60}} 60] days for older changes.''
* ''You may have to [{{fullurl:{{FULLPAGENAME}}|action=purge}} purge] this page to see changes below.''

Template:Forumsearch edit

This template can be used with the InputBox extension to create a search form on the Forumpage template (to display on all forum pages). In the Forumsearch template, place something like the following:

<div class="inputbox-sidebar">
<inputbox>
type=fulltext
width=40
namespaces=Forum**,Help
searchbuttonlabel=Search
</inputbox>
</div><noinclude>[[Category:Forum templates]][[Category:Search templates]]</noinclude>

Template:Forumpage edit

The Forumpage template can apply the same layout to all forum subtopic pages, including Forumheader, Forumnotice and the input forms used to easily search and create new topics. In the Forumheader template, place something like the following:

{{Forumsearch}}
<div class="inputbox-sidebar">
<inputbox>
buttonlabel=Add new topic
prefix=Forum:
preload=Template:Forumheader/preload
preloadparams[]={{PAGENAME}}
type=create
width=40
</inputbox></div>
{{{1|}}}
{{Forumnotice}}
{| class="forum-table" style="clear: right; width: 100%"
! Topic !! Last edit
<forum>
namespace=Forum
category={{PAGENAME}}
shownamespace=false
addauthor=true
addlasteditor=true
historylink=true
compact=all
timestamp=true
cache=false
</forum>
|}

Template:Forumheader/preload edit

The Forumheader/preload template can be used to create text that appears at the top of the edit mode page of a newly created topic to help new/novice MediaWiki users. In the Forumheader/preload template, place something like the following:

{{Forumheader|$1}}
<!-- Write your message below these instructions (leave the instructions here) -->
<!-- At the end, please sign your message by placing 4 tilde characters in a row: ~~~~ -->
<!-- Replies are added below the post by adding one colon (:) for each indent level at the front of the reply -->
<noinclude>
[[Category:Forum templates]]
[[Category:Preload templates]]
</noinclude>

Create Pages edit

After the templates are created you may now put them to use in pages in the Forum namespace. Create the following pages (Index should be named the same as below but following pages may be adapted).

  • Forum:Index
  • Forum:General Discussion
  • Any other forum sections you would like.

Forum:Index Page edit

This page serves as the forum landing page and index. Create the page and place something like the following:

{{DISPLAYTITLE:Wiki Forum}}
{{Forumheader}}
{{Forumsearch}}
Welcome to the (your site) forums! 
{{Forumnotice}}
{| class="forum-table" style="width: 100%;"
! Forum !! Last Edit
|-
<forum><!-- General Discussion Section -->
namespace=Forum
category=General Discussion
title=Forum:General Discussion
shownamespace=false
addauthor=true
addlasteditor=true
compact=all
timestamp=true
cache=false
</forum><!-- End General Discussion Section -->
<forum><!-- Editing Help Section -->
namespace=Forum
category=Editing Help
title=Forum:Editing Help
shownamespace=false
addauthor=true
addlasteditor=true
compact=all
timestamp=true
cache=false
</forum><!-- Editing Help Section -->
|}
[[Category:Forums]]

Forum:General Discussion (Sub-topic) Page edit

This page serves as the landing page for the General discussion section and lists all threads under this section. Create the page and place something like the following:

{{Forumheader}}
{{Forumpage|This is the place to discuss (your text here)...}}
<!-- Add any other info here -->
[[Category:Forums]]

Note: Include this type of code on any page created in the forum namespace to style it as a subtopic page.

Adding Styles edit

The forum features can then be styled by adding styles in Common.css (and adjusting as needed to suit your theme). The corresponding classes specified above are targeted and styled the below example:

/*---- DPL Forum ----*/
/* Forumheader style */
.forum-header {
	border: 1px solid #aaa; 
	background-color: #cedff2; 
	margin: 0 0 1em; 
	padding: 0 0.5em;
}
/* Forum table outside border */
table.forum-table {
	border: 1px solid lightgrey;
}
/* Forum table cell padding and borders for all table body cells */
table.forum-table > tbody > tr > td {
	border-top: 1px solid lightgrey;
	padding: 8px;
}
/* Forum table background color (show on odd rows) */
table.forum-table > tbody > tr {
	background-color:#fff;
}
/* Forum table background color (shows on even rows) */
table.forum-table > tbody > tr:nth-child(even) {
	background-color:#f5faff;
}
/* Forum table header row background, style and padding */
table.forum-table > tbody > tr > th {
	background-color:#cedff2;
	font-weight:bold;
	padding: 8px;
}

/*-- InputBox --*/
.inputbox-sidebar {
	width: 300px; 
	border: 1px solid lightgrey; 
	clear: right; 
	float: right; 
	margin: 3px; 
	padding:10px;
	margin-left: 2em;
}

I hope that helps new users! TiltedCerebellum (talk) 23:11, 30 July 2019 (UTC)Reply

Copied to the extension page. --Rob Kam (talk) 18:15, 2 June 2020 (UTC)Reply

Feature Request: Sticky topic edit

Please consider adding an option to make a topic sticky. That ability is a very important and widely used forum function and would make this extension even better, thanks! :) TiltedCerebellum (talk) 21:12, 2 August 2019 (UTC)Reply

Who incidentally used person detection? edit

I wander sometime used person cognizance at buxtank ? 102.23.99.14 21:50, 14 October 2022 (UTC)Reply

Return to "DPLforum" page.