Closed (fixed)
Project:
me aliases
Version:
5.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2009 at 23:00 UTC
Updated:
6 Mar 2009 at 05:20 UTC
I have selected the Buddylist block |configure, and then selected to exclude the block on all pages except those listed in the box. In the box I put user/me. But when I go to my profile page, the block isn't there? Any advice? tia.
Comments
Comment #1
AppleBag commentedAnyone?
Comment #2
cdale commentedThe drupal 5 version of this module actually does a redirect to user/[uid] so using user/me in the block configuration will not work.
What might work is if you set the visibility to use PHP code, and then enter the following code:
Comment #3
AppleBag commentedHi, thanks for helping no but luck, it still shows on every page when I add the code.
Comment #4
cdale commentedSorry about that. There is one small error in the code I gave above.
Try this. Don't forget to include the
tags in the block aswell.Comment #5
AppleBag commentedThis is working great, with the exception it is also showing the block on any user's profile page, rather than just my own profile page (my own meaning whichever user is logged in).
Is there a way to tweak it so that the block only shows up on the user's own profile page and nowhere else?
Comment #6
cdale commentedSure. You should be able to do the following:
In English, that says the following:
If the first part of the path is 'user', and the second argument is a number, and the second argument is equal to the currently logged in users uid, and it is not an anonymous user, and it is not an edit/files/whatever page for this user, then show this block. :)
Please mark this issue as fixed if this works out for you.
Comment #7
AppleBag commentedPerfect, thanks a mill. :)
Comment #8
vm commentedThese nuggets should probably be posted to the handbook ?