vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Profile Enhancements - vB3.5 Local time and date in post and profile (https://vborg.vbsupport.ru/showthread.php?t=94869)

Jacqueline 12-07-2005 08:33 AM

Quote:

Originally Posted by Bubble #5
BINGO! :D

Thanks Boofo! Big fan of your work :)

Bubble,
Look at post #60 in this thread. I showed the problem with the birthday and the full fix. It has exactly where to put the code and the slight modification to it to make it work there.

The problem with using it next to the current birthday statement is because it is inside an If statement, and if the user has no additional info, it doesn't show up.

dieselpowered 12-07-2005 03:19 PM

Boofo, just wanted to let you know that this works with 3.5.2, incase you wanted to change the version at the top of the thread :)

Bubble #5 12-07-2005 05:07 PM

Quote:

Originally Posted by Elleth Faewen
Bubble, Look at post #60 in this thread.

Thanks Elleth, (beautiful name by the way ) :nervous:

We jazed the code up a bit to make it look nicer. It didn't make much sense to have it say "Additional Information - N/A" and then list information like the time and date, so we fixed it like this:

Find:
HTML Code:

<else />
        <em>$vbphrase[n_a]</em>
</if>
</div>


...and replace it with:

HTML Code:

<phrase 1="$userinfo[username]">$vbphrase[time_date_intro]</phrase>

Now go to Phrase Manager > Add New Phrase.

Under Varname add:

HTML Code:

time_date_intro
Under Text add:

HTML Code:

Local time and date for {1}:
Click Save.


We also changed the bold part around to match the rest of the profile. Simply remove the bold from the headings and add it to the output of each command and that's it. You can also add fieldset to the code if you want (we didn't because we are designing an entirely new profile section for our board) but otherwise fieldset will blend the old style in closer. Check it out, it looks much better now and is personalized. Enjoy :nervous:

Boofo 12-07-2005 05:49 PM

Maybe a pic to show us how it looks now? ;)

Bubble #5 12-07-2005 06:56 PM

Quote:

Originally Posted by Boofo
Maybe a pic to show us how it looks now? ;)

LOL. Say pppppppplease :nervous:

This screenshot is how the code above will make it look. I will jazz it up more later with fieldsets that have a mouseover effect and other goodies. I'll post more about this as time permits :up:

BabyNameAddict 03-09-2006 01:15 AM

Love it, love it, love it!!

jacx 03-14-2006 05:51 PM

thanks u kindly

JaniU 03-19-2006 06:01 PM

Is there a way.. well of course there is, but could someone do it.. :)
It would be cool to show the local time the post is made in each post!

(Actually I was kinda hoping to get that and didn't read everything through so well but of course after installing this I realized it shows always the users current local time/date...)

Stop 05-11-2006 09:03 AM

Works on 3.5.4 :banana:
I'm really a big fan of your hacks, Boofo. But in In MEMBERINFO template I add it above this and it works fine.
PHP Code:

<if condition="$show['birthday']"



Thanks a lot Sir.

Boofo 05-11-2006 09:21 AM

Quote:

Originally Posted by Stop
Works on 3.5.4 :banana:
I'm really a big fan of your hacks, Boofo. But in In MEMBERINFO template I add it above this and it works fine.
PHP Code:

[b]<if condition="$show['birthday']">[/b]
[
b][/b

Thanks a lot Sir.

Thank you for the kind words, sir. ;)

You can put it wherever it looks good to you in the profile. It should work almost anywhere in there. I just added the instructions of where I had mine. ;)

I will make a suggestion, though. I would add the local date in the postbit along with the time. The reason is that sometimes you will get someone that is a day behind you in time or a day ahead, depending on what time of the day it is. It can be confusing to members trying to figure out what day it would be for that person and if they were ahead or behind in time. Just a suggestion. ;)


All times are GMT. The time now is 12:51 PM.

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.01174 seconds
  • Memory Usage 1,747KB
  • 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
  • (4)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
  • (4)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