vbulletin attachment update

Avg Bid (USD)
$56 / hr
Project Budget (USD)
$5 - $10 / hr

Project Description:

I'm want a attachment hook here you will get a explain what i want:

If new thread added check if it content attachment? (if new thread added check $attach value == 1)
If yes get the firstpostid.

with the firstpostid check in the table attachment the contentid(its same as firstpostid).
update that contentid table ... to value 0

I hope you guys understand, if not please message me i will try to explain it more clear.
I'm making this as a hook not vbulletin php file.

Hours of work: 2 Project Duration: < 1 week Skills required:
MySQL, PHP, vBulletin
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

Hire LancerForHireLLC
$260 / hr
Hours: 4 hr/ week
Hire bridge2heyday
$50 / hr
Hours: 10 hr/ week
Hire vbtise
$8 / hr
Hours: 1 hr/ week
$15 / hr
Hours: 50 hr/ week
Hire victormoneyguy7
$42 / hr
Hours: 18 hr/ week
$10 / hr
Hours: 2 hr/ week
$10 / hr
Hours: 20 hr/ week