"New Topic" and "reply" buttons visible to guests?

Started by James Z., January 23, 2007, 06:00:34 PM

Previous topic - Next topic

James Z.

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?...  ::)

codenaught

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']),
Dev Consultant
Former SMF Doc Coordinator


Advertisement: