MyBB Community Forums

Full Version: Condition and vbnavbar for 1.4.14
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12
great job men!!!

i have a little issue, in mybb 1.4.6 the cpanel popup don't work, when you press the cpanel link to open the popup just guide you directly to the user cpanel without the popup Toungue
@Azagthoth: Thanks for your kind comment. With regards to your problem, by "cpanel", you do mean the "User CP"?

Is it possible to see your installation in action please?

It seems to be working fine for me with a local installation of 1.4.6, and usually this problem would occur if one of the modifications have not been made or the necessary files have not been uploaded/included correctly.

p/s: Hopefully it will work seamlessly with BlackBB 4.0 Smile
jeje let me re upload again the files and make the code modification again an i tell if have the same error Smile

thanks for your answer, salutes
ok, here is my installion, the same problem

http://www.planetamacabro.co.cc/index.php
Can I just say I saw no point for the modification to stay on the registration page I've noticed on some VB you dont even get the nav let alone the login bit. So I opened registration templates removed {$header} and then copied the bits I need like <div id="logo"> and added them all to the registration templates, Voila! I can register on IE with ease! No problem and it looks nice.

May be idea to add to main Post?

Member Templates / member_register
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->registration}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/validator.js"></script>
</head>
<body>
<script language="Javascript" type="text/javascript">
var newpm_prompt = "{$lang->newpm_prompt}";
var quickdelete_confirm = "{$lang->quickdelete_confirm}";
</script>

<div id="container">
<a name="top"id="top"></a>
<div id="header">
<div class="logo" style="background:#fff url('$theme[imgdir]/logobg.gif');"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" border="0" /></a></div>
<br />


<table cellpadding="5" cellspacing="0" border="0" width="100%" class="tvbnav" align="center">
<tr>
<td class="tcat" align="center">{$welcomeblock}</td>
<td class="tcat" align="center"><a href="{$mybb->settings['bburl']}/index.php"><strong>Index</strong></a></td>

<td class="tcat" align="center">
<a href="{$mybb->settings['bburl']}/search.php" id="search" onclick="return openMenu(this)" class="popup_button">{$lang->toplinks_search}<img src="images/popup_down.gif" border="0" /></a></td>

<td class="tcat" align="center"><a href="{$mybb->settings['bburl']}/memberlist.php"><strong>{$lang->toplinks_memberlist}</strong></a></td>
<td class="tcat" align="center"><a href="{$mybb->settings['bburl']}/calendar.php"><strong>{$lang->toplinks_calendar}</strong></a></td>
<td class="tcat" align="center"><a href="{$mybb->settings['bburl']}/misc.php?action=help"><strong>{$lang->toplinks_help}</strong></a></td>
$admincplink
$modcplink
<if condition=$mybb->user['uid']> 0 <then>
<td class="tcat" align="center"> <a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}"><strong>$lang->welcome_logout</strong></a></td><else /></if>
</tr></table>


<hr class="hidden" />
</div>
<hr class="hidden" />
<div id="content">
            {$pm_notice}
            {$bannedwarning}
            {$bbclosedwarning}
            {$unreadreports}


<!-- header quick search form -->
<div class="menupop" id="search-popup" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="tcat">Search</td>
</tr>
<tr>
<td class="row">

<form method="post" action="$settings[bburl]/search.php">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="postthread" value="1" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="showresults" value="threads" />
<input type="text" name="keywords" value="" />
$gobutton
</form>
</td>
</tr>
<tr>
<td class="menu_row"><a href="search.php">Advanced Search</a></td>
</tr>
</table>
</div>

