Identify registred user
Posted by Bert Körn
|
December 23, 2007 05:58PM |
Registered: 20 years ago Posts: 46 |
Hello,
how can i identify registred users in:
- read*.tpl
- list*.tpl
In MESSAGES->URL->PROFILE also guests with email avaible :-(
I will make following:
- Only link the Emailaddressfron guests for users with login
- sign registred users with an icon, no guests
i know that the emailaddress is masqurate:
Berti
I speek swabian and german very well - not english :-(
My Phorum on [clever-forum.de]
My testfforum with version 5.2.x is on [test.clever-forum.de] (user: Phorum password: Clever)
how can i identify registred users in:
- read*.tpl
- list*.tpl
In MESSAGES->URL->PROFILE also guests with email avaible :-(
I will make following:
- Only link the Emailaddressfron guests for users with login
- sign registred users with an icon, no guests
i know that the emailaddress is masqurate:
ThanksQuote
<a href="mailto:email@email.tld">Berti
Berti
I speek swabian and german very well - not english :-(
|
Re: Identify registred user December 23, 2007 06:57PM |
Registered: 22 years ago Posts: 683 |
|
December 23, 2007 07:29PM |
Registered: 20 years ago Posts: 46 |
Hello Pat,
thanks for the quick answer :)
But i search to identify the registered messageauthor.
With MESSAGES->URL->PROFILE also guests with emailaddress are includet. :-(
In Phorumversion 5.1.x i have identified with {IF MESSAGE->profile_url}
in the new 5.2.4-RC1 it don't works...
Thanks
Berti
I speek swabian and german very well - not english :-(
My Phorum on [clever-forum.de]
My testfforum with version 5.2.x is on [test.clever-forum.de] (user: Phorum password: Clever)
thanks for the quick answer :)
But i search to identify the registered messageauthor.
With MESSAGES->URL->PROFILE also guests with emailaddress are includet. :-(
In Phorumversion 5.1.x i have identified with {IF MESSAGE->profile_url}
in the new 5.2.4-RC1 it don't works...
Thanks
Berti
I speek swabian and german very well - not english :-(
|
December 23, 2007 11:07PM |
Registered: 21 years ago Posts: 609 |
Quote
Berti
Hello Pat,
thanks for the quick answer :)
But i search to identify the registered messageauthor.
With MESSAGES->URL->PROFILE also guests with emailaddress are includet. :-(
In Phorumversion 5.1.x i have identified with {IF MESSAGE->profile_url}
in the new 5.2.4-RC1 it don't works...
Thanks
Berti
Try {IF MESSAGES->URL->PROFILE}
Bill
|
December 24, 2007 03:24AM |
Admin Registered: 21 years ago Posts: 8,532 |
I would go for this one (since the user_id field is 0 for anonymous messages):
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
{IF MESSAGES->user_id}registered user stuff{/IF}
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
December 24, 2007 04:23AM |
Registered: 20 years ago Posts: 46 |
Hello Maurice,
it works :-)
Thanks
Berti
I speek swabian and german very well - not english :-(
My Phorum on [clever-forum.de]
My testfforum with version 5.2.x is on [test.clever-forum.de] (user: Phorum password: Clever)
it works :-)
Thanks
Berti
I speek swabian and german very well - not english :-(
|
December 24, 2007 05:53AM |
Registered: 20 years ago Posts: 46 |
Hello,
here is my result for my question:
Show icon for registred users before the username in the listing
Don't show given Emailaddress for guests and spiders, only linking profiles:
For the list_threads.tpl and read_threads.tpl...
For other templates and places similar.
I know that the emailadress is masked, but some guest will not show them for crawlers
Merry Christmas
Berti
I speek swabian and german very well - not english :-(
My Phorum on [clever-forum.de]
My testfforum with version 5.2.x is on [test.clever-forum.de] (user: Phorum password: Clever)
here is my result for my question:
Show icon for registred users before the username in the listing
<td width="10%" class="{altclass}" nowrap="nowrap">
{IF MESSAGES->user_id}
<img src="{URL->TEMPLATE}/images/group.png" class="icon1616" alt=".." title=".." />
{ELSE}
<img src="{URL->TEMPLATE}/images/blank.gif" class="icon1616" alt=".." title=".." />
{/IF}
Don't show given Emailaddress for guests and spiders, only linking profiles:
{IF LOGGEDIN}
{IF MESSAGES->URL->PROFILE}
<a href="{MESSAGES->URL->PROFILE}">
{/IF}
{MESSAGES->author}
{IF MESSAGES->URL->PROFILE}
</a>
{/IF}
</td>
{ELSE}
{IF MESSAGES->URL->PROFILE}
{IF MESSAGES->user_id}
<a href="{MESSAGES->URL->PROFILE}">
{/IF}
{/IF}
{MESSAGES->author}
{IF MESSAGES->URL->PROFILE}
{IF MESSAGES->user_id}
</a>
{/IF}
{/IF}
</td>
{/IF}
For the list_threads.tpl and read_threads.tpl...
For other templates and places similar.
I know that the emailadress is masked, but some guest will not show them for crawlers
Merry Christmas
Berti
I speek swabian and german very well - not english :-(
Sorry, only registered users may post in this forum.