PDA

View Full Version : Help - Hide my join date


BlackJacket
01-27-2009, 10:30 PM
Hello all,

How do i hide only my join date?

Thank you for all your help!

:)

Lynne
01-27-2009, 10:41 PM
Hide it (like from certain usergroups?), or delete it? And from where?

BlackJacket
01-27-2009, 10:45 PM
Hide it (like from certain usergroups?), or delete it? And from where?

From being visable to anyone. :) Profile and posts.

Thanks :)

Lynne
01-27-2009, 10:49 PM
That's on several templates. Do a Search in Templates for "joindate" > go to edit the template > hit find (joindate should already be prewritten in there) and then remove, or comment out to test first, that line.

BlackJacket
01-27-2009, 10:50 PM
This will take away all user's join date.

I just want mine (admin, userid 1) to be hidden.

Thanks again Lynne for your help.

Lynne
01-27-2009, 10:57 PM
Put a condition around all those instances of the join date:
<if conditon="$whatever[userid] != '1'">
The line that $whatever[joindate] is on
</if>I say $whatever, cuz if it is $post[joindate], then you want to put $post[userid]. If $prepared[joindate], then $prepared[userid], etc.

It's going to be a bit of effort just to hide a joindate. Why not just set it to whatever you want in the usercp?

BlackJacket
01-27-2009, 10:58 PM
Put a condition around all those instances of the join date:
<if conditon="$whatever[userid] != '1'">
The line that $whatever[joindate] is on
</if>I say $whatever, cuz if it is $post[joindate], then you want to put $post[userid]. If $prepared[joindate], then $prepared[userid], etc.

It's going to be a bit of effort just to hide a joindate. Why not just set it to whatever you want in the usercp?

it doesnt go back far enough, lol.

--------------- Added 1233104370 at 1233104370 ---------------

Thank you for your help. :)

--------------- Added 1233104773 at 1233104773 ---------------

ok so i searched for joindate and this is what i got -

<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>

This is in postbit and postbit legacy.

What would i need to do to that code?

dismas
01-27-2009, 11:09 PM
it doesnt go back far enough, lol.

--------------- Added 1233104370 at 1233104370 ---------------

Thank you for your help. :)


As I recall, you're fascinated by the number 1320...

So, you could fake your joindate. Try something like:

<if conditon="$whatever[userid] != '1'">
The line that $whatever[joindate] is on
<else>Join date: Jan. 1, 1320
</if>


My 'else' code may be slightly off but I'm sure Lynne can correct me if need be.

BlackJacket
01-27-2009, 11:18 PM
As I recall, you're fascinated by the number 1320...

So, you could fake your joindate. Try something like:

<if conditon="$whatever[userid] != '1'">
The line that $whatever[joindate] is on
<else>Join date: Jan. 1, 1320
</if>


My 'else' code may be slightly off but I'm sure Lynne can correct me if need be.

lol thanks. I will try this now.

1320 = How many feet are in a quarter mile. ;)

--------------- Added 1233106458 at 1233106458 ---------------

Is this correct?

<if conditon="$post[userid] != '1'">
<div>$vbphrase[join_date]: $post[joindate]</div>
<else>Join date: Jan. 1, 1320
</if>

Im getting an error -

The following error occurred when attempting to evaluate this template:

The conditional on line 50 appears to be missing its beginning tag (<if>). This may cause unexpected behavior.

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Lynne
01-27-2009, 11:47 PM
This should work:

<if conditon="$post[userid] != '1'">
<div>$vbphrase[join_date]: $post[joindate]</div>
<else />
<div>$vbphrase[join_date]: Jan. 1, 1320 </div>
</if>

And when I did a quick search for "joindate" in my templates, I ended up with more than just the postbit templates.

BlackJacket
01-27-2009, 11:51 PM
This should work:

<if conditon="$post[userid] != '1'">
<div>$vbphrase[join_date]: $post[joindate]</div>
<else />
<div>$vbphrase[join_date]: Jan. 1, 1320 </div>
</if>

And when I did a quick search for "joindate" in my templates, I ended up with more than just the postbit templates.

I got that error again. :(

Lynne
01-28-2009, 02:59 AM
Very strange. I'm not sure why it wouldn't take it. I got it to work by combining it with the <if> statement around it also like this:

<if condition="$post['joindate'] AND $post[userid] != '1'"><div>$vbphrase[join_date]: $post[joindate]</div><else />
<div>$vbphrase[join_date]: Jan. 1, 1320 </div></if>

BlackJacket
01-28-2009, 03:22 AM
Very strange. I'm not sure why it wouldn't take it. I got it to work by combining it with the <if> statement around it also like this:

<if condition="$post['joindate'] AND $post[userid] != '1'"><div>$vbphrase[join_date]: $post[joindate]</div><else />
<div>$vbphrase[join_date]: Jan. 1, 1320 </div></if>

That worked!

:D

Thank you...