PDA

View Full Version : Add user to Global Ignore list from user options menu


markuswarren
12-23-2010, 12:19 AM
Hello all,
I'm not sure if "user options menu" is the correct term, so feel free to correct me. The menu I am talking about is the one you see when you click on a users name in a thread, It typically has options such as "View Public Profile", "Send a Private Message to <user name>", etc...

Anyway, what I'd like to be able to do is have an "Add to Global Ignore List" option under there which would grab the userid and add it to the existing Tachy Goes to Coventry listing, thus tachying that user.

Could someone possibly provide a code snippet or two that would aid me to do this. I know a little about PHP and SQL, and have coded a few mods for vB previously for a forum I maintain.

Thanks in advance.

Lynne
12-23-2010, 02:33 AM
You will need to do a query to add it to the table setting (varname=globalignore) and also to table datastore (title=options). I'd suggest looking up what is done when you change the value in the admincp to see what you will need to do.

markuswarren
12-23-2010, 10:03 AM
Thank you very much Lynne, I'll go have a sniff around. I've seen a mod that will auto add users based on how many of them are on others ignore lists, so I could modify that to do this.

adpar
02-27-2011, 09:45 PM
hello

have you perhaps tried and made this work?
i am very interested.....!!!!!!

thank you very much in advance!