<!-- / header quick search form -->
<br />
<br />
<form action="member.php" method="post" id="registration_form"><input type="text" style="visibility: hidden;" value="" name="regcheck1" /><input type="text" style="visibility: hidden;" value="true" name="regcheck2" />
{$regerrors}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->registration}</strong></td>
</tr>
<tr>
<td width="50%" class="trow1" valign="top">
<fieldset class="trow2">
<legend><strong>{$lang->account_details}</strong></legend>
<table cellspacing="0" cellpadding="{$theme['tablespace']}" width="100%">
<tr>
<td colspan="2"><span class="smalltext"><label for="username">{$lang->username}</label></span></td>
</tr>
<tr>
<td colspan="2"><input type="text" class="textbox" name="username" id="username" style="width: 100%" value="{$username}" /></td>
</tr>
{$passboxes}
<tr>
<td><span class="smalltext"><label for="email">{$lang->email}</label></span></td>
<td><span class="smalltext"><label for="email2">{$lang->confirm_email}</label></span></td>
</tr>
<tr>
<td><input type="text" class="textbox" name="email" id="email" style="width: 100%" maxlength="50" value="{$email}" /></td>
<td><input type="text" class="textbox" name="email2" id="email2" style="width: 100%" maxlength="50" value="{$email2}" /></td>
</tr>
<tr>
	<td colspan="2" style="display: none;" id="email_status">&nbsp;</td>
</tr>
</table>
</fieldset>
{$requiredfields}
{$referrer}
{$regimage}
</td>
<td width="50%" class="trow1" valign="top">
<fieldset class="trow2">
<legend><strong>{$lang->account_prefs}</strong></legend>
<table cellspacing="0" cellpadding="{$theme['tablespace']}" width="100%">
<tr>
<td valign="top" width="1"><input type="checkbox" class="checkbox" name="allownotices" id="allownotices" value="1" {$allownoticescheck} /></td>
<td valign="top"><span class="smalltext"><label for="allownotices">{$lang->allow_notices}</label></span></td>
</tr>
<tr>
<td valign="top" width="1"><input type="checkbox" class="checkbox" name="hideemail" id="hideemail" value="1" {$hideemailcheck} /></td>
<td valign="top"><span class="smalltext"><label for="hideemail">{$lang->hide_email}</label></span></td>
</tr>
<tr>
<td valign="top" width="1"><input type="checkbox" class="checkbox" name="receivepms" id="receivepms" value="1" {$receivepmscheck} /></td>
<td valign="top"><span class="smalltext"><label for="receivepms">{$lang->receive_pms}</label></span></td>
</tr>
<tr>
<td valign="top" width="1"><input type="checkbox" class="checkbox" name="pmnotice" id="pmnotice" value="1"{$pmnoticecheck} /></td>
<td valign="top"><span class="smalltext"><label for="pmnotice">{$lang->pm_notice}</label></span></td>
</tr>
<tr>
<td valign="top" width="1"><input type="checkbox" class="checkbox" name="emailpmnotify" id="emailpmnotify" value="1" {$emailpmnotifycheck} /></td>
<td valign="top"><span class="smalltext"><label for="emailpmnotify">{$lang->email_notify_newpm}</label></span></td>
</tr>
<tr>
<td valign="top" width="1"><input type="checkbox" class="checkbox" name="invisible" id="invisible" value="1" {$invisiblecheck} /></td>
<td valign="top"><span class="smalltext"><label for="invisible">{$lang->invisible_mode}</label></span></td>
</tr>
<tr>
<td colspan="2"><span class="smalltext"><label for="subscriptionmethod">{$lang->subscription_method}</label></span></td>
</tr>
<tr>
<td colspan="2">
	<select name="subscriptionmethod" id="subscriptionmethod">
		<option value="0" {$no_subscribe_selected}>{$lang->no_auto_subscribe}</option>
		<option value="1" {$no_email_subscribe_selected}>{$lang->no_email_subscribe}</option>
		<option value="2" {$instant_email_subscribe_selected}>{$lang->instant_email_subscribe}</option>
	</select>
</td>
</tr>

</table>
</fieldset>
<br />
<fieldset class="trow2">
<legend><strong><label for="timezone">{$lang->time_offset}</label></strong></legend>
<table cellspacing="0" cellpadding="{$theme['tablespace']}" width="100%">
<tr>
<td><span class="smalltext">{$lang->time_offset_desc}</span></td>
</tr>
<tr>
<td>{$tzselect}</td>
</tr>
<tr>
<td><span class="smalltext">{$lang->dst_correction}</span></td>
</tr>
<tr>
<td>
	<select name="dstcorrection">
		<option value="2" {$dst_auto_selected}>{$lang->dst_correction_auto}</option>
		<option value="1" {$dst_enabled_selected}>{$lang->dst_correction_enabled}</option>
		<option value="0" {$dst_disabled_selected}>{$lang->dst_correction_disabled}</option>
	</select>
