vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - TW7S - Change the look of the Login/Register [Twitter Style] (https://vborg.vbsupport.ru/showthread.php?t=238152)

ClErK1991 01-31-2012 12:28 AM

no one can give me an answer?

Toorak Times 01-31-2012 08:22 AM

Marked installed, mucked something up, another noob mate, I'll try again, but love this mod...

mjfan227 02-03-2012 05:33 PM

I can't get this to install either. I changed the templates and uploaded the files, and nothing happens.

Extrateknik 02-07-2012 01:38 AM

Is there for vBulletin 3.8

TombstoneWarrior 02-09-2012 05:06 AM

no help for a nebie can someone look at my post above and help me out please!!!

too_cool_3 02-11-2012 08:28 PM

In vB 4.1.10 there are additional lines of code in the header template not mentioned in the instructions,

Now, there is all this:
Code:

<script type="text/javascript">
  YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline");
  YAHOO.util.Dom.setStyle('navbar_password', "display", "none");
  vB_XHTML_Ready.subscribe(function()
  {
  //
    YAHOO.util.Event.on('navbar_username', "focus", navbar_username_focus);
    YAHOO.util.Event.on('navbar_username', "blur", navbar_username_blur);
    YAHOO.util.Event.on('navbar_password_hint', "focus", navbar_password_hint);
    YAHOO.util.Event.on('navbar_password', "blur", navbar_password);
  });
 
  function navbar_username_focus(e)
  {
  //
    var textbox = YAHOO.util.Event.getTarget(e);
    if (textbox.value == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>')
    {
    //
    textbox.value='';
    textbox.style.color='{vb:stylevar input_color}';
    }
  }
  function navbar_username_blur(e)
  {
  //
    var textbox = YAHOO.util.Event.getTarget(e);
    if (textbox.value == '')
    {
    //
    textbox.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>';
    textbox.style.color='{vb:stylevar shade_color}';
    }
  }
 
  function navbar_password_hint(e)
  {
  //
    var textbox = YAHOO.util.Event.getTarget(e);
 
    YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "none");
    YAHOO.util.Dom.setStyle('navbar_password', "display", "inline");
    YAHOO.util.Dom.get('navbar_password').focus();
  }
  function navbar_password(e)
  {
  //
    var textbox = YAHOO.util.Event.getTarget(e);
 
    if (textbox.value == '')
    {
    YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline");
    YAHOO.util.Dom.setStyle('navbar_password', "display", "none");
    }
  }
  </script>
</li>
    <vb:if condition="$vboptions['enablefacebookconnect']">
    {vb:raw facebook_header}
    </vb:if>

between
Code:

<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
    <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
    <input type="hidden" name="do" value="login" />
    <input type="hidden" name="vb_login_md5password" />
    <input type="hidden" name="vb_login_md5password_utf" />
</form>

and
Code:

  </ul>
  </vb:if>
 </div>


When replacing with the line of code you provide, should we remove all of that new code?

TombstoneWarrior 02-12-2012 03:35 AM

Quote:

Originally Posted by TombstoneWarrior (Post 2292254)
I HAVE A CUSTOM STYLE AND CAN NOT FIND THE CODE TO PUT IN IN STEP TWO HERE IS THE CODE STARTING FROM THE FIND FWORD CAN SOMEONE HELP PLEASE>>>>>>
<div id="toplinks" class="toplinks">
<vb:if condition="$show['member']">
<ul class="isuser">
<li><a href="login.php?{vb:raw session.sessionurl}do=logout&amp;logouthash={vb:ra w bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">{vb:rawphrase log_out}</a></li>
<vb:if condition="$show['registerbutton']">
<li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
</vb:if>
<li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase user_control_panel}</a></li>
<li><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></li>
{vb:raw vmoods_list}
<vb:if condition="$notifications_total">

