Announcement

Collapse
No announcement yet.

Recent Forum Posts

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

  • Recent Forum Posts

    I have wordpress as my main site and i want to ouput the:
    Recent Forum Posts

    Onto the wordpress main site into a widget.

    What code do i need to get this?

    Andy
    http://www.eteknix.com/images/misc/vbulletin4_logo.png
    eTeknix.com - http://www.eteknix.com
    eTeknix Forums - http://forums.eteknix.com

  • #2
    This requires a customization, something Jelsoft team can't provide here.
    You can use a php script that parses xml/rss and display it, and turn on feed on your board. Or a php script that queries the db and gets the posts.

    Comment


    • #3
      I tried this but it didn't work -

      <!-- Title -->
      <div id="forum">
      <h2><a href="http://forums.eteknix.com/search.php?$session[sessionurl]do=getnew">Last Active Threads</a></h2>
      <!-- List of today's threads -->
      <script type="text/javascript" src="http://forums.eteknix.com/external.php?forumids=2,32,35,27,3,12,6,30,31&type=js"></script>
      <script language="" type="text/javascript">
      <!--
      for (var x in threads)
      {
      document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"&goto=newpost\"><a href=\"http://forums.eteknix.com/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a>&nbsp;&nbsp;<span class=\"smallfont\">(By: "+threads[x].poster+")</span> <br />;");
      }
      </script>
      </div>
      Outputs as this -

      http://www.eteknix.com/

      Scroll down on the left hand side.

      Any ideas?

      Andy
      Last edited by Blade-uk; Tue 14th Apr '09, 10:25am.
      http://www.eteknix.com/images/misc/vbulletin4_logo.png
      eTeknix.com - http://www.eteknix.com
      eTeknix Forums - http://forums.eteknix.com

      Comment


      • #4
        This bit of code worked:

        <div>
        <!-- List of today's threads -->
        <script type="text/javascript" src="http://forums.eteknix.com/external.php?forumids=2,3,4,5,7,8,9,10,11,13,14,16,17,18,20,23,24,25,27,28,30,31,32,38,39, 46,47,48,49,52,55&type=js"></script>
        <script language="" type="text/javascript">
        <!--
        for (x = 0; x < 10; x++)
        {
        document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"&goto=newpost\"><a href=\"http://forums.eteknix.com/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a>&nbsp;&nbsp;<span class=\"smallfont\">(By: "+threads[x].poster+")</span> <br /><hr noshade>");
        }
        </script>
        </div>
        But a couple of things i need changing.

        At the moment for instance it says:

        plumbing question (By: dukeman)

        Whereas i want it to say:

        plumbing question
        Excerpt from the last post
        by dukeman(link to his profile)

        Any ideas how i'd do that?

        Although ideally i'd like to it show the latest posts, not threads.

        Andy

        Andy
        Last edited by Blade-uk; Tue 14th Apr '09, 10:57am.
        http://www.eteknix.com/images/misc/vbulletin4_logo.png
        eTeknix.com - http://www.eteknix.com
        eTeknix Forums - http://forums.eteknix.com

        Comment

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