Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 04:56 pm EST
Geeklog Forums
Moving Blocks
Status: offline
lestat
Forum User
Chatty
Registered: 11/15/03
Posts: 64
Hello,
I would like to move the login block (user functions) to the top right of my page, not on the right or left. While looking around, I only see {geeklog_blocks} within the rightblocks.thtml and leftblocks.thtml files.
How can I do this correctly? Thanks.
I would like to move the login block (user functions) to the top right of my page, not on the right or left. While looking around, I only see {geeklog_blocks} within the rightblocks.thtml and leftblocks.thtml files.
How can I do this correctly? Thanks.
6
5
Quote
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
When you say top_right, you don't mean where the other blocks are, right? You mean the very top-right part of the screen above the right blocks...
If so, there really isn't an easy way to stick a random block up there. Since it is the User Functions block, you could just try hard-coding the links using HTML and getting the current user id via php.
If so, there really isn't an easy way to stick a random block up there. Since it is the User Functions block, you could just try hard-coding the links using HTML and getting the current user id via php.
8
4
Quote
Status: offline
vbgunz
Forum User
Full Member
Registered: 01/24/03
Posts: 169
Go into your Administrators control panel and select blocks. Choose from the blocks list (user functions). While inside the properities of the block, change the block side and ordering number. Put it on the right with an order number of 0. This should get it to show on the right side...
The one bad thing about this, is user functions will now be harder to get to from certain parts of the site. The left will always show thoughout all parts except for static pages which explicitly hide them... But for all other pages the right side blocks do not always show up compared to the left.
Left side should hold blocks you always want present while right blocks holds the extras, who's new, what's new, forumpost, etc...
good luck!
Victor B. Gonzalez -
http://aeonserv.com
The one bad thing about this, is user functions will now be harder to get to from certain parts of the site. The left will always show thoughout all parts except for static pages which explicitly hide them... But for all other pages the right side blocks do not always show up compared to the left.
Left side should hold blocks you always want present while right blocks holds the extras, who's new, what's new, forumpost, etc...
good luck!
Victor B. Gonzalez -
http://aeonserv.com
7
7
Quote
Status: offline
vbgunz
Forum User
Full Member
Registered: 01/24/03
Posts: 169
Sorry, you mean take the user functions block and place it above the right blocks, e.g. in the header or above it?
First, are you trying to move the login form for anonymous users above the right side above the blocks or are you trying to move both the anonymous user functions and logged in member user functions?
For the first, just getting the anonymous user functions form to login anywhere on your site outside of it's default placement, the following code will get you started.
<div align="center">
Username:
<input name="loginname" type="text" id="loginname">
Password:
<input name="passwd" type="password" id="passwd">
<input type="submit" class="button-login" value="Login">
</div>
</form>
Good Luck!
Victor B. Gonzalez -
http://aeonserv.com
First, are you trying to move the login form for anonymous users above the right side above the blocks or are you trying to move both the anonymous user functions and logged in member user functions?
For the first, just getting the anonymous user functions form to login anywhere on your site outside of it's default placement, the following code will get you started.
Text Formatted Code
<form style="margin-bottom:0;" action="{site_url}/users.php" method="POST"><div align="center">
Username:
<input name="loginname" type="text" id="loginname">
Password:
<input name="passwd" type="password" id="passwd">
<input type="submit" class="button-login" value="Login">
</div>
</form>
Victor B. Gonzalez -
http://aeonserv.com
6
7
Quote
Status: offline
lestat
Forum User
Chatty
Registered: 11/15/03
Posts: 64
Thank you for your reply. I copy & pasted the code to my header.html, which is where I want it, but it is hard-coded, so when a member is logged in, the username/password fields are still visable and no LOGOUT link is avialable.
What I wanted to have is what is already there in the right/left blocks (user functions), but just move it to the header.thtml.
Is this not possible? Thanks again.
What I wanted to have is what is already there in the right/left blocks (user functions), but just move it to the header.thtml.
Is this not possible? Thanks again.
3
7
Quote
Status: offline
drshakagee
Forum User
Full Member
Registered: 10/01/03
Posts: 231
In your header.thml file put this:
That should do it, you will want to to edit useroption.thtml and some other files to get it to look like you want.
Yes I am mental.
Text Formatted Code
<?php echo(COM_userMenu()) ?>That should do it, you will want to to edit useroption.thtml and some other files to get it to look like you want.
Yes I am mental.
6
5
Quote
Status: offline
lestat
Forum User
Chatty
Registered: 11/15/03
Posts: 64
Success! That is exactly what I wanted! Thank you! Now that I have this going, I just realized what my next problem is Is there an easy way to get the login/password fields side-by-side rather on top of one another? And how can I rid of the user function text, preferences, and account information links?
I simply want the login/password fields and once the user is logged in, a logout button or link. Thanks again!
I simply want the login/password fields and once the user is logged in, a logout button or link. Thanks again!
5
7
Quote
Status: offline
drshakagee
Forum User
Full Member
Registered: 10/01/03
Posts: 231
You can edit loginform.thtml to make the form items side by side, you cant really easily remove all the user options. But you can edit the useroption.thtml and the useroption_off.thtml files. You might also want to create a custom template for your user menu block.
Yes I am mental.
Yes I am mental.
4
7
Quote
Status: offline
Blaine
Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
You can also create a custom siteheader() function. The COM_siteHeader() function that is called to generate any links in the header line.
The code below in COM_siteHeader shows how GL will look for a custom theme based function and if it exists - then it will be used.
$function = $_CONF['theme'] . '_siteHeader';
if( function_exists( $function )) {
return $function( $what );
}
I used this idea on my site www.portalparts.com to combine the login/logout with some usermenu options and normal siteheader functions.
When not logged in - you get the login link but once logged in, the member options appear and a logout link.
Geeklog components by PortalParts -- www.portalparts.com
The code below in COM_siteHeader shows how GL will look for a custom theme based function and if it exists - then it will be used.
Text Formatted Code
$function = $_CONF['theme'] . '_siteHeader';
if( function_exists( $function )) {
return $function( $what );
}
I used this idea on my site www.portalparts.com to combine the login/logout with some usermenu options and normal siteheader functions.
When not logged in - you get the login link but once logged in, the member options appear and a logout link.
Geeklog components by PortalParts -- www.portalparts.com
4
6
Quote
All times are EST. The time is now 04:56 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content