It seems the Follow block for a user only appears when looking at the users profile
Id like to get it to appear on Blogs as well. So the follow me block/links appear for the blog author.
Is this in your queue of things? Any insights ?
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | whitehouse-social-links.png | 13.02 KB | paskainos |
Comments
Comment #1
q0rban commentedHi there. Good idea! Going to be thinking about this..
Comment #2
pwolanin commentedthe problem code is in hook_block:
Comment #3
q0rban commentedNot sure the best way to go about this, unfortunately. Maybe this would work on both, but I'm not sure:
EDIT, whoops forgot the closing php
Comment #4
pwolanin commented@q0rban - unfortunately, the user _load functions are a bit wonky in terms of their naming.
http://api.drupal.org/api/function/user_menu/6
'user/%user_uid_optional'
'user/%user/view'
Comment #5
q0rban commentedI think the best solution for this would be to add views fields for follow links to user table views. That way you could pass the uid argument to a view no matter the path and pull all the follow links for a specific user.
Comment #6
q0rban commentedActually, the more I think about this, the more I like the idea of using views. What about having views be a dependency of this module, and converting the site and user blocks to a view with block displays. That way people could easily see how to override it for custom implementations.
Another idea would be to have the blog block display be a view block and disabled by default so that people could see how to do it.
Comment #7
allan1015 commentedFirst, as it will be obvious I might as well say I am a bit new to drupal
That said, basically the view will do a query/filter and return a list of followme links for some user
Would you be able to do this with the views controls, I mean selecting fields etc?
Or would this be done by php code in the view?
I hate to see you have to be dependent on views, perhaps this as an option
But it does seem like overkill a bit, youve got working block, just need ot define when it can show up,
of course that may be over simplifying
There is the issue if fiuguring out who the author is,
Thanks for looking at this.
Comment #8
q0rban commentedMarked #662212: Displaying block 'User Follow' as a duplicate of this issue.
Comment #9
j0nathan commentedsubscribing
Comment #10
Anonymous (not verified) commentedsubscribing
Comment #11
paskainos commented@q0rban: First, thanks for all your hard work. Follow is a 'dead simple' (as you put it) little module that provides a TON of great functionality - much appreciated! In reviewing several feature requests with what I'd consider related functionality issues / requests, I keep wondering - in this case for instance - why wouldn't Context be an apt solution? It seems to me, this request and a few others would be amply addressed using Context. Am I just being obtuse? I can't imagine it hasn't been mentioned yet, but I didn't find anywhere it had been.
IMHO a great catchall solution would be to turn the links in to a list (menu?) allowing for fun add-on functionality from modules like Menu Block, Skinr, etc., and perhaps adding the CCK request to more easily (and flexibly) accomodate the Views suggestion you keep hinting at. This would allow, for instance, a set of Follow links broken out and located anywhere on any page, and perhaps in multi-column block format (see whitehouse-social-links, attached) like what Fusion offers through Skinr - and of course, all managed by Context. Just a thought to help keep it dead simple, letting each module do what it does best. :)
I'd be curious to hear what others think. Thanks again.
Comment #12
q0rban commented@paskainos, thanks for this great summary! Can you explain more how you think Context would be a solution? How do you pass in the user id with Context?
Comment #13
q0rban commentedMarked #794162: Displaying user follow block with Content Profile module as a duplicate of this issue.
Comment #14
smscotten commentedI'm certain this is not the best way to do it, but here's what I did, offered as food for thought:
Why is this a bad solution? For starters, because we don't know that the nodetype's name will be 'profile'. It is on the site I'm working on, but the usefulness ends there.
I pasted it in because if there were another way to determine whether the content in question were a profile (and I'm sure there must be) that test could be put in place of the $node->type == 'profile' conditional. So this should be the beginning of a solution, but only a beginning. Tying the module to Context looks like a good way to go.
Comment #15
q0rban commentedChanging the title
Comment #16
rv0 commentedsubscribe
Comment #17
mgiffordBetter Views integration can only be a good thing as far as I'm concerned. Would certainly allow more flexibility.
Comment #18
cwithout commentedAnyone who would like Views functionality for Follow in 7.x, please test the patch in #1419474: Add Views to D7 version of Follow.
Comment #19
astonvictor commentedI'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks