Advertisement:

Author Topic: contactform 1.0 only for users logged in  (Read 2960 times)

Offline Kirschnik

  • Semi-Newbie
  • *
  • Posts: 23
contactform 1.0 only for users logged in
« on: April 03, 2008, 09:40:11 AM »
Hi Community,

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

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

Thx a lot

Offline !Hachi!

  • SMF Hero
  • ******
  • Posts: 1,666
  • Gender: Male
    • pakurdu.net
Re: contactform 1.0 only for users logged in
« Reply #1 on: April 03, 2008, 10:00:48 AM »
did you tried in mod's thread?
Happy Ramadan

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,282
  • Gender: Male
    • Kindred-999 on GitHub
Re: contactform 1.0 only for users logged in
« Reply #2 on: April 03, 2008, 10:55:04 AM »
more specifically:   Please ask mod specific questions in the thread dedicated to that mod.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline metallica48423

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,842
  • Gender: Male
  • Professional Multislacker!
    • Zentendo
Re: contactform 1.0 only for users logged in
« Reply #3 on: April 03, 2008, 03:08:04 PM »
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']
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

Quote
Microsoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"

Useful Links:
Online Manual!
How to Help us Help you   
Search
Settings Repair Tool