Points Addon for Profile Comments
This modification is in the archives.
Points add on for the Profile Commenting System coded by Danny.VBT This small add on lets you add or deduct points for new profile comments. You can use this with ebux, ucash, or any other system by changing the table and field info in the variable below. QUICK NOTE: If your actually using decimals, this may round off the users points to the nearest whole #. This is more or less all I needed but the same code could probably be reused for editing and deleting comments as well. If you want to enchance this in any way, by all means feel free to do so. Step 1: Create a new phrase (admincp -> languages and phrases -> phrase manager -> add new phrase) Phrase Type: front end error messages Product: vbulletin Varname: error_not_enough_points Text: Sorry but you do not have enough points to complete this action. Step 2: Edit the "[Comments] Add Comment" plugin (admincp -> Plugin System -> Plugin Manager) Step 3: Add this code at the very top.
PHP Code:
/* **** Begin Points Hack **** */
Step 4: Look for this code in the plugin PHP Code:
$addcomment = $db->query_write("INSERT into " . TABLE_PREFIX . "space_comments (comment_title, comment_text, comment_date, commenter_id, userid, commenter_name)
PHP Code:
/***** Begin Points Hack *****/
Download This modification is archived and cannot be downloaded. |
Similar Mods
Add-On Releases Nexia's POINTS system - ADDON vBookie | Modification Graveyard |
arcade points addon | vBulletin 3.0 Template Modifications |