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 in header (https://vborg.vbsupport.ru/showthread.php?t=231916)

LifesGreatestGift 02-17-2010 12:08 AM

Quote:

Originally Posted by Cadellin (Post 1984149)
Great mod - any chance of a 4.0.2 update?

Upgrading my forum now, will see if there is need for an updated release, if so, will post the new code :)

LifesGreatestGift 02-17-2010 12:14 AM

Just finished with the forum update to 4.0.2 and there is no need to update the code :) Previous code works fine

Cadellin 02-17-2010 12:21 AM

For me it caused my login to stop working. I had to revert to the default code in the end unfortunately.

It's probably worth updating the "Find" box at the top to reflect the 4.0.2 code for people coming to the mod afresh (or reinstalling like me ;))

LifesGreatestGift 02-17-2010 12:47 AM

will work on it when i can :)

puppetmaster222 02-17-2010 04:06 AM

Love it, thanks.

Alibass 02-17-2010 04:23 AM

Uninstalled until 4.0.2 update

wilczek 02-17-2010 05:43 AM

Would it be so difficult for someone to do a dummies guide - last time I will ask - it's a real shame non-techies cannot benefit from vBulletiin mods too !!!!!

W

Cadellin 02-17-2010 06:28 AM

I'll give it a go wilczek - not an expert dummy guide writer though ;)

1. Go to AdminCP > Styles & Templates > Style Manager
2. Click "All Style Options" for your theme and select "Edit Templates"
3. Scroll down the list and double click "header"
4. Switch back to vbulletin mod page and select the text from the "replace with" box above and copy it to clipboard.
5. Go back to the header template you just opened and use the search box to find "<input type="text" class="textbox default-value" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="<vb:if condition="$username">{vb:raw username}" - This is the first line of the code your going to replace.
5. Highlight the first line in the old code and continue highlighting down until you see the last line of the code your going to replace - I find it helpful to use two browser windows splitting the screen so I can quickly remind myself of what the final few lines looks like.
6. Whilst still highlighting the old text paste in the replacement text over it so it replaces the highlighed text.
7. Click "Save"
8. Load your frontpage to see the results!

wilczek 02-17-2010 06:42 AM

Thanks a lot for that - it helps a lot - I think now the main thing is - where do I put the files - the graphic ones.

Thanks once again.

W

Front Range 4x4 02-17-2010 01:45 PM

Quote:

Originally Posted by wilczek (Post 1984345)
Thanks a lot for that - it helps a lot - I think now the main thing is - where do I put the files - the graphic ones.

The way the upload file location is identified is by the folder structure provided in the folder named "Upload" - What you want to do is upload the files/images provided into the like-named folder/directory.

In this case the it's the "icon" folder so you FTP the new images inside the "icon" folder.

(This applies to determining the location in most mods)

HTH

Trumpetrhapsody 02-17-2010 09:07 PM

Still work on 4.0.2?

EDIT: Nevermind... missed about 3 pages of people asking about this.

sinistergaming 02-17-2010 10:04 PM

neet thanks

wilczek 02-18-2010 05:35 AM

Cadelin & Front Page - Thanks a lot - I am on 4.0.1 and want to upgrade to 4.0.2 - So when I do this I will then wait for this to be confirmed as 4.0.2 friendly.

Cheers,

W

aberg 02-18-2010 05:33 PM

Good work. thanks!

ExtremeGaming 02-19-2010 10:25 AM

Installed and working on 4.0.2 !

Alibass 02-19-2010 07:22 PM

Quote:

Originally Posted by TheWindows7Site (Post 1984199)
Just finished with the forum update to 4.0.2 and there is no need to update the code :) Previous code works fine

After reverting template and reinstalling code, mod is working fine with 4.0.2

voglermc 02-19-2010 09:06 PM

I think the replace is missing a bit of code.
Code:

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


nibb 02-20-2010 04:34 AM

Looks good but you are now giving the user more work as he has to erase the text in the boxes first to enter his username and password. I know they can be left blank in the value, but it would be better if they erase them self when you click on them like other login boxes do.

rikmac 02-20-2010 10:33 AM

Good work.

thanks!

The-Undead 02-22-2010 10:11 PM

With some tweaking to tidy the code this looks much better, thanks.



Quote:

Originally Posted by voglermc (Post 1986817)
I think the replace is missing a bit of code.
Code:

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


