By battochir on
I have seen my question asked numerous times in the forums, one way or the other, but never answered. Is there any way to remove the 'recent posts' link from the site navigation menu? Yes, you can disable the link in 4.5 and have it disappear, but when you type the URL 'yoursite/tracker', tracker is still accessible. I want the functionality of tracking individual posts on user to user basis withut being overwhelmed by every post available on a site. On active sites, such a link is simply useless--information overload. Also, I prefer Tracker to Workspace. Any suggestions?
Ciao,
Wim
Comments
Change last line of tracker module
The last line of the tracker module reads: print theme('page', $output); You can just commen it out or replace with with something like print theme('page', 'not available');
what am I missing?
Thanks nysus for the reply. Tried both 'commenting out' and 'not available' and although it prevented the URL yoursite/tracker from being visible, it removed ALL of the tracker postings. I would like to still be able to use the 'recent posts' link located in each user's account to track individual postings on a per user basis, just not have the 'recent posts' link in the main site navigation block OR have the listings appear when the URL yoursite/tracker is used. Any suggestions?
Cheers,
Wim
Sorry
Didn't look at the code long enough. Do this:
if ($uid) {
print theme('page', $output);
}
else print theme('page', 'not available');
That did it...
Thanks for clearing that up for me. Your code was right on. For others who may need this, nysus' code:
if ($uid) {
print theme('page', $output);
}
else print theme('page', 'not available');
worked like a charm, although I needed an extra bracket at the end, so:
if ($uid) {
print theme('page', $output);
}
else print theme('page', 'not available');
}
Also, in order to remove the 'recent changes' link from 'Navigation', go to admin/menus and disable the link. nysus' code takes care of the rest, ie. the URL yoursite/tracker no longer shows node lists. Thanks again.
Cheers,
Wim