vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Cyb - Members Mood (https://vborg.vbsupport.ru/showthread.php?t=132576)

Valter 11-26-2006 10:00 PM

Cyb - Members Mood
 
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.

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

Quote:

Originally Posted by abramelin (Post 1126428)
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).


All times are GMT. The time now is 07:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01981 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete