ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Displaying recent forum topics in EE template

May 15, 2008 5:04pm

Subscribe [3]
  • #1 / May 15, 2008 5:04pm

    ewitch

    16 posts

    I am attempting to use the tag {auto_thread_path} as documented here:

    http://expressionengine.com/docs/modules/forum/recent_forum_topics.html#var_auto_thread_path

    But it is leaving out the “viewthread” from the URL, so the URL is invalid. I am getting links that look like this:

    http://www.newwest.net/missoulaforums/32/

    Instead of this:

    http://www.newwest.net/missoulaforums/viewthread/32/

    Is this a bug? I am using EE 1.6.3 and the latest version of Forums (2.1.0)

  • #2 / May 15, 2008 5:18pm

    Ingmar

    29245 posts

    Can you post some more of the template where you’re using it?

  • #3 / May 15, 2008 5:20pm

    ewitch

    16 posts

    
    									
  • #4 / May 15, 2008 5:24pm

    Ingmar

    29245 posts

    As a workaround, does using {thread_path=forums/viewthread} work? I am trying to reproduce this behavior.

  • #5 / May 15, 2008 5:30pm

    ewitch

    16 posts

    Unfortunately no, as I have three different forums I’m drawing from, none of which have “forms” as the path.

  • #6 / May 15, 2008 5:56pm

    Sue Crocker

    26054 posts

    In that case, what if you use {thread_path=missoulaforums/viewthread} ?

  • #7 / May 15, 2008 6:01pm

    ewitch

    16 posts

    That won’t work because I have three different boards: missoulaforums, bozemanforums, and boiseforums.

    I solved the problem by going in and editing mod.forum_core.php—changing this line:

    $FNS->remove_double_slashes($row['board_forum_url'].'/'.$row['topic_id'].'/'),

    to this:

    $FNS->remove_double_slashes($row['board_forum_url'].'/viewthread/'.$row['topic_id'].'/'),

    I’m in a bit of a hurry as we’re going live with a new redesign on Saturday! 😊

  • #8 / May 18, 2008 12:49pm

    Robin Sowell

    13255 posts

    Just a note- I bumped this to the crew for a quick look.  Glad you’ve got it working, but the hack shouldn’t be necessary.  A conditional might be the answer- but I’d just as soon the crew takes a look to be sure.

  • #9 / Jun 02, 2008 6:46pm

    Lisa Wess

    20502 posts

    Hey, ewitch - sorry it’s been so long on a response here.  This is a bug and it’s been reported in the bug tracker.

    You have a hack solution in there now, so are you all set until the fix is rolled out?  Thanks!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases