hidden username registered users
Posted: 26 Jul 2010, 21:28
I have a question:
I use Phoca Guestbook on a site where the guests have to log on before they can post messages.
now the name is filled in but they can change this.
I want to prevent that. Is it possible to hide the username?
check this topic: viewtopic.php?f=2&t=7212&p=31141&hilit=hide+name#p31141
Now the code with Phoca v1.4.2.=
The code in that topic says it should be like this:
But thats an old code. Could someone adjust this code for me for the new Phoca version?
Thanks
I use Phoca Guestbook on a site where the guests have to log on before they can post messages.
now the name is filled in but they can change this.
I want to prevent that. Is it possible to hide the username?
check this topic: viewtopic.php?f=2&t=7212&p=31141&hilit=hide+name#p31141
Now the code with Phoca v1.4.2.=
Code: Select all
}
if ((int)$this->tmpl['display_name_form'] > 0){
echo '<tr>'
.'<td><strong>'.JText::_('Name').': </strong></td>'
.'<td colspan="3">'
.'<input type="text" name="pgusername" id="pgbusername" value="'.$this->formdata->username .'" size="32" maxlength="100" class="pgbinput" /></td>'
.'</tr>';
}
Code: Select all
<td colspan="3"><input type="hidden" name="pgusername" id="pgbusername" value="<?php echo $this->formdata->username ?>" size="32" maxlength="100" style="border:1px solid #cccccc"/><?php echo $this->formdata->username ?></td>
Thanks