11
Jharis
Re: help to add login & password box, top right beside site logo
  • 2005/8/22 19:21

  • Jharis

  • Just can't stay away

  • Posts: 488

  • Since: 2005/2/13


Quote:
<td width="200" align="center"><form style="margin-top: 0px;" action="<{$xoops_url}>/user.php" method="post"><input type="hidden" name="PHPSESSID" value="******************************" />Username : <input type="text" name="uname" size="12" value="" maxlength="25" /><br />Password : <input type="password" name="pass" size="12" maxlength="32" /><br />


Ok this code worked perfect for me thanks to Shank, but I still have one problem. When I login in as an admin I don't get the admin link text. So I have to do a mysite.com/admin.php thingy.

What code should I add to get an admin login?

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

12
shank
Re: help to add login & password box, top right beside site logo
  • 2005/8/24 21:14

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


Change

<td width="200" align="center">........Along With Everthing between these tags.........</td>


to
<td width="200" align="center"><{if $xoops_isuser}>
    
    <{if 
$xoops_isadmin}>
    <
a href="<{$xoops_url}>/user.php">View/Edit Your Profile</a><br />
    <
a href="<{$xoops_url}>/user.php?op=logout">Log Out</a><br />
    <
a href="<{$xoops_url}>/admin.php">Administration Menu</a><br />
    <{else}>
    <
a href="<{$xoops_url}>/user.php">View/Edit Your Profile</a><br />
    <
a href="<{$xoops_url}>/user.php?op=logout">Log Out</a><br />
    <{/if}>
<{else}>
<
form style="margin-top: 0px;" action="<{$xoops_url}>/user.php" method="post">
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="<{$xoops_requesturi}>" />
<
input type="hidden" name="PHPSESSID" value="" /><input type="hidden" name="op" value="login" />
<
input type="submit" value="Login" /></form>
<
a href="<{$xoops_url}>/user.php#lost">Lost Password?</a>
&
nbsp;&nbsp;&nbsp;&nbsp;
<
a href="<{$xoops_url}>/register.php">Register Now!</a>
<{/if}></
td>


See if that works.
s l s h a n k l e @ b e l l s o u t h . n e t

13
Jharis
Re: help to add login & password box, top right beside site logo
  • 2005/8/26 15:58

  • Jharis

  • Just can't stay away

  • Posts: 488

  • Since: 2005/2/13


As always you do great work. I pasted the new code and it worked like a charm. Why aren't you coding themes and working for XOOPS core? Once I polish the theme a bit more I plan to release to the community and will definately credit you for your awsome login block work.

Thank You

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

Login

Who's Online

99 user(s) are online (57 user(s) are browsing Support Forums)


Members: 0


Guests: 99


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