Closed (won't fix)
Project:
User Points Contributed modules
Version:
5.x-2.x-dev
Component:
Code: user2userpoints
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
14 Jan 2008 at 01:30 UTC
Updated:
9 Feb 2011 at 00:07 UTC
Jump to comment: Most recent file
Comments
Comment #1
jredding commentedproperly classifying this over to the contributed modules
Comment #2
neomenlo commentedyou know, if someone could just point me in the right direction of some good docs on how to add stuff to that footer thing i was talking about, i would be willing to do it.
Thing is, i cannot seem to find it. Either there are no docs for it, or I cannot think of what that footer is supposed to be called.
Comment #3
jredding commentedapi.drupal.org is your friend
http://api.drupal.org/api/function/hook_footer/5
That's for the footer (which the title states)
Under the node..
http://api.drupal.org/api/function/hook_link/5
Good Luck!
Comment #4
neomenlo commentedI have spent a very long time on this. My lack of php knowledge really made this difficult.
No matter what i do to the "if" I just can't seem to keep the "give points" from appearing at the bottom of the current user's post
This is all it took, but you wouldn't believe how long it took me.
Please let me know if you can figure out what in the world i did wrong to make the "give points" appear at the bottom of the current users posts too.
Important note! It was my choice to keep the "give points" from appearing on "PAGE" nodes. In my opinion, it really only belongs on community/dynamic nodes. Although, it should probably be up to the user.
Comment #5
jredding commentedI don't fully understand what you are attempting to do with your link array as it as callbacks and access. Its like a mix of hook_menu, FAPI and a links array.
if the URL user2userpoints/ ?
or is it
user2userpoints/ ?
I have no idea really just node name seems odd to me.
Comment #6
neomenlo commentedThat works so much better. Thanks so much!
I'm still learning. Honestly, I had no idea what I was doing either. I was just trying different things, looking at what other modules did, and looking at what that code did.
I do not understand the question.
This is really working very nicely now. That solved my frustrations in trying to get it to stop showing up at the bottom of the user's own posts. Clicking the "Give Points" link still fills in the users name.
The only thing that i think needs improvement is allowing the user to choose what node types to show it on. For the time being, I think it is safe to say that nobody will want it on "page".
Comment #7
berdirSorry for pinging the participants.
Now that Drupal 7 is out, there is no support for Drupal 5 and the
corresponding modules anymore. Therefore, I'm closing all old issues
which are still open.
I suggest you upgrade to Drupal 6 or 7 and figure out if you're feature
is still needed or the bug still exists and open a new issue in that
case.