SMF Support > SMF 2.0.x Support

contactform 1.0 only for users logged in

(1/1)

Kirschnik:
Hi Community,

What do i have to change to get the contactform mod 1.0 working only for users logged in?


--- Code: --- 'contact' => array(
'title' => $txt['contact'],
'href' => $scripturl . '?action=contact',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => true,
),
--- End code ---

Thx a lot

!Hachi!:
did you tried in mod's thread?

Kindred:
more specifically:   Please ask mod specific questions in the thread dedicated to that mod.

metallica48423:
Kindred is correct, mod based queries should be asked in the indivudal mod's thread.

try changing $user_info['is_guest'] to either $context['user']['is_logged'] OR $user_info['is_logged']

Navigation

[0] Message Index

Go to full version