Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by bigmattyh bigmattyh is offline
Developer Last Online: Mar 2014 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-26-2002 Last Update: Never Installs: 326
 
No support by the author.

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: Helpful template hacks: Due to the way the standard vB template set handles date columns in forumhome.php and forumdisplay.php, some template changes may be of use:Comments and criticism are always welcome.
Please click the install button to show your support.

Show Your Support

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

Comments
  #142  
Old 06-10-2002, 04:02 PM
Illuvatar's Avatar
Illuvatar Illuvatar is offline
 
Join Date: Apr 2002
Location: So. Cal
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well Boofo, the only difference between you and I is that you've applied that welcome panel hack, and I kinda thought that having an avatar displayed on the main board would take away form the look that we're trying to achieve, so I didn't apply it.

All I really wanted was for the welcome area to read more like a paragraph. :classic: I'm kinda wierd that way, but i feel that if it's gonna be something that my users are looking at regulary, I want it to flow right.....hehehe Take a look ifin you like, I think it's just about there!!http://warofthering.net/forums/vbull...ad/index.php?s

and yes, I soooo hope someone can find a simple fix for this, we're going to be going live here in a week or so, and I need to be done with the forums bit so that I can focus on remainder of the site. The thing that gets me is that it's probably right there, and I'm just not php literate enough to see it!! :cross-eyed:
Reply With Quote
  #143  
Old 06-10-2002, 04:23 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

True, we did it a little different but basically the same. We moved the information to a new template and now it doesn't work for us.

I just checked out your site and now I'm jealous. How did you get your page to be so wide that it almost takes up the whole screen (left to right)? I have mine set at 100% and I still have room left on both sides.

I like the movie your site is about and can't wait for the DVD.

If you have any free ideas floating around, I'd be interested in hearing them. You seem like you have got it all together over there.

Quote:
Originally posted by Illuvatar
Well Boofo, the only difference between you and I is that you've applied that welcome panel hack, and I kinda thought that having an avatar displayed on the main board would take away form the look that we're trying to achieve, so I didn't apply it.

All I really wanted was for the welcome area to read more like a paragraph. :classic: I'm kinda wierd that way, but i feel that if it's gonna be something that my users are looking at regulary, I want it to flow right.....hehehe Take a look ifin you like, I think it's just about there!!http://warofthering.net/forums/vbull...ad/index.php?s

and yes, I soooo hope someone can find a simple fix for this, we're going to be going live here in a week or so, and I need to be done with the forums bit so that I can focus on remainder of the site. The thing that gets me is that it's probably right there, and I'm just not php literate enough to see it!! :cross-eyed:
Reply With Quote
  #144  
Old 06-10-2002, 05:46 PM
Illuvatar's Avatar
Illuvatar Illuvatar is offline
 
Join Date: Apr 2002
Location: So. Cal
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm very pleased with the way it's come out as well!

We all loved the movie and are a bunch of Tolkien freaks.

And the forum is only just a piece, we've got a lot of sections, concerning artwork, the books, an armoury, etc....

As far as width, we have both the main table and content table to 100%, and our forum title width is 1000, we also have textarea widths at the bottom as IE 4+ = 70, Netscape Nav 4+ = 50, and Netscape 6+ = 40.

Hope this helps.


Illu
Reply With Quote
  #145  
Old 06-10-2002, 10:26 PM
bigmattyh's Avatar
bigmattyh bigmattyh is offline
 
Join Date: Nov 2001
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey guys,

Try adding this line just before the block of code you posted:
PHP Code:
eval("\$bbuserinfo[lastvisitdate] = \"".vbdate($dateformat,$bbuserinfo[lastvisit]).
" ".vbdate($timeformat,$bbuserinfo[lastvisit])."\";"); 
I just tried it on my board, and it works.
Reply With Quote
  #146  
Old 06-10-2002, 10:33 PM
Illuvatar's Avatar
Illuvatar Illuvatar is offline
 
Join Date: Apr 2002
Location: So. Cal
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You put that immediatly before the $getnewposts, so that it's there AND in the $welcometext if then else statement below?
Reply With Quote
  #147  
Old 06-10-2002, 10:36 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You da Man! Finally, it is working again. Do we need to take that code out AFTER that block then or do we need to leave it in there too? (It's the same code). And thanks for the fix, sir!

Quote:
Originally posted by bigmattyh
Hey guys,

Try adding this line just before the block of code you posted:
PHP Code:
eval("\$bbuserinfo[lastvisitdate] = \"".vbdate($dateformat,$bbuserinfo[lastvisit]).
" ".vbdate($timeformat,$bbuserinfo[lastvisit])."\";"); 
I just tried it on my board, and it works.
Reply With Quote
  #148  
Old 06-10-2002, 10:40 PM
Illuvatar's Avatar
Illuvatar Illuvatar is offline
 
Join Date: Apr 2002
Location: So. Cal
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My bunny is a jumpin!!

I answered my own question and just did as you suggested!! And it works like a charm!!

Boofo......it appears that since we did what we did, that it became one of those funky code placement issues. Outside of the if-then-else statement it works just fine. And yes!! Delete the dupe code!! In fact I just moved mine from where it was to above the $getnewpost, and SHAZAM!

Thanks Bigmattyh!! It's folks like you that keep me coming around and keep my board looking sharp!!


Illu
Reply With Quote
  #149  
Old 06-10-2002, 11:09 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got you beat! I moved mine above the $getnewthread (which was above my $getnewposts). :lick: Does that mean I win because mine is higher?

All seriousness aside, thanks to both of you, bigmattyh and Illuvatar. bigmattyh for figuring out the fix for it (which I always knew you could and would) and Illuvatar for stepping forward and helping convince them that it wasn't just me having problems.

bigmattyh, will this work there even if I didn't move the stuff out of forumhome? If so, you might want to change your original file to reflect that so you won't have to run into this again form the newbies later on down the road.

Thanks again, guys! And illuvatar, I would still like to get a few ideas from you about my site. I can use all of the help I can get. PM me if you're interested.

Quote:
Originally posted by Illuvatar
My bunny is a jumpin!!

I answered my own question and just did as you suggested!! And it works like a charm!!

Boofo......it appears that since we did what we did, that it became one of those funky code placement issues. Outside of the if-then-else statement it works just fine. And yes!! Delete the dupe code!! In fact I just moved mine from where it was to above the $getnewpost, and SHAZAM!

Thanks Bigmattyh!! It's folks like you that keep me coming around and keep my board looking sharp!!


Illu
Reply With Quote
  #150  
Old 06-10-2002, 11:10 PM
bigmattyh's Avatar
bigmattyh bigmattyh is offline
 
Join Date: Nov 2001
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
Do we need to take that code out AFTER that block then or do we need to leave it in there too? (It's the same code).
Just take it out. That line of code has to be parsed BEFORE the welcometext template is set (or wherever you use the $bbuserinfo['lastvisitdate'] variable), so any time you use it afterwards is just wasted code.

Thanks for the enthusiasm, guys.
Reply With Quote
  #151  
Old 06-10-2002, 11:13 PM
bigmattyh's Avatar
bigmattyh bigmattyh is offline
 
Join Date: Nov 2001
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
bigmattyh, will this work there even if I didn't move the stuff out of forumhome?
I'm not sure, but I don't have a whole lot of time right now to look into it or fix anything. So hopefully the newbies will look at this stuff!
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 07:53 AM.


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.05803 seconds
  • Memory Usage 2,329KB
  • 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
  • (2)bbcode_php
  • (5)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
  • (2)pagenav_pagelinkrel
  • (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