Jump to content

Community

PasXal

+Clients
  • Content Count

    43
  • Joined

  • Last visited


Reputation Activity

  1. Like
    PasXal reacted to All Astronauts for a file, Store Stuff Products Widget   
    This plugin will display products from your Store on a widget in two ways: New Products or Featured Products.
    Plugin settings:
    Type of products to display: new or featured products Groups allowed to view the block Commerce related setting:
    New Products: Show up to X products added to the store within the last X days Requirement:
    Commerce application Notes:
    The carousel will not turn on unless you have more products than will fit inside the widget. It also will not magically turn on if you shrink your browser width. The carousel determines itself whether to enable or not when the page is first loaded.
    Version 5 works with Invision Community 4.4 and 99.999% sure 4.3
    Version 3 and 4 work with Invision Community 4.3 and probably 4.4
  2. Like
    PasXal reacted to tsdevelopment for a file, (itzrest) Rest API with authentication   
    For one of my projects I needed the possibility to read data from my board. I could not use the built in API because one important thing still is missing: user authentication and only get data the user is allowed to read. So I wrote my own REST API, including user authentication with tokens and a fluent data output. Currently it is not possible to write data. But the plan is to implement that feature in the future.
    The plugin is currently in a beta state and available for free. In the future there a plans that you have to purchase it.
    Installation
    Install the application through uploading it in the ACP Navigate to "Community" > "Itzrest" > "Settings" and insert a random 32 length key. This step is only needed if you want to use authorized access to the API. The key will be used to encode user tokens and authenticate the user if you make API calls. Make sure your webserver supports authentication headers. Otherwise authorized access will not work. That's it. Everything should work like a charme right now. Go on with the next topics Implemented endpoints
    Currently the following endpoints are implemented (more will be available in the future). And again: at the moment it is only possible to read data. You must prefix every endpoint with /restapi".
    Forums /forums /forums/<forumId> /forums/<forumId>/topics /forums/posts /forums/posts/<postId> /forums/topics /forums/topics/<topicId> /forums/topics/<topicId>/posts Core /discover/unread /discover /reactions /reactions/<reactionId> /staff/users /staff/users/<userId> /staff/groups /staff/groups/<groupId> /messenger/folders /messenger/folders/<folderId> /messenger/folders/<folderId>/conversations /messenger/conversations /messenger/conversations/<conversationId> /messenger/conversations/<conversationId>/messages /messenger/messages /messenger/messages/<messageId> Calendar /calendars /calendars/<calendarId> /calendars/<calendarId>/comments /calendars/<calendarId>/events /calendars/comments /calendars/comments/<commentId> /calendars/events /calendars/events/<eventId> /calendars/events/<eventId>/reviews /calendars/events/<eventId>/comments /calendars/reviews /calendars/reviews/<reviewId> Gallery /gallery/albums /gallery/albums/<albumId> /gallery/albums/<albumId>/images /gallery/albums/<albumId>/comments /gallery/categories /gallery/categories/<categoryId> /gallery/categories/<categoryId>/images /gallery/categories/<categoryId>/albums /gallery/reviews /gallery/reviews/<reviewId> /gallery/comments /gallery/comments/<commentId> /gallery/images /gallery/images/<imageId> /gallery/images/<imageId>/comments Authentication /auth/login /auth/authenticate Login as user
    To login as a user you must send a POST Request to the /auth/login endpoint with your username and password:
    curl \ -d username=max\ -d password=secret\ -X POST <baseurl>/restapi/auth/login As result you will get an object with several user data and the most important thing: the access token:
    { "data": { "id": "1", "name": "max", "access_token": "********", "photoUrl": "", "birthday": "" } } Keep the token secret and use it for authorized API calls how described in the step "make authorized requests". If you use authentication it would be the best way if you use a secure (https) connection to make API calls.
    Make requests
    Nothing more than sending a GET request to a specific endpoint:
    curl <baseurl>/restapi/<endpoint> For example: If you want to have all available calendars from your board:
    curl POST <baseurl>/restapi/calendars Your result will be something like that:
    { "data": [ { "id": "1", "title": "Community Calendar", "title_seo": "community-calendar", "color": "#6E4F99" } ] } Make authorized requests
    For authorized requests you need an access token. Append the access token as authorization header and make your request:
    curl \ -H "Authorization: Bearer <token>" \ -X <baseurl>/restapi/forums You can validate if your token is valid by sending a request to the /auth/authenticate endpoint:
    curl \ -H "Authorization: Bearer <token>" \ -X POST <baseurl>/restapi/auth/authenticate As result you should get a valid user object.
    Pagination, order
    If your board has thounsands of posts or threads we must paginate the results. Otherwise the performance of your requests will be horrible. Each endpoint accepts query parameters to sort and paginate your results in an easy way. Therefore each endpoint has a meta node in its result whicht give you information about your current agination state:
    "meta": { "pagination": { "total": "22", "count": "22", "per_page": "25", "current_page": "1", "total_pages": "1", "links": [] } } Now let us filter / paginate and limit our results:
    curl <baseurl>/restapi/forums/2/topics?order=title&orderDirection=asc&limit=5&page=2 We will get the following meta output:
    "meta": { "pagination": { "total": "22", "count": "5", "per_page": "5", "current_page": "2", "total_pages": "5", "links": { "previous": "<baseurl>/restapi/forums/2/topics/?page=1&order=title&orderDirection=asc&limit=5", "next": "<baseurl>/restapi/forums/2/topics/?page=3&order=title&orderDirection=asc&limit=5" } } }  
  3. Like
    PasXal reacted to tsdevelopment for a file, (itzverified) member verification   
    What is it?
    Itzverified is a small photo verification plugin. Your members can request a verification code in their settings. Now they can upload a photo where they must hold a paper with the verification code on it and start the verification process. After submitting the file your moderators will be informed via a  notification message about the new submited verification. They can now go to the mcp and verify if the code on the submitted photo equals the code the member got before. If true your moderators can verify the user what does not mean even more than the user becomes a member of a configured group. If the user is a member of the preconfigured group all other members will see a checkmark next to the username like you know it from confirmed profiles at facebook.
    You can configure the color and type of the displayed icon. You can also add custom icons that you can relate to your members. These icons will also be displayed next to the username in hovercards, member profiles and forum posts.
    Important: Use version 4.2.1 if you have ipboard 4.3 or greater installed. Otherwise please use 4.2.0.
    Create and use custom icons (since 4.2.0)
    Create Icons
    Login into your ACP and go to Community > Verification > Custom Icons Click Create New Fill in the required fields and other things you want to customize Press save Relate custom icons to your members
    Login into your ACP and go to Community > Members Select the user you want and press Edit Select the tab Verification icons and relate your custom icons to the member After saving the icons will be displayed next to the member's name
  4. Like
    PasXal reacted to tsdevelopment for a file, (itzknotty) social network widgets   
    What is it?
    Itzknotty is a small application that brings several widgets with it to display your tweets from twitter or posts from your facebook pages / groups:
    A widget to display the latest posts of a configured facebook page A widget to display the latest live stream of a configured facebook page. The livestream widget will only be displayed if there are users viewing the stream at the moment. A widget to display the tweets of a configured twitter page There is also a page...
    ...that shows the complete activity stream of the configured facebook page. The user can click on a button to load the next activity items from the facebook page. ...that shows the last Instagram posts of your configured account. Configure the application (Facebook)
    Go to the admin control panel of your site and login with your account. Go to Community > Itzknotty > Settings Select the tab for the facebook settings Fill in your data:
      Facebook Pagename
    The name of the page you want retrieve data from (https://www.facebook.com/your-pagename). You could also insert the id of a group or other endpoints that support the "feed" configuration. But: the data must be public accessable!
      Facebook App ID
    The app id of your application. For further information how to create an app scroll down.
      Facebook App Secret
    The secret of your application.
      Facebook Access Token
    Since Facebook updated their API it is not enough to get data with the app ID and the App Secret. So you must generate your own access token. See this tutorial to generate a never expiring access token (costs 10 minutes of your time): https://stackoverflow.com/questions/17197970/facebook-permanent-page-access-token/28418469#28418469
      Place the widgets you prefere to your board.


      Add a link to the complete stream if you want:

    How to create a Facebook application to access data of your page
    You need an active Facebook account to create an app.
    Go to https://developers.facebook.com/apps/ and make sure you are logged in with your preferred account. Click the button "Add a new App" And fill in the information for Display Name, Contact Email and choose Apps for Pages as category.




      Click on Create App ID and confirm the security check to proceed. Navigate to the Settings page in the left navigation bar. Copy your App ID and your App Secret and insert both in your admin control panel.

    Everything should work now.
    Configure the application (Twitter)
    Go to the admin control panel of your site and login with your account. Go to Community > Itzknotty > Settings Select the tab for the twitter settings Fill in your data you can get from your twitter application. Place the widgets you prefere to your board. How to create a Twitter application to access data of your page
    You need an active Twitter account to create an app.
    Go to https://dev.twitter.com/ and make sure you are logged in with your preferred account. Click the button "My Apps" and "Create new app" Fill in the details and accept the Developer Agreement. Choose "read permissions" only to be more secure. You do not need write permission for the application. You can copy & paste your data from there Configure the application (Instagram)
    Go to the admin control panel of your site and login with your account. Go to Community > Itzknotty > Settings Select the tab for the Instagram settings Fill in your data you can get from your Facebook application. Insagram uses the Facebook Graph API. So you can follow the guide to configure your Facebook page from above. But make sure your access token also has the right to read data from instagram (instagram_basic_data). Place the widgets you prefere to your board. Link the All activity page in your menu.
×
×
  • Create New...