PDA

View Full Version : $navbar add?


Pcwolfx?
12-28-2008, 08:31 PM
i add $navbar code in register templates but not working. how do i? how i can working $navbar code in register templates.

Lynne
12-28-2008, 11:18 PM
do a search on "navbar" in "all mods" "titles only" and you should find a modification for adding the navbar to your registration page.

RTMdotORG
12-28-2008, 11:33 PM
or copy whats in your navbar template and add it to your registration template...

Pcwolfx?
12-29-2008, 06:23 AM
i edit global.php done all register templates. but not working $navbar codes in STANDARD_ERROR templates only. How do i ?

Stickers
12-29-2008, 08:02 AM
Open up global.php
Find:eval('$header = "' . fetch_template('header') . '";');

After add: eval('$navbar = "' . fetch_template('navbar') . '";');


Not tested...


Regards..

Pcwolfx?
12-29-2008, 08:12 AM
Open up global.php
Find:eval('$header = "' . fetch_template('header') . '";');

After add: eval('$navbar = "' . fetch_template('navbar') . '";');


Not tested...


Regards..

i done but not working in STANDARD_ERROR template.

Opserty
12-29-2008, 09:27 AM
Please follow the advice given in the 2nd post. (The one by Lynne)

Pcwolfx?
12-29-2008, 11:19 AM
Please follow the advice given in the 2nd post. (The one by Lynne)

i couldn't found. please link ?

i done this link but not working STANDARD_ERROR teplate.
https://vborg.vbsupport.ru/showthread.php?t=195549&highlight=navbar

Lynne
12-29-2008, 04:44 PM
Did you also add $navbar under $header in your registration template (along with what is posted in post 5)?

Pcwolfx?
12-29-2008, 04:45 PM
Did you also add $navbar under $header in your registration template (along with what is posted in post 5)?

yes i added. but not working in STANDARD_ERROR ??

Lynne
12-29-2008, 05:03 PM
STANDARD_ERROR is also a template. Did you add it in there too? (There is even a condition around the navbar template in that template - you may want to remove that.)

pein87
12-29-2008, 08:37 PM
You might wont to open the nav bar templeate and only copy what you need from it and then make a new plugin with a new template and name it $navreg and thne import that porduct and add the $navreg to it.

Pcwolfx?
12-29-2008, 09:01 PM
STANDARD_ERROR in code <if condition="$navbar">
$navbar
<else />
<br /><br /><br />
</if>

but not view :(

--------------- Added 1230592246 at 1230592246 ---------------

STANDARD_ERROR is also a template. Did you add it in there too? (There is even a condition around the navbar template in that template - you may want to remove that.)


my STANDARD_ERROR template

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<if condition="$show['search_noindex']"><meta name="robots" content="noindex,follow" /></if>
$headinclude
<title>$pagetitle</title>
$headinsert
</head>
<body>
$header
$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center">
<tr>
<td class="tcat">$vbphrase[vbulletin_message]</td>
</tr>
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">

<if condition="$show['permission_error']">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<input type="hidden" name="do" value="login" />
<input type="hidden" name="url" value="$scriptpath" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
$postvars

<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

<!-- permission error message - user not logged in -->


<div class="smallfont">$vbphrase[not_logged_no_permission]</div>

<ol>
<li class="smallfont">$vbphrase[not_logged_in_fill_in_form]</li>
<li class="smallfont">$vbphrase[may_not_have_sufficient_privileges]</li>
<li class="smallfont">$vbphrase[administrator_may_disabled_account]</li>
</ol>

<fieldset class="fieldset">
<legend>$vbphrase[log_in]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" align="center">
<tr>
<td>$vbphrase[username]:<br /><input type="text" class="bginput" name="vb_login_username" size="50" accesskey="u" tabindex="1" /></td>
</tr>
<tr>
<td>$vbphrase[password]:<br /><input type="password" class="bginput" name="vb_login_password" size="50" tabindex="1" /></td>
</tr>
<tr>
<td>
<span style="float:$stylevar[right]"><a href="login.php?$session[sessionurl]do=lostpw">$vbphrase[forgotten_your_password]</a></span>
<label for="cb_cookieuser"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" />$vbphrase[remember_me]</label>
</td>
</tr>
<tr>
<td align="$stylevar[right]">
<input type="submit" class="button" value="$vbphrase[log_in]" accesskey="s" tabindex="1" />
<input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" tabindex="1" />
</td>
</tr>
</table>
</fieldset>

<div class="smallfont"><phrase 1="register.php?$session[sessionurl]do=signup">$vbphrase[admin_required_register]</phrase></div>
</form>

<!-- / permission error message - user not logged in -->
<else />
<!-- main error message -->


<div style="margin: 10px">$errormessage</div>


<!-- / main error message -->
</if>

</div>
</div>
<!--
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" value="$vbphrase[go_back]" accesskey="s" onclick="history.back(1); return false" />
</div>
-->
</td>
</tr>
</table>

<br />

<if condition="!$show['enableforumjump']">
<!-- forum jump -->
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td>$forumjump</td>
</tr>
</table>
<!-- / forum jump -->
</if>

<br />

$footer

</body>
</html>

pein87
12-30-2008, 12:10 AM
I`ll see what i can do for you with what you`ve shown here and also i`ll need to know the version your using aswell.

Pcwolfx?
12-30-2008, 05:51 AM
I`ll see what i can do for you with what you`ve shown here and also i`ll need to know the version your using aswell.

myversion is 3.7.4 PL1. i realize when i come http://xxx.com/register.php?do=addmember
navbar dont view. but when register.php?do=checkdate, register.php?do=register navbar view.

Digitalus
12-31-2008, 11:26 AM
What you also can do is this..

Add a new product

Hook location: register_start
$navbits = construct_navbits(array('' => 'Register'));
eval('$navbar = "' . fetch_template('navbar') . '";');

Add $navbar in your register template

Pcwolfx?
12-31-2008, 08:02 PM
What you also can do is this..

Add a new product

Hook location: register_start
$navbits = construct_navbits(array('' => 'Register'));
eval('$navbar = "' . fetch_template('navbar') . '";');

Add $navbar in your register template

i try 3.7 but not done :(

Dismounted
01-01-2009, 03:23 AM
The navbar is intentionally disabled during registration (and errors, and logouts). Is there any specific reason why you need it?

Pcwolfx?
01-01-2009, 07:58 AM
The navbar is intentionally disabled during registration (and errors, and logouts). Is there any specific reason why you need it?

i want see navbar in register all steps. register steps total 3.
register.php, register.php?do=register, register.php?do=addmember. i try this https://vborg.vbsupport.ru/showpost.php?p=1696217&postcount=5 and navbar see register.php, register.php?do=register but not see this step ==> register.php?do=addmember in vbulletin version 3.7.4

Pcwolfx?
01-03-2009, 07:30 AM
how can i do ??