vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   $navbar add? (https://vborg.vbsupport.ru/showthread.php?t=200016)

Pcwolfx? 12-28-2008 08:31 PM

$navbar add?
 
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:
PHP Code:

eval('$header = "' fetch_template('header') . '";'); 

After add:
PHP Code:

eval('$navbar = "' fetch_template('navbar') . '";'); 

Not tested...


Regards..

Pcwolfx? 12-29-2008 08:12 AM

Quote:

Originally Posted by Stickers (Post 1696217)
Open up global.php
Find:
PHP Code:

eval('$header = "' fetch_template('header') . '";'); 

After add:
PHP Code:

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

Quote:

Originally Posted by Opserty (Post 1696259)
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/showthrea...ghlight=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

Quote:

Originally Posted by Lynne (Post 1696524)
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 [DATE]1230592246[/DATE] at [TIME]1230592246[/TIME] ---------------

Quote:

Originally Posted by Lynne (Post 1696545)
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

Code:

$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

Quote:

Originally Posted by pein87 (Post 1696861)
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
PHP Code:

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

Add $navbar in your register template

Pcwolfx? 12-31-2008 08:02 PM

Quote:

Originally Posted by Digitalus (Post 1697783)
What you also can do is this..

Add a new product

Hook location: register_start
PHP Code:

$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

Quote:

Originally Posted by Dismounted (Post 1698301)
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....17&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 ??


All times are GMT. The time now is 02:08 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01991 seconds
  • Memory Usage 1,792KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete