Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 + 2 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
getPermission($forum_obj, $topic_status, 'noapprove'); $post_obj->setVar('approved', $approved); [/code] i follow the getPermission function here: in newbb/class/topic.php [code] // get permission // parameter: $type: 'post', 'view', 'reply', 'edit', 'delete', 'addpoll', 'vote', 'attach' // $gperm_names = "'forum_can_post', 'forum_can_view', 'forum_can_reply', 'forum_can_edit', 'forum_can_delete', 'forum_can_addpoll', 'forum_can_vote', 'forum_can_attach', 'forum_can_noapprove'"; function getPermission($forum, $topic_locked = 0, $type = "view") { global $xoopsUser, $xoopsModule; static $_cachedTopicPerms; mod_loadFunctions("user", "newbb"); if (newbb_isAdmin($forum)) return 1; $forum_id = is_object($forum) ? $forum->getVar('forum_id') : intval($forum); if ( $forum_id getPermission("forum", $type, $forum_id); } return $permission; } [/code] So i follow the getPermission function here: in newbb/class/permission.php [code] function getPermission($type, $gperm_name = "access", $id = 0) { global $xoopsUser, $xoopsModule; if ($GLOBALS["xoopsUserIsAdmin"] && $xoopsModule->getVar("dirname") == "newbb") { return true; } $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : array(XOOPS_GROUP_ANONYMOUS); if ( !$groups ) return false; if ( !$allowed_groups = $this->getGroups("{$type}_{$gperm_name}", $id) ) return false; return count(array_intersect($allowed_groups, $groups)); } [/code] It seems that count(array_intersect ... is doing the wrong job. The user is belong to 5 different groups. Im still investigate it to find a solution. edit: It seems it is because those users are belong to some groups that those groups have the permission to send post without approval. So at the above function it count them double. As a temporary solution i set the need approval permission for all forums to registered users group_no=2. But i still think newbb should correctly do it even when a user have double or triple permission. [b]It is still a bug in my idea[/b]. edit number 2: eg change that line to the below: [code] if( count(array_intersect($allowed_groups, $groups)) ) { return true; } else { return false; } [/code] I think the above solution is good. maybe need some alteration in codes. [/quote]" />

Re: Newbb 4.3
by Mamba on 2014/6/15 5:32:31

Quote:
The only thing I did not know is how to change from text to images

But which text?
Can you provide a screenshot and highlight the text?
Also, where are the images that you want to use?
Re: Newbb 4.3
by ipwgc on 2014/6/15 5:20:52

Hi,
The forum newbb 4.3 works fine without problems in Spanish.
I review the Language in spanish and are working well
THIS IS THE FORUM VERSION 4.3 IN SPANISH

The only thing I did not know is how to change from text to images
I read the include/display.php and include/plugin.php

Quote:

include/plugin.php
// It means if you set $customConfig["display_text_links"] to true it will show all images in text links (and vice versa)
LINE 92 $customConfig["display_text_links"] = false;


I need your help to make those changes.
Regards,
David

Re: Newbb 4.3
by irmtfan on 2014/5/15 7:59:22

Hi falcon32

Those "Items for each loop" will set the number of items (posts,forums,topics,...) To be synchronized in one time before a break.

Also MISC means synchronize everything by one click.

But be carefull, newbb sync functions have many bugs in old versions which I found and solved. I recommend you using irmtfan version 4.33 latest svn. Please read change log for details.
Re: Newbb 4.3
by Falcon22 on 2014/5/5 22:12:33

I am using Newbb Version : 4.3 RC4 and love it.

The thing is after all these years I think I need to sync but the sync section has the following options. which i don't understand; please advise!

Forum Data - Items for each loop:
Topic Data - Items for each loop:
Post Data - Items for each loop:
User Data - Items for each loop:
Read Data
Stats Info
MISC

Re: Newbb 4.3
by Mamba on 2013/3/25 15:50:49

You can use TortoiseSVN to check it out, or you can use this little program to download it.

Who's Online

180 user(s) are online (132 user(s) are browsing Support Forums)


Members: 0


Guests: 180


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits