Click here to register.
      
PBWG Banner


     Discuss > Etcetera

Link to registered user

User spunky
Date 3/26/2008 3:54 am
Views 1473
Rating -5    Rate [
|
]
Previous · Next
User Message
spunky

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

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

So here is the link to send a private message to you Bernd

Koen de Jonge - ProcoliX
http://www.procolix.com
Hosting - WebGUI - Virtualization

--- (Edited on 27-March-2008 00:20 [GMT+0100] by koen) ---



Back to Top
Rate [
|
]
 
 
spunky

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
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
http://www.procolix.com
Hosting - WebGUI - Virtualization

--- (Edited on 31-March-2008 15:08 [GMT+0200] by koen) ---



Back to Top
Rate [
|
]
 
 
spunky

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
http://www.procolix.com
Hosting - WebGUI - Virtualization

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
Yes macro's are processed within articles

--- (Edited on 3/31/2008 2:01 pm [GMT+0200] by bartjol) ---



Back to Top
Rate [
|
]
 
 
bartjol

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.
With a macro, you can probably extract that kind of information about the user that posted it, I'm working on a macro that has a similar function.

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

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.
With a macro, you can probably extract that kind of information about the user that posted it, I'm working on a macro that has a similar function.

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) ---

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 [
|
]
 
 
     Discuss > Etcetera



Recent Discussions Color Key

Design:

Development:

Et Cetera:

Install/Upgrade:  

Smoketest:

Template Group:


Re: User event history by knowmad - Fri @ 02:02pm

Re: Best way to make files available to webgui comunity by lctn2 - Fri @ 01:55pm

Re: Strategic Roadmap by JT - Fri @ 01:55pm

Re: Navigation links by rogier - Fri @ 01:55pm

Re: 2009 Presidents Meeting by JT - Fri @ 01:10pm

Re: navigation new window by rogier - Fri @ 01:03pm

Re: navigation new window by rogier - Fri @ 12:53pm

Re: WUC 2009 by JT - Fri @ 12:50pm

Re: Best way to make files available to webgui comunity by preaction - Fri @ 12:35pm

Re: Pagination markup by rogier - Fri @ 12:35pm

Re: Best way to make files available to webgui comunity by kristi - Fri @ 12:29pm

Debian and Ubuntu Packaging Status by jmarsden - Fri @ 12:12pm

Best way to make files available to webgui comunity by lctn2 - Fri @ 12:12pm