View Full Version : Profile Enhancements - vB 3.5 Yesterday/Today Timestamps - User Option
Boofo
09-17-2005, 10:00 PM
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)
nexialys
09-18-2005, 05:40 PM
good thing .. the more we see stuff in the userCP, the more i like it!
Boofo
09-18-2005, 05:59 PM
Then let's be clicking install. ;)
Oblivion Knight
09-18-2005, 06:06 PM
You've saved me a job, cheers Bob.! :D
hey.. that rhymes..
poolking
09-18-2005, 06:18 PM
/me installed
Boofo
09-18-2005, 06:24 PM
You've saved me a job, cheers Bob.! :D
hey.. that rhymes..
It's not much, but it's always been one of my favorites. ;)
nexialys
09-18-2005, 06:44 PM
Then let's be clicking install. ;)can't, i did not install it... lol
i don't use profile fields, i hate that... i'll wait to see for a hardcoded one.. but great tool!
Boofo
09-18-2005, 07:31 PM
On something like this, the wait could be a while. ;)
As long as there are profile fields to do it, I don't see them adding something like this to the core code. I don't think there's that much call for it.
theArchitect
09-19-2005, 08:55 AM
<font color="RoyalBlue">* theArchitect clicks install. *</font>
I am a big fan of increasing the number of things a user can customise. I was once told that community utopia is reached when a user has total control over what they see on the screen.
GrendelKhan{TSU
09-19-2005, 10:01 AM
thanks!
<< clicks install ^^
admiralapril
10-28-2005, 06:13 AM
Hi, does this work in 3.5 GOLD? Thanks.
Boofo
10-28-2005, 04:22 PM
Hi, does this work in 3.5 GOLD? Thanks.
Try it and see. ;)
good thing .. the more we see stuff in the userCP, the more i like it!
Nice :) i like it :) *installed*
Firestar.chkn
12-13-2005, 07:08 PM
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:
<![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
Firestar.chkn
12-17-2005, 04:28 PM
Anyone?
JAYEMULE
12-27-2005, 11:14 PM
I like to give my forum members things to use and options to choose from. Thanks for another !
www.mules.org/forum
Snake
01-07-2006, 11:16 AM
Works like a charm!
http://forums.philosopherslegacy.net
Omranic
01-25-2006, 11:06 AM
thanks alot
works fine for me
Megareus Rex
01-25-2006, 02:04 PM
Sweet, this is a hack I always wanted to offer my users! :)
Buczilla
06-10-2006, 06:44 PM
Very nice Boofo. Thank you! :)
thebassman
09-11-2006, 06:44 PM
Anyone know if this works with 3.6.0? A couple of my members were asking for this.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.