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

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

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 01-09-2009 Last Update: Never Installs: 91
Uses Plugins Auto-Templates
Additional Files  
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.

Download Now

File Type: zip Cyb - Members Mood v1.5.zip (15.1 KB, 557 views)

Screenshots

File Type: jpg moodbar.jpg (48.6 KB, 0 views)
File Type: gif superadmins.gif (6.2 KB, 0 views)
File Type: jpg acp.jpg (70.3 KB, 0 views)

Show Your Support

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

Comments
  #22  
Old 10-17-2009, 01:33 AM
chick's Avatar
chick chick is offline
 
Join Date: Aug 2006
Location: PI Land
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes works perfect on 3.8.4 pl1 great... if you are on a linux server cyb_vmood_votes.csv file needs 755 not 777
Reply With Quote
  #23  
Old 10-17-2009, 02:57 AM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chick View Post
yes works perfect on 3.8.4 pl1 great... if you are on a linux server cyb_vmood_votes.csv file needs 755 not 777
Thank you! I will definitely keep note of that.
Reply With Quote
  #24  
Old 01-25-2010, 07:03 PM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great on 3.8.1
Reply With Quote
  #25  
Old 01-25-2010, 08:36 PM
methos10 methos10 is offline
 
Join Date: Jun 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice mod installed and working great!!!!!
Reply With Quote
  #26  
Old 05-07-2010, 07:57 AM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Schnee View Post
Can't make it work.

I get the following.
There is a little bug in this mod.

The problem part is:
PHP Code:
            $ccsv_data fopen("cyb_vmood/cyb_vmood_votes.csv""r");
            
$csv_read fgets($ccsv_data);
            
$line_pos strpos($csv_read,'_Mood:');
            
$cvm_starttime substr($csv_read,5,$line_pos);
            
$cvm_starttime vbdate('d-m, H:i'$cvm_starttime);
            
fclose($csv_data); 
If we look more attentevly we will see that the first variable is:
$ccsv_data
PHP Code:
$ccsv_data fopen("cyb_vmood/cyb_vmood_votes.csv""r");
$csv_read fgets($ccsv_data); 
But at the end the other variable is used:
$csv_data
PHP Code:
fclose($csv_data); 
I really don't know why $ccsv_data is used.
It can be a misprint or it can be done specially.

If it was a missprint then the fix is:
PHP Code:
            $csv_data fopen("cyb_vmood/cyb_vmood_votes.csv""r");
            
$csv_read fgets($csv_data);
            
$line_pos strpos($csv_read,'_Mood:');
            
$cvm_starttime substr($csv_read,5,$line_pos);
            
$cvm_starttime vbdate('d-m, H:i'$cvm_starttime);
            
fclose($csv_data); 
If it was done specially then the fix is:
PHP Code:
            $ccsv_data fopen("cyb_vmood/cyb_vmood_votes.csv""r");
            
$csv_read fgets($ccsv_data);
            
$line_pos strpos($csv_read,'_Mood:');
            
$cvm_starttime substr($csv_read,5,$line_pos);
            
$cvm_starttime vbdate('d-m, H:i'$cvm_starttime);
            
fclose($ccsv_data); 
For myself I chose the first fix.
Reply With Quote
  #27  
Old 05-07-2010, 10:53 AM
Jaber190 Jaber190 is offline
 
Join Date: Apr 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks i like it .
Reply With Quote
  #28  
Old 06-07-2010, 11:18 PM
Fivestones's Avatar
Fivestones Fivestones is offline
 
Join Date: Jan 2009
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i am new to some of this can you tell me where CHMOD "cyb_vmood_votes.csv" to "777". is thanks ??? 5Stones
Reply With Quote
  #29  
Old 06-08-2010, 03:04 AM
Fivestones's Avatar
Fivestones Fivestones is offline
 
Join Date: Jan 2009
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am trying to add the Cyb - Members Mood and it tells me to Upload folder "cyb_vmood" to your forum root, then CHMOD "cyb_vmood_votes.csv" to "777".

I up loader it t my sever on images but i dont know where to put the CHMOD "cyb_vmood_votes.csv" to "777".... I have it all added to my site but when i put my mood in it gives me this

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 1904

Warning: fwrite(): supplied argument is not a valid stream resource in [path]/misc.php(100) : eval()'d code on line 1905

Warning: fwrite(): supplied argument is not a valid stream resource in [path]/misc.php(100) : eval()'d code on line 1906

Warning: fclose(): supplied argument is not a valid stream resource in [path]/misc.php(100) : eval()'d code on line 1907

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3277) in [path]/includes/functions.php on line 3103

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3277) in [path]/includes/functions.php on line 3108

can any one help me Thanks 5Stones
Reply With Quote
  #30  
Old 06-08-2010, 04:41 PM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'll have to use either an FTP client that allows you to change the permissions of a file or have shell access to the server and use the unix chmod command. Do google searches on these if they don't make sense and then post any further questions.
Reply With Quote
  #31  
Old 06-08-2010, 06:54 PM
Fivestones's Avatar
Fivestones Fivestones is offline
 
Join Date: Jan 2009
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks a lot for the reply ,,, i have Cute ftp and File Zilla FTP will they do what you are saying ? and how would i do it if they will ... do just change the folder name Thanks a lot 5Stones
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 07:46 PM.


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.06025 seconds
  • Memory Usage 2,357KB
  • Queries Executed 26 (?)
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
  • (5)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete