How do I set up the latest forum posts on the right side of the page for the CMS and the forums like I see on many forums including this one?
Latest forum posts?
Collapse
X
-
-
You need to create a forum block under forums & moderators in your admin cp.
Also need to enable the function in Settings --> Option
It's been written up several times....steven
www.318ti.org (vB3.8) | www.nccbmwcca.org (vB4.2)
bmwcca.org/forum | m135i.net
"I tried to clean this up but this thread is beyond redemption." - Steve Machol
-
-
There are settings for each widget under the widget control panel. You will click configure after you create it. In this one, you will select which forums you want to pull info from. Unfortunately, it will not pull in any previous posts prior to your upgrade. At least it didn't for me.
After you configure it, you go to layout manager, click edit, then point it to the column where you want it to appear. You can actually drag the widget around.
Hope this helps. I am still learning this, but I think after I get the hang of it, it won't be so bad.
Merry ChristmasComment
-
Forum blocks and CMS widgets are set up differently....steven
www.318ti.org (vB3.8) | www.nccbmwcca.org (vB4.2)
bmwcca.org/forum | m135i.net
"I tried to clean this up but this thread is beyond redemption." - Steve Machol
Comment
-
Yes I noticed the CMS widgets are set up differently, however my concern is how do you set up recent posts on the forums. It seems the Layout manager is only for the CMS not the forum.Comment
-
The functionality works just like it did in 3.x. You insert a block of JS into the page where you want the forum posts to appear. For instance:
Code:<script type="text/javascript" src="/forum/external.php?type=js"></script> <b>Last 6 Threads :</b><br> <script type="text/javascript"> <!-- var max = 10; if(threads.length < max) max = threads.length; for(x = 0; x < 6; x++) { document.writeln("<a href=\"/forum/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Posted By: "+threads[x].poster+")<br />"); } //--> </script>
Code:<script type="text/javascript" src="/forum/external.php?forumids=1,2&type=js"></script>
Of course it would be nice if the 4.0 manual described this, but it doesn't. Oh wait, there isn't a 4.0 manual. Never mind.
It should be possible to do this without JS. Maybe just in php? Don't know.My VB forum: BMWRAComment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment