Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Cyb - Members Mood Details »»
Cyb - Members Mood
Version: 1.4, by Valter Valter is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.8 Rating:
Released: 11-26-2006 Last Update: 07-22-2007 Installs: 81
Uses Plugins Template Edits
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 07-23-2007, 01:19 PM
Mrdby Mrdby is offline
 
Join Date: Mar 2007
Location: Hades
Posts: 1,298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

UPDATING NOW!!!! Thanks man!
Reply With Quote
  #43  
Old 07-23-2007, 05:48 PM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #44  
Old 10-18-2007, 04:13 AM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Easy to install. Excellent mood hack. Installed!
Reply With Quote
  #45  
Old 11-20-2007, 03:33 AM
o0Hubba0o's Avatar
o0Hubba0o o0Hubba0o is offline
 
Join Date: Mar 2005
Location: Minnesota
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by princeedward View Post
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:
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&nbsp;
								<input name="mood" type="radio" value="2" onclick="CybMMoodSubmit();" />2&nbsp;
								<input name="mood" type="radio" value="3" onclick="CybMMoodSubmit();" />3&nbsp;
								<input name="mood" type="radio" value="4" onclick="CybMMoodSubmit();" />4&nbsp;
								<input name="mood" type="radio" value="5" onclick="CybMMoodSubmit();" />5&nbsp;
And replace with:
Code:
								&nbsp;$vbphrase[cyb_vmood_your_current_mood]:&nbsp; 
								<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&nbsp;
								<input name="mood" type="radio" value="1" onclick="CybMMoodSubmit();" />1&nbsp;
								<input name="mood" type="radio" value="2" onclick="CybMMoodSubmit();" />2&nbsp;
								<input name="mood" type="radio" value="3" onclick="CybMMoodSubmit();" />3&nbsp;
								<input name="mood" type="radio" value="4" onclick="CybMMoodSubmit();" />4&nbsp;
								<input name="mood" type="radio" value="5" onclick="CybMMoodSubmit();" />5&nbsp;
								Excellent&nbsp;


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.
Reply With Quote
  #46  
Old 02-01-2008, 05:37 AM
petacat petacat is offline
 
Join Date: Sep 2007
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another great mod. Thanks. Always easy to install and well thought out!
Reply With Quote
  #47  
Old 04-10-2008, 10:52 AM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #48  
Old 04-15-2008, 07:46 PM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Makc666 View Post
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
Reply With Quote
  #49  
Old 02-20-2009, 12:53 PM
Amadeus Cho Amadeus Cho is offline
 
Join Date: Feb 2009
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:22 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04612 seconds
  • Memory Usage 2,302KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete