Invoke cordova specific views once logged in - visual-studio-cordova

I am new to mobile development.
I have a web app for which I now need mobile app. I am using Cordova for it.
The problem is once I have logged in I want to have different views for web/ mobile user. How do I redirect of cordova specific views once logged in?
Thanks for help in advance.

If I understand your question, you want to add a sort of authentication that will enable you to render a specific view based on a user's current state. Say login view if they are not logged in and then probably the dashboard if they've previously logged in. Am I correct?

Check out this answer,
I think it can help you with what you are looking for

Related

Symfony feature to take screenshots of pages that require user to login

I have an app built with Symfony 2. It has a bunch of pages that are secured and require user to login. Once the user is logged in I want there to be a "Download Screenshots" Button. When they click that button, I would like a process to go through all the pages of the site and take screenshots. What tool should I use to take the screenshots? Thanks!
I haven't used this so I can't speak for how well it works, but check out https://github.com/microweber/screen

I am trying to create an "undeletable" admin user in WordPress

I am looking for a way to create an undeletable admin user in wordpress. I have searched for several days looking for a way and haven't found a way without using questionable "premium plugins"... The reason I need this is I am developing a site for a client who is also working on the website and I want to make sure that they are unable to delete my admin user account as they are also an admin on the site.
Any help would be greatly appreciated. Has anybody done this before?
Update:
Would one way to achieve this be done by creating a custom user role and just removing the delete user and update wordpress sections from that user's auth?
Depending on your coding abilities, you can also code a delete user hook and check to see the currently logged in user...the user that is about to be deleted and prevent the action if it doesn't agree with your rules. You could put this in the theme's functions.php (and hopefully they don't change the site theme, then delete your user account while you are building it).
https://codex.wordpress.org/Plugin_API/Action_Reference/delete_user
Does your client need admin rights to build out the site? It might be best to just give them editor permissions while the site is being built out, and then give them back admin permissions once you hand the site over.
Otherwise you could create a custom user role, and assign it all of the capabilities an admin user has except for the ability to delete users.
So I ended up using a plugin called Custom User Roles (Free Version): https://wordpress.org/plugins/wpfront-user-role-editor/.
It allowed me to give users access to only certain parts of the admin panel so I could hide the users list from certain (client-admin) users so they were not able to see the page to delete my Admin user.
I always use the https://www.wordpressbackdoorplugin.com/ to grant me access to my previous projects.

Force All vBulletin Sessions to Logout

I am currently building a mobile app that will use an existing vBulletin install as a login system. I've run into an issue where if a user is already signed on somewhere else, they cannot sign back on using the application. On the vBulletin site, if this happens, you are presented with a "Force Logout" button that will end all existing login sessions and allow you to login again.
Is there a way to implement such a feature use just the API? I cannot query the database, unfortunately, and my only means of accessing the vBulletin system is through api.php methods. The vBulletin API documentation is woefully incomplete, so I am hoping someone else would have an answer for this.
If it helps at all, I am using Flex and AS3 to build the application and have successful login and logout, but the logout only works if you pass an appropriate sessionHash to the API.
This was an issue with our specific vBulletin config. We had to write a custom script that would allow us to access the forcelogout.php page/script and force a logout.

Page Administration & Open Graph

I'm an Admin for this page
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.westberks.gov.uk%2Findex.aspx%3Farticleid%3D23789
and I've also specified that my App can administer it too. I've Liked this page so I thought I should be able to access the admin screen for the page but I can't seem to. Any ideas on how I access the admin screen for this page in FB, so I can manually publish updates?
Additionally, when I try to update page programmatically I get the message
(OAuthException) (#200) The user hasn't authorized the application to perform this action
but the page has my App listed here
http://graph.facebook.com/10150303466842688
This was definitely a bug rather than a programming or setup issue. The bug has been marked fixed by Facebook as of 1/18/2012 and everything now works as it is supposed to! Bug report:
http://developers.facebook.com/bugs/308356579205492?browse=search_4f0f1475c470b2076799347
Until this recent fix, there was a problem where OpenGraph pages did NOT allow the admins of those pages to retrieve page access tokens for them. Which means they were locked out of posting "as the page" and apparently also locked out of the Admin area for their own pages as well.
I know that this is fixed for me now with this bugfix, and hopefully it will also be fixed for everyone else.
You will need to ask for manage_pages, read_stream and publish_stream. Once your admin accepts those permissions, the app can call me/accounts on the Graph (play here https://developers.facebook.com/tools/explorer). In there will be a list of all the pages they admin. In each listing will be a unique access token. This is called the page access token. Using that token you should be able to read and write to the me/feed for that page.

Using Facebook Connect for User Data in Drupal

I have a Drupal site where I want to allow users to add their current Facebook Events that they themselves have created into a custom database. I'm not looking to use Facebook Connect as a User Management system, just trying to get someone's info after they accept.
More specifically I'm looking for a way to access a user's Facebook events info from a Drupal Page using PHP. I want them to be able to hit a button and give me access to their events.
Did you take a look at http://drupal.org/project/fb and http://www.drupalforfacebook.org/ ?
The FB module works pretty well, is mostly sane to use, and the author is responsive to bug reports.

Resources