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
  #2  
Old 01-10-2009, 02:32 PM
-=Leb=-'s Avatar
-=Leb=- -=Leb=- is offline
 
Join Date: Jan 2008
Location: Sweden
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack, thank you.
Reply With Quote
  #3  
Old 01-21-2009, 08:14 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:up: installed :up: pretty cool..

only wish the bar was larger, and less text on the sides.
Reply With Quote
  #4  
Old 01-21-2009, 09:31 PM
TheArve TheArve is offline
 
Join Date: Dec 2008
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this,, really appreciate ur time taken,

CHeers

thearve
Reply With Quote
  #5  
Old 01-23-2009, 11:09 AM
gtrts gtrts is offline
 
Join Date: Jan 2009
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very intresting
Reply With Quote
  #6  
Old 02-16-2009, 01:28 AM
itsheinz itsheinz is offline
 
Join Date: Feb 2009
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This isnt working...
Reply With Quote
  #7  
Old 02-20-2009, 10:08 AM
Amadeus Cho Amadeus Cho is offline
 
Join Date: Feb 2009
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's '777' ? and where is it ?

thanks
Reply With Quote
  #8  
Old 02-20-2009, 12:55 PM
Amadeus Cho Amadeus Cho is offline
 
Join Date: Feb 2009
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get the following 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
  #9  
Old 02-20-2009, 02:44 PM
MV Blackie MV Blackie is offline
 
Join Date: Nov 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does anyone knows how to integrate this in vbadvanced ?
Reply With Quote
  #10  
Old 03-03-2009, 03:42 AM
Merriweather Merriweather is offline
 
Join Date: Nov 2006
Posts: 389
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How many queries does this add to the page load?
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 02:20 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.07206 seconds
  • Memory Usage 2,318KB
  • Queries Executed 24 (?)
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
  • (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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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