The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Cyb - Members Mood Details »» | |||||||||||||||||||||||||
vB 3.7 VERSION HERE:
https://vborg.vbsupport.ru/showthread.php?t=177948 === 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 Click INSTALL if you like this hack. Show Your Support
|
Comments |
#42
|
|||
|
|||
UPDATING NOW!!!! Thanks man!
|
#43
|
||||
|
||||
now its working good and excellent...thanks bro cyb...
but is it possible that we can see what is the meaning or which mood for each # of buttons? something like if we point the mouse pointer to each button...we can see if its #1 bad, #2 not bad, #3 good, #4 very good, #5 excellent please view my attachment... |
#44
|
||||
|
||||
Easy to install. Excellent mood hack. Installed!
|
#45
|
||||
|
||||
Quote:
Bad 1 2 3 4 5 Excellent For now I edited the phrase "cyb_vmood_your_current_mood" to say: Your Current Mood (1 = Bad | 5 = Excellent) which works for me. EDIT: Actually I change my mind and did a template edit: In template "cyb_vmood" find: Code:
$vbphrase[cyb_vmood_your_current_mood] <input name="moodtime" type="hidden" value="$moodtime" /> <input name="vmm_id" type="hidden" value="$vmm_id" /> <input name="vmm_ip" type="hidden" value="$vmm_ip" /> <input name="vmm_un" type="hidden" value="$vmm_un" /> <input name="mood" type="radio" value="1" onclick="CybMMoodSubmit();" />1 <input name="mood" type="radio" value="2" onclick="CybMMoodSubmit();" />2 <input name="mood" type="radio" value="3" onclick="CybMMoodSubmit();" />3 <input name="mood" type="radio" value="4" onclick="CybMMoodSubmit();" />4 <input name="mood" type="radio" value="5" onclick="CybMMoodSubmit();" />5 Code:
$vbphrase[cyb_vmood_your_current_mood]: <input name="moodtime" type="hidden" value="$moodtime" /> <input name="vmm_id" type="hidden" value="$vmm_id" /> <input name="vmm_ip" type="hidden" value="$vmm_ip" /> <input name="vmm_un" type="hidden" value="$vmm_un" /> Bad <input name="mood" type="radio" value="1" onclick="CybMMoodSubmit();" />1 <input name="mood" type="radio" value="2" onclick="CybMMoodSubmit();" />2 <input name="mood" type="radio" value="3" onclick="CybMMoodSubmit();" />3 <input name="mood" type="radio" value="4" onclick="CybMMoodSubmit();" />4 <input name="mood" type="radio" value="5" onclick="CybMMoodSubmit();" />5 Excellent It will look like this: I didn't bother looking to see if there's a hover attribute for radio buttons to add yet, and of course you could add whatever text you want. Just an fairly quick and easy fix until cyb decides if he wants to add something similar. |
#46
|
|||
|
|||
Another great mod. Thanks. Always easy to install and well thought out!
|
#47
|
||||
|
||||
Stop working with 3.6.9
Tested on a clean install of 3.6.9
|
#48
|
||||
|
||||
Quote:
Others working with 3.6.9? I am the only one whom this one doesn't work with 3.6.9? Update: Fixed this one. 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. Punished myself |
#49
|
|||
|
|||
Hi
I get this error: Warning: file(http://www.*****.com/forum/cyb_vmood...mood_votes.csv) [function.file]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in [path]/misc.php(100) : eval()'d code on line 137 Warning: Invalid argument supplied for foreach() in [path]/misc.php(100) : eval()'d code on line 139 Warning: fopen(cyb_vmood/cyb_vmood_votes.csv) [function.fopen]: failed to open stream: No such file or directory in [path]/misc.php(100) : eval()'d code on line 151 Warning: fwrite(): supplied argument is not a valid stream resource in [path]/misc.php(100) : eval()'d code on line 152 Warning: fwrite(): supplied argument is not a valid stream resource in [path]/misc.php(100) : eval()'d code on line 153 Warning: fclose(): supplied argument is not a valid stream resource in [path]/misc.php(100) : eval()'d code on line 154 Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3254) in [path]/includes/functions.php on line 3087 Can anyone please help ? Thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|