Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
Details »»

Version: , by Sarge (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-17-2001 Last Update: Never Installs: 0
 
No support by the author.

I want the last posttime and date under the avatar when someone posts

I added $lastonline_time $lastonline_date like it shows in get_info to the postbit template but it didn't show up like it does in the profile

Any suggestions on how to make this work?

Show Your Support

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

Comments
  #2  
Old 08-17-2001, 03:23 PM
BradC
Guest
 
Posts: n/a
Default

well cause the 2 variables that you added to postbit, have not been given a value.

find where you have the variables... that go with the getinfo template. it should be in your member.php file.. do a search for "getinfo" which should eventually bring up an "if ($getinfo)" line..

find the code in there, and then take that part of the code and I do believe either add it to the functions.php in the admin folder, or to the showthread folder..

open them both up, and see if you can find where it calls the other variables like post[username] stuff like that.. I think it got moved from the showthread.php file to the functions.php since vb2.0.3
Reply With Quote
  #3  
Old 08-17-2001, 05:04 PM
BDJ
Guest
 
Posts: n/a
Default

did you try formatting $post[lastpost] under the
while ($post = $DB_site->fetch_array($posts) and $counter++<$perpage)
subroutine (it's in showthread.php)
Reply With Quote
  #4  
Old 08-17-2001, 05:36 PM
Sarge
Guest
 
Posts: n/a
Default

Quote:
Originally posted by BradC
well cause the 2 variables that you added to postbit, have not been given a value.
Argh
That went right over my head

IS there anyway someone can hack this and release it?
IT would be a cool and easy hack to release
Chris
Reply With Quote
  #5  
Old 08-17-2001, 07:45 PM
BDJ
Guest
 
Posts: n/a
Default

So, you want the last time they visited?

i.e., Last Post: 25 July 2001 at 6:05 p.m.?


in showthread.php (under the piece of code I just mentioned), add this:

Code:
  $post[lastposttime] = vbdate($timeformat,$post[lastpost]);
  $post[lastpostdate] = vbdate($dateformat,$post[lastpost]);
Then, in your postbit template, add this right under your avatar:

Code:
<smallfont>Last Post: $post[lastposttime] on $post[lastpostdate]</font>
That's how I put it in mine at least.
Reply With Quote
  #6  
Old 08-17-2001, 07:49 PM
BDJ
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Sarge


Argh
That went right over my head

All he was saying is that you made two variables $lastonline_time and $lastonline_date, however, in showthread.php, they're not actually defined.
Reply With Quote
Reply

Thread Tools

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 11:16 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.05300 seconds
  • Memory Usage 2,229KB
  • Queries Executed 21 (?)
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_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete