Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Display birthday

Quote Reply
Display birthday
hello

i add two fields
user_birthday_day
user_birthday_month with mysqlman

in category_list.html i add

Day: <%set birthday = GT::Date::date_get(0, "%d%")%><%birthday%>

Day: <%set birthmonth = GT::Date::date_get(0, "%mm%")%><%birthmonth%>

but

<% if current_user_birthday_day == birthday and current_user_birthday_month == birthmonth%>
Happy Birthday
<%endif%>

dosen`t work.

waths wrong?

an how to loop users on mainpage with Birthday?

greeting hoefti
linktobuy Web Directory
Ratgeber Recht
Quote Reply
Re: [hoefti] Display birthday In reply to
another way and the same problem
Code:
<%set this_time = GT::Date::date_get%>
<%this_time%>

<%Plugins::GForum::Auth_Community::get_profile%> <%prof_birthday%>
<br>
<% if this_time (==, lt, gt, le, ge, eq, ne,) prof_birthday%>
yes
<%else%>
no
<%endif%>

nothing works whats wrong??

is it to be compared possible the fields?

please help me

greeting hoefti
linktobuy Web Directory
Ratgeber Recht
Quote Reply
Re: [hoefti] Display birthday In reply to
Hi,

To compare the value of 2 tags you need to put $ in front of the second one, eg:

<%if this_time eq $prof_birthday%>
Quote Reply
Re: [afinlr] Display birthday In reply to
hello afinlr

many thanks!
I try this in the next day.

greeting hoefti
linktobuy Web Directory
Ratgeber Recht
Quote Reply
Re: [hoefti] Display birthday In reply to
Hello afinlr

And how i can loop users
on category_list.html if this_time eq $prof_birthday ?

hoefti
linktobuy Web Directory
Ratgeber Recht
Quote Reply
Re: [hoefti] Display birthday In reply to
If you guys get this working and could translate it into something I (a moron) could understand ... or make it a plugin, that would be cool!

Visit The Guitar Diner
Quote Reply
Re: [Boomer] Display birthday In reply to
hello Boomer

The Code to Display birthday in every post
by using gossamer community

Code:
<%Plugins::GForum::Auth_Community::get_profile('$post_username')%>
<%set mydate = GT::Date::date_transform($prof_birthday, '%yyyy%-%mm%-%dd%', '%dd% %mm%')%>
<%set this_time_old = GT::Date::date_get%>
<%set this_time = GT::Date::date_transform($this_time_old, '%yyyy%-%mm%-%dd%', '%dd% %mm%')%>
<%if this_time == $mydate%>
<br>
<img border="0" src="birthday.gif" width="81" height="26"></a>
<br>
<%endif%>

put the code in the Template include_post_display.html
over
Code:
<%if user_icon%><%if not current_user_id or current_user_show_user_icons%>
or where you want to display the icon

greeting hoefti

But i cant display birthday_users on the Forum Index Page category.html

Every Ideas?????
linktobuy Web Directory
Ratgeber Recht

Last edited by:

hoefti: Nov 27, 2004, 4:39 AM