vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Un-Activated User Management (https://vborg.vbsupport.ru/showthread.php?t=65845)

Kaishi 04-20-2005 03:47 PM

Quote:

Originally Posted by sabret00the
is it just that user that's getting special treatment?

for now, it seems xantrix is the only one that has his name appear twice.

Cyricx 04-20-2005 04:26 PM

Do you have phpmyadmin?

If so, first to go the admincp -> users -> search for users -> xantrix and then at the top you'll see User: Xantrix (id:XX)

Write that number down, then go into your phpmyadmin and check out the useractivation table

browse it and see if there is multipe entries for that userid.

Not sure how it could have happened, but that's the table this hack gets it's info from as it's the one I clear out when I reload my test site. :)

Kaishi 04-20-2005 07:23 PM

i checked the useractivation table, only 1 entry of xantrix's ID, but there's a duplicate of someone else's id. the person with the same ID appearing 2 times in the table, i had activated myself in admin cp, so i dunno >.<

by the way, is it safe for me to clear out the userids that i have activated manually in the useractivation table?

Kaishi 04-22-2005 04:02 AM

new update. the problem seems to extend past xantrix.

manageActivation Complete;
3 Day Reminder Sent To: Ludin, Shadey, Niell, Niell, Otik, Otik, Beachboy, Beachboy, sunnydolor, sunnydolor.

5 Day Reminder Sent To: Xantrix, Xantrix.

8 Day Reminder Sent To: None.

Users Deleted: No one was deleted.

please help, i love this script, would love to have it work correctly.

Marco van Herwaarden 04-22-2005 05:32 AM

Had a look into this problem and i think i know why some users show up double.

If you send a new activation mail from AdminCP (user contacted you to say they never received the mail??), vB will add a second record for that user into the 'useractivation' table, making this script see 2 waiting activations.

Can you confirm this scenario?

Kaishi 04-22-2005 05:58 AM

Quote:

Originally Posted by MarcoH64
Had a look into this problem and i think i know why some users show up double.

If you send a new activation mail from AdminCP (user contacted you to say they never received the mail??), vB will add a second record for that user into the 'useractivation' table, making this script see 2 waiting activations.

Can you confirm this scenario?

i don't know if the user themselves clicked on resend validation or whatever link it was. but i looked inside the useractivation table and there it was indeed multiple entries of those people's ID's, each with a different activation ID. hope that helps with troubleshooting.

also, is it safe to delete the contents in the useractivation table after this 'bug' have been fixed? or will it be fine to just leave it there as it is?

Marco van Herwaarden 04-22-2005 06:09 AM

The double entries in the useractivation table are not caused by this hack, it is standard vB behaviour. It is only that this hack don't check for double ones, so there should be no reason to manually remove entries from that table.

Kaishi 04-22-2005 06:12 AM

is there a way to intergrate checking for double IDs? i found it strange that close to every user that it sends out reminders to, are getting double.

sabret00the 04-22-2005 09:35 AM

you could try changing
PHP Code:

        SELECT user.usernameuser.useriduser.emailuser.joindateuseractivation.activationid 

to
PHP Code:

        SELECT DISTINCT(user.username), user.useriduser.emailuser.joindateuseractivation.activationid 


Marco van Herwaarden 04-22-2005 09:53 AM

Better to edit the manageActivation.php.

Find:
PHP Code:

    $userArray=$DB_site->query("
        SELECT username," 
TABLE_PREFIX "user.userid,email,joindate,activationid 
        FROM " 
TABLE_PREFIX "user
        LEFT JOIN " 
TABLE_PREFIX "useractivation ON (" TABLE_PREFIX "user.userid=" TABLE_PREFIX "useractivation.userid)
        WHERE " 
TABLE_PREFIX "user.usergroupid=3 AND " TABLE_PREFIX "user.posts = 0 
    "
); 

And replace by:
PHP Code:

    $userArray=$DB_site->query("
        SELECT username,user.userid,email,joindate,activationid 
            FROM " 
TABLE_PREFIX "useractivation AS useractivation
            LEFT JOIN " 
TABLE_PREFIX "user AS user ON(user.userid=useractivation.userid)
            WHERE dateline = 
                (select MAX(dateline) FROM " 
TABLE_PREFIX "useractivation AS ua2 WHERE ua2.userid = useractivation.userid)
            AND user.usergroupid=3 AND user.posts = 0    "
); 

Your code wouldn't work sabe, try it.

PS I not tried my solution, so test it on a testboard first.

Not tested, but i think that would do the trick.


All times are GMT. The time now is 01:35 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.01289 seconds
  • Memory Usage 1,754KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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