Git Information

git clone --branch 7.x-1.x https://git.drupal.org/sandbox/puspanjalim/2850107.git fbpagefeed
cd fbpagefeed 

This module is a very simple module having small but most useful feature which perfectly works with multiple sites running on same server having common database but different domain name all together.

If you would like to use different Facebook page posts( public ) for different sites then this is the simple and most useful module.

Facebook page feed module allows to show Facebook public page posts in blocks or pages.The most important feature includes assigning different Facebook page url to different domains running on single hosted server.

Project link:
https://www.drupal.org/sandbox/puspanjalim/2850107

Manual reviews of other projects:
https://www.drupal.org/node/2853833#comment-11952543
https://www.drupal.org/node/2855076#comment-11952515
https://www.drupal.org/node/2840555#comment-11952952
https://www.drupal.org/node/2851856#comment-11953419

Comments

puspanjalim created an issue. See original summary.

puspanjalim’s picture

sjpagan’s picture

Issue summary: View changes
sjpagan’s picture

fix this errors



FILE: /root/repos/pareviewsh/pareview_temp/fbpagefeed.module
--------------------------------------------------------------------------
FOUND 3 ERRORS AND 6 WARNINGS AFFECTING 9 LINES
--------------------------------------------------------------------------
9 | WARNING | [ ] Format should be "* Implements hook_foo().", "*
| | Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "*
| | Implements hook_foo_BAR_ID_bar() for
| | xyz-bar.html.twig.", or "* Implements
| | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.".
10 | ERROR | [ ] Doc comment short description must be on a single
| | line, further text should be a separate paragraph
42 | WARNING | [ ] Format should be "* Implements hook_foo().", "*
| | Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "*
| | Implements hook_foo_BAR_ID_bar() for
| | xyz-bar.html.twig.", or "* Implements
| | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.".
50 | ERROR | [x] Whitespace found at end of line
52 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
57 | WARNING | [ ] Format should be "* Implements hook_foo().", "*
| | Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "*
| | Implements hook_foo_BAR_ID_bar() for
| | xyz-bar.html.twig.", or "* Implements
| | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.".
62 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: DRUPAL_NO_CACHE
68 | WARNING | [ ] Format should be "* Implements hook_foo().", "*
| | Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "*
| | Implements hook_foo_BAR_ID_bar() for
| | xyz-bar.html.twig.", or "* Implements
| | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.".
87 | WARNING | [ ] Format should be "* Implements hook_foo().", "*
| | Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "*
| | Implements hook_foo_BAR_ID_bar() for
| | xyz-bar.html.twig.", or "* Implements
| | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.".
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: /root/repos/pareviewsh/pareview_temp/facebook-box.tpl.php
--------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
--------------------------------------------------------------------------
7 | ERROR | [x] Doc comment short description must end with a full stop
7 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: /root/repos/pareviewsh/pareview_temp/fbpagefeed.info
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

using tool https://pareview.sh/

sjpagan’s picture

Status: Needs review » Needs work
sjpagan’s picture

Title: D7 Facebook page feed » [D7] Facebook page feed
puspanjalim’s picture

Thanks sjpagan.

puspanjalim’s picture

Status: Needs work » Needs review
PA robot’s picture

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

sjpagan’s picture

Status: Needs review » Needs work

Hi @puspanjalim,

Very well, i see your module's file,

a). I think its a good idea to implement hook_help();
b). In fbpagefeed.info include "configure = admin/config/content/fbpagefeed'.
c). integrate hook_permission();

see you.

puspanjalim’s picture

Status: Needs work » Needs review
puspanjalim’s picture

Issue summary: View changes
puspanjalim’s picture

Issue summary: View changes
puspanjalim’s picture

Issue summary: View changes
puspanjalim’s picture

Issue tags: +PAreview: review bonus
VoidE’s picture

Good to see you implemented hook_help. I think it's a good idea to make the content translatable. Just take a look at the documentation for an example.

You also implemented hook_permission and added the permission 'administer fbpagefeed', but in hook_menu, you used the access argument 'administer users'. See:

  $items['admin/config/content/fbpagefeed'] = array(
    'title' => 'Facebook feed configuration',
    ...
    'access arguments' => array('administer users'),
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;

Please add the t-function to your placeholder attribute in 'fbpagefeed_form' (line 62).

/**
 * Creates Facebook page url entry form.
 */
function fbpagefeed_form($form, &$form_state) {
  $current_domain = fbpagefeed_get_current_active_domain();
  $facebook_page_url = $current_domain . "facebook_page_url";
  $form["fbpagefeed_url"] = array(
    '#type' => 'textfield',
    '#default_value' => variable_get($facebook_page_url),
    '#title' => t('Enter facebook page url'),
    '#rows' => 3,
    '#required' => TRUE,
    '#attributes' => array('placeholder' => 'Please Enter Facebook Page Url'),
  );
  return system_settings_form($form);
}
VoidE’s picture

Status: Needs review » Needs work
puspanjalim’s picture

Status: Needs work » Needs review

Thanks. I have made required changes and updated.

puspanjalim’s picture

please have a look on my module and authorize me to create full project.

Thanks,
Puspanjali

Ankush_03’s picture

@puspanjalim,
use js file for facebook script, do not write script tag on tpl file.

Ankush_03’s picture

Status: Needs review » Needs work
klausi’s picture

Status: Needs work » Needs review

@agautam: that alone is surely not an application blocker, anything else that you found or should this be RTBC instead?

puspanjalim’s picture

rajveergangwar’s picture

@Puspanjalim,

Below are my reviews:

1) Please use t() in hook_help.
2) variable which is set by module , must be deleted after module unistall , use hook_uninstall in module.install file.
3) You have used

tag in the tpl file , which you should not used, in tpl file. you should add it from drupal_add_js() as inline. 4) in module.info file description should be more descriptive , as it is not cleared module works for multi domain too.
tatarbj’s picture

Status: Needs review » Needs work

helping to set the right status to this issue as it waits for the maintainer response.

PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).

I'm a robot and this is an automated message from Project Applications Scraper.