Version: 1.5, by Valter
Developer Last Online: Nov 2023
Category: Miscellaneous Hacks -
Version: 3.7.x
Rating:
Released: 05-02-2008
Last Update: 05-02-2008
Installs: 53
DB Changes Uses Plugins Auto-Templates
No support by the author.
Info:
This will show membership mood for current day. Members can vote for one of five options (mood 1-5) once a day. Total votes/average mood are shown in stats. Total votes are also shown in percents using graphical bar. Votes are automatically reseted every midnight. You can change time period in Scheduled Task Manager. You can enable adding of default vote automatically after reset. SuperAdmins can reset stats/votes manually and see log. You can ban usergroups and individual members from voting and seeing mood bar.
Installation:
1. Upload folder "cyb_vmood" to your forum root, then CHMOD "cyb_vmood_votes.csv" to "777".
2. Upload "cvm_reset.php" to \includes\cron folder.
3. Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]
To set options:
Go to: AdminCP > vBulletin Options > Cyb - Members Mood
To put it on different page:
-You can have Mood bar shown on 2 pages
It's shown by default on forumhome (to disable it set option "Mood Box Placement" to "None")
To activate second location:
a) type location-name in "Additional Location" field
Explanation: When you open some vBulletin php file you'll see this at the top - "define('THIS_SCRIPT', 'XXX');"
XXX is location-name we need. It's usually the same as php filename (without extension, of course)
b) add "$cyb_vmood" to the template called on page where you wish to have stats shown
Versions: v1.0 - Nov 27. 2006.
-Initial Release v1.1 - Nov 30. 2006.
-Changed hack name to 'Cyb - Members Mood'
-Now only members can vote
-Now each member can vote only once a day (you can change time period in Scheduled Task Manager)
-Added two more options for voting, removed icons and changed options to numbers (1-5)
-If user has voted already then 'you've already voted...' message and vote info is shown instead of vote options
-Added option to view log in popup window (included info: time of voting, userid, userip, mood) - SuperAdmins only
-Added option to ban individual members from seeing Mood bar and voting
-Some small improvements in code v1.2 - Dec 01. 2006.
-Fixed bug (stats wrong because of bug in vote status check code)
-Added Auto-Vote option (this will add default vote after stats are reseted)
-Added options to enable/disable Auto-Vote and define default mood v1.3 - Dec 01. 2006.
-Fixed bug (wrong "your mood" info)
-Added username info to log v1.4 - Jul 23. 2007.
-Logs enabled for cron job
-Improved way of reseting votes
-Security exploit fixed v1.5 - May 03. 2008.
-Compatible with vBulletin 3.7
-Minor bugs fixed
Click INSTALL if you like this hack.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I think this was my problem with .htaccess
In other words the forum itself doesn't have access to forum's WWW part because its IP was blocked by .htaccess permissions.
comes to an error for me when i put 1 from 5 values:
Code:
Warning: fopen(cyb_vmood/cyb_vmood_votes.csv) [function.fopen]: failed to open stream: Permission denied in [path]/misc.php(97) : eval()'d code on line 2027
Warning: fwrite(): supplied argument is not a valid stream resource in [path]/misc.php(97) : eval()'d code on line 2028
Warning: fwrite(): supplied argument is not a valid stream resource in [path]/misc.php(97) : eval()'d code on line 2029
Warning: fclose(): supplied argument is not a valid stream resource in [path]/misc.php(97) : eval()'d code on line 2030
Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3243) in [path]/includes/functions.php on line 2991