Hi,
I've installed Advanced forum, and have it working on my dev site at www.bkks.org.uk/portal/forum. However, I have a few issues and I am looking for help.
I have installed the private message module and link to the code from the forum-thread.tpl.php with the following code
<div class="author-icons">
<?php
print $online_icon;
?>
<a href="http://bkks.org.uk/portal/privatemsg/msgto/<?php print $userid ?>">
<img src="http://www.bkks.org.uk/portal/themes/newsflash/images/blue/pm.png">
</a>
</div>
I would like to neaten this up
* Replacing hard coded links with a variable such as $site or $template, if they exist
* Check for $user->uid before printing the link, so I do not offer the option of sending yourself a personal message. I have tested for this variable, but it does not seem to be defined - though I'm still quite new so I could well be missing something.
Any help you can give gratefully received!
Gareth
Comments
Comment #1
MichelleThis is in 6.x and will be backported to 5.x soon. If you're in a hurry, this is the code:
Michelle
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
derhasi CreditAttribution: derhasi commentedHi Michelle,
there's a little code to get fixed for Privatmsg 2.0
at line 262
So addressee will be set automatically;)
But anyway, thanks for your work!! Great module!
Comment #4
MichelleI'm not going to make this change because that path doesn't work with the official privatemsg module. If you want it for your site, it can easily be changed in the .tpl.
Michelle
Comment #5
Max_Headroom CreditAttribution: Max_Headroom commentedHi Michelle
It works with Privatemsg 5.x-1.8, if that is what you mean with the official module.
Comment #6
MichelleNo, that version is abandoned. I'm talking about 5.x-2.x.
Michelle
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.