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).

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:

HTML Code:

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

Quote:

Originally Posted by Cybernetec (Post 1161991)
Hi nedo_a,

You've probably forget to CHMOD "cyb_vmood_votes.csv" to "777".

I cmod this, and i get this message now:

HTML Code:

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...

HTML Code:

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

Quote:

Originally Posted by Cybernetec (Post 1258853)
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.


All times are GMT. The time now is 07:53 AM.

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.01380 seconds
  • Memory Usage 1,820KB
  • 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
  • (3)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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