</td>
</tr>
</table>
</fieldset>
<br />
<fieldset class="trow2">
<legend><strong><label for="language">{$lang->lang_select}</label></strong></legend>
<table cellspacing="0" cellpadding="{$theme['tablespace']}" width="100%">
<tr>
<td colspan="2"><span class="smalltext">{$lang->lang_select_desc}</span></td>
</tr>
<tr>
<td><select name="language" id="language"><option value="">{$lang->lang_select_default}</option><option value="">-----------</option>{$langoptions}</select></td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
<br />
<div align="center">
<input type="hidden" name="step" value="registration" />
<input type="hidden" name="action" value="do_register" />
<input type="submit" class="button" name="regsubmit" value="{$lang->submit_registration}" />
</div>
</form>
<script type="text/javascript">
<!--
	regValidator = new FormValidator('registration_form');
	regValidator.register('username', 'notEmpty', {failure_message:'{$lang->js_validator_no_username}'});
    regValidator.register('email', 'regexp', {match_field:'email2', regexp:'^([a-zA-Z0-9_\\.\\+\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$', failure_message:'{$lang->js_validator_invalid_email}'});
	regValidator.register('email2', 'matches', {match_field:'email', status_field:'email_status', failure_message:'{$lang->js_validator_email_match}'});
{$validator_extra}
	regValidator.register('username', 'ajax', {url:'xmlhttp.php?action=username_availability', loading_message:'{$lang->js_validator_checking_username}'}); // needs to be last
// -->
</script>
{$footer}
</body>
</html>
(2009-05-12, 04:10 PM)Azagthoth Wrote: [ -> ]ok, here is my installion, the same problem

http://www.planetamacabro.co.cc/index.php

@Azagthoth: Thanks for providing the link. It seems that some of the Javascript has been copied over with white spaces. Do you think you could try the template edits again but this time, instead of copying/pasting directly from the forums, first copy the code to a blank Notepad document, then paste into your MyBB template editor - that should help get rid of any white spaces.

@Hapatio: Thanks for your input. I will try this out on my local installation and see how it goes Wink
ok i will try it

thanks for your answers

salutes!!
Hey can someone tell me the code for the drop down menu ONLY? And where to place?
The same as vBulletin please! (the structure, I'll write my own contents of course)
I did everything that the original post said to, and I got the following errors:

With Logo:
[Image: qq505k.jpg]

Without Logo:


[Image: 30skiog.jpg]



I copied and pasted every inch of the codes with no addition or subtraction (or division or multiplication for that matter) and yet I have no idea whats up =/
@favouz: Thanks for your question. The drop down content code is in the header part of the edits.

@Elegant Totality: Thanks for your feedback. I think, logo wise, it does require some editing of the CSS code of your MyBB theme. This is because your logo is 720 x 160px (or 160px in height), but the CSS defines that your logo class div (or .logo in the CSS file) is only 80px in height.

.logo {
	width: 250px;
	height: 80px;
	position: absolute;
	margin-top: 15px;
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 0;
}

Perhaps you could try adjusting the height value (to 160px) and see if it helps?

And for the 'missing' column on the right, it's related to forumbit_depth2_forum (the edits for this modification) and your original theme's forumbit_depth1_cat. As I'm a little short of time at the moment, I'll write back later on today.

New edit
Now that I'm back at home again Toungue The issue here seems to be that your MyBB theme (BlackEvo?) does not seem to have a 'column' setup to show the icons for 'new posts' (this is the first column)

The easiest fix would probably be to take out this part in forumbit_depth2_forum unless you would like to edit your theme to include this function.

The bit to take out is:
<td class="{$bgcolor}" align="center" valign="middle" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
(or the code between the first set of <tds>.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12