Announcement

Collapse
No announcement yet.

Latest forum posts?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Latest forum posts?

    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?

  • #2
    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

    Comment


    • #3
      admincp -> cms -> widgets -> general search -> forum posts
      edit your layout and add the new widget you just have created
      while(true){
      if(
      $someone->needsHelp() && $i->canHelp()) $post->help();
      if(
      $i->findBug()) $post->bug();
      }

      Comment


      • #4
        I just set up the block., but Sorry to be a moron but where in Settings ----> Option?

        Comment


        • #5
          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 Christmas

          Comment


          • #6
            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


            • #7
              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


              • #8
                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>
                That pulls out the 6 most recent threads. Now you're supposed to be able to limit the search to specific forums by saying:
                Code:
                <script type="text/javascript" src="/forum/external.php?forumids=1,2&type=js"></script>
                ... but that isn't working for me.

                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: BMWRA

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...
                X