View Full Version : Add-On Releases - Cyb - Members Mood
Valter
11-26-2006, 10:00 PM
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=132576) if you like this hack.
shadowevil
11-27-2006, 02:56 AM
first post ..... *installed*
ubblite
11-27-2006, 03:06 AM
Nice one, thanks.
Does this track the user's IP on mood changes so they can't alter the stats by clicking on their mood multiple times?
Qwest
11-27-2006, 03:11 AM
No the title does not say it all....
What exactly does this do?
Why would visitors use it?
Would they know how?
Can only visitors use it or is it for members too?
TheBlackPoet
11-27-2006, 03:34 AM
apparently... its not for VISITORS.... its for MEMERS... WHO VISIT...... NOW IT MAKES SENSE... i too was wondering what good this will do for people who "visit" the site but have no access privs..... hahahahah GOOD HACK... INSTALLED!
COBRAws
11-27-2006, 04:13 AM
Hey AJAX would be really great ;)
--EDiT--
Working great on 3.5
abramelin
11-27-2006, 07:30 AM
Very very nice mod but here are the questions;
1-Only members can use this am i right? if guests can use than its not a good thing, maybe an option in the acp for this will be good.
2-ajax use is a must i think
3-how much a user can vote?it should be once in 24 hours i think but you didnt tell us
the title doesnt tell everything.
Valter
11-27-2006, 02:00 PM
-If you look at screenshots you'll see that you can block guests or any registered usergroup from using this hack.
-I call it Visitors Mood because it's not for registered members only but guests can use it also if you allow them. You can give it any name you wish by editing phrase 'cyb_vmood_visitors_mood'.
-Any user can vote several times. If mood is changing several times a day why not give users possibility to vote again when they wish...
-Only Super Administrators can reset status.
abramelin
11-27-2006, 02:45 PM
last two questions;
1-doesnt it be good to use ajax with this?
2-the graphical bar is only for visual i think. it has no functions?
Valter
11-27-2006, 03:19 PM
last two questions;
1-doesnt it be good to use ajax with this?
2-the graphical bar is only for visual i think. it has no functions?
1. This I think can be done. I'll try to implement it in the next version.
2. It just shows mood level. Gradient background pic shows three colors from mood icons, from bad to good (red to yellow).
bashy
11-27-2006, 04:00 PM
Great addition thanks :)
abramelin
11-27-2006, 05:36 PM
waiting for ajax use to install , thanks :)
COBRAws
11-27-2006, 06:43 PM
how can i set only 1 vote a day?
bashy
11-27-2006, 07:08 PM
Dont matter, sorted it now lol :o
dr-jamal
11-28-2006, 09:10 AM
well done .. installed
Three issues:
- RESET in the Forumhome is not active for me as I am the ADMIN .. how to activate it ?
- Ajax is a must for this.
- Option to allow or disallow multiple votings as I don't want for example a visitor just to spend the whole day pressing bad bad bad bad ..
More to think about:
What if a visitor or a member choose the mood he or she wants then a popup comes on to write a reason for this mood then back to the main page. ( all ajax of course ). You can then put a link to reads all the reasons ..
MillerLight
11-28-2006, 10:42 PM
Installed, nice hack!
Need to get one of the graphic guru's to supply us a better looking set of thumb images.
You would think the graphic members would support the coders with latest hack images needed, or it would be nice to see that supporting effort.
Valter
11-30-2006, 03:25 AM
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
To upgrade from 1.0: Import XML, allow overwrite. Then delete images 'mood1.gif', 'mood2.gif', 'mood3.gif' from 'cyb_vmood' folder.
ubblite
11-30-2006, 04:41 AM
Nice improvements with the update.
Roxie
11-30-2006, 08:00 PM
Seems to work -- except the amount of votes isn't changing. 6 people voted but it still says 1.
Roxie
11-30-2006, 08:09 PM
Ok..Not averaging for us. It says 100, but some members have voted 5...some 1
*edit* Sorry for the back to back post. =/
Valter
12-01-2006, 08:06 AM
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
Upgrade Info:
1. Import attached XML as product, allow overwrite.
2. Upload file "cvm_reset.php" to your forum's "\includes\cron" folder. Overwrite existing file.
Valter
12-01-2006, 10:00 AM
v1.3 - Dec 01. 2006.
-Fixed bug (wrong "your mood" info)
-Added username info to log
Upgrade Info:
1. Import attached XML as product, allow overwrite.
2. Upload file "cvm_reset.php" to your forum's "\includes\cron" folder. Overwrite existing file.
3. Reset votes! This is required or several infos will be wrong. To get data from lines more precisely I had to change infos order.
Roxie
12-01-2006, 10:33 AM
Just reset and the date now says: (From 31-12, 19:00 Till Now)
ninjamaster
12-01-2006, 09:57 PM
thanks nice work
Alien
12-02-2006, 04:35 AM
Very nice work. Kudos!
Shazz
12-02-2006, 04:45 AM
The postbit one is waaay better ! :D
This one is very creative
trd167
12-07-2006, 11:58 PM
I just on a mood number and nothing happens and when i click on VIEW or RESET I get prompted to download "cyb_vmood_votes.csv." file. anything wrong here?
abramelin
12-09-2006, 09:18 AM
what about ajax use?
nedo_a
01-17-2007, 05:32 PM
i get this message:
Warning: file(/cyb_vmood/cyb_vmood_votes.csv) [function.file]: failed to open stream: No such file or directory in /misc.php(96) : eval()'d code on line 325
Warning: Invalid argument supplied for foreach() in /misc.php(96) : eval()'d code on line 327
Warning: fopen(cyb_vmood/cyb_vmood_votes.csv) [function.fopen]: failed to open stream: Permission denied in /misc.php(96) : eval()'d code on line 339
Warning: fwrite(): supplied argument is not a valid stream resource in /misc.php(96) : eval()'d code on line 340
Warning: fwrite(): supplied argument is not a valid stream resource in /misc.php(96) : eval()'d code on line 341
Warning: fclose(): supplied argument is not a valid stream resource in /misc.php(96) : eval()'d code on line 342
Warning: Cannot modify header information - headers already sent by (output started at /home/nedim1/public_html/includes/class_core.php:3053) in /includes/functions.php on line 2676
Valter
01-18-2007, 07:08 AM
Hi nedo_a,
You've probably forget to CHMOD "cyb_vmood_votes.csv" to "777".
nedo_a
01-18-2007, 04:44 PM
Hi nedo_a,
You've probably forget to CHMOD "cyb_vmood_votes.csv" to "777".
I cmod this, and i get this message now:
Warning: file(/cyb_vmood/cyb_vmood_votes.csv) [function.file]: failed to open stream: No such file or directory in /misc.php(96) : eval()'d code on line 325
Warning: Invalid argument supplied for foreach() in /misc.php(96) : eval()'d code on line 327
Warning: Cannot modify header information - headers already sent by (output started at /home/nedim1/public_html/includes/class_core.php:3053) in /includes/functions.php on line 2676
princeedward
05-04-2007, 06:55 PM
installed but got error like this now....i follow all instruction but when i vote myself or click reset...this thing happen to my page...
Warning: fopen(cyb_vmood/cyb_vmood_votes.csv) [function.fopen]: failed to open stream: Permission denied in /misc.php(96) : eval()'d code on line 239
Warning: fwrite(): supplied argument is not a valid stream resource in /misc.php(96) : eval()'d code on line 240
Warning: fwrite(): supplied argument is not a valid stream resource in /misc.php(96) : eval()'d code on line 241
Warning: fclose(): supplied argument is not a valid stream resource in /misc.php(96) : eval()'d code on line 242
Warning: Cannot modify header information - headers already sent by (output started at /home/prince/public_html/includes/class_core.php:3036) in /includes/functions.php on line 2676
Somebody Help Here Please... :o
FlyTalk
05-05-2007, 07:00 PM
I get the same, not interested anymore, and certainly not supported
Valter
05-05-2007, 08:41 PM
Read installation instructions.
princeedward
05-05-2007, 09:14 PM
i did all the instructions read and followed...as it written...re-upload and re-install also..but still not working at al to my vb3.6.5...i dont really know what wrong and i'm getting that error message as long as i vote and reset...
:(
TXStar
05-31-2007, 06:36 PM
Any way I can change what it's for.
Example: Instead of "your current mood"...... it'd say "how drunk are you", "how pissed are you", "how paranoid are you"....etc...etc.
possible?
BTW: Works great, excellent job.
Valter
06-01-2007, 07:43 AM
Of course you can. Modify hack phrases to satisfy your needs.
TXStar
06-01-2007, 01:28 PM
Of course you can. Modify hack phrases to satisfy your needs.
EDIT: NVM, I got it, thanks!
Mrdby
06-01-2007, 01:29 PM
?????????
Valter
07-23-2007, 01:18 PM
v1.4 - Jul 23. 2007.
-Logs enabled for cron job
-Improved way of reseting votes
-Security exploit fixed
To upgrade: Import XML, allow overwrite.
Mrdby
07-23-2007, 01:19 PM
UPDATING NOW!!!! Thanks man!
princeedward
07-23-2007, 05:48 PM
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...
SuperTaz
10-18-2007, 04:13 AM
Easy to install. Excellent mood hack. Installed!:D
o0Hubba0o
11-20-2007, 03:33 AM
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...
Something like he said would be nice so memebers know which mood is good and which is bad, even adding some text in front and behind:
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:
$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
And replace with:
$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: http://img.photobucket.com/albums/v496/HubbasBedroom/moodsample.gif
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. ;)
petacat
02-01-2008, 05:37 AM
Another great mod. Thanks. Always easy to install and well thought out!
Makc666
04-10-2008, 10:52 AM
Stop working with 3.6.9
Tested on a clean install of 3.6.9
You vote.
The product writes the log info into *.cvs
But when the page is reloaded you again see 1-2-3-4-5
And you can vote again.
And the second line is added to *.cvs
Makc666
04-15-2008, 07:46 PM
Stop working with 3.6.9
Tested on a clean install of 3.6.9
You vote.
The product writes the log info into *.cvs
But when the page is reloaded you again see 1-2-3-4-5
And you can vote again.
And the second line is added to *.cvs
Hm...
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 :eek:
Amadeus Cho
02-20-2009, 12:53 PM
Hi
I get this error:
Warning: file(http://www.*****.com/forum/cyb_vmood/cyb_vmood_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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.