MyBB Community Forums

Full Version: MyBBPublisher v2.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I WANT TO INFORM EVERYONE IN THIS FORUM:

PAVEMEN ROCKS!!!!!!

He Spend 2 DAYS!!! 2 DAYS!!!! and Dedicate his Self to Work on my Problem!!! and SOLVED IT!!!!





thanks for the feedback.

it has definitely revealed to me that some server configurations are pretty strict or setup in ways i do not think of. some handle inputs differently than others. perhaps its just this one case, but the result of working with annaconda's server is that i will be releasing yet another version of MyBB Publisher that is more robust in the areas needed.
(2011-05-26, 07:04 PM)pavemen Wrote: [ -> ]thanks for the feedback.

it has definitely revealed to me that some server configurations are pretty strict or setup in ways i do not think of. some handle inputs differently than others. perhaps its just this one case, but the result of working with annaconda's server is that i will be releasing yet another version of MyBB Publisher that is more robust in the areas needed.


Yup i am System Engineer and my job is to keep systems Secure Big Grin


Now if you Could PLEASE create Facebook Connect Plugin it would be NICE.


Well, I think that for now, I'll quit with this and instead I'll use a FB mod, but here's another bug report:

http://community.mybb.com/thread-95311.html

and this is what Aries found:

(2011-05-28, 10:58 PM)Aries-Belgium Wrote: [ -> ]... it is a plugin that is causing this issue. The value of $mybb->input['action'] of the blank page is 'verify_creds_fb' and that can only be found in the MyBBPublisher plugin. ...


Thanks any way for your help.
Facebook returns a "code" URI parameter that I can not do anything about it using that name, and it does not return it in a way that can be "captured" via file_get_contents or via cURL. I could have it work another separate file like making a new file for the tools module in the ACP, but the same can be accomplished in the one plugin file.

The MyBBPublisher 1.6.2 code is looking for a "code" URI parameter only when in the MyBBPublisher admin tools page.

