Thread Rating:
  • 21 Vote(s) - 3.81 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.6] MyBBPublisher v2.0
#56
(2010-09-09, 03:33 PM)mark-in-dallas Wrote: Have paveman, awesome plugin! I am having one problem with it though: Sometimes but not everytime, it will post a thread from a private forum.

I have checked no for the Inclusive setting and have listed 5 forums to exclude, as below:
45, 83, 84, 85, 88

The only new threads posted in private forums since installing the plugin have been in fid45, but of 4 threads created 2 of them posted to Facebook and Twitter.

Any idea why this might be?

Here is the function used to determine if the forum is publishable

function mypublisher_can_do_publish($fid) 
{
	global $mybb;

	//check if fid is visible to guests and registered users
	$groupperms = usergroup_permissions('1,2');
	$forumpermissions=fetch_forum_permissions($fid, '1,2', $groupperms);
	
	if($forumpermissions['canview'] != 1 || $forumpermissions['canviewthreads'] != 1)
	{
		return 0;
	}
	
	$inclusive = $mybb->settings['mypublisher_inclusive'];
	
	//init var
	$do_post = ($inclusive == 1 ? 1 : 0);
	
	if($mybb->settings['mypublisher_forums'] != 0)
	{
		$forums2send = explode(",", $mybb->settings['mypublisher_forums']);
		if(!in_array($fid, $forums2send))
		{
			//change var if condition met
			$do_post = ($inclusive == 1 ? 0 : 1);
		}
	}
	return $do_post;
}

as you can see, private and limited forums are automatically not published in the first bit of code. By default groups 1 and 2 are guests and registered users, so if they can not view the forum, then the plugin will return not publishable. Its not even dependent on the current logged in user, only the group permissions.

you can verify such if the forum index page does not have the icons in the forum descriptions for those private forums as its the same function used to determine if the forum is publishable. I have tested this as many ways as I can think of, even specifically including them and its working correctly.

i have had some issues with things getting published but not including the link to the thread, but this is a first for me. do you have any other plugins that run on new threads?

(2010-09-09, 07:19 PM)mark-in-dallas Wrote: No problem, and I appreciate it. BTW, it now seems to be posting every thread from fid45

Are you sure that guests and registered do not have Can View and Can View Threads permissions for fid45?
(2010-09-07, 07:09 PM)ozanakkaya Wrote:
(2010-09-07, 04:47 PM)fabo92 Wrote: I have the same problem, when I submit a new thread, try to delete one etc. I always get "Object id #.." and the thread isn't updated nor is been posted on twitter... How to solve?

same error,

only white pages and "Object id #13" or "Object id #28"

I can not replicate these issues. Can you recreate your application and obtain new consumer keys as well as recheck your access tokens for that app. If I make another app in my account, the access tokens (My Access Token) is different than my previous app.

Please verify the settings and if possible, recreate the app and populate the plugin settings with the new info
another reply to merge with my previous posts...

I found a small bug that impacted edited threads. if the edited thread was not publishable it's subject was still published but without the link to the thread. i also removed the publishable icons from categories, so now they are limited to forums only

version 1.2 is uploaded and awaiting validation
Lost interest, sold my sites, will browse here once in a while. It's been fun.


