![]() |
Code:
UPGRADING FROM VERSION 1: Code:
Fatal error: Cannot redeclare vbdatenoty() (previously declared in /home/bugz/public_html/vb/admin/functions.php:1633) in /home/bugz/public_html/vb/admin/functions.php on line 1660 |
you sould really change the install file that ptoblem i had before.
its already in the code. and because it was in there twice i was getting that error also my member list sais i reged "Today, at " and thats it any way to fix this ? http://vb.bugz.m-c-web.com/memberlist.php?s= |
Nice hack! Gonna install it now :)
|
Quote:
The function vbdatenoty() isn't a standard vb function, so I'm guessing you probably pasted it twice without knowing it... or something. I made that function up, and named it, so if you didn't paste it twice, some other hack you installed decided to use that same name (although I wouldn't know why). As for your second post, I can't see what you're talking about. I visited your forums, and the Last Visited date (the only recent date I can get) is working fine. |
As cool as this hack is, I think you can take it a bit further.
I believe that people don't really have an idea how old a post is by looking at a date or timestamp. I think it would be much cooler to give them this kind of information: 1 minute old 5 minutes old 35 minutes old 1 hour old 5 hours old 2 days old 2 weeks old etc.... Or maybe with the correct date between brackets, like this: 5 minutes old (07-07-2002 15:15). Another feature of this "TIME POSTED AGO" hack could be that the admin can specify a period of when the normal date should be displayed again. For example, if a post is older than 1 month, then it will not display the '1 month old' message, but simple the date. I've seen this feature on other boards, take a look for example at http://www.dpreview.com/forums/forum.asp?forum=1002 (it's not a vb board though), it seems like it works very well there, and you get an immediate idea of how old posts are. What do you think? Am I making any sence ? :) |
this is my members list looks like when somone regesters on like today.
i made a test user today. sorry for the image quality im not on my comp and was forced to use MSpaint. |
Quote:
|
It could be done. I'll look at it today, and if it isn't too time-consuming, I'll write a separate hack for it.
|
Quote:
|
Quote:
You can't use the "at" modification within vbdate() itself -- not the way vB is written. You should only use the "at" modification in specific places where you want to see "at". It isn't appropriate in many places because vB only passes a date -- and not a time -- to many displayed dates throughout the system. Hope that helps. |
Quote:
|
[high]* Bugz kicks bugz in the ass !
[/high] i just relized the member list doesnt show the time they registerd. lol even after you posted that about the time i didnt understand.. well i put , at in the template after today and such thats why it was showing. :) good hack |
I'm glad you got it to work. :)
|
This is awesome, thanks bigmattyh!
|
Sweet hack - it's the first one that took less than one minute to implent. :D
[high]* Martin64 clicks install[/high] |
Help! I installed the hack and it works wonderfully, and my Mods love it, however, I have now lost the date (not the time) in my posts... what did I do wrong? Using vbulletin 2.5
Thanks! ASweetDeal |
Hey ASweetDeal,
I'd recommend checking out your templates. This hack doesn't do anything to eliminate the dates from anything, because of the way vB handles dates and times. You might try comparing the templates of the affected areas with the originals and seeing if there are any changes. If that doesn't work, I'll wrack my brain for more. :) Matt |
Woo hoo!!!
Made it into vB3!!! Sha na na na na na na na na na! Ka blammo! |
thank you thank you thank you
I installed this hack and it is straightforward..... it works very nicely ... I even translated it and it works on non -english forums.... ;-) |
Couldn't wait fer it to come out in vB3 - installed!
Thanks! |
Excellent hack worked great.
Craig |
Quote:
|
Quote:
|
Can this be used with 'yesterday' 'today' on 2.2.6?
|
Quote:
|
Quote:
Quote:
Code:
eval("\$bbuserinfo[lastvisitdate] = \"".vbdate($dateformat,$bbuserinfo[lastvisit]). Code:
eval("\$bbuserinfo[lastvisitdate] = \"".vbdate($dateformat,$bbuserinfo[lastvisit]). |
lol... Sorry. I meant to post that in Firefly's 'let users choose their own date format' thread, I had them both open at the same time.
|
Works well. Good hack! Thanks
|
the closest thing i have to that is this
PHP Code:
|
bump
|
Quote:
|
i am trying to get the word at in there. so it couls say yesterday "AT" blah blah. in the forumhome.
i am trying to find this code: PHP Code:
PHP Code:
|
Change this:
Quote:
Quote:
|
i changed it and its the same. no change to it.
i will check it over to make sure i have done it right. |
Okay.
You aren't supposed to be looking for PHP Code:
Replace your lines that you have with the above line. And finally, if you're trying to insert ", at" into every instance where the date is called, this isn't the way to do it. The way to do it is through templates... But you probably know that since you've at least scanned through this thread to find an answer to your question. |
Make sure you have it right below this:
Quote:
|
That doesn't quite work with ALL of the dates, although most of them can be changed through the templates. The editpost.php is one place for example that you have to change the date and time hardcode to be able to use "at" with it. :)
Quote:
|
bigmattyh, u lost me with ur post. what exactly am i suppose to do?
|
We'll do this like a choose-your-own-adventure.
#1: What are you trying to accomplish? If you want to insert ", at" into the "You last visited" line on your index home page, go to #2! If you want to insert ", at" into other dates -- not just the "You last visited" line, go to #3! #2: You want to insert ", at" into the "You last visited" line on your index home page. Simple. Just do this. If that fails, re-read the instructions on how to do this. There's a link in the first post of this thread. #3: You want to insert ", at" into other dates -- not just the "You last visited" line. Then you'll have to learn more. Start by reading through the posts to this thread. For some date conversions, yes, it's necessary to hack the code, but for many of them, you'll have to change your templates, which is very easy to do. In any case, you need to read through the posts of this thread, because your issue has been brought up about half a dozen times before, and answered. I have faith that you'll be able to figure out not only how this hack works but how to fix it, too. If you still need help after you've read all the posts and you've looked at the code and tried to figure it out, I will be happy to help you further. ;) |
|
All times are GMT. The time now is 02:24 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|