Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: James Z. on January 23, 2007, 06:00:34 PM

Title: "New Topic" and "reply" buttons visible to guests?
Post by: James Z. on January 23, 2007, 06:00:34 PM
I want guests to be able to see and click on the "New topic" and "reply" button
but instead of seeing the dialog box, pressing these buttons would send them to
the register page - is this possible some how?...  ::)
Title: Re: "New Topic" and "reply" buttons visible to guests?
Post by: codenaught on January 23, 2007, 06:13:33 PM
Open Themes/theme_name/MessageIndex.template.php

Find:

'new_topic' => array('test' => 'can_post_new', 'text' => 'smf258', 'image' => 'new_topic.gif', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0'),

Change to:

'new_topic' => array('text' => 'smf258', 'image' => 'new_topic.gif', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0'),

Open Themes/theme_name/Display.template.php.

Find:

'reply' => array('test' => 'can_reply', 'text' => 146, 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']),

Change to:

'reply' => array('text' => 146, 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']),
Title: Re: "New Topic" and "reply" buttons visible to guests?
Post by: James Z. on January 23, 2007, 08:28:59 PM
Beutiful..! thanks  ;)