Here is the only part of the version 1.6.2 code that uses the $mybb->input['code']


	if($page->active_action == "mybbpublisher")
	{
		/****************************************************************
		Facebook corrections to input parameters so we know where we are
		****************************************************************/
		if($mybb->input['code']) //if code exists, user gave permission, insert needed inputs as FB wont return them
		{
			$mybb->input['action'] = 'verify_creds_fb';
			$mybb->input['do'] = 'from_facebook';
		}

as you can see, it is in the check for the ACP page.

Now, if you are using an older 1.6.x version, the check may be outside the page verification from when I was testing on my local machine.

I will need to check my previous versions when I can get home to see if I had moved it before then. If you want to give it one more chance (hey, its a fairly PITA plugin to code using multiple APIs but try to make it simple enough for anyone to use)

It is unfortunate that the plugin has been awaiting activation for a couple days now so you can not work with the latest version.

Apologies for any issues this caused. I am trying to make it as painless as possible to setup and configure as well as respond as quickly as I can to issues. I suppose I need to start mirroring my plugins for download on my site so you guys don't need to wait so long for the mods site.

Again, sorry for the issues. I'd upload the latest version of the file for you here, but I am not a location I can do that.

If you want to fix it yourself, find

		if($mybb->input['code']) //if code exists, user gave permission, insert needed inputs as FB wont return them
		{
			$mybb->input['action'] = 'verify_creds_fb';
			$mybb->input['do'] = 'from_facebook';
		}

plus the other IF below it that is checking for "error_code" or something like that. If these sections are at the top of the page, cut/paste them directly below the

	if($page->active_action == "mybbpublisher")
	{

lines. This will fix your issue. But you should upgrade to the latest. BTW, this is in MYBB_ROOT/inc/plugins/mybbpublisher.php
I have posted a copy of 1.6.2 to my site for download if you want to upgrade now. I suggest all users upgrade to this version as it fixes new user authentication error.

http://www.pavementsucks.com/mybb_downlo...r_1602.zip
installed and configured correctly and activate the twitter settings, but nothing happens, my members made 30 threads allready but none of them are published on my twitter account..suggestions?
have you run through the tests for Twitter in ACP > Tools and Maintenance > MyBB Publisher? Do all the steps for Twitter return non-error messages?

If those are okay, be sure to set the icon location and then check to make sure that the forums you expect to be published are showing the icon in the description on the index page.
theres a 3 test on twitter settings what should i do? Here is the variables when i click them see if its correct..

Step 1: Verify Credentials (as entered in settings)
Results of Step 1: Twitter -
Verify Credentials stdClass Object
(
[id_str] => 74013185
[verified] =>
[profile_text_color] =>
666666 [protected] =>
[default_profile_image]
=>
[profile_sidebar_fill_
color] => 252429
[name] => Mac Quintero [notifications] =>
[profile_background_tile]
=>
[favourites_count] => 1
[friends_count] => 24
[profile_image_url] => http://a3.twimg.com/profile_
images/1267712426/avatar_
2_normal.png
[is_translator] =>
[utc_offset] => 28800
[location] => Philippines [follow_request_sent] =>
[profile_link_color] =>
2FC2EF
[description] => Soft
Spoken
[screen_name] => Macneth14
[lang] => en
[profile_sidebar_border_
color] => 181A1E
[url] => http://
www.mzoneph.com [status] => stdClass Object
(
[id_str] =>
76304196462321664
[in_reply_to_
status_id] => [text] => ( TTF )
September for N70me – http://t.co/2JWVfap
[in_reply_to_user_
id] =>
[retweet_count] => 0
[place] =>
[favorited] => [in_reply_to_
status_id_str] =>
[id] => 7.63041964623E
+16
[created_at] => Thu
Jun 02 15:08:32 +0000 2011 [in_reply_to_
screen_name] =>
[truncated] =>
[source] => Mobile Web [in_reply_to_user_
id_str] =>
[contributors] =>
[coordinates] =>
[geo] =>
[retweeted] => ) [time_zone] => Beijing
[show_all_inline_media]
=> 1
[geo_enabled] => 1
[profile_use_
background_image] => 1 [created_at] => Mon Sep
14 00:26:41 +0000 2009
[followers_count] => 92
[id] => 74013185
[listed_count] => 0
[profile_background_ color] => 1A1B1F
[default_profile] =>
[contributors_enabled] =>
[profile_background_
image_url] => http://
a1.twimg.com/images/ themes/theme9/bg.gif
[statuses_count] => 596
[following] =>
)

Step 2: Show Current Available (check rate
limiting)

Results of Step 2: Twitter -
Show Current Available stdClass Object
(
[reset_time] => Thu Jun 02
16:31:22 +0000 2011
[hourly_limit] => 350
[reset_time_in_seconds] => 1307032282
[remaining_hits] => 348
)

[color=red]Step 3: Show Lastest Statuses (will verify app and
settings are correct)[/color
Results of Step 3: Twitter -
Show Lastest Statuses Array
(
[0] => stdClass Object
(
[id_str] =>
76304196462321664 [in_reply_to_
status_id] =>
[user] => stdClass
Object
(
[id_str] => 74013185
[verified] =>
[profile_text_
color] => 666666
[protected] =>
[profile_sidebar_ fill_color] => 252429
[name] => Mac
Quintero
[notifications] =>
[profile_
background_tile] => [favourites_
count] => 1
[profile_image_
url] => http://a3.twimg.com/
profile_images/1267712426/
avatar_2_normal.png [default_profile_
image] =>
[utc_offset] =>
28800
[location] =>
Philippines [contributors_
enabled] =>
[profile_link_
color] => 2FC2EF
[description] =>
Soft Spoken [screen_name] =>
Macneth14
[is_translator] =>
[show_all_inline_
media] => 1
[lang] => en [geo_enabled] =>
1
[profile_sidebar_
border_color] => 181A1E
[url] => http://
www.mzoneph.com [follow_request_
sent] =>
[time_zone] =>
Beijing
[friends_count]
=> 24 [profile_use_
background_image] => 1
[created_at] =>
Mon Sep 14 00:26:41 +0000
2009
[followers_count] => 92
[id] => 74013185
[statuses_count]
=> 596
[profile_
background_color] => 1A1B1F [default_profile]
=>
[profile_
background_image_url] =>
http://a1.twimg.com/images/
themes/theme9/bg.gif [listed_count] =>
0
[following] =>
) [text] => ( TTF )
September for N70me – http://t.co/2JWVfap
[in_reply_to_user_
id] =>
[retweet_count] => 0
[place] =>
[favorited] => [in_reply_to_
status_id_str] =>
[id] => 7.63041964623E
+16
[created_at] => Thu
Jun 02 15:08:32 +0000 2011 [in_reply_to_
screen_name] =>
[truncated] =>
[source] => Mobile Web [in_reply_to_user_
id_str] =>
[contributors] =>
[coordinates] =>
[geo] =>
[retweeted] => ) [1] => stdClass Object
(
[id_str] =>
76303996461137920
[in_reply_to_
status_id] => [user] => stdClass
Object
(
[id_str] =>
74013185
[verified] => [profile_text_
color] => 666666
[protected] =>
[profile_sidebar_
fill_color] => 252429
[name] => Mac Quintero
[notifications] =>
[profile_
background_tile] =>
[favourites_
count] => 1 [profile_image_
url] => http://a3.twimg.com/
profile_images/1267712426/
avatar_2_normal.png
[default_profile_
image] => [utc_offset] =>
28800
[location] =>
Philippines
[contributors_
enabled] => [profile_link_
color] => 2FC2EF
[description] =>
Soft Spoken
[screen_name] =>
Macneth14 [is_translator] =>
[show_all_inline_
media] => 1
[lang] => en
[geo_enabled] =>
1 [profile_sidebar_
border_color] => 181A1E
[url] => http://
www.mzoneph.com
[follow_request_
sent] => [time_zone] =>
Beijing
[friends_count]
=> 24
[profile_use_
background_image] => 1 [created_at] =>
Mon Sep 14 00:26:41 +0000
2009
[followers_count]
=> 92
[id] => 74013185 [statuses_count]
=> 596
[profile_
background_color] => 1A1B1F
[default_profile]
=> [profile_
background_image_url] =>
http://a1.twimg.com/images/
themes/theme9/bg.gif
[listed_count] =>
0 [following] =>
) [text] => [share]
Android ttf – http://t.co/ URQ61Ow
[in_reply_to_user_
id] =>
[retweet_count] => 0
[place] =>
[favorited] => [in_reply_to_
status_id_str] =>
[id] => 7.63039964611E
+16
[created_at] => Thu
Jun 02 15:07:45 +0000 2011 [in_reply_to_
screen_name] =>
[truncated] =>
[source] => Mobile Web [in_reply_to_user_
id_str] =>
[contributors] =>
[coordinates] =>
[geo] =>
[retweeted] => ) [2] => stdClass Object
(
[id_str] =>
76303466284331008
[in_reply_to_
status_id] => [user] => stdClass
Object
(
[id_str] =>
74013185
[verified] => [profile_text_
color] => 666666
[protected] =>
[profile_sidebar_
fill_color] => 252429
[name] => Mac Quintero
[notifications] =>
[profile_
background_tile] =>
[favourites_
count] => 1 [profile_image_
url] => http://a3.twimg.com/
profile_images/1267712426/
avatar_2_normal.png
[default_profile_
image] => [utc_offset] =>
28800
[location] =>
Philippines
[contributors_
enabled] => [profile_link_
color] => 2FC2EF
[description] =>
Soft Spoken
[screen_name] =>
Macneth14 [is_translator] =>
[show_all_inline_
media] => 1
[lang] => en
[geo_enabled] =>
1 [profile_sidebar_
border_color] => 181A1E
[url] => http://
www.mzoneph.com
[follow_request_
sent] => [time_zone] =>
Beijing
[friends_count]
=> 24
[profile_use_
background_image] => 1 [created_at] =>
Mon Sep 14 00:26:41 +0000
2009
[followers_count]
=> 92
[id] => 74013185 [statuses_count]
=> 596
[profile_
background_color] => 1A1B1F
[default_profile]
=> [profile_
background_image_url] =>
http://a1.twimg.com/images/
themes/theme9/bg.gif
[listed_count] =>
0 [following] =>
) [text] => [share] FLAT
BRUSH FONT.sis PLUS LOGOS/
BRANDS/SYMBOLS (s60v1
[in_reply_to_user_
id] =>
[retweet_count] => 0 [place] =>
[favorited] =>
[in_reply_to_
status_id_str] =>
[id] =>
7.63034662843E+16 [created_at] => Thu
Jun 02 15:05:38 +0000 2011
[in_reply_to_
screen_name] =>
[truncated] =>
[source] => Mobile Web [in_reply_to_user_
id_str] =>
[contributors] =>
[coordinates] =>
[geo] =>
[retweeted] => ) [3] => stdClass Object
(
[id_str] =>
76303105804861440
[in_reply_to_
status_id] => [user] => stdClass
Object
(
[id_str] =>
74013185
[verified] => [profile_text_
color] => 666666
[protected] =>
[profile_sidebar_
fill_color] => 252429
[name] => Mac Quintero
[notifications] =>
[profile_
background_tile] =>
[favourites_
count] => 1 [profile_image_
url] => http://a3.twimg.com/
profile_images/1267712426/
avatar_2_normal.png
[default_profile_
image] => [utc_offset] =>
28800
[location] =>
Philippines
[contributors_
enabled] => [profile_link_
color] => 2FC2EF
[description] =>
Soft Spoken
[screen_name] =>
Macneth14 [is_translator] =>
[show_all_inline_
media] => 1
[lang] => en
[geo_enabled] =>
1 [profile_sidebar_
border_color] => 181A1E
[url] => http://
www.mzoneph.com
[follow_request_
sent] => [time_zone] =>
Beijing
[friends_count]
=> 24
[profile_use_
background_image] => 1 [created_at] =>
Mon Sep 14 00:26:41 +0000
2009
[followers_count]
=> 92
[id] => 74013185 [statuses_count]
=> 596
[profile_
background_color] => 1A1B1F
[default_profile]
=> [profile_
background_image_url] =>
http://a1.twimg.com/images/
themes/theme9/bg.gif
[listed_count] =>
0 [following] =>
) [text] => [SHARE]
STYLISH SMALL FONT.sis – http://t.co/bNIzuaP
[in_reply_to_user_
id] =>
[retweet_count] => 0
[place] =>
[favorited] => [in_reply_to_
status_id_str] =>
[id] => 7.63031058049E
+16
[created_at] => Thu
Jun 02 15:04:12 +0000 2011 [in_reply_to_
screen_name] =>
[truncated] =>
[source] => Mobile Web [in_reply_to_user_
id_str] =>
[contributors] =>
[coordinates] =>
[geo] =>
[retweeted] => ) [4] => stdClass Object
(
[id_str] =>
76302831921004545
[in_reply_to_
status_id] => [user] => stdClass
Object
(
[id_str] =>
74013185
[verified] => [profile_text_
color] => 666666
[protected] =>
[profile_sidebar_
fill_color] => 252429
[name] => Mac Quintero
[notifications] =>
[profile_
background_tile] =>
[favourites_
count] => 1 [profile_image_
url] => http://a3.twimg.com/
profile_images/1267712426/
avatar_2_normal.png
[default_profile_
image] => [utc_offset] =>
28800
[location] =>
Philippines
[contributors_
enabled] => [profile_link_
color] => 2FC2EF
[description] =>
Soft Spoken
[screen_name] =>
Macneth14 [is_translator] =>
[show_all_inline_
media] => 1
[lang] => en
[geo_enabled] =>
1 [profile_sidebar_
border_color] => 181A1E
[url] => http://
www.mzoneph.com
[follow_request_
sent] => [time_zone] =>
Beijing
[friends_count]
=> 24
[profile_use_
background_image] => 1 [created_at] =>
Mon Sep 14 00:26:41 +0000
2009
[followers_count]
=> 92
[id] => 74013185 [statuses_count]
=> 596
[profile_
background_color] => 1A1B1F
[default_profile]
=> [profile_
background_image_url] =>
http://a1.twimg.com/images/
themes/theme9/bg.gif
[listed_count] =>
0 [following] =>
)]
so it looks like the Twitter settings are correct.

Now you need to verify that the settings in ACP > Configuration > Settings >MyBBPublisher are correct. Can you post a screen shot of the top 7 settings? or type them out here.
So what do I have to do to upgrade 1.4.3 to 1.6.2? Do I just deactivate, upload the new version, and reactivate? I'm a little confused about the process on the first page.