You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 59 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - adding something to the main menu [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
lenny27
Nuke Cadet
Nuke Cadet


Joined: May 11, 2003
Posts: 5


PostPosted: Sun Jun 08, 2003 8:09 am Reply with quoteBack to top

Hi,

I want to the modules main menu (my site's main menu) a direct link.

I mean, let's say I want to add a link to http://www.google.com in my modules menu.

How do I do that ?

Thank you !
Find all posts by lenny27View user's profileSend private message
Cyberclark
Elite Nuker
Elite Nuker


Joined: Nov 20, 2002
Posts: 237


PostPosted: Sun Jun 08, 2003 9:09 am Reply with quoteBack to top

Open block-Modules.php

find

Code:

$content .= "<strong><big>&</big></strong>&<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
        }
   }
    }


Add after
Code:

$content .= "<strong><big>&</big></strong>&<a href=\"www.google.com\">Google Search</a><br>\n";


If you have trouble finding the first code snippet search for:
Code:
/* If you're Admin you and only you can see Inactive modules and test it */

and add the 2nd snippet right before that.

This will add a link at the end of all your modules called Google Search. If you want it to be called something else just modify the link that I told you to add.

Hope that helps.

FYI - This had previously been discussed in this thread but I don't think they did a great job explaining it perhaps, hence why I reposted for you.
Find all posts by CyberclarkView user's profileSend private message
lenny27
Nuke Cadet
Nuke Cadet


Joined: May 11, 2003
Posts: 5


PostPosted: Sun Jun 08, 2003 9:47 am Reply with quoteBack to top

Thank you .


However, I have the Modules tweak installed (from this site) ..
When I add the suggested code, the groups no longer appears...

any ideas?
Find all posts by lenny27View user's profileSend private message
Cyberclark
Elite Nuker
Elite Nuker


Joined: Nov 20, 2002
Posts: 237


PostPosted: Sun Jun 08, 2003 11:32 am Reply with quoteBack to top

Hmm, I tested it in the normal block-modules.php and it worked. Looking at the code for the tweaked block I don't see why it would mess it up, but I don't use that tweak myself, actually I don't even use block-modules I have all my links hardcoded into a modified block-phpbb_mainmenu.

Maybe try removing the inserted code and add it instead to the very bottom on the line right before

Code:

>?


So your final code would look like:

Code:

   if ($a == 1 AND $dummy != 1) {
           $content .= "<strong><big>&</big></strong>&<i>"._NONE."</i><br>\n";
   }
    }

$content .= "<strong><big>&</big></strong>&<a href=\"www.google.com\">Google Search</a><br>\n";

?>


This might look funny when logged in as admin because it would make the link appear after the admin only modules and the hidden modules, but to a normal user it should make a link to Google at the bottom of the block?

Sorry i couldn't be more help Sad
Find all posts by CyberclarkView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.449 Seconds - 195 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::