Latest forum posts?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FatherSebastiaan
    New Member
    • Feb 2007
    • 18
    • 3.0.10+

    [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?
  • steven s
    Senior Member
    • Jul 2004
    • 3722
    • 3.8.x

    #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

    • Dody
      Senior Member
      • Aug 2004
      • 1896
      • 3.8.x

      #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

      • FatherSebastiaan
        New Member
        • Feb 2007
        • 18
        • 3.0.10+

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

        Comment

        • sqzdog
          Member
          • Mar 2005
          • 48

          #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

          • steven s
            Senior Member
            • Jul 2004
            • 3722
            • 3.8.x

            #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

            • FatherSebastiaan
              New Member
              • Feb 2007
              • 18
              • 3.0.10+

              #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

              • AntonLargiader
                Member
                • Dec 2009
                • 87
                • 4.0.0

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