The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
YESTERDAY/TODAY DATESTAMP HACK - Updated 5/25/02
Tested and working on vB 2.2.1 -> 2.2.6 Description: This hack replaces the standard "05-25-02, 02:45 PM" date with "Today" or "Yesterday" anywhere you have a date posted, if the date matches today's or yesterday's date. Demo: Installed on vBulletin.org. The following are add-ons that may be helpful depending on your specific needs. Extra features:
Please click the install button to show your support. Show Your Support
|
Comments |
#212
|
||||
|
||||
Hey bigmattyh!!!
[high]* Illuvatar moves site to new server, installs 2.2.7, and reapplys this most excellent hack with NO PROBLEMS!! [/high] lol And get this... I even modified the code a little cause I liked the "Today, at" in the last visited piece, and I wanted it on my individual forum display as well! All I did was this: PHP Code:
Many thanks again! Illu |
#213
|
|||
|
|||
Wonder why he didnt add the ", at" that way in the first place...seems easier. I dont know much about code, but is there a reason why he chose to add it the other way? loads faster? god i stupid!
|
#214
|
||||
|
||||
Hi, I am running vB 2.2.7 and I just installed this hack tonight. Everything seems to be working as advertised except for the display in Trilobyte's Welcome Panel hack. I have attached an image to show what the problem looks like.
I followed your instructions in this post and it made no difference irregardless of which line I posted it above ($getnewthread or $getnewpost). Any ideas about what could have gone wrong? I followed the instructions to the letter... |
#215
|
||||
|
||||
Quote:
Quote:
Greystang302: I don't have the welcome panel installed on my forums, so I can't troubleshoot this one. It looks like the value for $bbuserinfo[lastvisit] is being replaced elsewhere in the welcome panel code... Can you find a line in that hack that assigns a value to $bbuserinfo[lastvisit]? If so, comment it out (by typing // before any text on that line. |
#216
|
||||
|
||||
I will check on that after work tonight Matty, I was also looking at the code while eating breakfast this morning and it looks like for some reason some of the edits that I made to the file didn't get uploaded? Not sure what could have happened though...
I will verify this tonight and post the findings. Thanks for the help! |
#217
|
||||
|
||||
Well, I got the hack working again except for the Welcome Panel. I got home from work late so I didn't have time to do anything else otherwise. There is a code difference in the 2.2.7 release, but it's not major. I will post all of this tomorrow, I am beat! Gotta get to sleep for now...
|
#218
|
|||
|
|||
Very nice hack indeed ... simple and works.
Wanted to do as many others mentioned and have it display up top also like You last visited: 09-11-2002 01:58 AM ... but I don't have any code matching what you specified in an earlier post in my index.php: Code:
if (isset($bbforumview[$forum['forumid']]) and $bbforumview[$forum['forumid']]>$bbuserinfo['lastvisit']) { $userlastvisit=$bbforumview[$forum['forumid']]; } else { $userlastvisit=$bbuserinfo['lastvisit']; } Code:
if (($fview = get_bbarraycookie('forumview', $forum['forumid'])) > $bbuserinfo['lastvisit']) { $userlastvisit=$fview; } else { $userlastvisit=$bbuserinfo['lastvisit']; |
#219
|
||||
|
||||
That code was one of the differences with 2.2.7 that I mentioned before... it was part of a change to the original code to fix an AOL cookie-dumping problem. I just haven't had a chance to post about it yet.
|
#220
|
||||
|
||||
Okay... I haven't upgraded to 2.2.7 (and I'm not planning to yet!), so I can't say for sure if this will work, but give it a try:
Replace this: Code:
if (($fview = get_bbarraycookie('forumview', $forum['forumid'])) > $bbuserinfo['lastvisit']) { $userlastvisit=$fview; } else { $userlastvisit=$bbuserinfo['lastvisit']; Code:
if (($fview = get_bbarraycookie('forumview', $forum['forumid'])) > $bbuserinfo['lastvisit']) { $userlastvisit=$fview; } else { $userlastvisit=vbdate($bbuserinfo['lastvisit']); |
#221
|
|||
|
|||
you ^#^&@^&! you fecked my board!
hehe just kidding m8, thanx for the suggestion. tried it out and got: Code:
Warning: Missing argument 2 for vbdate() in /home/choicein/public_html/forums/admin/functions.php3 on line 1609 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|