Lesigner Girl
Minerva
Head of Runboard staff
Registered: 11-2005
Posts: 9606
Karma: 132 (+147/-15)
|
ReplyQuote
|
|
Re: Quick Login code
A posticon was missing? Maybe that imageshack server was down. Or did you mean something else?
I guess I forgive you for not pointing out my boo boo. I just hope I didn't screw anyone up by forgetting it.
|
5/24/2006, 3:33 am
|
Link to this post
PM Lesigner Girl
Read Blog
|
The Mooseman
Citizen
Registered: 03-2005
Province: Looking for my brain...
Posts: 592
Karma: 8 (+8/-0)
|
ReplyQuote
|
|
Re: Quick Login code
All good now......and I didnt even wake up at night
--- ~ Quickly, I must hurry, for there go my people and I am their leader ~
|
5/24/2006, 11:39 am
|
Link to this post
PM The Mooseman
|
Lesigner Girl
Minerva
Head of Runboard staff
Registered: 11-2005
Posts: 9606
Karma: 132 (+147/-15)
|
ReplyQuote
|
|
Re: Quick Login code
That's good to hear.
|
5/25/2006, 6:27 pm
|
Link to this post
PM Lesigner Girl
Read Blog
|
MeRcChRiS
Citizen
Registered: 05-2006
Posts: 1
Karma: 0 (+0/-0)
|
ReplyQuote
|
|
Re: Quick Login code
This is a pretty sweet code!
|
5/29/2006, 7:23 pm
|
Link to this post
PM MeRcChRiS
AIM
MSN
Read Blog
|
Lesigner Girl
Minerva
Head of Runboard staff
Registered: 11-2005
Posts: 9606
Karma: 132 (+147/-15)
|
ReplyQuote
|
|
Re: Quick Login code
Thanks, MeRcChRiS!
|
5/30/2006, 12:33 am
|
Link to this post
PM Lesigner Girl
Read Blog
|
Pastor Rick
Citizen
Registered: 07-2005
Province: Texas
Posts: 619
Karma: 11 (+12/-1)
|
ReplyQuote
|
|
Re: FAQ: Login box and logout link, hidden when not needed
Lesigner Girl said:
For instance, if you have a one-row table with a link in each table cell, you'll want to add that class name to the <td> containing the logout link. Example:
<table><tr>
<td>link</td>
<td>link</td>
<td class="logout"><a href="/logout">Logout</a></td>
<td>link</td>
</tr></table>
That last example will make the cell containing the link disappear, including the link inside it.
If you have any trouble with this or have any questions, you can ask in a reply to this thread.
Edited to improve code
Hi Lesigner Girl,
I don't understand tables but the "one-row table" sounds like the answer James and I have been looking for with Near The Cross. Currently we only have a Google Search box and your Logout link centered above the message board area but it would be nice to have four cells(?) side by side so we could get a couple of other things in place... Since the board already has tables in it would this still be possible?
|
10/11/2006, 12:05 am
|
Link to this post
PM Pastor Rick
Read Blog
|
Lesigner Girl
Minerva
Head of Runboard staff
Registered: 11-2005
Posts: 9606
Karma: 132 (+147/-15)
|
ReplyQuote
|
|
Re: FAQ: Login box and logout link, hidden when not needed
Yes, it's definitely possible. If you want the logout link to be in one of those four cells, leaving the table at 3 cells for people who are already logged out, change this:
<a class="logout" href="/logout">Logout</a>
To this:
<table><tr>
<td><a href="___">TEXT</a></td>
<td><a href="___">TEXT</a></td>
<td><a href="___">TEXT</a></td>
<td class="logout"><a href="/logout">Logout</a></td>
</tr></table>
I gave the "logout" class to the whole <td> which contains the logout link, so the whole table cell will disappear along with anything inside it (the logout link) when someone is not logged in.
Replace ___ with the appropriate urls, and TEXT with the appropriate link text.
If you don't want the logout link to be last, just rearrange the <td>...</td> lines.
For future reference, the basic table structure:
Every table starts with <table> and ends with </table>.
tr = table row. <tr> starts one row and </tr> ends it.
td = table data, aka table cell.
For a two-row table with 3 columns:
<table>
<tr><td>content</td><td>content</td><td>content</td></tr>
<tr><td>content</td><td>content</td><td>content</td></tr>
</table>
You can define stuff in the <table>, <tr>, and <td> tags themselves (just as I added a class to one of the <td>s above), but that is the basic structure of a table. I hope this helps!
Last revised by Lesigner Girl, 10/11/2006, 2:08 am
|
10/11/2006, 2:02 am
|
Link to this post
PM Lesigner Girl
Read Blog
|
Pastor Rick
Citizen
Registered: 07-2005
Province: Texas
Posts: 619
Karma: 11 (+12/-1)
|
ReplyQuote
|
|
Re: FAQ: Login box and logout link, hidden when not needed
Hi,
I have noticed that when you are logged in and you post a new message the "log in" box shows up... anyway to fix it?
Just in case you need to see it the code is on James board Near The Cross
|
11/19/2006, 4:12 am
|
Link to this post
PM Pastor Rick
Read Blog
|
Lesigner Girl
Minerva
Head of Runboard staff
Registered: 11-2005
Posts: 9606
Karma: 132 (+147/-15)
|
ReplyQuote
|
|
Re: FAQ: Login box and logout link, hidden when not needed
Hi Pastor Rick
I forgot all about that when I fixed it here at the Temple. Since there is no Control Panel link on the posting screen, the <body> doesn't take on the id of "logged_in". Therefore, <body id="logged_in"> has to be added into either the Posticon header or the Clickable Smileys header, which are two things that can only appear when someone is logged in.
So, in your CLS add <body id="logged_in"> to either
msgform_clickable_smilies ~or~ msgform_choose_a_posticon
I'll edit my initial post and add this instruction to it. Thanks for pointing it out.
|
11/19/2006, 2:29 pm
|
Link to this post
PM Lesigner Girl
Read Blog
|