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.
lenny27 Nuke Cadet
Joined: May 11, 2003
Posts: 5
Posted:
Sun Jun 08, 2003 9:47 am
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?
Cyberclark Elite Nuker
Joined: Nov 20, 2002
Posts: 237
Posted:
Sun Jun 08, 2003 11:32 am
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";
}
}
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?
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