vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Userprofile Changed Date in Member Profile & recent changed on forumhome (https://vborg.vbsupport.ru/showthread.php?t=101462)

PennylessZ28 11-24-2005 04:23 PM

Good work, I am linking this over in my MySpace Template Mod Hack.

PennylessZ28 11-24-2005 04:26 PM

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?

Vizionz 11-24-2005 04:38 PM

when you click the link it brings your to there profile thats about it

PennylessZ28 11-24-2005 05:50 PM

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.

Vizionz 11-24-2005 05:56 PM

that would be pretty good for a vbadvanced module

cbr929rrerion 11-24-2005 06:35 PM

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...

Marco van Herwaarden 11-24-2005 08:50 PM

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.

Marco van Herwaarden 11-24-2005 08:55 PM

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.

cbr929rrerion 11-24-2005 09:06 PM

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:

Marco van Herwaarden 11-24-2005 09:12 PM

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. :D


All times are GMT. The time now is 05:52 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.01032 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete