vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Help! Ignore posts from a Guest (https://vborg.vbsupport.ru/showthread.php?t=41260)

scottct1 07-19-2002 03:12 PM

Help! Ignore posts from a Guest
 
We have had a problem user who a lot of users put on ignore because of his antics. Today one of the staff members got fed up with this member and deleted his account.

Of course now that the person is no longer a member all his posts are being shown as a guest (still with his username) and all the folks who put this user on ignore can now see his messages even though he is on thier ignore list.

We have tried readding this users account but still all his posts show as being from a guest account.

Is there anyways to block or reassociate all his messages back to his account?

Thanks!

Logician 07-19-2002 09:15 PM

Create a new user account for him inside Admin CP with his old username. Then edit this account's "userid" in "user" table as his old userid (you can learn his old user id by checking people's ignore lists, it should be recorded there). Then run this query:

UPDATE post SET userid=XXX WHERE username='YYY'

XXX is his userid
YYY is his username (be careful about caps!)

That will do the trick..

scottct1 07-20-2002 01:40 AM

I did that and it still dont work its still saying guest for his posts, even though if I look in POST all this users messages are set to his old user number and his username is also set to the same user number.

Any other ideas?

Neo 07-20-2002 02:12 AM

you could always delete all his old posts since he isnt there anymore.

Logician 07-20-2002 07:27 AM

I've just checked if this works or not in my local test board and it works here, please double check if you applied the steps correctly..

QiQme 11-18-2003 05:15 PM

Search for code below in functions.php (lines 274 through 278)

Code:

if (!$ignore[$post[userid]]) {
                eval("\$retval = \"".gettemplate("postbit")."\";");
        } else {
                eval("\$retval = \"".gettemplate("postbit_ignore")."\";");
        }

And change that to :

Code:

if (($ignore[$post[userid]] and $post[userid] != 0)) {
  eval("\$retval = \"".gettemplate("postbit_ignore")."\";");
} else {
  eval("\$retval = \"".gettemplate("postbit")."\";");
}


Steve Machol 11-18-2003 05:19 PM

There was really no need to reply to a thread that was over a year old. ;)

QiQme 11-20-2003 10:18 AM

sorry :)


All times are GMT. The time now is 09:27 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.01160 seconds
  • Memory Usage 1,721KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete