Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB 3.5 Yesterday/Today Timestamps - User Option Details »»
vB 3.5 Yesterday/Today Timestamps - User Option
Version: 1.0.0, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.5.8 Rating:
Released: 09-17-2005 Last Update: Never Installs: 29
Uses Plugins
 
No support by the author.

vB 3.5 Yesterday/Today Timestamps - User Option
Version 1.0.0
(By Boofo)

What does this product do?
This will allow you to give your users the option of displaying the date format as Normal, Yesterday/Today or Detailed. They will have a setting in their User CP under "Edit Options > Date & Time Options" called "Date Format".

Credits:
Thanks goes out to squall14716 for the original version of this product for vB2. And to Revan for helping me figure out the vBulletin Options setting problem.

Version Information:
Version 1.0.0 --Initial release

Installation overview:
---------------------------------
Profile Fields to create: (1)
Products to install (1)

Show Your Support

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

Comments
  #12  
Old 10-28-2005, 06:13 AM
admiralapril admiralapril is offline
 
Join Date: Nov 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, does this work in 3.5 GOLD? Thanks.
Reply With Quote
  #13  
Old 10-28-2005, 04:22 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by admiralapril
Hi, does this work in 3.5 GOLD? Thanks.
Try it and see.
Reply With Quote
  #14  
Old 11-10-2005, 07:29 AM
CSGG CSGG is offline
 
Join Date: Oct 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nexialys
good thing .. the more we see stuff in the userCP, the more i like it!
Nice i like it *installed*
Reply With Quote
  #15  
Old 12-13-2005, 07:08 PM
Firestar.chkn Firestar.chkn is offline
 
Join Date: Aug 2005
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason mine just doesn't want to work. We run 3.5.1. Should it work on this version?

I create the User Profile field, install the product, change the settings, but it always stays with the forum chosen option.

I looked at the XML file, and I found the following:
Quote:
<![CDATA[$dateformatbh_field = "field{$vbulletin->options[dateformatbh]}";
if ($vbulletin->userinfo["$dateformatbh_field"] != "Use Forum Default")
{
if ($vbulletin->userinfo["$dateformatbh_field"] == "Normal")
{
$vbulletin->options['yestoday'] = '0';
}
elseif ($vbulletin->userinfo["$dateformatbh_field"] == "Yesterday/Today")
{
$vbulletin->options['yestoday'] = '1';
}
elseif ($vbulletin->userinfo["$dateformatbh_field"] == "Detailed")
{
$vbulletin->options['yestoday'] = '2';
}
}]]>
The "yestoday" doesn't look right, but I changed it to "yesterday" as well, and it didn't work either.

Any ideas what could be the problem?

Thanks
Firestar
Reply With Quote
  #16  
Old 12-17-2005, 04:28 PM
Firestar.chkn Firestar.chkn is offline
 
Join Date: Aug 2005
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone?
Reply With Quote
  #17  
Old 12-27-2005, 11:14 PM
JAYEMULE's Avatar
JAYEMULE JAYEMULE is offline
 
Join Date: Mar 2002
Location: Ohio
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like to give my forum members things to use and options to choose from. Thanks for another !

www.mules.org/forum
Reply With Quote
  #18  
Old 01-07-2006, 11:16 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works like a charm!

http://forums.philosopherslegacy.net
Reply With Quote
  #19  
Old 01-25-2006, 11:06 AM
Omranic's Avatar
Omranic Omranic is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks alot

works fine for me
Reply With Quote
  #20  
Old 01-25-2006, 02:04 PM
Megareus Rex's Avatar
Megareus Rex Megareus Rex is offline
 
Join Date: Feb 2004
Location: Pennsylvania, USA
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet, this is a hack I always wanted to offer my users!
Reply With Quote
  #21  
Old 06-10-2006, 06:44 PM
Buczilla Buczilla is offline
 
Join Date: Jun 2003
Location: St. Petersburg, FL
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice Boofo. Thank you!
Reply With Quote
Reply


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 03:29 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08472 seconds
  • Memory Usage 2,301KB
  • 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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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