Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by zarkov zarkov is offline
Developer Last Online: Oct 2003 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-19-2001 Last Update: Never Installs: 11
 
No support by the author.

This is a hack i created after installing the "User has started X threads" hack by tube dog.

This is my first hack and im so proud i just had to share it with you all.

I will say that im new to vbb and PHP & MySQL so the code may not be the best.

Version of vbb: RC2

Files needed: getinfo.txt & lastonline.txt See zip file below

Files to modify: member.php

Template to modify: getinfo

Please reply with likes/dislikes/modifications.


The way to install it as as in tubedogs hack

1) Open lastonline.txt
2) Find this code in members.php

[QUOTE] // get last post
$totalposts=$userinfo[posts];
if ($userinfo[posts]!=0 and $userinfo[lastpost]!=0) {
$lastpostdate=vbdate($dateformat,$userinfo[lastpost]);
$lastposttime=vbdate($timeformat,$userinfo[lastpost]);

$getlastposts=$DB_site->query("SELECT thread.title,thread.threadid,thread.forumid,postid ,post.dateline FROM post,thread WHERE thread.threadid=post.threadid AND thread.visible = 1 AND post.userid='$userid' ORDER BY post.dateline DESC LIMIT 20");

while ($getlastpost=$DB_site->fetch_array($getlastposts)) {

$getperms=getpermissions($getlastpost[forumid]);
if ($getperms[canview]) {
$lastposttitle=$getlastpost[title];
$lastposturl="showthread.php?s=$session[sessionhash]&postid=$getlastpost[postid]#post$getlastpost[postid]";
break;
}
}
} else {
$lastpostdate="Never";
}

Show Your Support

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

Comments
  #2  
Old 05-20-2001, 09:30 AM
smelialichu smelialichu is offline
 
Join Date: Nov 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lovely hack, I think I may try this one outr.
Reply With Quote
  #3  
Old 05-20-2001, 09:24 PM
zarkov's Avatar
zarkov zarkov is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok I think its good but then i wrote it. lol

I will hopefuly modify it to show if a user is currently online.

heres a screenshot of it in action.
Reply With Quote
  #4  
Old 05-22-2001, 05:22 AM
vtrac
Guest
 
Posts: n/a
Default

Nice.. thanks!
Reply With Quote
  #5  
Old 05-25-2001, 06:04 PM
Degen
Guest
 
Posts: n/a
Default

Thanks! It works great!
Reply With Quote
  #6  
Old 05-26-2001, 04:14 PM
c0bra
Guest
 
Posts: n/a
Default

Nice hack. Invades users privacy though? Would be kewl if you could add an option to switch this off in the users control panel.
Reply With Quote
  #7  
Old 05-27-2001, 04:12 AM
Sarge
Guest
 
Posts: n/a
Default

<a href="http://www.dlrarmy.com/forums/member.php?s=&action=getinfo&userid=4650" target="_blank">http://www.dlrarmy.com/forums/member...fo&userid=4650</a>

Check this out. It lists the last time a person was online... but it is earlier than the last post time.

Why is that?
Reply With Quote
  #8  
Old 05-27-2001, 01:05 PM
antilife antilife is offline
 
Join Date: Apr 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would I add this to a column on the members page after the Join Date?
Reply With Quote
  #9  
Old 06-01-2001, 09:24 AM
zarkov's Avatar
zarkov zarkov is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cobra, Personaly I dont consider it an invasion of privacy after all the stuff on the profile pages anyway, Plus its only the last time they logged in and last time they posted , Info that could be got elsewhere anyway, last Post and PM tracking for example.

Sarge, Yea I noticed this too which is why i then changed the titles to say last logged in and last activity rather than last online,
i think that the last logged in date/time is literaly that the last time the cookie was reset, so this will stay the same until either the users cookies are deleted and they login again or they logout and therefore they login again.
The last activity is the last time they did anything at all, not just post but anything.

Antilife, I dont have the code to hand ( im at work ) but all you need to do is edit the template stated in the original post and find the line that displays the info you want to put this after then copy the contents of the txt file to there instead of where i suggested.
Reply With Quote
  #10  
Old 07-04-2001, 11:35 AM
Johnny
Guest
 
Posts: n/a
Default

before i had this hack to! but now i lost him! i've got vb 2.0.1 and i can't find the template: getinfo
how does this template now called in vb 2.0.1

tnx
Johnny
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 06:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04355 seconds
  • Memory Usage 2,265KB
  • Queries Executed 23 (?)
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
  • (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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (5)postbit_onlinestatus
  • (10)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