1
Jharis
help to add login & password box, top right beside site logo
  • 2005/8/16 17:29

  • Jharis

  • Just can't stay away

  • Posts: 488

  • Since: 2005/2/13


Hi everyone,

I need some help adding a username/password box to the top of my theme. Could someone post the code for this, and where in my theme.html I would paste this? Also what other lines of would there be for security that might be a needed?

I would like it to look something like this.

table should be 200px wide by 100px high. Background 606060 and text ffffff. My theme width is 760px, with the logo being 560px.

username password
[ box ] [box ] [go]
Register? Lost Password?

don (el paso)
motto - green chili for everything!

2
Jharis
Re: help to add login & password box, top right beside site logo
  • 2005/8/16 19:31

  • Jharis

  • Just can't stay away

  • Posts: 488

  • Since: 2005/2/13


bump
motto - green chili for everything!

3
wildo
Re: help to add login & password box, top right beside site logo
  • 2005/8/16 20:02

  • wildo

  • Just popping in

  • Posts: 33

  • Since: 2004/3/1 1


Perhaps this code will work and paste it somewhere in your theme.htm

<body>
<
form style="margin: 0px;" action="<{$xoops_url}>/user.php" method="post">
  <
input type="text" name="uname" size="12" onFocus="this.value=''" value="User Name" />
  <
input type="password" name="pass" size="12" onFocus="this.value=''" value='myxoops'/>
  <
input type="hidden" name="xoops_redirect" value="/index.php" />
  <
input type="hidden" name="op" value="login" />
  <
input type="submit" value="Login" />
</
form>
</
body>
...

4
Jharis
Re: help to add login & password box, top right beside site logo
  • 2005/8/16 20:13

  • Jharis

  • Just can't stay away

  • Posts: 488

  • Since: 2005/2/13


Cool! I'll try it as soon as the boss isn't looking!

Thank you

don (el paso)
motto - green chili for everything!

5
shank
Re: help to add login & password box, top right beside site logo
  • 2005/8/16 20:15

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


Something like this:

Resized Image
s l s h a n k l e @ b e l l s o u t h . n e t

6
Jharis
Re: help to add login & password box, top right beside site logo
  • 2005/8/16 20:32

  • Jharis

  • Just can't stay away

  • Posts: 488

  • Since: 2005/2/13


Shank,

Thats it! Ok how did you get there? Was it the code by wildo?

don (el paso)
motto - green chili for everything!

7
shank
Re: help to add login & password box, top right beside site logo
  • 2005/8/16 20:55

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


In your theme.html file after the second < tr> tag after the < body > tag you have a < td> with your logoin it. Set this < td> to a width of 560. then add another < td> by pasting this
<td width="200" align="center"><form style="margin-top: 0px;" action="<{$xoops_url}>/user.php" method="post"><input type="hidden" name="PHPSESSID" value="6494a0b00b340ce50b50fbd541ccd1dc" />Username : <input type="text" name="uname" size="12" value="" maxlength="25" /><br />Password :  <input type="password" name="pass" size="12" maxlength="32" /><br />
    
    <
input type="hidden" name="xoops_redirect" value="/" />
    <
input type="hidden" name="op" value="login" />
    <
input type="submit" value="User Login" /><br />
    
</
form><a href="<{$xoops_url}>/user.php#lost">Lost Password?</a></br>
<
a href="<{$xoops_url}>/register.php">Register now!</a>
</
td>
And try it out before you get rid of your log in block. Let me know if you have troubles.
s l s h a n k l e @ b e l l s o u t h . n e t

8
Jharis
Re: help to add login & password box, top right beside site logo
  • 2005/8/17 1:12

  • Jharis

  • Just can't stay away

  • Posts: 488

  • Since: 2005/2/13


Shank,

That did the trick! I wasted 4 hours last night trying to get it right. I will test as you suggest before removing my login box.

Wildo,
I didn't get to use your code. Shank posted that nice screen shot and I was hooked on his code. Thanks for responding to my post.

Thank You guys.

don (el paso)
motto - green chili for everything!

9
Jharis
Re: help to add login & password box, top right beside site logo
  • 2005/8/17 1:21

  • Jharis

  • Just can't stay away

  • Posts: 488

  • Since: 2005/2/13


Could we have a code snippet library with screen shot of the result. That way guys like me that are just learning could grab the code and use. Yeah we'd still be buggin ya guys on where something was, but it could make life easier.

We could put the snippet library in the community section below the themes library listing.

Anybody besides me think this is a good idea?

don (el paso
motto - green chili for everything!

10
shank
Re: help to add login & password box, top right beside site logo
  • 2005/8/17 3:21

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


It is simple html code. All you have to know is the targets and stuff, and where to put it is all. There would be no possible why to put scrrenshots, and code for every possible thing to do with html, much less everything people wanted to do.

I personally like doing it, so if you need anymore help send me a email and I'll see what I can do.
s l s h a n k l e @ b e l l s o u t h . n e t

Login

Who's Online

228 user(s) are online (158 user(s) are browsing Support Forums)


Members: 0


Guests: 228


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits