I would define myself as a junior PHP developer (as have written small scripts occasionally). A week ago I started a new project to make a website for magic the gathering (card game) where users write and publish their articles on the game or tournaments.
Normally it wouldn't be a problem because if there is any external source, it could by hyperlinked and the problem is solved.
But in this case in articles users have to discuss about MTG cards, upload decklists and stuff like that and can't put hyperlinks for these things and neither create a database for all cards as only 3 months new cards are published with new set release.
What I am looking for is a 3rd party code integration into my project where user typing a string such as "[card_data]NAME OF CARD[card_data]" have a card preview by clicking on it.
There are several websites like:
https://www.mtggoldfish.com/articles/instant-deck-tech-five-color-birds-modern
https://www.channelfireball.com/all-strategy/articles/
and several other website.
I couldn't try anything because I don't know the procedure to call an API in php script, tutorials on youtube, or w3schools are very simple and often they are about facebook and google apis .
There are websites that have APi available for mtg cards data such as https://docs.magicthegathering.io/
https://scryfall.com/docs/api
https://www.echomtg.com/api/
But I am missing the part of integration them in my website.
I would like to have something like in this example where "Wasteland" is a card and by hovering on it or clicking on it there should be a card preview:
Of course, the easiest way to make Wasteland useless is never to play any land at all
I found a really easy and simple solution to the problem above. I'll use tooltips of https://deckbox.org/help/tooltips
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.
I want a joomla chat component / module by which a visitor can chat with a particular registered user only if that user is online. I found many chat extensions, but they were not working for a particular user. I only find chat room.
Please suggest
This can be done with "BoWoB Chat" plugin: http://extensions.joomla.org/extensions/communication/chat-hosted/12803
Using the feature "Friend-only chat".
There used to be a free extension for this which I tested about a year ago. It was average with a few bugs but they developers have constantly updated it since then and it's now commercial:
http://extensions.joomla.org/extensions/communication/chat/19758
You may also want to take a look at the following:
http://extensions.joomla.org/extensions/communication/chat/17600
Both are based on the Facebook Chat style, however both are also commercial. If you're looking for a non-commercial solution, then FreiChat may suit your needs. I have never tested it but the ratings and reviews are good.
I'm new to PHP, and love it. I want to write a script that send's my phone a text message whenever someone I follow posts on a forum. This could be any of the forums I follow.
Is there a way to do this?
For instance, let's say I want to follow someone who posts on Hacker News. Could I run a cron job that checks if that person has made new posts each morning? How?
You could, this is all "assumptions" on my part tho.
If you have an RSS feed for each forum, you could grab this feed and based on the feed then email your cell phone (say AT&T you send to NUMBER#txt.att.net.. something along those lines, check your cell carrier site).
Another method would be if the forums notify your script/server in some way, again this is a big assumption. You could go out of your way to even check incoming email on an smtp/pop mail box.
There are a number of ways to do what you are asking, some can be difficult, some easy.
Things like a cronjob / curl / rss notify / twitter account for notifications only, etc;
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.