I'm trying to make a Thanks button. I know how to make it in the forum. That is easy, but how to make it work outside of the forum?
I want a Thanks button under every comment and article.
I found the code that calls the ReutationDo window :
I have to edit this code by giving the UserID for the 'n' parameter.
My problem is that there is no corresponding conditional operator for the UserID in the articles, blogs or comments moduls.
I would like to substract the UserID from the ProfileUrl with conditional operators.
I tried to do this with this code:
<?substr( $PROFILE_URL$, strpos($PROFILE_URL$,'-'), 4 )?>
Unfortunatelly it doesn't work because the lenght of that string (the IserID) is not allways 4 charachters.
So my question is: How can I substract the UserID form the ProfileUrl?
(Or is there an easyer way to make a thanx button outside the forum modul?)
Thanks in advance for all your help