Hi,
This module allows you to auto post hapity broadcast to your drupal.
1- You need to sign up for an account on http://www.hapity.com
2- Go to hapity profile setting
3- Get your Plugin ID
4- Install hapity module to your drupal website
5- Go to 'admin/config/hapity'
6- Paste you hapity Plugin ID into Hapity Plugin's ID filed
7- Save the configuration.
8- Go to hapity start broad cast. It will be posted automatically to your drupal website.

Project Page : https://www.drupal.org/sandbox/khurramawan/2838160

git clone --branch 7.x-1.x https://git.drupal.org/sandbox/khurramawan/2838160.git hapity
cd hapity

Thanks,
Khurram

Comments

khurram_awan created an issue. See original summary.

PA robot’s picture

Status: Needs review » Needs work

Git clone command for the sandbox is missing in the issue summary, please add it.

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.

visabhishek’s picture

Title: hapity D7 » [D7]hapity
Issue summary: View changes
Status: Needs work » Needs review
PA robot’s picture

Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpsgitdrupalorgsandboxkhurramawan2838160git

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

akhilsoni’s picture

Hello

Add @file at hapity-list.tpl.php and any other file if missing.

Remove this information from .info file version, core, project, datestamp .

Declared file is not in directory
line no 8 : files[] = views/hapity.views.inc
in info file

And I also find some of the issues in https://pareview.sh/node/492

please check and resolve it.

khurram_awan’s picture

Priority: Normal » Major
Status: Needs work » Needs review
khurram_awan’s picture

Priority: Major » Normal
khurram_awan’s picture

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

Issue tags: -PAreview: review bonus

no reviews from you listed in the issue summary, make sure to read the review bonus page again https://www.drupal.org/node/1975228

rajveergangwar’s picture

Hi,

1) Your README.txt file doesnt have proper content.

Please read document for REDAME

2) Please remove ; Information added by Drupal.org packaging script on 2015-09-08 from your info file.

Please read document for INFO

khurram_awan’s picture

Priority: Normal » Major

Thank you for pointing these issues out. Both issues are fixed now.
Thanks,
Khurram

satyam upadhyay’s picture

Hi khurram_awan,

I taken clone of your module and configured as you mentioned in readme.txt:
While reviewing your code and adding a hapity by node/add/hapity with these fields values http://www.screencast.com/t/moGQJxAY0KNo i received some PDO error like this http://www.screencast.com/t/ObOqgfa5iG

Note: If i am filling some wrong data to node let me know how to fill values to the form for node/add/hapity else fix this error.

Regards
Satyam

satyam upadhyay’s picture

Status: Needs review » Needs work
khurram_awan’s picture

Hi @satyam-upadhyay,
This module Auto posts embed code to drupal website. You need to paste your plug in id into "/admin/config/content/hapity" Then start your broadcast from hapity app or hapity website. This module will auto post broadcast to Drupal. you need to make sure drupal website is accassable from internet and hapity apis can reach to it.
I think I need to disable create form because creation will happen automatically.

Thanks for your time,
Khurram

khurram_awan’s picture

Status: Needs work » Needs review

Hi There,
- Create form has been disabled.
- ReadMe file has been updates.
- Integer validate has also been added.

Thanks,
Khurram

khaldoon_masud’s picture

Status: Needs review » Reviewed & tested by the community

Works for me.

imyaro’s picture

Priority: Major » Normal
Status: Reviewed & tested by the community » Needs work

Hello,
A little code review:

* hapity_node_access
Unused variable $account
Unused variable $node

* hapity_menu
Variables should start with a module name to prevent 1 variable usage by several modules. Check https://www.drupal.org/docs/develop/standards/coding-standards#naming

* hapity_menu
access callback key could be skipped if user_access function used.

* hapity_node_info
When this hook called, $path variable passes to the function. There is no reason to use drupal_get_path function.

* hapity_form_alter
No t() function used for drupal_set_message.
I'd better use $form['actions']['#access'] = FALSE; unstead of unset();

* _hapity_create_hapity_node
Security vulnerability. Get params wasn't check by check_plain() or strip_tags() functions

Better to use REQUEST_TIME instead of time();
Please use LANGUAGE_NONE instead of 'und' string

* Remove die() from the end of the _hapity_create_hapity_node. Please let the Drupal decide when to stop working with the data.
As I see, in your case it will be better to create empty delivery callback and return URL using it.

* Global variables must be defined at the first line of the function.

* _hapity_build_embed_code
Security vulnerability. Get params wasn't check by check_plain() or strip_tags() functions

* hapity_settings_page
Please consider using drupal_get_form intead of this callback function.

* hapity-list.tpl.php
Why should we put node title into translation? such modules as i18n and entity_translate should handle it themself.

Also check your module with pareview.sh tool, there are much mistakes with drupal code style.

Needs work.

klausi’s picture

@zvse: _hapity_create_hapity_node(): does not print $_GET parameters to HTML, so how would you exploit the security vulnerability you describe? Remember: "When handling data, the golden rule is to store exactly what the user typed. When a user edits a post they created earlier, the form should contain the same things as it did when they first submitted it. This means that conversions are performed when content is output, not when saved to the database" from https://www.drupal.org/node/28984

klausi’s picture

Issue tags: +PAreview: security

Ah sorry, just saw that _hapity_create_hapity_node() stores the data unsanitized as full HTML content. That means the content will not be filtered on output, which is an XSS vulnerability. If the output needs full HTML because of the iframe then you need to be super careful to correctly sanitize the inserted parameters.

And please don't remove the security tag, we keep that for statistics and to show examples of security problems.

khurram_awan’s picture

Status: Needs work » Needs review

Hi @zvse and @klausi
Thank you for your time all above issues have been fixed.
We do need die() at the end of _hapity_create_hapity_node function because Hapity.com API is expecting plain text URL as a response to save broadcast node URL.

Thanks,
Khurram

khurram_awan’s picture

Issue tags: -PAreview: security +PAReview: security PAReview: review bonus
Related issues: +#2225011: Delete "PAReview: review bonu" tag which is a type of "PAReview: review bonus"
khurram_awan’s picture

Issue tags: -PAReview: security PAReview: review bonus +PAreview: security
Related issues: -#2225011: Delete "PAReview: review bonu" tag which is a type of "PAReview: review bonus"
khurram_awan’s picture

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

Issue tags: -PAreview: review bonus

Removing review bonus tag, you have not listed any reviews in the issue summary? Make sure to read https://www.drupal.org/node/1975228 again.

khaldoon_masud’s picture

Status: Needs review » Reviewed & tested by the community

- Could you add module's usage guide in the readme file? Like when the hapity nodes will be created. How to view hapity nodes.
I installed and configured the module, and then created two broadcasts, No hapity nodes were created? Don't know what to do next.

- hapity-list.tpl.php file could have an if condition (if (!empty($broadcasts))) before foreach loop.

- Could you change the content type name to "Hapity" instead of "HAPITY"?

-- Thanks

khurram_awan’s picture

@khaldoon_masud Thank you very much for your time. I have made the changes you mention above.

Thanks,
Khurram

avpaderno’s picture

Assigned: Unassigned » avpaderno
Status: Reviewed & tested by the community » Fixed

Thank you for your contribution!

I will update your account so you can opt into security advisory coverage now.

Here are some recommended readings to help with excellent maintainership:

You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!

Thank you, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

Thanks go the dedicated reviewer(s) as well.

avpaderno’s picture

khurram_awan’s picture

@kiamlaluno Thank you very much

khurram_awan’s picture

Status: Fixed » Closed (fixed)
avpaderno’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.