<li class="popupmenu notifications" id="notifications">
<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}: <span class="notifications-number"><strong>{vb:raw notifications_total}</strong></span></a>
<ul class="popupbody popuphover">
{vb:raw notifications_menubits}
</ul>
</li>
<vb:else />
<li class="popupmenu nonotifications" id="nonotifications">
<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}</a>
<ul class="popupbody popuphover">
<li>{vb:rawphrase no_new_messages}</li>
<vb:if condition="$show['pmmainlink']"><li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li></vb:if>
</ul>
</li>
</vb:if>

<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>
<vb:if condition="$vboptions['enablefacebookconnect']">
{vb:raw facebook_header}
</vb:if>
</ul>
{vb:raw template_hook.header_userinfo}
<vb:comment><p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p></vb:comment>
<vb:else />
<ul class="nouser">
<vb:if condition="$show['registerbutton']">
<li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
</vb:if>
<li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}">{vb:rawphrase help}</a></li>
<li>
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v={vb:raw vboptions.simpleversion}"></script>
<form id="navbar_loginform" action="login.php?{vb:raw session.sessionurl}do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, {vb:raw show.nopasswordempty})">
<fieldset id="logindetails" class="logindetails">
<div>
<div>
<input type="text" class="textbox<vb:if condition="!$username"> default-value</vb:if>" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>" />
<input type="password" class="textbox" tabindex="102" name="vb_login_password" id="navbar_password" size="10" />
<input type="text" class="textbox default-value" tabindex="102" name="vb_login_password_hint" id="navbar_password_hint" size="10" value="{vb:rawphrase password}" style="display:none;" />
<input type="submit" class="loginbutton" tabindex="104" value="{vb:rawphrase log_in}" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s" />
</div>
</div>
</fieldset>
<div id="remember" class="remember">
<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" /> {vb:rawphrase remember_me}</label>
</div>

<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<script type="text/javascript">
YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline");
YAHOO.util.Dom.setStyle('navbar_password', "display", "none");
vB_XHTML_Ready.subscribe(function()
{
//
YAHOO.util.Event.on('navbar_username', "focus", navbar_username_focus);
YAHOO.util.Event.on('navbar_username', "blur", navbar_username_blur);
YAHOO.util.Event.on('navbar_password_hint', "focus", navbar_password_hint);
YAHOO.util.Event.on('navbar_password', "blur", navbar_password);
});

function navbar_username_focus(e)
{
//
var textbox = YAHOO.util.Event.getTarget(e);
if (textbox.value == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>')
{
//
textbox.value='';
textbox.style.color='{vb:stylevar input_color}';
}
}

function navbar_username_blur(e)
{
//
var textbox = YAHOO.util.Event.getTarget(e);
if (textbox.value == '')
{
//
textbox.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>';
textbox.style.color='{vb:stylevar shade_color}';
}
}

function navbar_password_hint(e)
{
//
var textbox = YAHOO.util.Event.getTarget(e);

YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "none");
YAHOO.util.Dom.setStyle('navbar_password', "display", "inline");
YAHOO.util.Dom.get('navbar_password').focus();
}

function navbar_password(e)
{
//
var textbox = YAHOO.util.Event.getTarget(e);

if (textbox.value == '')
{
YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline");
YAHOO.util.Dom.setStyle('navbar_password', "display", "none");
}
}
</script>
</li>
<vb:if condition="$vboptions['enablefacebookconnect']">
{vb:raw facebook_header}
</vb:if>
</ul>
</vb:if>
</div>
<div class="ad_global_header">
{vb:raw ad_location.global_header1}
{vb:raw ad_location.global_header2}
</div>
<hr />
</div>

can the coder please help 4.1.9 with custom style.. :eek:

Toorak Times 02-19-2012 02:05 AM

Had to uninstall, thanks anyway, can't figure it out

too_cool_3 02-25-2012 04:29 PM

