Jump to the post that solved this thread.
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 11 Years, 7 Months ago Disable Signatures for Guests (IF statement inside templates)
#10
Solved: 11 Years, 7 Months ago
This user has been denied support. This user has been denied support.
(2011-09-02, 03:47 PM)Everett777 Wrote:
(2011-09-02, 03:40 PM)Glas Wrote: sorry for necroposting
but i did this
and iget this error


Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /global.php(359) : eval()'d code on line 2

you have to download the plugin.

i did and even installed


anyway
i've answered myself

this is the fix:

<if $mybb->user['usergroup'] == 1 then>
blah
</if>

(2011-09-02, 03:58 PM)Yaldaram Wrote: It should be like this Sama;
<if $mybb->user['usergroup'] == "1" then>
// Guests can see this thingy
<else>
{$post['signature']}
</if>

Note the $mybb->user['usergroup']

yaldaram, the error is not anymore

but after login the form is still there

website: http://www.beatdj.net/foros/index.php

<if $mybb->user['usergroup'] == "1" then>
<form action='member.php' method='post'>
<font color="FFFFFF">Usuario: </font><input type='text' name='username' size='9' maxlength='30' />
<text="FFFFFF">ContraseƱa: </text> <input type='password' name='password' size='9' />
<input type='hidden' name='action' value='do_login'>
<input type='hidden' name='url' value='index.php' />
<input type='submit' class='submit' name='submit' value='Conectar' /></form>
<else>
lol prueba // test
</if>

Logged: http://img402.imageshack.us/img402/2121/loggd.png
unlogged: http://img853.imageshack.us/img853/584/unloggd.png
Jump to the post that solved this thread.


Messages In This Thread
RE: Disable Signatures for Guests (IF statement inside templates) - by Glas - 2011-09-02, 04:07 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)