Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Uhura! on October 26, 2012, 08:22:28 PM

Title: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 08:22:28 PM
How do I add space between the facebook bar & the white bar right below it? (See attached image)

Is this in the index.template.php file?

SMF 2.0.2 www.OurMomSpot.net

Title: Re: Quick Question About Log In Window
Post by: mashby on October 26, 2012, 08:31:49 PM
It will be in this file:
http://ourmomspot.net/community/Themes/moms/css/index.css?rc3
This bit:
.openid_login
{
background: white url(../images/openid.gif) no-repeat;
padding-left: 18px;
}

Maybe make it this?
.openid_login
{
background: white url(../images/openid.gif) no-repeat;
padding-left: 18px;
margin-top: 8px;
}


Also, the height of the whole thing should also be increased to adjust, so find this:
/* the upper_section, float the two each way */
#upper_section
{
overflow:visible;
padding: 5px;
height:125px;
}

And make it be this:
/* the upper_section, float the two each way */
#upper_section
{
overflow:visible;
padding: 5px;
height:142px;
}

Tweak the height of the last edit and the margin-top to your liking, too. :)
Title: Re: Quick Question About Log In Window
Post by: mashby on October 26, 2012, 08:37:19 PM
OOPS! I'll be back to edit this now that I see your menu is down some too. :)

Your index.template.php file is generating a line of code for this:
Quote<br class="clear" />
It appears right before:
<div class="navi">
When I delete that element via Firebug, it makes the menu look much nicer. Maybe remove that from your file?
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 08:37:55 PM
Perfecto!

How do i add my log in with twitter button so it's, just below the facebook log in button?

I will have to adjust the blue box more after that with the info you gave me :D
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 08:38:17 PM
Quote from: monster mashby on October 26, 2012, 08:37:19 PM
OOPS! I'll be back to edit this now that I see your menu is down some too. :)

Yes, please help! LOL
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 08:40:13 PM
Also... i want to add the part in green to these words:
Login with username, password and session length or log in using one of the social media options below.
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 08:44:13 PM
Quote from: monster mashby on October 26, 2012, 08:37:19 PM
OOPS! I'll be back to edit this now that I see your menu is down some too. :)

Your index.template.php file is generating a line of code for this:
Quote<br class="clear" />
It appears right before:
<div class="navi">
When I delete that element via Firebug, it makes the menu look much nicer. Maybe remove that from your file?

But if I delete that - wont it affect something else... Check this out~> http://forums.bit-tech.net/showthread.php?t=132596

Is there any other way to adjust this?
Title: Re: Quick Question About Log In Window
Post by: mashby on October 26, 2012, 08:47:15 PM
Try removing that <br /> first to get your menu back in line. I don't think it will affect anything at all except make your site look better.

Twitter button...do you mean the one at the top right? Or another one?

The code for this:
Login with username, password and session length or log in using one of the social media options below.
is located in Themes/default/languages/index.english.php
Look for:
$txt['quick_login_dec']
Not sure where else that language string is used but by editing it, you'll likely soon find out. :)
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 08:51:46 PM
Quote from: monster mashby on October 26, 2012, 08:47:15 PM
Try removing that <br /> first to get your menu back in line. I don't think it will affect anything at all except make your site look better.

Twitter button...do you mean the one at the top right? Or another one?

Click log in & scroll down - twitter sign in button right under facebook login button :)

Great suggestions so far thank you!
Title: Re: Quick Question About Log In Window
Post by: mashby on October 26, 2012, 08:54:38 PM
Looks to me like you could position the twitter on the same line as the one on the login page.
<a href="https://api.twitter.com/oauth/authenticate?oauth_token=c8pd6vyX4ZALYcyaU1Le1ZOHBhiqlNBW6H7p9k6Eyg"><img alt="Sign In with Twitter" src="http://si0.twimg.com/images/dev/buttons/sign-in-with-twitter-l.png" /></a>
Put that before or after the one for Facebook. Looked OK using Firebug. :)
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 08:56:20 PM
Which file is this one again?
Title: Re: Quick Question About Log In Window
Post by: mashby on October 26, 2012, 08:58:39 PM
That would be in index.template.php. :)
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 09:00:18 PM
Yes! See it - but exactly where should it (the code you suggested)  go?

Sorry - I am only a mediocre coder at best (maybe)

Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 09:01:49 PM
Do you also happen to know where I can fix this typo?

Title: Re: Quick Question About Log In Window
Post by: mashby on October 26, 2012, 09:04:48 PM
Mind attaching that file? It might be easier in this case as all I'm seeing is the processed stuff. If you don't want to though, look for href="https://www.facebook.com/dialog...there's an image after that with a </a> after that image code. Right there might be a good place. Regarding the Click here here...what mod is that one? :)
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 09:07:21 PM
My index file is attached.

Just asking where to place the twitter button code :)
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 09:08:42 PM
Quote from: monster mashby on October 26, 2012, 09:04:48 PM
Mind attaching that file? It might be easier in this case as all I'm seeing is the processed stuff. If you don't want to though, look for href="https://www.facebook.com/dialog...there's an image after that with a </a> after that image code. Right there might be a good place. Regarding the Click here here...what mod is that one? :)

:) Twitter Integration Mod
Title: Re: Quick Question About Log In Window
Post by: mashby on October 26, 2012, 09:13:35 PM
Interesting attachment. I renamed it and uploaded it as index.template.php. :)

Let's see if this works before we move on to the Twitter mod. :)
Title: Re: Quick Question About Log In Window
Post by: mashby on October 26, 2012, 09:14:02 PM
Interesting attachment. I renamed it and uploaded it as index.template.php. :)