1 Attachment(s)
I installed this hack and my Settings link has disappeared (see attachment) from the navbar? If I revert my header template it comes back. I'm on vB 4.1.10

Here is my header template after following the instructions:
Code:

<div class="above_body"> <!-- closing tag is in template navbar -->
<div id="header" class="floatcontainer doc_header">
 <vb:if condition="$stylevar['titleimage']"><div><a name="top" href="{vb:link forumhome}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div></vb:if>
 <div id="toplinks" class="toplinks">
  <vb:if condition="$show['member']">
  <ul class="isuser">
    <li><a href="login.php?{vb:raw session.sessionurl}do=logout&amp;logouthash={vb:raw bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">{vb:rawphrase log_out}</a></li>
    <vb:if condition="$show['registerbutton']">
    <li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
    </vb:if>
    <li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase control_panel}</a></li>
    <li><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></li>
    <vb:if condition="$notifications_total">
    <li class="popupmenu notifications" id="notifications">
    <a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}: <span class="notifications-number"><strong>{vb:raw notifications_total}</strong></span></a>
    <ul class="popupbody popuphover">
      {vb:raw notifications_menubits}
    </ul>
    </li>
    <vb:else />
    <li class="popupmenu nonotifications" id="nonotifications">
    <a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}</a>
    <ul class="popupbody popuphover">
      <li>{vb:rawphrase no_new_messages}</li>
      <li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li>
    </ul>
    </li>
    </vb:if>
    <li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>
  </ul>
            {vb:raw template_hook.header_userinfo}
  <vb:comment><p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p></vb:comment>
  </vb:if>
 </div>
 <div class="ad_global_header">
  {vb:raw ad_location.global_header1}
  {vb:raw ad_location.global_header2}
 </div>
 <hr />
</div>

If anyone can help me get the Settings link back, that would be much appreciated.

too_cool_3 02-25-2012 07:54 PM

On line 11 of the header template you have to change

{vb:rawphrase control_panel}

to

{vb:rawphrase user_control_panel}

and the Settings link will show up. Hope this helps someone out!

JulianD 03-05-2012 03:49 PM

1 Attachment(s)
This is an attempt to update the original mod to 4.1.11.

Download the original package but follow my instructions instead.

If you want Facebook Connect on the login box you need to create one plugin as described here: https://www.vbulletin.com/forum/show...avbar-template

Let me know if it works for you.

Cheers,

Kevlar21 03-07-2012 06:51 AM

Great JulianD it works on 4.1.11

Skyrider 05-03-2012 10:54 AM

JulianD, how does removing the entire header login/register details help? I just did so, and did the rest as instructed, but the entire login /control panel page is gone.

JulianD 05-04-2012 03:30 PM

Quote:

Originally Posted by FF|Skyrider (Post 2325773)
JulianD, how does removing the entire header login/register details help? I just did so, and did the rest as instructed, but the entire login /control panel page is gone.

You can't remove the entire header content. Only the login portion of the html code because you are moving it to the navbar.

I'm sorry if the instructions are not completely clear, just try to double check with the instructions the portion of the header template you need to remove and remember to always make a backup before you begin.

doctorsexy 05-04-2012 05:18 PM

Cant get it to work with 4.1.12

Winter Sonata 05-05-2012 03:41 AM

Anyone tested , JulianD's version on 4.1.12

Thanks JulianD

Gemma 05-05-2012 05:41 PM

Quote:

Originally Posted by Winter Sonata (Post 2326350)
Anyone tested , JulianD's version on 4.1.12

No but I don't see any reason why it wouldn't work. Only thing I don't agree with is that he says you've got to create a plugin if you want Facebook Connect on the login menu.

Skyrider 05-06-2012 08:57 AM

Quote:

Originally Posted by JulianD (Post 2326213)
You can't remove the entire header content. Only the login portion of the html code because you are moving it to the navbar.

