Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Userprofile Changed Date in Member Profile & recent changed on forumhome Details »»
Userprofile Changed Date in Member Profile & recent changed on forumhome
Version: 1.03, by Marco van Herwaarden Marco van Herwaarden is offline
Developer Last Online: Dec 2010 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 11-23-2005 Last Update: 02-11-2006 Installs: 66
DB Changes Uses Plugins Template Edits
 
No support by the author.

<font size="4">Userprofile Changed Date - Version 1.03</font>

Hack: Userprofile Changed Date
Version: v1.03
Author: MarcoH64

Last tested on vB3.5.3, but should work on any 3.5.x

Features
- Show the time a User Profile was last updated in the Public Member Profile
- Show a list of the most recent members who have changed their profile on the forumhome page. Hovering over the username will show the time the profile was changed
- Set timelimit between edits before a member show in the recent changed list on forumhome again, to prevent 'Recent Change Spammers'
- As an update are counted changes in: Profile, Avatar, Profile Picture & Signature
- You can turn off updating the timestamps for any of these locations from your vB Options
- The format of the Last Changed date-time can be set in your vB Options.
- Choose to cutoff the list of Recent Changed profiles by either a maximum number of profiles, a timelimit (ie. changed in the last 24 hours) or both.

Changelog
12-2-2006 v1.03
- Added option to cutoff the list of changed profiles on the forumhome page based on a timelimit.
- In previous versions you had to enable/disable plugins, to change if a specific area of the userprofile
(ie Avatar, signature, ..) would be counted as an update. Now added new settings in the vB Options to control this.
- Added a date/time format to the Options. Now you can control how the Last Changed date is shown. Before a change have
effect, someone needs to update their profile since the formatted date/time is already stored in the datastore.

5-12-2005 v1.02
- Fixed bug where only the last change would show on forumhome

25-11-2005 v1.01
- Moved the core logic to functions loaded inside new Plugin
- Removed core logic from the other Plugins, making it easier to maintain code
- Fixed the Profile Pic Plugin
- Added new Plugin for Signature changes
23-11-2005 v1.00
- Initial Release

Notes
Copyright ©2005 MarcoH64
This Modification may not be redistributed in whole or significant part or changed without prior agreement of author.
Please don't forget to click Install.
If you like this work and would like to support the author, donations are always welcome at Paypal: Marcoh64 AT gmail.com

Show Your Support

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

Comments
  #12  
Old 11-24-2005, 04:23 PM
PennylessZ28 PennylessZ28 is offline
 
Join Date: Mar 2002
Location: North America
Posts: 737
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good work, I am linking this over in my MySpace Template Mod Hack.
Reply With Quote
  #13  
Old 11-24-2005, 04:26 PM
PennylessZ28 PennylessZ28 is offline
 
Join Date: Mar 2002
Location: North America
Posts: 737
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How does this work? I'm wanting to know if I could add an extension to allow you to search profiles by recently updated. Does this add anything to the DB?
Reply With Quote
  #14  
Old 11-24-2005, 04:38 PM
Vizionz Vizionz is offline
 
Join Date: Jul 2003
Location: Chicago
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when you click the link it brings your to there profile thats about it
Reply With Quote
  #15  
Old 11-24-2005, 05:50 PM
PennylessZ28 PennylessZ28 is offline
 
Join Date: Mar 2002
Location: North America
Posts: 737
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was just looking over the xml file and the tables it adds/alters and I think you might be able to add a new search to search for most recently updated profiles.

Or at least search and order by most recent.
Reply With Quote
  #16  
Old 11-24-2005, 05:56 PM
Vizionz Vizionz is offline
 
Join Date: Jul 2003
Location: Chicago
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that would be pretty good for a vbadvanced module
Reply With Quote
  #17  
Old 11-24-2005, 06:35 PM
cbr929rrerion cbr929rrerion is offline
 
Join Date: Oct 2005
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyway to get it to check changes to more user stuff, like avatar changes, signature and profile pics, etc..

If they change the signature or avatar it dont list it.. can you do it? I know I cant.. But I click *installed* anyway...
Reply With Quote
  #18  
Old 11-24-2005, 08:50 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HR3rdGen
I was just looking over the xml file and the tables it adds/alters and I think you might be able to add a new search to search for most recently updated profiles.

Or at least search and order by most recent.
Yes this is easily possible.
There are 2 datestamps added to the user table:
- mh_upcd_lastprofilechange: The real last changed timestamp
- mh_upcd_lastprofilelist: The last timestamp this user was put on the list of recent changes. Only updated if the user change his profile after the wait limit has passed since the previous listing. This is done to avoid users changing their profile (or not even really changing) all the time, just to stay on the recent changed list (spamming).

For example, the limit is set to 60 minutes:
00:00 User updates profile. Both timestamps are updated, and he is put in the recent change list.
00:10 User updates his avatar, only mh_upcd_lastprofilechange is updated, and user is not put on the list again
00:55 User update profile again, same as 00:10
01:05 User update Avatar again, waittime has passed, so both are updated again and he is put on the list again.

You can choose yourself which timestamp you want to do a select on if you want to write your own recent changed query, depending if you want the real change time, or the 'anti-spam' time.

You can look up the logic in the plugin on either of the following locations (they are all identical, but didn't want to create an includes/functions_....php file):
- profile_updateavatar_complete
- profile_updateprofile
- profile_updateprofilepic_complete

PS:
On the Member Profile page you will see the real changed time.
For the Latest changes on forumhome, a datastore row is used that is filled whenever the recent list needs to be updated.
Reply With Quote
  #19  
Old 11-24-2005, 08:55 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cbr929rrerion
anyway to get it to check changes to more user stuff, like avatar changes, signature and profile pics, etc..
Quote:
- As an update are counted changes in: Profile, Avatar & Profile Picture
All except signatures are already done. It didn't make much sense to me to do it for signatures since everyone will already see if it is changed.
But if you want you can create a new plugin at hook location 'profile_updatesignature_complete', copy and paste the code from the plugin at location 'profile_updateavatar_complete' in it.
Reply With Quote
  #20  
Old 11-24-2005, 09:06 PM
cbr929rrerion cbr929rrerion is offline
 
Join Date: Oct 2005
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
All except signatures are already done. It didn't make much sense to me to do it for signatures since everyone will already see if it is changed.
But if you want you can create a new plugin at hook location 'profile_updatesignature_complete', copy and paste the code from the plugin at location 'profile_updateavatar_complete' in it.

Did it.. It works.. Thanks.... :banana:
Reply With Quote
  #21  
Old 11-24-2005, 09:12 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cbr929rrerion
Did it.. It works.. Thanks....
So you created a new plugin, you could feel a bit like a coder now.
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 06:48 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.05146 seconds
  • Memory Usage 2,306KB
  • 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
  • (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
  • (3)pagenav_pagelink
  • (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