vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Forum Activity Check For Forum Access (Per Forum) (https://vborg.vbsupport.ru/showthread.php?t=76963)

sabret00the 04-24-2005 05:45 PM

what's line 223?

esfron 04-24-2005 05:51 PM

223:

PHP Code:

    if (($vboptions['facffa_checkforumactivity'] AND in_array($foruminfo['forumid'], $facffa_checkforums) AND !in_array($bbuserinfo['usergroupid'], $faffa_excludeusergroups))) 


esfron 04-24-2005 06:41 PM

Right now as user, I made 1 posts in 1 day. I tryed to access to protected forum but I get:

Unable to add cookies, header already sent.
File: /home.../includes/init.php
Line: 27

Init.php is fine because the hack is working without the usergroups update. I replaced the last forumdisplay&showthread by the old ones.

esfron 04-25-2005 12:44 PM

OK. I fixed the last one.

Right now, I get "Warning: in_array(): Wrong datatype for second argument in /showthread.php on line 319". Usergroups are not going to be excluded.

319 ->
PHP Code:

 if (($vboptions['facffa_checkforumactivity'] AND in_array($threadinfo['forumid'], $facffa_checkforums) AND !in_array($bbuserinfo['usergroupid'], $faffa_excludeusergroups))) 

Any idea ?
.

sabret00the 04-25-2005 12:50 PM

can you put 27 in the excuded usergroups in the vboptions and tell me if you still get the error please.

esfron 04-25-2005 01:17 PM

Usergroups:

- not connected (ID=1): error is:
Warning: in_array(): Wrong datatype for second argument in /showthread.php on line 319
AND
You have not had enough forum activity in order to access this forum, please become more active then check back there-after.


- connected member4 (ID=27), error is:
Warning: in_array(): Wrong datatype for second argument in /showthread.php on line 319
AND
Unable to add cookies, header already sent.
File: /home.../includes/init.php
Line: 27


Fix for forumdisplay:

PHP Code:

if (($vboptions['facffa_checkforumactivity'] AND in_array($threadinfo['forumid'], $facffa_checkforums) AND !in_array($bbuserinfo['usergroupid'], $faffa_excludeusergroups))) 
    { 


Marco van Herwaarden 04-25-2005 07:20 PM

What php version are you running?

esfron 04-25-2005 07:54 PM

Php 4.3.11

Darmak 05-14-2005 01:12 AM

Quote:

Originally Posted by esfron
Usergroups:

- not connected (ID=1): error is:
Warning: in_array(): Wrong datatype for second argument in /showthread.php on line 319
AND
You have not had enough forum activity in order to access this forum, please become more active then check back there-after.


- connected member4 (ID=27), error is:
Warning: in_array(): Wrong datatype for second argument in /showthread.php on line 319
AND
Unable to add cookies, header already sent.
File: /home.../includes/init.php
Line: 27


Fix for forumdisplay:

PHP Code:

if (($vboptions['facffa_checkforumactivity'] AND in_array($threadinfo['forumid'], $facffa_checkforums) AND !in_array($bbuserinfo['usergroupid'], $faffa_excludeusergroups))) 
    { 


To solve your problem replace in your forumdisplay.php & showthread.php this line

PHP Code:

if (($vboptions['facffa_checkforumactivity'] AND in_array($threadinfo['forumid'], $facffa_checkforums) AND !in_array($bbuserinfo['usergroupid'], $faffa_excludeusergroups))) 
    { 

Whit

PHP Code:

if (($vboptions['facffa_checkforumactivity'] AND in_array($threadinfo['forumid'], $facffa_checkforums) AND !in_array($bbuserinfo['usergroupid'], $facffa_excludeusergroups))) 
    { 

TYPO error... :p

esfron 05-14-2005 08:23 AM

Es bueno. Muchas gracias amigo Darmark de M?xico.
Thank you very much, Sabret00the. :up:


All times are GMT. The time now is 02:47 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.02112 seconds
  • Memory Usage 1,746KB
  • 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
  • (6)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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