I am new to backend coding but I am getting the hang of codeigniter. I have deployed the simple task board application hosted on github and everything is fine. As it stands this application uses sessions to create a single dashboard that can be shared by multiple users. I would like to be able to set this up so that a user could register and start their own dashboard. For simplicity it would be good if this new instance or session (not quite sure if I have the terminology right) could share the same database.
So my question is can someone tell me what I need to research in order to develop this? I dont think I have the right terminology to ask google or manuals for what I need.
I prefer you to use codeigniter session library and for dashboard, you may be stored much data in session, so use "Saving Session Data to a Database"
check this link : http://ellislab.com/codeigniter/user-guide/libraries/sessions.html
Related
TLDR; best solution for private instant messenger with laravel.
So I have a live real time chat working on my laravel site, However at the moment I don't have the ability to private message, its located on the home page and every time someone connects their socket.id changes The code I used and modified was from this tutorial. (I can copy paste it here if you wish I was not to sure about the rules regarding that)
http://itsolutionstuff.com/post/laravel-52-chat-message-module-using-socketio-redis-express-and-nodejs-from-from-scratchexample.html
I have no idea where to go about settings this up between 2 users as a private chat and just wondering if anyone else has ended up getting an instant messenger type system working with laravel and if so any info would be appreciated - it does not have to be socket but I was wondering is ajax a bad way of going about it.
I ended up creating each user who signs in a room of their own using a random token.
When someone requests to pm them it is announced and they have the open to start a chat (a new lobby).
It then combines both tokens using their user ids in which order to combine them as the lobby.
I have also save each thread in the db using this method.
When a token expires it updates the token in the DB also.
I am sure this is not secure, however it is not enterprise or even used publicy more so a test.
If anyone else has a more secure or better way let us know.
We just started to develop an app where we need to get some data from a Joomla backend. (Data would be company profiles. Those companies register on the Joomla webiste and the public information gets displayed in our app).
What is the best way to communicate between the app and the Joomla backend? The information from the database just has to be pulled once at the start of the app and maybe by manual refreshing.
So far I have read about REST API and SOAP as web-services. I played a bit around with examples from the internet but wasn't really successful yet. So could one of you give a simple explanation and a small example for the interaction between Joomla backend and an Android app e.g.
If you are looking for a pre-packaged solution to turn Joomla 3.5/3.6 into a Mobile Back-end as a Service (MBaSS) you may want to explore cAPI Core REST API.
https://extensions.joomla.org/extensions/extension/capi-core-rest-api
Please note that this is a commercial plugin which I developed. If you are OK with that, you may read on here for more information from a previously answered question:
https://stackoverflow.com/a/32706378/5361267
API Documentation can be found here:
http://learn.getcapi.org
Swagger UI Docs:
https://demo1.getcapi.io/api-docs
To answer your specific question about profiles, this extension will allow you to read and update profile data associated with any user. In addition to the built-in profile fields, the profile creation methods allow you to create and populate unique profile keys. While these might not be visible in the joomla interface (because they have to be defined in XML as well), they can be queried / updated remotely as needed.
PUT /user/profile/{id}
https://demo1.getcapi.io/api-docs#!/User/putUserProfileById
I'm trying to SUGGEST, or CREATE an app, and I don't have any knowledge of facebook app creation... I've looked up on tutorials, but facebook's API might change or has changed by the date of those tutorials...
So I thought I'll ask on here, after searching for a facebook developer's support, I was redirected to here.
My question: What is the best way to create a basic app, as per my requirements (below)..?
My Suggestion/Requirements: I wrote this tutorial on superuser, which lets you display your current playing track as an updated div on your html based website. I'm trying to create a facebook app that posts these track info updates to the right side of the facebook home panel (above the chat column). Like Spotify! Or SoundCloud...
My Problem: I don't know where to start? I don't have much knowledge of scripting and according to me, it should be quite simple in PHP/MYSQL/Javascript/ ... but don't know how facebook would handle the html file from where the <div> data could be collected. I think jquery would solve that, but this can also be done via PHP/MYSQL.
It should be simple, so I'm also suggesting this as an idea for anyone willing to create this app on facebook? And if you create it, please do keep it open source project or a tutorial for it, so that if at any time you close the app, it can still be replicated. I cannot create it but am willing to, but don't know how to...
I'm asking this here because facebook doesn't appear to have a forum based posts for this apart from the developers group. I've joined the facebook developers group, but haven't yet been allowed to post anything, as the join request is pending.
That's mostly all. Thanks for any help.
Start with registering your application on Facebook .It will give you some token and keys.
Now you can follow any tutorial online to create application on fb.
I was wondering if you guys can help me out.
We are developing a new forum component on our website.
The forum is being created with PHP and MySQL and we want to integrate it with Wordpress.
The Problem is, that we don't want to create a whole new Register Forum because this will force the user to create TWO accounts (one for the site and one for the forum) and this is not user friendly.
So if you know a way to use the wordpress website user database with an outside database it will be great.
Another option is to create a whole new data base but then we force the users out of the commenting section on the Wordpress website. So if is there away to create a new Database that will allow them to use the same account for the website and for the forum that will be fantastic.
I hope someone here know how to merge the two data bases please help me out.
Thanks!
The Wordpress database schema is documented here.
http://codex.wordpress.org/Database_Description
In particular, the user table is here.
http://codex.wordpress.org/Database_Description#Table:_wp_users
Wordpress is open source, so you can look at its code to see how it authenticates itself to its database. Your application will need to do the same thing.
If you'll have your application on the same domain as the Wordpress system you're sharing users with, you may be able to figure out how to use the Wordpress user-authentication browser cookies to implement a single signon scheme.
http://codex.wordpress.org/WordPress_Cookies
The Wordpress developers have created a forum system called bbpress. You could consider using it or forking it. It has user-level integration.
http://bbpress.org/
Wordpress has its own stackExchange site at http://wordpress.stackexchange.com
I wrote a small app that relies heavily on a series of php pages in which mysql data is displayed and formatted, given the user's credentials.
Rather than rolling a whole user management system from scratch, im debating putting these files into modx pages and utilizing its usermanagement features to secure and restrict those pages and the data.
My question is 2 fold, first, how smart is this from a difficulty stand point? Ive done a test creating a snippet and everything shows up ok, but is there an easier way to do this?
Second, how can i take modx's session or login data and pass it to my app so it knows WHO is logged in.
Thanks
I relatively new to modx so I'm not the best person to comment on how smart it is, although I personally have no problem with the methodology.
You can get details of the logged in user using the modx API.
eg
// In the front end, returns an array of the logged in user's attributes.
$userInfo = $modx->db->getRow(
$modx->db->select(
"*",
$modx->db->getFullTableName('web_user_attributes'),
"`internalKey`=".$modx->getLoginUserID()
)
);