vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help - Hide my join date (https://vborg.vbsupport.ru/showthread.php?t=203316)

BlackJacket 01-27-2009 10:30 PM

Help - Hide my join date
 
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

Quote:

Originally Posted by Lynne (Post 1726603)
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:
HTML Code:

<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

Quote:

Originally Posted by Lynne (Post 1726622)
Put a condition around all those instances of the join date:
HTML Code:

<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 [DATE]1233104370[/DATE] at [TIME]1233104370[/TIME] ---------------

Thank you for your help. :)

--------------- Added [DATE]1233104773[/DATE] at [TIME]1233104773[/TIME] ---------------

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

PHP Code:

<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

Quote:

Originally Posted by NittoMOD (Post 1726623)
it doesnt go back far enough, lol.

--------------- Added [DATE]1233104370[/DATE] at [TIME]1233104370[/TIME] ---------------

Thank you for your help. :)


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

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

<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

Quote:

Originally Posted by dismas (Post 1726630)
As I recall, you're fascinated by the number 1320...

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

<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 [DATE]1233106458[/DATE] at [TIME]1233106458[/TIME] ---------------

Is this correct?

PHP Code:

<if conditon="$post[userid] != '1'">
<
div>$vbphrase[join_date]: $post[joindate]</div>
<else>
Join dateJan11320
</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:

HTML Code:

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


All times are GMT. The time now is 11:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01133 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_html_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete