vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Where to edit login form (https://vborg.vbsupport.ru/showthread.php?t=301505)

dtpl 08-22-2013 07:30 PM

Where to edit login form
 
1 Attachment(s)
Hi

I would like to change a little bit the login form in the right corner on the top of forum.

Where I can edit it? I would like to:
1. move it to right
or
2. to divide it into 2 table (in first line : login form; in second Help / Registration)

I will appreciate your help!

Lynne 08-22-2013 08:57 PM

To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)

dtpl 08-23-2013 10:30 AM

I know how to find it. But I don't know which code is responsible for that.

Just need to move it to right, but try all margin-right and nothing works :(

nerbert 08-23-2013 10:56 AM

Quote:

Just need to move it to right, but try all margin-right and nothing works
Do you mean you want to move it to the left as the arrow in your attachment shows? You need to edit the "right" property

I got this out of my developer tool

Code:

.toplinks {
        position: absolute;
        right: 20px;
        top: 0;
        color: #ffffff;
        font: normal normal normal 11px Arial, Tahoma, Calibri, Verdana, Geneva, sans-serif;
        text-align: right;
        background: none;
}

If you can figure out what style sheet has class toplinks you could edit it there but it would be easier to override it with inline styling in the header template

Code:

<div id="toplinks" class="toplinks" style="right:0px;">

dtpl 08-25-2013 06:30 PM

nerbert thanks for that!

But I don't now why... when I edit it in panel admin this code looks a little bit different:

Code:

.toplinks {
        position:absolute;
        {vb:stylevar right}:{vb:math {vb:stylevar padding}*2};
        top:0;
        color:{vb:stylevar toplinks_link_color};
        font: {vb:stylevar header_font};
        text-align:{vb:stylevar right};
        background:{vb:stylevar toplinks_background};
}

where can I edit it your way?

nerbert 08-25-2013 08:21 PM

What I posted was what all that stuff evaluates to. I got it out of my Chrome developer tool. Like I said earlier you can override it with an inline style attribute but if you want to do it in the CSS template, change the second indented line to look like this

{vb:stylevar right}: 0px; /*{vb:math {vb:stylevar padding}*2};*/

That way you preserve the original in the the commented part in case you want to change it back.

Lynne 08-26-2013 04:26 PM

I find that the best way to change CSS is via the additional.css template, not by editing the default css templates. So you would add something like:

HTML Code:

.toplinks {
        right: 0px;
}



All times are GMT. The time now is 09:12 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.01001 seconds
  • Memory Usage 1,726KB
  • 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_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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