PDA

View Full Version : Deleting User Minipets


chibizoo
09-26-2010, 04:01 PM
Sorry I'm something of a super newbie to PHP, was wondering if there is any way of deleting minipets from a certain user, lets say they exploited a glitch and picked up two of a pet, for example (and how difficult this might be!) D:

Teshia
09-26-2010, 05:05 PM
You'll need to go into phpMyAdmin. Find the database where your adoptables are stored and choose adopts_owned_adoptables. This should display a table of all the pets that are owned on your site. You should be able to just delete the one that was duplicated.

Make sure to backup your database first.

Let me know if it works.

chibizoo
09-27-2010, 08:57 PM
It did, oh wow, thank you very much! *was wondering how to go at it*

Teshia
09-27-2010, 11:18 PM
^^ No problem. I'd like to add that into a mod I'm working on with the admin page. Hopefully I can get it to work.

Hall of Famer
11-29-2010, 04:13 AM
I think we should try to make a system in which admins can delete users owned adoptables through admincp? Shouldnt be hard, I will try to code one during winter break. XD

PTGigi
11-30-2010, 03:07 PM
MyAdopts has this already installed so it is possible =3 (along with click editing, custom images, change level, reset, change owner/name, etc)

It also seems like it would be similar to the "Edit User" feature just for adoptables rather than users :D

Hall of Famer
12-01-2010, 06:07 AM
Yeah, shouldnt really be hard at all, and the analogy can be found from edit user features. The page should display a load of adoptables together with its owners, adopted dates, levels and other stuff. Admins will not only be able to delete pets, but also edit its data through admincp instead of phpmyadmin. I will give a try to see if I can get it to work. ^^