vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Question for the vB[3.5.1].Invites.System. (https://vborg.vbsupport.ru/showthread.php?t=122250)

neverstudy 07-27-2006 12:21 AM

Question for the vB[3.5.1].Invites.System.
 
I currently have the style Smartblue, and am trying to install the vB[3.5.1].Invites.System. However, I am stuck at the part in the readme where it says:

In template(s) navbar
FIND
Code:

<if condition="$show['registerbutton']">
REPLACE WITH
Code:

<if condition="$show['registerbutton'] AND !$vboptions['invites_reg_only_by_invite']">
Where can I find that. I dont seem to see it.
Here is the code for navbar for Smartblue:
Code:

<script type="text/javascript" language="JavaScript">
<!--
function log_out()
{
  // You can change 30 and 0.3 to suit your 'tastes' :)
  bo = document.getElementsByTagName('body');
  bo[0].style.filter = 'Alpha(opacity="30")';
  bo[0].style.MozOpacity = '0.3';
  bo[0].style.opacity = '0.3';

  if (confirm('$vbphrase[sure_you_want_to_log_out]'))
  {
    return true;
  }
  else
  {
    bo[0].style.filter = 'Alpha(opacity="100")';
    bo[0].style.MozOpacity = '1';
    bo[0].style.opacity = '1';

    return false;
  }
}
//-->
</script>
<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="page" width="100%">
                <if condition="is_array($navbits)">
                        <table cellpadding="0" cellspacing="0" border="0">
                        <tr valign="bottom">
                                <td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
                                <td>&nbsp;</td>
                                <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
                        </tr>
                        <tr>
                                <td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
                        </tr>
                        </table>                       
                <else />
                        <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
                </if>
        </td>       
       
        <if condition="$show['member']">
       
                <td class="page" valign="top" nowrap="nowrap">
                <div class="smallfont">
                        <strong><phrase 1="<a style='text-decoration: none' href='member.php?u=$bbuserinfo[userid]'>$bbuserinfo[username]</a>">$vbphrase[welcome_x]</phrase></strong><br />
                        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
                        <if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
                </div>
                </td>
               
        <else />
               
                <td class="alt1" nowrap="nowrap" style="padding:0px">
                       
                <!-- login form -->
                <form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
                <script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <tr>
                        <td class="smallfont">$vbphrase[username]</td>
                        <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
                        <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
                </tr>
                <tr>
                        <td class="smallfont">$vbphrase[password]</td>
                        <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
                        <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
                </tr>
                </table>
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="do" value="login" />               
                <input type="hidden" name="vb_login_md5password" />
                <input type="hidden" name="vb_login_md5password_utf" />
                </form>
                <!-- / login form -->
                       
                </td>
               
        </if>       
       
</tr>
</table>
<!-- / breadcrumb, login, pm info -->
<br />
$welcomeheaders

If you can help me, I would really appreaciate it. Thank you so much in advance.

-neverstudy

RS_Jelle 07-27-2006 01:01 PM

You are missing a lot of things in your navbar template, try to revert it (you will lose all custom changes) ;)

neverstudy 07-27-2006 08:48 PM

revert? this navbar is from the style i have, if i do revert it won't it all collapse or something? and how do i do tht?

RS_Jelle 07-27-2006 08:54 PM

That depends on your style, can you give the url of your site so we can take a look?

kall 07-28-2006 12:36 AM

At a guess, the code you are looking for is in the header template.

For future reference, you need to post Modification-specific questions in the Modification's release thread.

neverstudy 07-28-2006 01:35 AM

My forum is at http://forums.neverstudy.com

Quote:

Originally Posted by kall
At a guess, the code you are looking for is in the header template.

For future reference, you need to post Modification-specific questions in the Modification's release thread.

Thank you! And thank you to all for their contribution. I really appreaciate it.


All times are GMT. The time now is 07:16 AM.

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.01154 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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