![]() |
Points Addon for Profile Comments
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:
Step 4: Look for this code in the plugin PHP Code:
PHP Code:
|
hmmm I am not seeing Front End Error Messages..
Could be a problem.. |
any screenshot bro
|
Thanks man, this is quite nice as I've just installed eStore and removed uShop. lol
|
amizone143: nothing to take a screen shot of. This just adds/subtracts points, trying together to already existing and great mods.
|
lookin good, I will definaetly try this out later on, when Danny upgrades the comments system ;)
|
Ok, got a problem, instead of adding the points it replaces the points on hand with the number that I said to add by.
Help! |
Quote:
Any ideas? |
i guess this didnt work to well
|
did this ever work?
|
It did for me but to be honest, my members were not really using the profile comments hack as much as I would have liked so I stopped using it and this hack unfortunately.
Anyone is more than welcome to pick up on it if they are so inclined. I just dont have the free time to check into it. |
Where can I get the "Profile Commenting System coded by Danny.VBT" ?
|
ditto^ that's my question.....
|
I'd like to know too.
|
I guess nobody every fixed the problem that has happened to various people trying this hack. Shame really, would be a good incentive to be able to give my users a bonus for commenting on others profiles. not much good when it cuts the figure down to the amount it's supposed to add, instead of actually adding it though.
I may have to have a wee look and see if I can figure out the problem myself then, cause I want to use this hack. It can't be much really, the only bit that changes the dbase is: $amt = $userpoints + $cost; to calculate the amount and UPDATE $pointstable SET $fieldx = '" . $db->escape_string($amt) . "' WHERE userid = " . $vbulletin->userinfo['userid'] . " to actually change it. |
All times are GMT. The time now is 02:05 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|