- Joined
- Dec 5, 2012
- Messages
- 106
- Reaction score
- 14
This is a tutorial how to add Motto form in RevCMS.
Class.users.php
Register.php
Comments below if you have something to ask.
Class.users.php
First : Open " app/class.users.php "
Search " $this->addUser " You will get something like this
Search something like this
Note the motto variable could not be the same as above , they maybe not the same.
Replace
To " $template->form->motto "
Search " $this->addUser " You will get something like this
Search something like this
Code:
" $_CONFIG['motto'] " OR " $_CONFIG['hotel']['motto'] " OR " $_CONFIG['user_motto'] "
Note the motto variable could not be the same as above , they maybe not the same.
Replace
Code:
" $_CONFIG['motto'] " OR " $_CONFIG['hotel']['motto'] " OR " $_CONFIG['user_motto'] "
Register.php
Open " app/tpl/%skin%/register.php "
Scroll down a bit and find the last form , dont ask me what is the last form.Like me the last form was Email form . Paste this code below the code </div>
Now it look like this :
Scroll down a bit and find the last form , dont ask me what is the last form.Like me the last form was Email form . Paste this code below the code </div>
Code:
<div class="field">
<label for="email"><b>Motto</b></label>
<input type="text" id="motto" size="35" name="motto" value="<?php echo $template->form->motto; ?>" class="text-field" maxlength="48">
</div>
Now it look like this :
Comments below if you have something to ask.
Last edited:

