By Patrick Kidney on Tuesday, 30 September 2014
Likes 0
Views 1.1K
Votes 0
Hey StackIdeas!

I am trying to make my easydiscuss so that everyone (including guests) can see all of the questions/first posts but you need to sign in or create an account to view the answers/the rest of the posts.

Does EasyDiscuss have settings to achieve this?

The reason I would like to do this is to allow search engines to index my EasyDiscuss content, but i still want to encourage users to register.

Thank you for your time and great products.
Hello Patrick,

Unfortunately there's no such settings currently but I have added some tweaks in the file /components/com_easydiscuss/themes/simplistic/post.php at line 57,


<?php if ($system->my->guest) { ?>

<?php } else { ?>
<?php if( $answer ){ ?>
<div class="discuss-answer discussAnswer">
<a name="answer"></a>
<?php echo $this->loadTemplate( 'post.reply.item.php' , array( 'question' => $post, 'post' => $answer ) ); ?>
</div>
<?php } ?>
<?php } ?>


You just need to fill in the first "if" statement with your html codes for guests.
·
Tuesday, 30 September 2014 00:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Amazing Mark! Such speedy, perfect and simple answer!

I feel like others would be interesting in these kinds of settings for SEO. Many of the major sites out there use this method.

Thank you!
·
Tuesday, 30 September 2014 01:10
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Patrick
·
Tuesday, 30 September 2014 01:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post