Messages In This Thread
MyBBPublisher v2.0 - by pavemen - 2010-08-07, 06:32 AM
RE: [Release 1.4/1.6] MyPublisher v1.0 - by habs - 2010-08-11, 10:03 AM
RE: [Release 1.4/1.6] MyPublisher v1.0 - by alv4 - 2010-08-11, 01:14 PM
RE: [Release 1.4/1.6] MyPublisher v1.0 - by FBI - 2010-08-12, 08:16 PM
RE: [Release 1.4/1.6] MyPublisher v1.0 - by FBI - 2010-08-12, 08:49 PM
RE: [Release 1.4/1.6] MyPublisher v1.1 - by pavemen - 2010-09-09, 07:23 PM
RE: [Release 1.4/1.6] MyBBPublisher v1.4 - by FBI - 2010-11-27, 11:01 PM
MyBBPublisher v1.6.2 - suggestions - by dandv - 2011-08-01, 12:00 PM
RE: MyBBPublisher v1.8.1 - by pavemen - 2012-05-15, 05:17 PM
RE: MyBBPublisher v1.8.1 - by rzoneph - 2012-05-16, 10:36 AM
RE: MyBBPublisher v1.8.1 - by pavemen - 2012-05-16, 02:45 PM
RE: MyBBPublisher v1.8.1 - by doodoo1370 - 2012-05-17, 06:07 AM
RE: MyBBPublisher v1.8.1 - by dthiago - 2012-05-21, 05:49 PM
RE: MyBBPublisher v1.8.1 - by pavemen - 2012-05-21, 08:11 PM
RE: MyBBPublisher v1.8.1 - by killer - 2012-05-28, 05:13 PM
RE: MyBBPublisher v1.8.1 - by killer - 2012-06-10, 07:01 PM
RE: MyBBPublisher v1.8.1 - by pavemen - 2012-06-10, 07:19 PM
RE: MyBBPublisher v1.8.1 - by killer - 2012-06-11, 12:02 PM
RE: MyBBPublisher v1.8.1 - by pavemen - 2012-06-11, 12:15 PM
RE: MyBBPublisher v1.8.1 - by justarandomguy - 2012-06-15, 07:28 AM
RE: MyBBPublisher v1.8.1 - by pavemen - 2012-06-15, 01:21 PM
RE: MyBBPublisher v1.8.1 - by niere8 - 2012-06-16, 01:12 PM
RE: MyBBPublisher v1.8.1 - by pavemen - 2012-06-16, 02:16 PM
RE: MyBBPublisher v1.8.1 - by pavemen - 2012-06-22, 08:45 PM
RE: MyBBPublisher v2.0 - by killer - 2012-06-23, 10:58 AM
RE: MyBBPublisher v2.0 - by pavemen - 2012-06-23, 02:00 PM
RE: MyBBPublisher v2.0 - by killer - 2012-06-23, 03:39 PM
RE: MyBBPublisher v2.0 - by pavemen - 2012-06-23, 04:13 PM
RE: MyBBPublisher v2.0 - by SpencerUk - 2012-06-25, 10:43 AM
RE: MyBBPublisher v2.0 - by pavemen - 2012-06-25, 12:28 PM
RE: MyBBPublisher v2.0 - by andrewjs18 - 2012-06-27, 07:38 AM
RE: MyBBPublisher v2.0 - by pavemen - 2012-06-27, 05:08 PM
RE: MyBBPublisher v2.0 - by SpencerUk - 2012-06-28, 06:55 PM
RE: MyBBPublisher v2.0 - by Tekkie Da - 2012-07-10, 05:39 PM
RE: MyBBPublisher v2.0 - by syLvestr - 2012-07-13, 01:53 PM
RE: MyBBPublisher v2.0 - by pavemen - 2012-07-13, 06:52 PM
RE: MyBBPublisher v2.0 - by static1224 - 2012-07-19, 11:45 PM
RE: MyBBPublisher v2.0 - by pavemen - 2012-07-20, 04:10 AM
RE: MyBBPublisher v2.0 - by M.Abbasi - 2012-07-26, 09:50 AM
RE: MyBBPublisher v2.0 - by killer - 2012-07-26, 11:55 AM
RE: MyBBPublisher v2.0 - by M.Abbasi - 2012-07-26, 01:38 PM
RE: MyBBPublisher v2.0 - by Ricus - 2012-08-13, 01:24 PM
RE: MyBBPublisher v2.0 - by pavemen - 2012-08-13, 09:23 PM
RE: MyBBPublisher v2.0 - by dthiago - 2012-09-02, 05:29 AM
RE: MyBBPublisher v2.0 - by pavemen - 2012-09-20, 10:54 PM
RE: MyBBPublisher v2.0 - by hoangthi - 2012-10-15, 05:18 PM
RE: MyBBPublisher v2.0 - by pavemen - 2012-10-15, 07:06 PM
RE: MyBBPublisher v2.0 - by hoangthi - 2012-10-15, 10:58 PM
RE: MyBBPublisher v2.0 - by pavemen - 2012-10-16, 12:08 AM
RE: MyBBPublisher v2.0 - by saurabh - 2012-10-24, 07:14 PM
RE: MyBBPublisher v2.0 - by pavemen - 2012-10-24, 07:52 PM
RE: MyBBPublisher v2.0 - by pavemen - 2012-11-16, 01:18 AM
RE: MyBBPublisher v2.0 - by dineshkummar - 2012-11-18, 04:32 PM
RE: MyBBPublisher v2.0 - by pavemen - 2012-11-18, 08:38 PM
RE: MyBBPublisher v2.0 - by dineshkummar - 2012-11-18, 09:44 PM
RE: MyBBPublisher v2.0 - by pavemen - 2012-11-18, 11:38 PM
RE: MyBBPublisher v2.0 - by dineshkummar - 2012-11-18, 11:58 PM
RE: MyBBPublisher v2.0 - by pavemen - 2012-11-19, 03:52 AM
RE: MyBBPublisher v2.0 - by pavemen - 2013-03-18, 07:49 PM
RE: MyBBPublisher v2.0 - by Polarbear541 - 2013-03-18, 07:52 PM

Forum Jump:


Users browsing this thread: 49 Guest(s)