Addind new blcok-Navigation.php menus

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Addind new blcok-Navigation.php menus
BoaR
CZ Newbie
BoaR has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jul 11, 2005
0.00 posts per day
Posts: 4
Points: 310
   
hello, i am trying to add more links to the block-Navigation.php on Platinum 7.6, so far i added these:

            if ($mcname != "") {
                /*if ($mcname == "Members") {
                    if ($gt_url != "") {
                        $content .= "<TR><TD class=\"row1\">&nbsp;<a href=\"account-logout.html\">Logout</a></TD></TR>\n";
                    } else {
                        //$content .= "<TR><TD class=\"row1\">&nbsp;<a href=\"account-logout.html\">Logout</a></TD></TR>\n";
                    }
                }*/
               
                if ($mcname == "Forum Menu") {
                    if ($gt_url != "") {
                       $content .= "<TR><TD class=\"row1\">&nbsp;<a href=\"forums-faq.html\">Forums FAQ</a></TD></TR>\n";
                       $content .= "<TR><TD class=\"row1\">&nbsp;<a href=\"forums-search.html\">Forums Search</a></TD></TR>\n";
                       //$content .= "<TR><TD class=\"row1\">&nbsp;<a href=\"forums-statistics.html\">Forums Statistics</a></TD></TR>\n";
                    } else {
                        $content .= "<TR><TD class=\"row1\">&nbsp;<a href=\"modules.php?name=Forums&file=faq\">Forums FAQ</a></TD></TR>\n";
                       $content .= "<TR><TD class=\"row1\">&nbsp;<a href=\"modules.php?name=Forums&file=search\">Forums Search</a></TD></TR>\n";
                       //$content .= "<TR><TD class=\"row1\">&nbsp;<a href=\"modules.php?name=Forums&file=statistics\">Forums Statistics</a></TD></TR>\n";
                    }
                }
             }


the problem is that the Logout button is showed twice in Members menu and if i try to add anything else, i also get them twice. I am adding the code between lines 166 and 186. How can i perfectly add those links?
i guess i dont need new modules for each links do i?

cheers icon_smile.gif


Back to top Reply with quote
#2   re: Addind new blcok-Navigation.php menus
dkwds
CZ Active Member
dkwds has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Jul 29, 2004
0.04 posts per day
Posts: 282
Points: 12,713
   
Acc. to the code you have put your getting the block to show logout whether the person is a user or anonymous.

You might want to try the navigation block at [ Register or login to view links on this board. ]




_________________
Back to top Reply with quote
#3   re: Addind new blcok-Navigation.php menus
BoaR
CZ Newbie
BoaR has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jul 11, 2005
0.00 posts per day
Posts: 4
Points: 310
   
i am using the default Platinum block-navigation.php menu, i dont mind having the Logout link there even if it's a user or anonymous, i guess i can change that if the user is registered user. thanks for the help though



Back to top Reply with quote
#4   re: Addind new blcok-Navigation.php menus
dkwds
CZ Active Member
dkwds has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Jul 29, 2004
0.04 posts per day
Posts: 282
Points: 12,713
   
in that case insert the code below whereever you want logout to show in the navigation block

$content .= "<TD class=\"row1\">&nbsp;<a href=\"modules.php?name=Your_Account&op=logout\">Logout</a></TD>\n";




_________________
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum