/qa/ - Questions and Answers

Keeping the community together by giving you a voice


If you want to see the latest posts from all boards in a convenient way please check out /overboard/


Archived thread


118-original-20170507042424.jpeg
Anonymous
No.3993
3994
Hello admins. How can I contact with PupperWoff - a developer of NPFChan script?
Pupper
Admin
No.3994
3995
>>3993
You called?
Anonymous
No.3995
>>3994
Yes. When I installed NPFchan, I find some bugs:
Firstly, "dismiss+" reports not working properly in the mod panel.
Secondly, I can't post with any capcod. When I tried to post with it, this error appeared:
Invalid argument supplied for foreach()

As I correctly understood, there is a problem in post.php file. Probably, this codeblock has a problem:

foreach ($config['mod']['capcode'] as $mod_level => $capcode_group) {
if ($mod['type'] < $mod_level)
break;

foreach ($capcode_group as $capcode) {
if (strcasecmp($cap, $capcode) == 0) {
$post['capcode'] = utf8tohtml($capcode);
$post['name'] = $name;
}
}
}
}
*/

Because when replace it with similar code in vichan, this bug was dissapeared. But I can't be certain in this, since I am not familar with NPFchan and vichan code. So, I will be appreciate if you fix those problems. Thanks.
Pupper
Admin
No.3997
3999 4000
Updated the code so the "Dismiss+" is now working.

Only reason I can think of for the capcode error is that either
$config['mod']['capcode'] isn't an array
or that the underlying values for each Mod level isn't an array.

Try placing this in your instance-config.php to see if it helps.

// Capcode permissions.
$config['mod']['capcode'] = array(
ADMIN => array('Admin', 'Administrator')
);
Anonymous
No.3999
4000
>>3997
> // Capcode permissions.
> $config['mod']['capcode'] = array(
> ADMIN => array('Admin', 'Administrator')
> );
Yeah it works, but with: $config['mod']['capcode'] = array(
ADMIN => true[/code]
);
not working.

Also, when I send a thread to archive as a mod, the action didn't track into modlog.
Anonymous
No.4000
4003
>>3999
The multidimentional array for capcodes is built so that you list for each Mod level what capcodes are allowed. Setting it to true is not a valid option.
So in the example in >>3997
Admins can post with ## Admin and ## Administrator capcodes.
So you have to list all capcodes each mod level is allowed to use.
Anonymous
No.4002
4003
> // Use shadow delete instead of immediate permanent delete
> $config['shadow_del']['use'] = true;
This feature also not working properly. When you clicking a delete button, it permanently delete a post istead of shadow delete.
Anonymous
No.4003
4012
>>4000
Okay, understood. Thanks.
>>4002
So, how can I fix this bug? Or can you help me with this?
Anonymous
No.4011
4013
I would like to ask if admin is looking into submitted issues on github
Anonymous
No.4012
4016
>>4003
The shadow delete I assume it deletes if you are logged in as mod or admin.
Set this to false and all mod, admin levels will also shadow delete.

$config['mod']['auto_delete_shadow_post'] = MOD;

Anonymous
No.4013
>>4011
>I would like to ask if admin is looking into submitted issues on github
Probably not as much as I should.
Anonymous
No.4016
>>4012
O, thank you, anon.
Anonymous
No.4018
4020
Can't run rebuild in dashboard if I delete an /b/ board. Can u please fix this.
No.4020
>>4018
That is probably due to one of your themes that you have configured to use the /b/ board that no longer exist.
Anonymous
No.4023
How to set a custom feature in threads archivation, that threads must move into feature archive only if they are have more than X posts, instead of voting system.
Anonymous
No.4041
Hi
regarding this issue on github
>Warnings and nicenotices not showing while IP is not hashed
It was being caused by wrong type of "IP" column in database. I set it to varbinary(16) and now works fine
Anonymous
No.4043
4051
could you add following feature:
automatically ban ip if user cookie is banned
Anonymous
No.4051
4054
>>4043
> cookie banning
Can somebody please explain me what the purpose of cookie banning and how it works? Because as far as I know it is easily to evade this type of ban just by deleting a cookie from browser.
Anonymous
No.4053
Reporting a bug from github:https://github.com/fallenPineapple/NPFchan/issues/209
> In install.php doesn't create tables hideid in "post_" and "shadow_posts_"
Please fix it.

Anonymous
No.4054
>>4051
yes it is easy
although you can change the name of the cookie to be less obvious in instance-config so banned user would have it more difficult to figure out why he can't post
there's error while posting which doesn't say much - unknown error occured
but the feature I propose would be more efficient as it also places ban on whatever IP the user is trying to post if cookie was previosuly banned
Anonymous
No.4074
Why janitors can see an encrypted IP-adresses near posts even if they don't have permission to see it:
$config['mod']['show_ip'] = DEVELOPER;
Moreover they can see an those IP-adresses outside of a boards which they has moderate:
$config['mod']['skip_per_board'] = false;
Anonymous
No.4076
I think it would be useful to have 'OP tag'
Anonymous
No.4531
4532
Speaking of IPs, is there a way I can view a user's IP as an Admin account? It's great that IP hashing is a feature, but say for instance, I see illegal content and I need to report the IP if I can. It doesn't seem to be a feature there.
Pupper
Admin
No.4532
>>4531
Admins can't see IP addresses.

As per the Policy page:
The information of the users is sacred and shall not be used outside of needs by administration, at the moment we don't even have access to IP addresses from the users, we keep no logs, not even error logs, outside of what the website provides us directly.

If this is regarding your own site unless you have logging activated on your webserver there is no way to see the IP.
Anonymous
No.4559
Hi, it is so depressing that npfchan does not work on php 7.2.0 or above. It works on php ver 7.0 and 7.1 tho. Vichan works on php ver 7.2 and 7.3 Does anyone know how to make vichan look awesome like NPF chan does? Like how it has a link to post a new thread, so the form does not even show till one clicks on the create new thread link
Anonymous
No.4569
>>4560 →
I don't go on this site much and I know It's not really related but, I'm using NPFchan for my imageboard I'm building for my school and I can't figure out all the fancy features like the options menu and oekaki/multiple file uploads. Also, how do I change the boardlist? It just has a link to b but I deleted b.
No.4570
>>4567
All of these settings are set up in the instance-config.php file.
For most of the client side functions like Oekaki/multifile and [Options] you need to set it up to include the appropriate javascripts. Same with the boardlinks, this is also configured in instance-config.php. All the settings should have examples in the config.php file.
;