vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Invites System (https://vborg.vbsupport.ru/showthread.php?t=101801)

cat_aclysm 01-10-2006 09:05 PM

I'm new to vbulletin, so please be gentle with me if I did something stupid here. I installed this exactly as specified, but I hit "run now" for the update invites count" in the scheduled task manager, and got this error:

Warning: Division by zero in /includes/cron/update_invitecounts.php on line 79

It hasn't given any invites out at all. What did I do?

opteek 01-10-2006 11:55 PM

download the hack again and reupload the file update_invitecounts.php

cat_aclysm 01-11-2006 03:18 AM

Quote:

Originally Posted by opteek
download the hack again and reupload the file update_invitecounts.php

Thanks, but I allready did that twice and got the same error. :disappointed:

opteek 01-11-2006 03:50 AM

Do you have 0 set for number of posts to recieve 1 invite? That would do it.

cat_aclysm 01-11-2006 06:27 AM

Quote:

Originally Posted by opteek
Do you have 0 set for number of posts to recieve 1 invite? That would do it.

That would be a really stupid mistake, wouldn't it?

That is exactly what I did. :speechless: Thank you for helping.

Edit, oops, I made sure nothing is set to zero anymore, and I am still getting the same error. Apparently, that wasn't the fix I needed.

IrPr 01-11-2006 08:32 PM

works on 3.5.3 ?

IrPr 01-11-2006 08:42 PM

i upgrade my testboard to 3.5.3 and mail function is working
but invite mails not working
i donno maybe im too newbie here and need surfing forum more :D

Edit: works fine on 3.5.3

opteek 01-11-2006 10:04 PM

Is no one else having this problem with people getting too many or negative invitations?

akanevsky 01-11-2006 11:38 PM

Negative invitations are by design :)
As for too many, you need to set up the minimum amount of reputations and/or posts to receive new invitations.

opteek 01-12-2006 02:55 AM

Look man, I do have the settings configured properly. My settings are:

Invite System: Enabled
Registration by Inivites Only: Enabled
Mutual Buddies: Enabled
Image Verification: Enabled
Invite Expiration: 7
Min Posts to recieve changes in invites: 24
Min Reputation to Recieve Invites: -1
Invite Changes on Reputation: 1
Posts required to recieve One invite: 50

Now, people who have more than 24 posts are recieving 7 invites, when they should be recieving zero. This is due to your code, which starts invite_increment at 7 and subtracts 1 for every day inactive. So people that are active every day, yet make no posts or have any reputation changes are recieving 7 invites!!

Also, the user who recieved -11 invites had 3 posts in the last week and had NO reputation changes.

This is obviously not right; I have redownloaded your update_invitecounts.php file and verified that I am using the exact same file...


All times are GMT. The time now is 10: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.02004 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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