forgot password?


   
 
HowTo Match Up a Forum Entry to a Weblog Entry? 
Posted: 03 June 2008 08:47 PM   [ Ignore ]  
Administrator
Rank
Total Posts:  23
Joined  2008-03-12

Question: How can I match up an already created forum post to an EE entry?

Answer: The first thing you’ll need to know is the thread ID. You can find that ID as the last value in the URL.

In this case, the thread id is 10.

After placing the topic id in the Forum tab, you’ll need to put that same text in the publish form.

Image Attachments
forum_id.png
 Signature 

Shecodes.com

Testing Sig

Profile
 
 
Posted: 25 July 2008 07:01 AM   [ Ignore ]   [ # 1 ]  
Newbie
Rank
Total Posts:  3
Joined  2008-07-25

What variables do you need to include in your template to pull in the forum text into your blog post?

Do you need to copy and paste the first post in the forum into the body of the forum? I’m not sure how to make the topic text appear in the blog.

Profile
 
 
Posted: 25 July 2008 07:05 AM   [ Ignore ]   [ # 2 ]  
Administrator
Rank
Total Posts:  23
Joined  2008-03-12

You’d have to write some sort of exp:query to do this.. there is nothing built in to do this. It’s supposed to be a link to the forum post associated with it.

Basically, you’re using the forum as a replacement for a commenting system, just like you’re doing now.

 Signature 

Shecodes.com

Testing Sig

Profile
 
 
Posted: 25 July 2008 07:11 AM   [ Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  3
Joined  2008-07-25

Thanks for the quick reply. I’m surprised they don’t have something a little more robust for this.

Oh well - good information. Thanks smile

Profile
 
 
Posted: 25 July 2008 07:22 AM   [ Ignore ]   [ # 4 ]  
Newbie
Rank
Total Posts:  3
Joined  2008-07-25

Here is what I came up with for a solution. I put this in my blog template:

{exp:weblog:entries weblog="tips_tricks"}

    {exp
:query sql="SELECT title AS forum_title, body AS forum_body FROM exp_forum_topics WHERE topic_id={forum_topic_id}"}
        {forum_title}
<br />
        
{forum_body}<br /><br />
        
Forum Post: <a href="/index.php/forums/viewthread/{forum_topic_id}/">Click Here</a>
    
{/exp:query}

{
/exp:weblog:entries}

Profile
 
 
Posted: 25 July 2008 07:25 AM   [ Ignore ]   [ # 5 ]  
Administrator
Rank
Total Posts:  23
Joined  2008-03-12

Very cool! Perhaps you’d want to post this over in the EEWiki.

 Signature 

Shecodes.com

Testing Sig

Profile