292281
Freetime
Re: Login form in header part
  • 2003/8/5 10:59

  • Freetime

  • Just popping in

  • Posts: 31

  • Since: 2003/7/30


Thanks! It's working

Freetime



292282
hsalazar
Re: Override default table setting in style.css file
  • 2003/8/5 2:51

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


VI_Knight:

Where exactly are you putting the settings in the table tags? In principle, the order in which things get displayed should be the same as in pure HTML: first the style declarations within the code, then the style declarations in the head of the HTML file, then the stylesheet.

Sometimes your changes don't get applied because you still have old values in the cached folder (templates_c), or because you change a physical template but don't do the same with the one in the database.

In other words, please be a little more specific so we can elaborate a good answer.

Cheers.



292283
mvandam
Re: Login form in header part
  • 2003/8/5 1:51

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


You can also check for ideas in the "x2t" theme which is distributd with xoops. It has a search box built into the header.



292284
spisage
Re: Login form in header part
  • 2003/8/5 1:46

  • spisage

  • Just popping in

  • Posts: 2

  • Since: 2003/8/5 1


i'm a recent downloader of XOOPS and i love it.
i'm really happy to be contributing.

ok, here goes.

the following <td> is a modification of the theme.html file in the default theme folder:

Quote:

<td valign="top"><{if !$xoops_isuser}>
<form action="<{$xoops_url}>/user.php" method="post">&nbsp;<b>user:</b> <input type="text" id="topfield" name="uname" value="<{$block.unamevalue}>" /> &nbsp; <b>pass:</b> <input type="password" id="topfield" name="pass" /><input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" /><input type="hidden" name="op" value="login" /> <input type="submit" id="topbutton" value="login" />
&nbsp; <a href="<{$xoops_url}>/user.php#lost">lost pass?</a> &nbsp; <a href="<{$xoops_url}>/register.php">register</a>
</form><{/if}>
</td>




i know for a fact that this will work perfectly!



292285
VI_Knight
Override default table setting in style.css file
  • 2003/8/4 23:45

  • VI_Knight

  • Just popping in

  • Posts: 15

  • Since: 2002/11/16


How can I override the default teble setting in teh Style.css file. I have a table that I want formatted a little different but no matter what settings I place in the table tags it still uses the default setting that is in the style.css file



292286
Freetime
Re: Login form in header part
  • 2003/8/4 22:10

  • Freetime

  • Just popping in

  • Posts: 31

  • Since: 2003/7/30


yeah... got something...
http://wiki.xoops.org/wakka.php?wakka=SmartyVariables

<{$xoops_isuser}>
True if the visitor is a logged in user

<{$xoops_userid}>
User ID of the member

<{$xoops_uname}>
Uname for the member

That means....hmm
<{if $xoops_isuser == 0}> "do form..." <{/if}> 
Hello <{$xoops_userid}>!


Am I right?!?

Freetime



292287
Hober
Re: Login form in header part
  • 2003/8/4 21:48

  • Hober

  • Just popping in

  • Posts: 40

  • Since: 2003/6/13


Probably...there has to be some variable you can check to see if the user is logged in. You could try and find that and then just check that way.



292288
Freetime
Re: Login form in header part
  • 2003/8/4 21:45

  • Freetime

  • Just popping in

  • Posts: 31

  • Since: 2003/7/30


Yes... that's one way. Is there any other?



292289
Hober
Re: Login form in header part
  • 2003/8/4 21:40

  • Hober

  • Just popping in

  • Posts: 40

  • Since: 2003/6/13


that might work, but only if you don't plan on putting anything else in that block area, you don't want to wind up with a list of recent discussions in the forums filling up your whole header and making everything ugly.



292290
Freetime
Re: Login form in header part
  • 2003/8/4 21:37

  • Freetime

  • Just popping in

  • Posts: 31

  • Since: 2003/7/30


Quote:

Hober wrote:
use the blocks manager to put it in the middle


I'd like it in header.. not in the block part.
Or.. should I move one of block-areas inside header?









Login

Who's Online

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


Members: 0


Guests: 177


more...

Donat-O-Meter

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

Latest GitHub Commits