Since the theme is not finalised (unfortunately), i have found 2 issues which took a long time to solve. Both are visible only when you try to install certain plugins that require certain code available by default in bender or modern to work properly
1. Error messages from Backoffice manager do not show
For this you may use as a base the code
<?php osc_enqueue_script('jquery-validate'); ?>
<!DOCTYPE html>
<html dir="ltr" lang="<?php echo str_replace('_', '-', osc_current_user_locale()) ; ?>">
<head>
<?php osc_current_web_theme_path('head.php') ; ?>
<meta name="robots" content="noindex, nofollow" />
<meta name="googlebot" content="noindex, nofollow" />
</head>
<body>
<?php UserForm::js_validation(); ?>
<?php osc_current_web_theme_path('header.php') ; ?>
<div class="content">
<div class="well">
<form class="form-horizontal" name="register" id="register" action="<?php echo osc_base_url(true); ?>" method="post" >
<input type="hidden" name="page" value="register" />
<input type="hidden" name="action" value="register_post" />
<h1><?php _e('Register an account for free', 'twitter') ; ?></h1>
<div class="form-group">
<label class="col-md-3 control-label" for="s_name"><?php _e('Name', 'twitter') ; ?> *</label>
<div class="col-md-8">
<?php UserForm::name_text(); ?>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="s_password"><?php _e('Password', 'twitter') ; ?> *</label>
<div class="col-md-8">
<?php UserForm::password_text(); ?>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="s_password2"><?php _e('Re-type password', 'twitter') ; ?> *</label>
<div class="col-md-8">
<?php UserForm::check_password_text(); ?>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="s_email"><?php _e('E-mail', 'twitter') ; ?> *</label>
<div class="col-md-8">
<?php UserForm::email_text(); ?>
</div>
</div>
<div class="form-group">
<?php osc_run_hook('user_register_form') ; ?>
</div>
<div class="form-group">
<div class="col-sm-4 col-sm-offset-4">
<?php osc_show_recaptcha('register'); ?>
<button class="btn btn-success" type="submit"><?php _e('Register', 'twitter') ; ?></button>
</div>
</div>
<div class="form-group">
<div class="col-sm-7">
<a href="<?php echo osc_recover_user_password_url() ; ?>"><?php _e("Forgot password?", 'twitter') ; ?></a>
</div>
</div>
</form>
</div>
</div>
<nav class="navbar navbar-static-bottom">
<div class="container">
<?php osc_current_web_theme_path('footer.php') ; ?>
</div>
</nav>
</body>
</html>
Mentions:
- the code is row to solve just the issue, you must add css style to adjust it properly
- register.js code is not required anymore because we will use the <?php UserForm: instead and you can compare my code with the one from original theme to see all the changes
- by default, we would have all the errors in a block but i changed that since i do not like it so now, each field will show beneath it's error
- the changes made can be applied in other files that have same issues with messages
- do not change class h1 from <h1><?php _e('Register an account for free', 'twitter') ; ?></h1> because the messages will stop showing - i assume that this is how userform use them
2. In user account, when i accessed pages created by certain plugins like a message plugin i found that the website was changed from twitter into bender (that has several threads on the forum) so in my case i had to create a new file called user-custom.php with the code
<!DOCTYPE html>
<html dir="ltr" lang="<?php echo str_replace('_', '-', osc_current_user_locale()) ; ?>">
<head>
<?php osc_current_web_theme_path('head.php') ; ?>
<meta name="robots" content="noindex, nofollow" />
<meta name="googlebot" content="noindex, nofollow" />
</head>
<body>
<?php osc_current_web_theme_path('header.php') ; ?>
<?php twitter_show_flash_message() ; ?>
<div class="content">
<div class="row">
<div class="col-md-3">
<?php twitter_user_menu() ; ?>
</div>
<div class="col-md-9">
<?php osc_render_file(); ?>
</div>
</div>
</div>
<nav class="navbar navbar-static-bottom">
<div class="container">
<?php osc_current_web_theme_path('footer.php') ; ?>
</div>
</nav>
</body>
</html>
Once i uploaded that file in the theme folder, all pages were fine and required just minor css changes in the plugin to adjust it to the look of twitter.
Like i've said, these are just to solve functionality issues and do require css adjustment from you. Anyway, i hope these will help you.