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)
-   -   Cyb - Advanced Permissions Based on Post Count (https://vborg.vbsupport.ru/showthread.php?t=96523)

WebsiteDonation 01-30-2006 03:12 AM

viewing attachments permission doesn't work ! I checked on a fresh install board.

WebsiteDonation 01-30-2006 04:00 AM

Quote:

Originally Posted by almqdad
Hi

I have installed this hack om 3.5.3

when i set the number of post etc. when i save i get this error

Fatal error: Field accessf_nb is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php on line 485


what is this how i can correct this

yes, missing 1-2 hooks :)

vau7 01-30-2006 04:28 AM

Quote:

Originally Posted by almqdad
Hi

I have installed this hack om 3.5.3

when i set the number of post etc. when i save i get this error

Fatal error: Field accessf_nb is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php on line 485


what is this how i can correct this

same for me :ermm:

WebsiteDonation 01-30-2006 06:46 AM

I tried to debug this error. Finally, I have got the result.

To fix this error, just remove condition in hook forumdata_start. It's named xxxxx - Valid Fields

Original Code
Code:

                if ($vbulletin->options['apboupc_forum'])
                {

                $this->validfields['accessf_nb'] = array(TYPE_INT, REQ_NO);
                $this->validfields['accesst_nb'] = array(TYPE_INT, REQ_NO);
                $this->validfields['create_nb'] = array(TYPE_INT, REQ_NO);
                $this->validfields['reply_nb'] = array(TYPE_INT, REQ_NO);}

Replace :
Code:

                $this->validfields['accessf_nb'] = array(TYPE_INT, REQ_NO);
                $this->validfields['accesst_nb'] = array(TYPE_INT, REQ_NO);
                $this->validfields['create_nb'] = array(TYPE_INT, REQ_NO);
                $this->validfields['reply_nb'] = array(TYPE_INT, REQ_NO);

NOTE

1. If you remove "condition" by yourself, DONT forget "}"
2. The error occurs by one condition setted wrong place. I *guess* because of this, some *features* don't work correctly (as I checked up, the "viewing attachments" permission doesn't work)

Good luck all.

bashy 01-30-2006 07:37 AM

Could i trouble you to elaborate on this please
I have replaced the code that you have said is causing the issue
with attachments and yes ya right its cured the issue :)

But a little baffled as to what you meant below?


Quote:

Originally Posted by WebsiteDonation
1. If you remove "condition" by yourself, DONT forget "}"


WebsiteDonation 01-30-2006 08:05 AM

Quote:

Originally Posted by bashy
Could i trouble you to elaborate on this please
I have replaced the code that you have said is causing the issue
with attachments and yes ya right its cured the issue :)

But a little baffled as to what you meant below?

Congrate you could fix that error (updating forums manager).

I will spend time to find out another errors tomorrow. I believe that there are a lot of bugs in rest.

About your question, just look at this : $this->validfields['reply_nb'] = array(TYPE_INT, REQ_NO);}. The '}' is too small. I think someone can forget to remove it (if they remove the "condition" by themselves), so I only wanna remind those. It's not to fix viewing attachments permission bug.

However, that bug (and some) is a similar problem with the last bug.

Valter 01-30-2006 08:35 AM

v2.5.1

-Fixed version info
-Fixed forum manager error

Attachment permissions works fine for me. Please try again now.
Download new Access Permissions Based on User's Post Count 2.5.1.zip and import XML through product manager (check "allow overwrite").

vau7 01-30-2006 03:53 PM

Big Up for your good work! Thank you very much.

bashy 01-30-2006 03:57 PM

Working well now thank :)

Zia 01-30-2006 04:41 PM

Quote:

Originally Posted by Cybernetec
v2.5.1

-Fixed version info
-Fixed forum manager error

Attachment permissions works fine for me. Please try again now.
Download new Access Permissions Based on User's Post Count 2.5.1.zip and import XML through product manager (check "allow overwrite").

hello Cybernetec

its a nice item...

is there any way that..u can intigrtae it with dwnload zone? that user must have 10post/day to get access there..


All times are GMT. The time now is 04:39 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.01223 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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