Let's see if this works before we move on to the Twitter mod. :)
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 09:15:08 PM
Quote from: monster mashby on October 26, 2012, 09:14:02 PM
Interesting attachment. I renamed it and uploaded it as index.template.php. :)

Let's see if this works before we move on to the Twitter mod. :)

So... what do I do with this?

Do I replace my index.template.php file with it?
Title: Re: Quick Question About Log In Window
Post by: mashby on October 26, 2012, 09:17:46 PM
Yep...that should work. :)
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 09:18:38 PM
Quote from: monster mashby on October 26, 2012, 09:17:46 PM
Yep...that should work. :)

Ok - I'll make a copy 1st though LOL!

Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 09:22:09 PM
Done! Very good help thanks

Looks OK. I would like to move the blue login block up a little...it seems to be sitting on the purple bar. How can I do that? :)
Title: Re: Quick Question About Log In Window
Post by: mashby on October 26, 2012, 09:51:56 PM
Hmm...my CSS skills aren't as good as others...I am a little confused as to the construction of it all. :)
What I'm seeing is that radius corners aren't being applied to the whole container...well, it's being applied, but we're running out of real estate for it to complete.

I think I found a combination that should work...in the CSS file,
Find:
#top_section
{
min-height: 45px;
overflow: hidden;
margin-top: 10px;
    margin-bottom: 10px;
}

Replace with:
#top_section
{
min-height: 45px;
overflow: hidden;
margin-top: 10px;
}
We're removing the bottom margin of 10...and then adding it here, so,
Find:
#upper_section
{
overflow:visible;
padding: 5px;
height:142px;
}

Replace with:
#upper_section
{
overflow:visible;
padding: 5px;
height:152px;
}
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 10:16:34 PM
Not a good idea form me  unfortunately... When logged in - it looks bad.

I will leave as is.

I really do appreciate your help!

Please tell me about the typo when you can :D
Title: Re: Quick Question About Log In Window
Post by: mashby on October 26, 2012, 10:22:19 PM
Mind providing a screen shot for the logged in view? Or perhaps PMing me a test user? Might help with looking at that Twitter thing too.
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 10:26:10 PM
Quote from: monster mashby on October 26, 2012, 10:22:19 PM
Mind providing a screen shot for the logged in view? Or perhaps PMing me a test user? Might help with looking at that Twitter thing too.

Sure ...but I already changed it back :)
Title: Re: Quick Question About Log In Window
Post by: mashby on October 26, 2012, 10:27:35 PM
That's good if it looked funny when logged in. :)

Didn't even consider the implications of a logged in user.
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 10:31:46 PM
And then it depends on the size of the avatar! If someone has a smaller avatar, it looks bad to move it up.
Title: Re: Quick Question About Log In Window
Post by: mashby on October 26, 2012, 10:35:13 PM
Which avatar should I select? I have the pink NFL football picked at the moment and tweaked the CSS via Firebug to the suggestions I made and it looked OK there. Maybe I don't have the content you have though. Besides the avatar, I have:
QuoteHello mashby
    Show unread posts since last visit.
    Show new replies to your posts.
    October 26, 2012, 10:32:47 PM
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 26, 2012, 10:40:11 PM
Quote from: monster mashby on October 26, 2012, 10:35:13 PM
Which avatar should I select? I have the pink NFL football picked at the moment and tweaked the CSS via Firebug to the suggestions I made and it looked OK there. Maybe I don't have the content you have though. Besides the avatar, I have:
QuoteHello mashby
    Show unread posts since last visit.
    Show new replies to your posts.
    October 26, 2012, 10:32:47 PM

You may try different ones...  Check this out - perfect example...
Title: Re: Quick Question About Log In Window
Post by: mashby on October 26, 2012, 10:44:45 PM
Ah ok...I just used Firebug to change my avatar to yours (skateboard one). What are your settings for avatar sizes?
Admin > Forum > Attachments and Avatars > Avatar Settings
Specifically...height of external avatar and height of uploaded avatar
Title: Re: Quick Question About Log In Window
Post by: Antechinus on October 27, 2012, 03:37:25 AM
You can scale avs to suit the container if you want to. As an example, if you have the avatar image sitting inside a div or anchor or whatever that has id="wombats", this will work in the css:

#wombats {
    max-width: 100px;
    max-height: 100px;
}
#wombats img {
    width: 100%;
    height: 100%;
}


You might also want to set minimum dimensions for your pet wombats. Adjust to whatever works. The point is that this will preserve image proportions, while automatically scaling the image up or down to fit the insides of the wombats. :)
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 27, 2012, 02:25:48 PM
Quote from: monster mashby on October 26, 2012, 10:44:45 PM
Ah ok...I just used Firebug to change my avatar to yours (skateboard one). What are your settings for avatar sizes?
Admin > Forum > Attachments and Avatars > Avatar Settings
Specifically...height of external avatar and height of uploaded avatar

Hello :D

See my attachment...
Title: Re: Quick Question About Log In Window
Post by: mashby on October 27, 2012, 02:32:55 PM
Option 1: Decrease the height of the avatar to something like 135.
Option 2: Put this in the index.css file (excellent idea there, Ant! :)):
p.avatar {
    max-width: 100px;
    max-height: 135px;
    overflow:hidden;
}
p.avatar img {
    width: 100%;
    height: 100%;
}
Title: Re: Quick Question About Log In Window
Post by: Uhura! on October 28, 2012, 06:27:18 PM
What's the exact filepath? I would like to try this :)
Title: Re: Quick Question About Log In Window
Post by: mashby on October 28, 2012, 06:36:12 PM
http://ourmomspot.net/community/Themes/moms/css/index.css?rc3