| Previous · Next | |
| User | Message |
|
spunky
|
Date: 3/26/2008 3:54 am · Subject: Link to registered user · Rating: -13
Hello everyone, I would like to link to a registered user from within a wobject (e.g. article or snippet). The idea is that people can post a private message simply by clicking on the name. I assume there is a macro that can be used. I just have no idea where to start looking. Thank you very much in advance!
Bernd --- (Edited on 3/26/2008 3:54 am [GMT-0500] by spunky) --- |
| Back to Top |
Rate [ | ]
|
|
bartjol
|
Date: 3/26/2008 5:12 am · Subject: Re: Link to registered user · Rating: -2
The next operation does that within a link < a href="<tmpl_var pageUrl?op=sendPrivateMessage;uid=desiredUserId"> It only depends on what user you want people be able to send to, is it an id chosen by you? Fill in the userId is it the ownerId>, I think the template variable <tmpl_var ownerUserId> exists but check that same for creator of an asset, but I'm not sure whether that template var exists I'm not sure whether a standard macro exist for this purpose, but for that check: http://www.webgui.org/user_contributions/user_contributions/macros --- (Edited on 3/26/2008 11:12 am [GMT+0100] by bartjol) --- |
| Back to Top |
Rate [ | ]
|
|
koen
|
Date: 3/26/2008 6:20 pm · Subject: Re: Link to registered user · Rating: 3
So here is the link to send a private message to you Bernd. Koen de Jonge - ProcoliX --- (Edited on 27-March-2008 00:20 [GMT+0100] by koen) --- |
| Back to Top |
Rate [ | ]
|
|
spunky
|
Date: 3/28/2008 3:27 pm · Subject: Re: Link to registered user · Rating: 4
Works! But not very convenient to use. The main problem is that you need to find out the user id first. It would be much nicer to have a macro that takes the username and does the rest. Thank you anyway. BTW, are macros being processed within articles? --- (Edited on 3/28/2008 3:27 pm [GMT-0500] by spunky) --- |
| Back to Top |
Rate [ | ]
|
|
koen
|
Date: 3/31/2008 8:08 am · Subject: Re: Link to registered user · Rating: 3
Works! But not very convenient to use. The main problem is that you need to find out the user id first. It would be much nicer to have a macro that takes the username and does the rest. Thank you anyway. I don't see how that would be a problem. If you are displaying a list of usernames somewhere you are probably allready using the userId to get to the username. Where do you want to get the username from? Koen de Jonge - ProcoliX --- (Edited on 31-March-2008 15:08 [GMT+0200] by koen) --- |
| Back to Top |
Rate [ | ]
|
|
spunky
|
Date: 4/6/2008 2:56 am · Subject: Re: Link to registered user · Rating: 0
I don't see how that would be a problem. If you are displaying a list of usernames somewhere you are probably allready using the userId to get to the username. I do not intend to display a list of usernames. I was rather looking for a convient way of providing links to the mailbox of users within articles. Imagine a line like the following at the end of an article: If you have further question, please, contact Bernd. Then Bernd should provide a link to the personal Mailbox. Ideally, this could be realized using a macro in the following way: If you have further questions, please, contact ^mailto(Bernd);. Although, I know that usernames are not necessarily unique and may change, this should work in most cases. In addition, it is a lot more intuitive to use compared to inserting a link based on the user id. The best solution would, of course, be to provide a special button within the editor similar to the "link webgui image" functionality. --- (Edited on 4/6/2008 2:56 am [GMT-0500] by spunky) --- |
| Back to Top |
Rate [ | ]
|
|
bartjol
|
Date: 3/31/2008 7:01 am · Subject: Re: Link to registered user · Rating: 7
Yes macro's are processed within articles--- (Edited on 3/31/2008 2:01 pm [GMT+0200] by bartjol) --- |
| Back to Top |
Rate [ | ]
|
|
bartjol
|
Date: 4/6/2008 3:56 pm · Subject: Re: Link to registered user · Rating: 0
It is probably possible to insert a link to message, but only to the user that created the article, not something like: I don't really know, but Bernd might. Where Bernd functions as a mailto link. This is also probably best in order not to be able to fill someone elses mailbox. But such a macro can also have an extra option, that if you really want to, you can fill in a specified userId, but maybe these function should not be to easy for everyone to use, for the given reason --- (Edited on 4/6/2008 11:01 pm [GMT+0200] by bartjol) --- |
| Back to Top |
Rate [ | ]
|
|
spunky
|
Date: 4/19/2008 1:03 am · Subject: Re: Link to registered user · Rating: 0
Whether users want to receive private messages is a decision on their own. They can specifiy so in their profile. A link to anyones mailbox can still be created manually even without a macro. Therefore, I do not see any point in restricting macro functionality to creating only a link to author's mailbox. What about your macro? What does it do exactly?
--- (Edited on 4/19/2008 1:03 am [GMT-0500] by spunky) --- |
| Back to Top |
Rate [ | ]
|