» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 62
0 members and 62 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on how to display "logout" link all the time? within the Nuke 7.x - General forums, part of the PHP-Nuke 7.x category; I may be missing something very basic - but I would like to have displayed all the time a link for ...


Go Back   Nukemods Forum » PHP-Nuke 7.x » Nuke 7.x - General

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-20-2004, 09:19 PM
Junior Member
 
Join Date: Oct 2004
Posts: 9
how to display "logout" link all the time?
I may be missing something very basic - but I would like to have displayed all the time a link for a user to log out. I would prefer this to only be visible for a logged in user.

Does anybody know of a block or something that can do this for me?

kilt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-20-2004, 10:24 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
The link is simply
modules.php?name=Your_Account&op=logout
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-21-2004, 05:47 AM
Moderator
 
Join Date: Oct 2004
Posts: 260
Code:
if (is_user($user)) {
echo "<a href=\"modules.php?name=Your_Account&op=logout\">Log out</a>";
}
__________________
read me before posting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-21-2004, 08:46 PM
Junior Member
 
Join Date: Sep 2004
Posts: 18
along the same lines. I've seen many PHP-Nuke sites that have different links and/or a different layout then the default in the "Menu" block. The block with Home, Downloads, Forums, Members List, Private Messages, Statistics etc

What file are they editing to modify this? Or would it just be modules that are installed?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-21-2004, 09:35 PM
Moderator
 
Join Date: Oct 2004
Posts: 260
Didn't understand what you said. Can you post an example?
__________________
read me before posting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 10-22-2004, 10:34 AM
Junior Member
 
Join Date: Sep 2004
Posts: 18


I want to add my own links like above include bolding the category headers like "Main". The default menu would be what is displayed under the "general" section.

Hopefully this explains better

Mike just so you know the NukeResources link is a dead one because of a typo in the URL.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-22-2004, 12:18 PM
Moderator
 
Join Date: Oct 2004
Posts: 260
That i believe is a custom main menu
http://www.nukemods.com/modules.php?...iewtopic&t=378
or use $content .= "<a href=\"http://www.mysite.com\">my site </a>";
__________________
read me before posting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 10-22-2004, 01:03 PM
Junior Member
 
Join Date: Sep 2004
Posts: 18
Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 10-23-2004, 03:51 PM
Junior Member
 
Join Date: Oct 2004
Posts: 9
I tried to implement what you suggested in the code - but I am guessing I screwed it up somewhere.

Here is what I added to the block-Modules.php file:
Code:
if (is_user($user)) {
                $content .= "<a href=\"modules.php?name=Your_Account&op=logout\">Log out</a>";
        }
I put it almost at the end of the file - there was only one curly brace and the closing php tag after that code...

It didn't quite work - could you suggest how to get this logout link to appear? Ideally I would like it to show up if a user is logged in [which your code seems to allow for BTW] AND displayed as the last item in the standard Modules block.

BTW - thanks guys for your help so far!..

kilt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 10-23-2004, 03:56 PM
Moderator
 
Join Date: Oct 2004
Posts: 260
Try adding it just right before the
Code:
?>
__________________
read me before posting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Random News "YES" / Center Block "NO" Liqid Site design 0 07-06-2005 08:47 PM
The "Read More" Link and Random Quote of the Day THoTH Site design 0 04-26-2005 04:44 PM
Top of box says "charcoal-Forums" instead of " wildefire Theme packs 2 03-03-2003 10:40 AM
"Edit" and "Delete" -links in section? zlaxzzor Purged Topics 0 12-10-2002 01:04 PM
"Content" vs "Section" (didn't get it) klipywitz Purged Topics 1 12-06-2002 11:01 PM


All times are GMT -5. The time now is 10:04 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31