View Full Version : Private message (integrate with lesane's store hack)
lordofgun
08-15-2002, 03:01 PM
I'd like to be able to charge my members a certain number of points for sending a private message. I wouldn't want you to have to visit the store for this, but just that it would automatically remove 5 or 10 points when you send a message.
Thoughts?? I think it would be great! ;)
Lesane
08-15-2002, 03:23 PM
Find in private.php:
eval("standardredirect(\"".gettemplate("redirect_pmthanks")."\",\"private.php?s=$session[sessionhash]\");");
Add before it:
$updatestore = $DB_site->query("UPDATE user SET storep=storep-'10' WHERE userid='$bbuserinfo[userid]'");
If you want to charge 5 points then change the 10 easily to 5. :)
lordofgun
08-16-2002, 02:51 AM
thanks bro!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.