I'm sorry if the instructions are not completely clear, just try to double check with the instructions the portion of the header template you need to remove and remember to always make a backup before you begin.

I may have misinformed you. I only removed the header information as per instructed (just the login parts), but the entire header part (login, etc) is gone. Even when I've done the rest being done as per instructed.

JulianD 05-08-2012 02:07 AM

Quote:

Originally Posted by Gemma (Post 2326533)
No but I don't see any reason why it wouldn't work. Only thing I don't agree with is that he says you've got to create a plugin if you want Facebook Connect on the login menu.

The plugin is needed because the variable that has all the facebook connect information is only available to the header template and not the navbar template. If you don't want FC then you can simply ignore that step.

Quote:

Originally Posted by FF|Skyrider (Post 2326668)
I may have misinformed you. I only removed the header information as per instructed (just the login parts), but the entire header part (login, etc) is gone. Even when I've done the rest being done as per instructed.

Ok, maybe there is some unclosed tag that is causing the whole header to disappear. I just can't help you beyond that. Try to do everything from scratch and see if that helps.

GamerPerfection 06-19-2012 07:13 AM

Does this work with 4.2 and is there any additional work needed that isn't included in the opening post?

EDIT: It works fine on 4.2 and i kept it in the header too instead of moving it to the navbar. Therefore no plugin needed to get the facebook connect bit to work.

JulianD 06-19-2012 01:57 PM

I'm glad to know that it works on 4.2

GamerPerfection 06-19-2012 02:24 PM

I also added a Steam Connect button under the Facebook Connect button too.

GamerPerfection 12-29-2012 09:00 PM

This mod causes some weird shit with backlinks and stuff. I have tons of hits constantly from other sites that use this modification and the links go to http://www.gamerperfection.com/login

Today i get a message from the guy that runs theironden.com telling me he has 7k backlinks coming from my site. When I visit his site guess what i see, he's using the same modification.

If I go to google right now and search "theironden gamerperfection" the result comes up with www.theironden.com/login.

It's definitely something to do with the modification because the common theme in all these i've seen is this modification and the links linking to www.thedomainname.com/login and that is directly connected to this modification.

I will be changing to a different login method soon because of this.

GamerPerfection 12-30-2012 08:39 AM

Uninstalled, now using the Xenforo style login.

smirkley 03-04-2013 12:33 AM

Quote:

Originally Posted by amin (Post 2287700)
Hi LifesGreatestGift

thank you very much for this awesome Mod. after I tested it I found small problem. while the website downloading if you double click at the login button. it will open this folder /forum/login/. i putted index.html inside all Mod folder and I tried to redirect /forum/login/ link to the main page of the forum but I couldn't do that.
there is anyway to not allow visiters opening Mod folder?

regards

Like this mod, but have verified this as an issue too.

and btw,.. I have a 20mb internet connection, running on a fast server, and added a standard html index page to all directories to protect from directory lists being generated in browsers. Wish this wasnt an issue.

Also I cannot get a clean layout on vbCMS pages. Have tried adding css to cmscss, vbcss, and a couple of other places, but it just doesnt fix the layout issues.


REALLY REALLY REALLY wish this could get fixed.

smirkley 03-15-2013 02:59 AM

Well I got the cms layout to match the rest of the site, and with a few custom html tweaks, have the overall layout the way I want it to look.

Like the way it works and like the way it looks now.

FakeMessiah666 04-28-2013 01:16 AM

For some reason there's quite a large space between "My Profile" and "Log Out." I'm not sure if your mod is causing this, but I just noticed it after installing it. Here's a screenshot:

http://img854.imageshack.us/img854/9...30427at814.png

Edit: Just realized the "My Settings" link is gone and that's what is causing the space. I disabled the plugin/hook system and it's still the same, so it's not your mod causing it. My bad.


All times are GMT. The time now is 04:01 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.01411 seconds
  • Memory Usage 1,843KB
  • 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
  • (4)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete