Pun Approval 1.4.1 has been released.
Thanks! It works correctly!
You are not logged in. Please login or register.
PunBB Forums → Posts by Zoldrax
Pages 1
Pun Approval 1.4.1 has been released.
Thanks! It works correctly!
Zoldrax wrote:after extension activated, this topic do not insert in "post_approval_topics" table
We were not able to recreate this bug. If this problem is still present, please describe in more details the situation when it happens.
I see that another users have this bug too.
Try to install post approval extension. After this create new topic by Administrator. After reply in this topic by not powered user.
In Admin login you will see that there is Unapproved posts, but the list of unapproved posts will are empty.
This problem in function "Copy topic in post_approval_topics" in manifest.xml. It worked only if topic created by user with no "Allow posting without approval " option.
There is any bugs too.
In function.php in function approve_user():
if($forum_config['o_regs_verify'] == '1')
{
$activate_key=random_key(8, true);
$group_id=0;
$query = array(
'INSERT' => 'group_id,username,password,salt,email,timezone,dst,registered, registration_ip, last_visit, activate_key',
'INTO' => 'users',
'VALUES' => '\''.$group_id.'\',\''.$row['username'].'\',\''.$row['password'].'\',\''.$forum_db->escape($row['salt']).'\',\''.$forum_db->escape($row['email']).'\',\''.$row['timezone'].'\',\''.$row['dst'].'\',\''.$row['registered'].'\',\''.$row['registration_ip'].'\',\''.$row['last_visit'].'\',\''.$forum_db->escape($activate_key).'\''
);
}
else
{
$query = array(
'INSERT' => 'username,password,salt,email,timezone,dst,registered, registration_ip, last_visit, activate_key',
'INTO' => 'users',
'VALUES' => '\''.$row['username'].'\',\''.$row['password'].'\',\''.$forum_db->escape($row['salt']).'\',\''.$forum_db->escape($row['email']).'\',\''.$row['timezone'].'\',\''.$row['dst'].'\',\''.$row['registered'].'\',\''.$row['registration_ip'].'\',\''.$row['last_visit'].'\',\''.$forum_db->escape($activate_key).'\''
);
}
There is no update group_id, language on registration, style and e.t.c.
If there is another default group id in forum new approved user cant login.
I change this on:
else
{
$query = array(
'INSERT' => 'group_id,username,password,salt,email, email_setting,timezone,dst, language, style,registered, registration_ip, last_visit, activate_key',
'INTO' => 'users',
'VALUES' => '\''.$row['group_id'].'\',\''.$row['username'].'\',\''.$row['password'].'\',\''.$forum_db->escape($row['salt']).'\',\''.$forum_db->escape($row['email']).'\',\''.$row['email_setting'].'\',\''.$row['timezone'].'\',\''.$row['dst'].'\',\''.$row['language'].'\',\''.$row['style'].'\',\''.$row['registered'].'\',\''.$row['registration_ip'].'\',\''.$row['last_visit'].'\',\''.$forum_db->escape($activate_key).'\''
);
But in true fork it mast be changed too.
Thanks a alot for extension!
But in my forum there is one bug. Extension version 1.3.0.
When I install this extension - all work correct.
But if moderator cteate new topic, after extension activated, this topic do not insert in "post_approval_topics" table. And in post approval dialog i see "There are no unapproved posts since your last visit" message. But in table "post_approval_posts" it there is, and in header i see "Unapproved posts (5)". If i add topic in "post_approval_topics" table manualy (by hands) then i see this unaproved posts in post approval dialog.
Pages 1
PunBB Forums → Posts by Zoldrax
Powered by PunBB, supported by Informer Technologies, Inc.