Closed (fixed)
Project:
Fivestar
Version:
7.x-2.0-alpha1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2009 at 17:53 UTC
Updated:
3 Feb 2017 at 23:44 UTC
Jump to comment: Most recent
Comments
Comment #1
michelleI haven't the foggiest idea... Moving it over there. They can add it in using the hook if they want. (I'll explain further if it's needed)
Michelle
Comment #2
Richard Blackborder commentedNigeria does the info here fix your problem?
#483738: Showing the user rating widget in places other than the user profile.
Comment #3
michelleIf it's added to the user object on user load, which is what that implies, then you can access it with the $account variable in the AP template.
Michelle
Comment #4
Richard Blackborder commentedIt is indeed. Sounds like a fix to me.
Comment #5
Nigeria commentedCould someone please show me a code example for
a) a page or node
b) a block
Thanks in advance
Comment #6
Richard Blackborder commentedThis is a thread about Author Panel and Fivestarextra, so I'm leaving questions about nodes and blocks for the issue in #2.
Comment #7
drecute commented@Michele
After going through the author_pane module, I tried implementing the hook like this
Can you please lead me from here.
I also noticed that one cannot access fivestarextra in Author Pane from $account or $user or $profile. It seems the module(fivestarextra) is only available on the user profile page.
Comment #8
michelleI don't use Fivestar Extra so I have no idea. Setting this back to active since you need more help.
Michelle
Comment #9
Tafa commentedHi,
I was just wondering if you managed to get past this issue. If so, would you be able to share some of your knowledge to us as I am trying to do the same here too.
Thanks
T
Comment #10
Q2U commentedSubscribe
Comment #11
yosisays commentedSubscribing
Comment #12
yosisays commentedWell its been a full year since I've seen any activity in this thread. Has anyone been able to work on this?
Comment #13
michelleConsidering the last commit was August 29, 2009, I think this module is abandoned.
Michelle
Comment #14
rogical commentedCan anyone give some guides how to show fivestar in author pane?
And read-only to self while voteable to others.
thanks!
Comment #15
alexmoreno commentedfor anyone looking for a solution, try:
Comment #16
michelleYou don't ever want to load a UID into the $user variable as you risk that colliding with the global $user. Always use $account (for clarity) or at least something other than $user. Further, in this case, you aren't even using the $user variable so that loading serves no purpose. Using echo on a form is a bit icky but at least doesn't pose a security risk.
Comment #17
alexmoreno commentedthanks a lot, yes $usuario for example is what i often to use.
Which one is the correct manner to put the form in a tpl.php?
Thanks a lot :-).
Comment #18
ericduran commentedIn Drupal 7 fivestar is a field. You can include it in any entity like any other field. Then you can print it in the tpl like you should any other field.
Does this help?
Comment #19
yosisays commentedMichelle, per #15 and your response in #16 (and the post in http://drupal.org/node/673114#comment-5695056), does this mean that its now possible to add a user rating widget into the user profile author panel for user ratings?
Comment #20
michelleI have no idea. I was just commenting on the coding quality in the snippet.
Comment #22
dbt102 commentednode --> https://www.drupal.org/docs/7/howtos/create-a-node-in-code
block --> https://www.drupal.org/docs/7/creating-custom-modules/declaring-the-block
I think this issue got highjacked along the line, but thanks for great replies.