Hello,
Thanks for this realy cool module.
A little bit similar to the issue "no tabs under user/me" but not exactly the same is my request.
I am using "Flag-Friend-Module". It creates 3 tabs in the user-profile: View all friends Avaiting friend approvals and Friend requests.
For example the link to View all friends is /user/%user-id/friends. It shows all flagged and accepted friends. But when i use /user/me/friends the list shows nothing. I dont know for sure if this is an issue for 'me'-aliases or for flag-friends.

I am using 'me' aliases in version 2.6.

I am using following modules:

  • Administration Menu
  • Content
  • Content Copy
  • Content Taxonomy
  • Content Taxonomy Autocomplete
  • Email
  • Fieldgroup
  • Filefield
  • Imagefield
  • Link
  • Node Reference
  • Number
  • Option Wickets
  • Text
  • User Reference
  • Content Profile
  • Blog
  • Blog API
  • Color
  • Comment
  • Contact
  • Content-translation
  • Database loggin
  • Help
  • Locale
  • Menu
  • path
  • php-filter
  • profile
  • seach
  • statistics
  • sys-log
  • Taxonomy
  • Tracker
  • Trigger
  • Update-Status
  • Upload
  • Calendar
  • Calendar Ical
  • Calendar Popup
  • Date
  • Date API
  • Date Copy
  • Date Popup
  • Date Repeat API
  • Date Timezone
  • Flag
  • Flag Actions
  • Flag Friends
  • Image API
  • Image API GD2
  • Imagecache
  • Imagecache UI
  • GMap
  • GMap Base Extralayers
  • GMap Location
  • GMap Makro Builder
  • GMap Overlays
  • Gmap Taxonomy Markers
  • Gmap Tracks
  • Location
  • Location Add another
  • Location Quick Geocode
  • Location Search
  • Node Locations
  • User Locations
  • 'me' Aliases
  • Advanced Profile Kit
  • Automatic Node Titles
  • Backup and Migrate
  • Chaos Tools
  • Composit Layout
  • Composit Layout Fields
  • Delegator
  • Lightbox2
  • Pathauto
  • String Overrides
  • Token
  • Token Actions
  • Mini Panels
  • Panel Nodes
  • Panels
  • Panels exporter
  • Rules
  • Rules Administration UI
  • Rules Scheduler
  • Bonus Panels
  • Bonus Views Export
  • Views
  • Views carousel
  • Views content panes
  • Views exporter
  • Views ui
  • Fivestar
  • Fivestar Comments
  • Voting API

Comments

chaosprinz’s picture

Now i know more: The tabs of "Flag-Friend" are created by views. This views have argumented pathes like "user/%/friends/all". When i use User-arguments i can tell them to allow "me" as argument for the uid. But this cant be done with flag-arguments, if ya know what i mean.
Would be fine if there would be a workaround or something.

cdale’s picture

Version: 6.x-2.6 » 6.x-2.x-dev

Sorry for the delayed reply.

I'm looking into this.

cdale’s picture

Status: Active » Fixed

I just committed some code which adds a me argument validator, which should enable you to use me for any argument if you want.

highvoltage’s picture

Holy crap, perfect timing! Thank you cdale, you seem to be taking good care of your module from the issues I've read. Keep up the good work!

cdale’s picture

Thanks highvoltage. I'll probably be making a release with this change over the weekend.

chaosprinz’s picture

whoo yeah. This would be realy great. This fix would give real much dynamic for the creation of menus. Prethanks from germany

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

shaunpv’s picture

Status: Closed (fixed) » Active

Ok i am having this same issue, I went to the view and in the argument checked the

Redirect to the users uid when 'me' is entered as an argument.
If selected, when a user enters 'me' for this argument, they will be redirected to the view with their user id inplace of 'me'.

but this still doesn't have my link going to the right page with the user id

shaunpv’s picture

how did you exactly fix this, i am having the issue checked the box in the argument but still not showing

asb’s picture

Same issue here with 'me' 6.x-2.9.

shaunpv’s picture

Ok i have a walk around, forget views etc

Just go make a block and put this code in as php, and bam you have the link to your pending friends and the number waiting to be approved! Dont forget to change yourdomain in the link.

<?php
global $user;
print " <a href='http://www.yourdomain.com/user/$user->uid/friends/pending'>Pending Friends</a>&nbsp;";
?>
( <font color="#FF0000"><?php
global $user;
$friend_flag_fid = flag_get_flag('friend');
$pending_friends = db_result(db_query('SELECT COUNT(*) FROM {flag_content} WHERE fid = %d AND content_id = %d', $friend_flag_fid->fid, $user->uid));
print $pending_friends;
?></font> )
shaunpv’s picture

Status: Active » Closed (fixed)

closing