Implementing Feed Comments with Get Stream in PHP - php

We are looking to integrate GetStream with our existing PHP Yii framework based site. Before we jump into integration, would like to know how we can implement features like Comments and Likes?
I'm using the GetStream/stream-php library. We are able to send and retrieve the activity feed info. but i just couldn't wrap my head around on how to do Likes and Comments features on the activities.

Related

Output JIRA filter to website via REST query?

I'm creating a kind of portal for my team as part of our company's annual Hackathon and wanted to include results for a specific JIRA filter on the front page of said portal. Idea is so that when you log in, you bring up the portal and it'll show you a list of the latest issues say or upcoming changes or RFCs for your attention.
Could I do this via REST where a script automatically grabs the content and then updates a HTML or PHP file with it?
Yes, depends on your JQL I believe you can do it via REST API. Atlassian documentation contains couple of good examples of the REST API and JQL. You can take a look at it here.

How can I sync events from yahoo/google calendar with MySql? - in PHP for a web app

I want to make a web app that will show some data from a MySQL database, and I need it to be able to connect to Yahoo/Google calendars from each user, so the user will add his calendar when he registers. Is that possible?
Google Calendar allows Web application developers to access user-generated content and event information through its REST-based Developer API. PHP's SimpleXML extension and Zend's GData Library are ideal for processing the XML feeds generated by this API and using them to build customized PHP applications. This article introduces the Google Calendar Data API, demonstrates how you can use it to browse user-generated calendars; add and update calendar events; and perform keyword searches.
Here is the article tutorial for that go to this link and learn how to do that. I think that will help you.

How to create a calendar which is getting its data from 4-5 different rss feeds

How should I create a calendar for a website, which is getting its data from 4-5 different rss feeds.
I want to use php to do this.
I was thinking google calendars would be the solution, if you too think that, can you plz direct me to a good google calendar tutorial, where I can learn how to embed a google calendar into a website.
Regards
Zeeshan
I don't know how much interaction you want. The basic idea could be this.
Then you could embed the calendar like described here
Or if you want a more privacy concerned version you could make your own by starting with this post.

Best way to implement a Calendar interface using Google Cal feeds for events?

I'm building a site for my school as a pet project, which would include accounts for all students. I want to display a calendar for each student that should have the following features:
It should be able to import events from multiple Google Calendar feeds. Compatibility with either the XML, ICAL or HTML feed will do.
It should be able to give different colors to different events based on the feeds which they originated from.
It would be nice if the calendar could also give different colors based on certains tags in the event titles, like all events starting with "Test: " will be red, and all events starting with "Deadline: " can be blue.
The interface should be nice, but simple. It should be easy to implement, and no dependency on Javascript would be good. Preferably, it will work simply on PHP.
It must provide 3 views of the calendar: Month, Week & Agenda
Features I don't require are:
Write ability (the calendars can/should be read-only)
Multiple-day events or recurring events
Links or html content inside events
What would be the simplest pre-made solution to implementing this? Currently, I am trying out various solutions like FullCalendar, and the various solutions listed at the Plans Website. However, none of them are perfect, because either they are not supported any more, or require javascript, or don't have all the features I need. I'm also gonna check out the GWT-cal plugin, and the Zend Calendar GData framework, but any feedback on your experiences with any of these would be good.
Can someone suggest the easiest way of getting this working?
Ok the word limit on comments is ridiculously low and irritating, so after having posted two comments and still having more to say, I decided to just post an answer. Sorry...
Yes, GCal is perfect, but I can't trust the technologically challenged students of my school to manually subscribe to ical feeds. So i wanna provide a site where people can select from a list of courses, and automatically get a customized event feed.
Right now, I have a rough implementation going by making a common Google Account that has separate calendars for each course. Then with some url trickery, I embed a custom iframe that gives a special read-only version of the calendar with only the calendars applicable to that specific user. This will probably raise problems when I want email notifications of events and stuff, and might force me to go into the Google Calendar API in detail. :(
Can you check out my other question at Is there anything wrong with the way I'm implementing a Calendar on my site? and give some feedback?
you should check out gwt-cal. versin 0.8.x only provides day/week view but the 0.9.0 branch implements an Agenda view with a Month view in progress.
First of all, GWT-cal is not PHP, it is Java. Secondly, why do you not want to work with JavaScript? Finally, if you are importing it all from Google Calendar, why not use Google Calendar as it has almost all you are requesting and can handle all of the user accounts and such?
The way I understand the project is you are attempting to either make one page that displays many different calendars from all the students or have each student sign in and view their calendar. Is that correct?
I would build (or find) an app that mixes the selected iCal feeds together to create a new feed, so that it can be subscribed to in GCal/iCal/Outloook/30boxes/...
If you still want a display you might try WebCalendar.
IIRC there are also some Drupal modules for this kind of thing.

How to hack IPB to update twitter account with every new topic?

I have been given a task to enable existing Invision Power Board Forum to update Twitter account whenever a new topic is created.
I should probably mention that I've already done this to other custom CMS software of the same client. And because it was custom built software it was possible to hack the code.
In this particular task that is not an option because of the potential updating issues.
How do you suggest this should be done?
If I see correctly, IPB has an RSS export option.
You could set up a cron job that checks the RSS feed every x minutes, and creates a tweet if it finds new items.
That would work without touching the board's code base at all.
There are several RSS parsers for PHP. Magpie RSS is a very popular one.

Categories