Quote:

Originally Posted by nibb (Post 1987059)
Looks good but you are now giving the user more work as he has to erase the text in the boxes first to enter his username and password. I know they can be left blank in the value, but it would be better if they erase them self when you click on them like other login boxes do.


For both, use following replace for vB 4.0.2:
Code:

                                    <img src="./images/icons/username.png" alt="Username" />
                                    <input type="text" class="textbox default-value" 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>" onfocus="if (this.value == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>'){this.value=''; this.style.color='black';}" onblur="if (this.value == '') {this.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>'; this.style.color='#828282';}"/>
                                    <img src="./images/icons/password.png" alt="Password" />
                                    <input type="password" class="textbox default-value" tabindex="102" name="vb_login_password" id="navbar_password" size="10" onfocus="this.style.color='black';" />
                                    <label for="cb_cookieuser_navbar"><input id="cb_cookieuser_navbar" type="checkbox" accesskey="c" tabindex="103" value="1" name="cookieuser" checked="checked" /></label>
                                    <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>
                        <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>
                </li>
            </ul>
        </vb:if>
    </div>

Put this part in headinclude template to help with validation:
Code:

<style type="text/css">
.toplinks form img {
position:relative; 
top: 3px;       
}
</style>


Username is present but it doesn't need deleting, on-click removes the text as per default. :)

voglermc 02-22-2010 10:33 PM

Quote:

Originally Posted by The-Undead (Post 1989191)
With some tweaking to tidy the code this looks much better, thanks.

Thanks! It does look so much better!

Skyrider 02-23-2010 06:47 PM

Demo site doesn't has this plugin installed. :)

The-Undead 02-24-2010 05:19 PM

Quote:

Originally Posted by FF|Skyrider (Post 1989844)
Demo site doesn't has this plugin installed. :)

You can see it working here: http://www.undeadcitylimits.com/inks...uild/forum.php

RedHacker 02-25-2010 04:42 AM

Can give the code for find\replace for the version 4.0.2....?

Skyrider 02-25-2010 06:37 AM

Quote:

Originally Posted by The-Undead (Post 1990550)

Getting:
Quote:

The account is currently not active.

Alibass 02-25-2010 12:02 PM

Quote:

Originally Posted by RedHacker (Post 1990966)
Can give the code for find\replace for the version 4.0.2....?

Current code works fine with 4.0.2

RedHacker 02-26-2010 07:10 AM

It is not same code in 4.0.2 Version

Alibass 02-26-2010 10:21 PM

Quote:

Originally Posted by RedHacker (Post 1991824)
It is not same code in 4.0.2 Version

Well mac why does the same code I was running in 4.0.1 work in 4.0.2?

voglermc 02-26-2010 10:31 PM

it might work in general but there is different code

Alibass 02-26-2010 11:02 PM

Quote:

Originally Posted by voglermc (Post 1992393)
it might work in general but there is different code

Quote:

Originally Posted by TheWindows7Site (Post 1984199)
Just finished with the forum update to 4.0.2 and there is no need to update the code :) Previous code works fine

As per what the coder posted in post #82 his code works in 4.0.2, now another member may have written some new code and posted, but I have yet to see anything from TheWindow7Site coder.

voglermc 02-27-2010 12:25 AM

These posts are trying to get him to look into his code and make sure it's correct, nothing more

TheLastSuperman 02-27-2010 12:29 AM

Simple yet effective and btw I like your current avatar ;) :p

ageurtse 03-16-2010 08:18 AM

Do you know a way to move the toplinks to the top navbar

i can't manage to move it.

intospain 03-17-2010 07:56 AM

Very nice template mod, makes it much easier to see.

Thanks a million!!!

sKippah 03-25-2010 12:25 PM

Nice one tagged

albrens 03-29-2010 06:10 AM

Thanks

Macgiber 04-02-2010 01:31 AM

Installed and thanks.

svandanam 04-11-2010 03:13 AM

Just upgraded to 4.0.3, and its not working with the new release. Any help will be really appreciated.

chipc0i 04-13-2010 06:50 AM

i see new login/register in your site http://thewindows7site.com. You can share? Thanks

sisterhood 04-14-2010 12:21 PM

plz update this mod


All times are GMT. The time now is 11:44 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.01624 seconds
  • Memory Usage 1,827KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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