Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 81
5 members and 76 guests
chrws7zonicfati, devbpy6eloppsy5, garere3denstc3t, int5nwernetmarx, locdpalmobiwjp6
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

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

Reply
 
LinkBack Thread Tools Display Modes
how to display "logout" link all the time?
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 9
Join Date: Oct 2004
how to display "logout" link all the time? - 10-20-2004, 08:19 PM

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
Old
  (#2 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
10-20-2004, 09:24 PM

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
Old
  (#3 (permalink))
Moderator
 
Status: Offline
Posts: 260
Join Date: Oct 2004
10-21-2004, 04:47 AM

Code:
if (is_user($user)) {
echo "<a href=\"modules.php?name=Your_Account&op=logout\">Log out</a>";
}
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 18
Join Date: Sep 2004
10-21-2004, 07:46 PM

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
Old
  (#5 (permalink))
Moderator
 
Status: Offline
Posts: 260
Join Date: Oct 2004
10-21-2004, 08:35 PM

Didn't understand what you said. Can you post an example?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Junior Member
 
Status: Offline
Posts: 18
Join Date: Sep 2004
10-22-2004, 09:34 AM



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
Old
  (#7 (permalink))
Moderator
 
Status: Offline
Posts: 260
Join Date: Oct 2004
10-22-2004, 11:18 AM

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>";
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Junior Member
 
Status: Offline
Posts: 18
Join Date: Sep 2004
10-22-2004, 12:03 PM

Thanks!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#9 (permalink))
Junior Member
 
Status: Offline
Posts: 9
Join Date: Oct 2004
10-23-2004, 02:51 PM

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
Old
  (#10 (permalink))
Moderator
 
Status: Offline
Posts: 260
Join Date: Oct 2004
10-23-2004, 02:56 PM

Try adding it just right before the
Code:
?>
   
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 07:47 PM
The "Read More" Link and Random Quote of the Day THoTH Site design 0 04-26-2005 03:44 PM
Top of box says "charcoal-Forums" instead of " wildefire Theme packs 2 03-03-2003 09:40 AM
"Edit" and "Delete" -links in section? zlaxzzor Purged Topics 0 12-10-2002 12:04 PM
"Content" vs "Section" (didn't get it) klipywitz Purged Topics 1 12-06-2002 10:01 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.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