Displaying recent forum topics in EE template
Posted: 15 May 2008 02:04 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  34
Joined  07-02-2007

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)

Profile
 
 
Posted: 15 May 2008 02:18 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15489
Joined  05-15-2004

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

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 15 May 2008 02:20 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  34
Joined  07-02-2007

<ul>
    
{exp:forum:topic_titles boards="2|3|4" orderby="post_date" sort="desc" limit="7"}
    
<li>
    <
a href="{auto_thread_path}"><b>{last_author}</b> posted on the topic <br />
        <
b style="color:#000">{title}</a></b>
    </
li>
    
{/exp:forum:topic_titles}
</ul>

Profile
 
 
Posted: 15 May 2008 02:24 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15489
Joined  05-15-2004

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

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 15 May 2008 02:30 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  34
Joined  07-02-2007

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

Profile
 
 
Posted: 15 May 2008 02:56 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12433
Joined  04-29-2002

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

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 15 May 2008 03:01 PM   [ Ignore ]   [ # 6 ]  
Grad Student
Rank
Total Posts:  34
Joined  07-02-2007

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! smile

Profile
 
 
Posted: 18 May 2008 09:49 AM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23547
Joined  05-20-2002

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.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 02 June 2008 03:46 PM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32921
Joined  05-14-2004

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!

 Signature 
Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65087 Total Logged-in Users: 38
Total Topics: 82226 Total Anonymous Users: 22
Total Replies: 441924 Total Guests: 216
Total Posts: 524150    
Members ( View Memberlist )