Firefox PHP

Identify registred user

Posted by Bert Körn 
Identify registred user
December 23, 2007 05:58PM
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:
Quote

<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#101;&#109;&#97;&#105;&#108;&#64;&#101;&#109;&#97;&#105;&#108;&#46;&#116;&#108;&#100;">Berti
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)
pat
Re: Identify registred user
December 23, 2007 06:57PM
Re: Identify registred user
December 23, 2007 07:29PM
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)
Re: Identify registred user
December 23, 2007 11:07PM
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
Re: Identify registred user
December 24, 2007 03:24AM
I would go for this one (since the user_id field is 0 for anonymous messages):
{IF MESSAGES->user_id}registered user stuff{/IF}


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
MESSAGES->user_id - works
December 24, 2007 04:23AM
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)
The result:
December 24, 2007 05:53AM
Hello,
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 :-(

My Phorum on [clever-forum.de]

My testfforum with version 5.2.x is on [test.clever-forum.de] (user: Phorum password: Clever)
Sorry, only registered users may post in this forum.

Click here to login