Hello,

how would I go about making the link "Recent posts" invisible for guests and visible for authenticated users?

Kind regards,

Frank

Comments

yurg’s picture

http://yurdomain.tld/admin/user/access - find "tracker" under "permissions" column and check/uncheck appropriate checkboxes.

spade’s picture

Thank you Yur, for your reply.

It seems to make sense were you are pointing to, but I just can't find it.

First, the tracker module is enabled, but on the page Access control no tracker can be found.

Am I missing something?

Kind regards,

Frank

yurg’s picture

Hmm... it seems that we've found a little bug in tracker.module,v 1.143.2.2 2007/07/26 19:16:50
I've fixed it in my tracker.module, and will try to post information about this bug in drupal issues tracker. Dunno now familiar are you with php, code rewriting and so, but I can send fixed tracker.module file to you.

yurg’s picture

you can find my tracker.module attached to this issue: http://drupal.org/node/199313. don't forget to rename it from .txt to .module

spade’s picture

Thanks Yur,

I installed the new module, but things havened changed for the better.

Actually I got two entries Recent posts in administer/menus (one is disabled) and when I unlog from my site I still have the entry in the menu.

The disabled item has the options enable and reset, the other edit, disable and reset and says expanded No.

Do I need to do some cleanup before I continue testing the module?

Kind regards,

Frank

yurg’s picture

Probably, you also have Views module installed? If so, we need to use another technique.

spade’s picture

Yes, I do.

Thanks for staying on this with me ...

yurg’s picture

it's so hard to read in mind remotely :)

Well, let's continue to hack Drupal ;-) You will need to test 2 ways.

1. Go to yourvebsite.tld/admin/build/views and disable tracker view under all views list. Second "recent posts" link must disappear.Is it exactly that you want?

or

2. Go to yourvebsite.tld/admin/build/views and edit tracker view. At edit page you will see access settings - try to test them. Following this way you will need to disable tracker module.

good luck. please, post back here success or unsuccess story!

spade’s picture

Thanks Yur,

I did the first step and had noticed that there were two appearences of Recent posts. After disabling tracker view I reset that menu item. I noticed that there was another menu item by the same name which I deleted.

Recent posts is gone for now for unauthenticated users but for authenticated users as well.

How would I make it appear only for authenticated users? For that matter, how would I make a menu available only for users with certain roles?

Kind regards,

Frank

yurg’s picture

so, you're disable both trackers: one from tracker module, and another from Views module,right?

spade’s picture

Yes Yur, Tracker is disabled in both modules.

Am I understanding this correctly - that now content changes are not tracked at all? That would not be what I had in mind ...

I still like for certain roles, i. e. editors to be able to get a list of the changed content, but I don't want unauthorized users to see the same list. They should not be bothered with any such list at all.

Kind regards,

Frank

yurg’s picture

Then you just need to enable one of trackers. If you'll enable native tracker, you need to check permission settings in main permissions table. If Views-driven tracker will be enabled,you need to set permissions inside tracker *view* (under *edit*).

spade’s picture

Thanks Yur, for leading me to this end. It is working now.

Keep up the good work!

Kind regards,

Frank

yurg’s picture

wow! finally we did it!

good luck!

Yur.

sonata’s picture

I have been reading you discussion on how to do this. However, when I go to .../build/views under "default views", the action for the traker only allows Enable, Disable, and Add. There is no way to change the permissions, or to delete the view altogether.

After disabling this view, Recent Post is still showing up in the Anonymous users menu. Disabling the original menu item, disables it for everyone.

I used Add to add another view, giving it a slightly different name, set the permissions, and the view now appears under existing views, but I can't get the new view to appear in the navigation menu for admin.

Can you help? Thanks.

yurg’s picture

Please start reading from http://drupal.org/node/199152#comment-655446

It says:

Then you just need to enable one of trackers. If you'll enable native tracker, you need to check permission settings in main permissions table. If Views-driven tracker will be enabled,you need to set permissions inside tracker *view* (under *edit*).

And it means that you need to follow steps described. I.e. (step by step):
1. enable tracker view under .../build/views
2. press *edit* link of just enabled *tracker* View
3. then you will see permission checkboxes inside *tracker* View

and

1. go to ../build/modules
2. disable *tracker* module, which listed in modules list.

Hope it helps.

robx’s picture

I have disabled my view module + native tracker + disabled the "Recent Posts" link from the menu, but for some reason the link just keeps showing up for anonymous users. If i enable native tracker and the link in the menu, its viewable for all. Disable native tracker and enable view module, edited tracker in views to allow only authenticated users, but that still didn't change anything. What else can i do?
I am using Drupal 6.3.

Edit:
Never mind, I figured it out myself after trial and error. All those steps rendered useless. The problem was drupal's cache method ( normal ) under http://yourdomain.com/admin/settings/performance . I had to disable every cache method in there to make drupal run properly.
Soon as I cleared the cache, everything appeared as it should be.

Disabling the cache is best for my server. I don't know if anyone else has had a problem with the cache, but it sure gave me headache.

stevermeeks’s picture

thanks for the info, and yes, i cannot run cache either as it causes various problems returning white pages to end users often. Perhaps its my webhost (Godaddy), but in any event, I can't use it, and trying to troubleshoot.