Is there any way to specify a single forum to display w/ the forum tag? - Another Web Company
ArcadeDownloadsNewslettersForum MenuNavigationWhat AWC OffersWiki ToolsLogin or Create Account

Log in

You must have cookies enabled to log in to Main Site - Local.

 

Is there any way to specify a single forum to display w/ the forum tag?

From Another Web Company

Viewed 539 times, With a total of 4 Posts
Have a suggestion, improvement, change or non-beta Forum Entension bug ? Please add them to the todo list

2.5.12 Update Release


Just Got Here
Wiki Edit 0
Threads 1
Posts 1
Hi,

I've installed the forum extension and really like it so far. But I've run into a problem with displaying forums within Wiki pages. The documentation says that you can specify which forums will appear when you use the forum tag on a wiki page, but I'd ideally like different forums to appear within different wiki pages.

A simple example would be if I had a site about video games and a separate forum for each system (PS2, Xbox, etc.) In the wiki portion, if the page was about an Xbox game, I'd only like the forum tag there to show posts from the Xbox forum. Make sense?

Would this be easy to add?
Edited On 10:35:21 PM - Friday 17th, September 2010 by AWC

Forum Vet
Wiki Edit 2995
Threads 153
Posts 1524
Understood.
Right now no, sorry.
I will look over the code in the next few days and post a file edit which might be helpful to you.
It is not a hard thing to do, but i did not want to give the "Normal" user the ability to make a wiki page a select any forum section they wanted with out the admin having control.

Notes to myself...
Use an Id attribute in the tag which checks the ids the admin sets in the AdminCP.
If no ID in tag, display like normal
If ID is there, check against ID Admin have saved
Myabe add anew Admin cf to desinate which forum sections can be added to the forum tag.

_
~ What was once an opinion, became a fact, to be later proven wrong ~
  • Forum Ver. 2.5.12 has been released (05/05/2011), Download here.


Forum Vet
Wiki Edit 2995
Threads 153
Posts 1524
Heres a quick edit which will work, but there is no checking being done, so anyone can select any forum section.

.....

New usage:
<forum_info id=#></forum_info>

I do not know if this change will be permanent, but there will be a new option like this in the next release, the change will use the following tag format <forum_info id=#></forum_info> but the php code will probably change.


EDIT
Use the following:
<forum_info id=#></forum_info>

_
Edited On 11:57:27 PM - Monday 06th, September 2010 by AWC

Clicked A Few Times
Wiki Edit 0
Threads 3
Posts 14
Actually, when I hit that <forum_info id=#></forum_info> into a page, it already works with no modification to the forum_tags.php file! It even includes the forum link above the table.

Forum Vet
Wiki Edit 2995
Threads 153
Posts 1524
opps...
Some times we just forget what we have done.

Thanks Merri.

_


Forum >> AWC`s MediaWiki Extension`s >> AWC's MediaWiki Forum Extension



Who's here now Members 0 Guests 0 Bots/Crawler 0


AWC's: 2.6.0 MediaWiki - Stand Alone Forum Extension
Forum theme style by: AWC