Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
User's local time in post! Details »»
User's local time in post!
Version: 1.00, by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-08-2002 Last Update: Never Installs: 81
 
No support by the author.

A very simple hack, but I'm sure your users will like this.
With this you can display the local time for every user in their post. Look to the left to see the hack in action.

To install this hack download the attached file (localtimepost.hack.php), upload to your /admin folder and use vbHacker.

That's all I have to say... wow that was short.

Have fun that's what really matters!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 07-18-2002, 07:15 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
        $bbuserinfo['localtime'] = date($timeformattime()+($bbuserinfo['timezoneoffset']-$timeoffset)*3600);
        
$bbuserinfo['localdate'] = date($dateformattime()+($bbuserinfo['timezoneoffset']-$timeoffset)*3600); 
Reply With Quote
  #53  
Old 07-22-2002, 10:05 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no working for me just says Local Time: nothing here please help i have edited templates and uploaded functions.php

i am using VBB 2.2.4
Reply With Quote
  #54  
Old 07-27-2002, 04:45 AM
Massiel Massiel is offline
 
Join Date: Feb 2002
Location: Australia
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Firefly this worked great for a while but for some reason my local time is not 4 hrs off, any ideas why?
Reply With Quote
  #55  
Old 08-07-2002, 10:28 AM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed with the txt ver. getting this error, was a very easy install so i dunno why im getting this error, on the main page right at the top

Parse error: parse error, unexpected $ in /home/virtual/site61/fst/var/www/html/forums/admin/functions.php on line 2255

this is line 2255 WHERE subscribethread.threadid='$threadid'

any help pls?
Reply With Quote
  #56  
Old 08-14-2002, 01:14 PM
2 X Viverridae's Avatar
2 X Viverridae 2 X Viverridae is offline
 
Join Date: Jul 2002
Location: Undisclosed
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed quickly, works great!

Seem to be saying that to FireFly a lot today...
Reply With Quote
  #57  
Old 08-20-2002, 10:17 AM
NexDog's Avatar
NexDog NexDog is offline
 
Join Date: Mar 2002
Location: Lost in the Nexus
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Clicks install
Reply With Quote
  #58  
Old 08-25-2002, 02:10 AM
Odil Odil is offline
 
Join Date: Apr 2002
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly
Text version as requested by Smoothie.
Thanks Firefly, vbhacker file ads the Local time part in but not the actual time, gives an error that the code required couldn't be found.

Odil
Reply With Quote
  #59  
Old 08-31-2002, 01:52 PM
Ice Man_00 Ice Man_00 is offline
 
Join Date: Jan 2002
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this be used in a newer versions of VBB ??
Tried to install it manually in 227 version, but it dosen`t show.

Here`s what i did:

PHP Code:
        } else {
            
$post[signature] = "";
        }

        
/* User local time in post */
        
global $timeoffset;
        
$post['localtime'] = date($timeformattime()+($post['timezoneoffset']-$timeoffset)*3600);
        
/* User local time in post */
    
} else {
        
$postsperday=0;
        
$post[username]=$post[postusername];
        
$post[usertitle]="Guest";
        
$post[joindate]="Not Yet";
        
$post[posts]="N/A"
Is this wrong ?
Reply With Quote
  #60  
Old 08-31-2002, 02:29 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's what I have and it works fine. I am using 2.2.5, but I can't see why it wouldn't work in 2.2.7 unless it has changed more than I thought it did. Are you using $post[localtime] in your postbit? By the way, I have the local date here too in case you want that too.

PHP Code:
} else {
            
$post[signature] = "";
        }

        
/* User local time and date in post */
        
global $timeoffset;
        
$post['localtime'] = date($timeformattime()+($post['timezoneoffset']-$timeoffset)*3600);
        
$post['localdate'] = date($dateformattime()+($post['timezoneoffset']-$timeoffset)*3600);
        
/* User local time and date in post */
    
} else {
        
$postsperday=0;
        
$post[username]=$post[postusername];
        
$post[usertitle]="Guest";
        
$post[joindate]="Not Yet";
        
$post[posts]="N/A"
Reply With Quote
  #61  
Old 08-31-2002, 03:19 PM
Ice Man_00 Ice Man_00 is offline
 
Join Date: Jan 2002
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx for the quick reply. But it still dosen`t work. Must have changed a lot since 2.2.5 then...
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:38 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.06970 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete