Mycred shortcodes example

Mycred shortcodes example. You could use this to query a users balance on a different site or make remote transactions by for example building a payment gateway that myCred manages. Accepts “current” for current user or a user ID. Shortcode Copy [mycred_woocommerce_referral] shortcode. mycred_default. Core Settings Each point type’s core settings consist of four sections: Label – Handles the point types label in singular or plural format. [mycred_content_sale_count] This shortcode renders the total number of times the content has been purchased. This shortcode will show a users total points balance by adding up two or more point types into one. [mycred_send amount=10 to="author" ref="post_like" log="Post Like"]Like Post[/mycred_send] You could also use this shortcode to create a form of “Comment Apprechiation”. Gutenberg’s dedicated Shortcode block. Oct 30, 2023 · Example 1: Use the shortcode to present the current page’s URL that users need to use in order to get points for referrals. Supports: pie, doughnut, line, bar, radar and polarArea. Example 1: Create a button that will send 10 points to the post author from the current user when clicked. 3 Step 3: Enable/Disable Hooks. when users log in to see if they should get points. Jun 5, 2021 · For example, sample content should no longer be shown if the premium content was purchased. 4, myCred has built-in support for managing multiple point types. This shortcode will generate cashCred’s payment form on the front-end. mycred_content_sale_count. Make sure to choose the myCred plugin with the token icon and the author “ myCred ”. I have gone through a few articles but just can't seem to get it to work. Set Points & Limits for Referrer. The point type to base the leaderboard on. To show all badges, please use the mycred This shortcode allows you to list all ranks with the point requirements and / or the members count for each rank. Click on the Points tab. Should only be used if you are adjusting a custom point type and not the default one. This shortcode can be used to sell parts of the content field instead of the entire thing. Locate and select the zip file you downloaded and click “Install Now”. This feature is currently used by the Log module in your admin area and by the mycred_history shortcode / widget. 4. By default all users are returned for each rank but you can change this to any number. I have added a few new shortcodes for the Sell Content add-on in version 1. - bbPress Forum Awards Nov 1, 2023 · Yes 3 No 9. 00001" rate="8127"] In this instance I would like to link the exchange rate (rate="8127") to the actual market value of Bitcoin. These purchases are either done manually or using online payment processors, such as PayPal or Netbilling. The ID of the User getting the points. Logged in users can then buy a card via this shortcode. [mycred_history user_id=1 type="customtypekey"] Example 4: Show todays log entries for everyone. Aug 11, 2016 · Shortcodes. Point Type Settings Under each point type menu in your admin area you will find the Settings page. Setup Hooks As of version 1. Go to Page 🡪 Add New Page 🡪 Insert Shortcode Block. [userpro template=mycred_history] Example 2: Show a profiles history and make it “public” allowing users to view each others history. Basically this is a very very basic transfer shortcode where the amount, recipient and log template is already set. You can create badges that are awarded automatically as the user gains or loses points, or create manual badges that administrators assign, or both. The options will automatically include this ID to the shared links generated automatically by plugin or by shortcodes used on site. Example 2: Show a given users rank and the rank logo but with the rank first. Oct 30, 2023 · GAMIPRESS IMPORTER SETTINGS Navigate to the myCred point type > Settings Open up the Gamipress Importer tab Inside the Gamipress Importer tab, you can find the following options: Gamipress Import Point Types Import Gamipress Points Gamipress Import Achievements Gamipress Import Ranks Step 1: Import Gamipress Point Types: Click on the Gamipress Import Points Types button It will import all Description. [mycred_my_badges show="all"] This shortcode will show the user who is viewing it their earned badges. php file. Oct 30, 2023 · Introduction. Front-End Impact b. Feb 16, 2024 · myCred Badge Plus Description: This shortcode will render the specific badge of provided badge_id; without badge_id, the badge will not display. While ranks are based on a user’s balance, badges are based on a user’s points history, like the number Examples. Allows you to show multiple balances in one single widget. Must be used inside the loop, either in the content field or in your theme’s template files. This shortcode will not show all badges no matter if a user has earned them or not. However no points will be paid out unless the user Example 2: Show all log entries including the user column. The result of this shortcode will always be formatted based on the point type with most decimal places (if used). An authorization key to access myCred RESTful web service. Notes on the above request examples: The post_id variable is only sent if you have setup the mycred_buy_form shortcode to allow users to purchase points for the content author. The user whom's history we want to show. Click on the Import User Points button to start importing the user points data. Hooks Example 1: Show a custom message when someone views the shortcode without being logged in. clawfans The Best Gamification Plugin Ever! As with everything – you can evaluate if the product is good depending on how reliable the support is. This shortcode returns a list of users for a specific published role, ordered by their account balance. In this log, you have a complete historic overview of how points have been awarded or deducted from your users. You can rate examples to help us improve the quality of examples. You can use this filter not just to add your own type but also to rename existing ones or for example Oct 30, 2023 · The myCred Plugin consist of several modules that work together to manage and execute different tasks and features. You can name and re-name points at any time. And with MyCred team – it is reliable! Have received prompt support and custom modifications with haste. Shortcode:mycred_show_all_badge_plus Shortcode Attributes: Attribute Type Required Default Description type_id INT Required - Oct 30, 2023 · Tools myCred 2. For example: Points, Tokens, Credits. 3 has introduced a new feature named tool, which has following features: Bulk Assign Tool Import/Export Tool Navigate to the WordPress Admin Dashboard → myCred → Tools. These results are based on references. Insert your conversion rate as per your wish even in decimal points. Here you will find your point related settings and the settings of most add-ons. 7 you can select to enable exports just for administrators in the admin area or also allow your users to export their own history from the front end using the mycred_history shortcode. These are the top rated real world PHP examples of mycred_get_coupon_post extracted from open source projects. My Balance The shortcode for My Balance is [mycred_my_balance image =1]. Example 7: Hide content if the current user is: logged in have at least 100 tokens (a custom point type) [mycred_hide_if balance=100 ctype="customtypekey"]Hidden content. Nov 6, 2023 · Navigate to the WordPress Admin Dashboard → myCred → Tools. You can click on the “Level x” label and give each level a unique name. It is essentially just “Points for clicking on links”. Save settings. FIX – mycred_history shortcode pagination not working properly when cache enabled. 7, but since all transactions are now handled via AJAX, it also means that the mycred_sell_this_ajax shortcode has been removed. Checkout Process In order for the checkout page to trigger, a user must provide the payment gateway they want to use for payment, the amount of points they want to buy and if you sell more than one type of points, the point type they want to purchase. [mycred_history show_user=1] Example 3: Show the user with the ID 1′s history for the custom point type “mytype”. The image below provides an example of how the shortcode appears when added to a page. Select Import/Export from the tab. The number of balances to show. The editor consists of 4 sections. This shortcode will return the unique referral ID of the user who views the shortcode. 3 or higher) [mycred_my_balance wrapper=0 title_el="" balance_el=""] Example 4: Show balance for a custom point type. However no points will be paid out unless the user Oct 30, 2023 · Show All Badge Plus Description:This shortcode will render all the badges of the specific type_id that have been assigned/issued, whether single or multiple badges earned through the same type. 2. 1 Step 1: Install and Activate myCred. Point type keys are sanitized using NEW – Added attributes in mycred_transfer shortcode. Accepts either a numeric user ID or the keyword current to show the current users history. This label is then used as a title for the badge the user has earned. By default all users are returned for the given rank but you can set how many users to return. To buy points, a user must select the amount of points they want to buy and the payment processor they want to use. The shortcode will present by default the users avatar and display name, but this can Oct 30, 2023 · ShortCode [mycred_cashcred] Place the shortcode on any page or post to render the cashCred form. • Drag & Drop WooCommerce Product Referral Hooks > Active Hooks. One of myCred’s core features is the ability to award or deduct points from a user for interacting with your website. myCred is the most powerful and easy-to-use points management system that allows you to build and manage a broad range of digital rewards, including points, ranks and, badges on your WordPress/WooCommerce powered website. Oct 30, 2023 · myCred Rank Plus Description: This shortcode will render the specific rank of provided rank_id; without rank_id, the rank will not display. ctype. May 22, 2023 · Remote API - version 1. Front-End Impact Example 1: Default usage: [mycred_my_badges] Example 2: Show all badges, even those the user has not yet earned. 8, this class will be split up and focus on running queries in the database while a separate class will be made available that will render the table to show the results. Should not be used if you only have one point type installed. Shortcode: mycred_badge_plus Shortcode Attributes: Attribute Type Required Default Description badge_id INT Required - Define the badge_id of the badge that you want to display in the front end. pay_to: int: No-Option to pre-select a particular user that should receive all transfers made from this shortcode. js 2. This shortcode allows you to show the balance of the user viewing the shortcode or a specific user. This way, your html template will be used for each user row. 2 How to Use myCred to Add a Rewards System to WordPress (In 5 Easy Steps) 2. The Points will be multiplied with the defined figure. As you can see the mycred_buy shortcode sends the request though $_GET while the mycred_buy_form sends it though $_POST. Oct 30, 2023 · Hook API. 7, myCred Hooks are managed just like WordPress widgets. No add-ons or premium plugins are required for these shortcodes to work: [mycred_history] Shows the points history either for all users or for the user viewing the shortcode. 1 An Overview of myCred Premium. You can also select to include an excerpt of their recent history. As of version 1. Users can view each transaction, select to cancel Examples. Nov 1, 2023 · Export myCred Data myCred can export your users points history into CSV files. Type the myCred into the search field and hit enter. The chart type to render. This shortcode will show a list of content that a given user has purchased. mycred_link. • Go to Points > Hooks. Label naming is optional. Modules should be used when you want to: Add settings to the myCred > Settings page. Place on any Oct 30, 2023 · First, we will need to add our type the list of leaderboard types that are shown in the admin area. Supports: line and bar. Nov 2, 2023 · You can click on a badge title to edit the badge or click on “Add New” button on the top of the page. Add to add points. [mycred_email_subscriptions] <p>Please login to unsubscribe from email notifications</p> [/mycred_email_subscriptions] This shortcode allows your users to unsubscribe to any email notifications you have setup that are sent to the user. mycred_sales_history. Here is the collection of all addons of myCred: Enhancements, Gamifications, Third-Party Bridges, Store Gateway, BuyCRED Gateways & Freebies. [mycred_my_rank user_id=123 show_title=1 show_logo=1 first="name"] Example 3: Show the current users rank for a custom point type. Unlike the mycred_scratch_cards shortcode which will only show one particular card set, this shortcode will show multiple. This is referred to as the Store Rewards System and is available since myCred 1. Download the zip file from your mycred. Format –. The automatic point adjustments are called “Hooks”, as you have to “hook into” a particular event e. (myCred) Leaderboard This widget works just like the mycred_leaderboard shortcode, Oct 30, 2023 · It has all the functionalities that have been added to bulk generate the coupons in myCred. 0 The Remote API allows you to connect multiple myCred installations running on separate websites by sending action requests between them. The point type key. Nov 3, 2023 · Since version 1. [mycred_leaderboard number=10 order="ASC"] Example 3: First show the top 3 users then in a new shortcode we show the next 10 users down the list. If not used, the user would need to n Oct 30, 2023 · Installation. [mycred_sales_history order="ASC"] This shortcode will render a users content purchase history via the Sell Content add-on. You can use the [userpro] shortcode to show a users points history by setting the template attribute to “mycred_history”. This filter controls if the mycred_give shortcode should run or not. May 22, 2023 · buyCred Gateway API. Example 1: Show current users Ranks but only show the logo and not the rank title. Example 3: Used inside the Loop, show the total number of points the posts author has received since they joined. When it comes to points management, administrators add/remove points from users along with editing or removing log entries. [mycred_my_ranks show_title=0 show_logo=1] This shortcode allows you to show all ranks a user currently has. Get to fetch points. Example 1: Buy %_plural% now! Buy tokens now! Example 2: 10 %plural% for sending an invite. Uses Chart. You have one “sidebar” called “Active Hooks” where you drag hooks you want to use. If the type_id attribute is not set, the shortcode will not display the badge. (myCred) Wallet Available if you have more then one point type setup. Shortcode: mycred_rank_plus Shortcode Attributes: Attribute Type Required Default Description rank_id INT Required - Define the rank_id of the rank that you want to display in the front end. This means that a user will potentially have multiple balances, one for each point type they are not excluded from. This shortcode allows you to award or deduct points from the current user when their click on a link. Then, wrap shortcode of such forms with different shortcodes of Mycred to give access to such forms to users with different number of points,ranks Oct 30, 2023 · Available Shortcodes Once the add-on is enabled, a set of custom shortcodes will become available for your website: Shortcode Description [mycred_chart_circulation] This shortcode will render charts based on the amount of points that currently exists amongst your users for each point type. Place the [mycred_cashcred] Publish/Update. Figure 2. Option to set a title for the chart. Adding an underscore at the beginning will return the name in lowercase. Copy and paste the following URL: [mycred_affiliate_link] Example 2: Use the shortcode to present a specific URL that users need to use in order to get points for referrals. [mycred_total_points user_id=""] Example 2: Total number of points given out for approved comments for the current user. 1 An Introduction to myCred Rewards Systems. 0. On the plugins page, you’ll see the “ Search Plugins ” field on the right side. Example 1: Default usage. If the user is excluded from using myCRED or the particular point type or if the shortcode is viewed by a visitor this shortcode will return an empty string. mycred_sell_this. To use the referral option you need at first to configure the Referral Hook in myCred – learn more in myCred knowledge base. Example 1: Let users exchange the default point type to a custom point type at a rate of 1 for 1. The myCred Hook API can help you connect your favorite WordPress plugin with myCred by setting up custom instances where points are awarded to a user for a certain action. This add-on allows you to create badges – a visual token of achievement. Reward users with points every time they rate published cont Free. Nov 1, 2023 · Step 1. Nov 3, 2023 · Administration As an administrator, you gain full control over how points are managed, displayed, or even what they are called. We can find it in the Widgets section. Export Formats The export module can export log. You can use the Module API to create your own modules for myCred or adjust / disable existing modules to suit your needs. You can select the colors to use, if the progress bar should be animated and also there is individual progressbar for badge requirement for the users current badge under the progress bar. Attribute Type Required Default Description; button: string: No-The transfer button label. 10 Tokens for sending an invite. Oct 30, 2023 · Log API. You can select how far back the chart should go in days, weeks, months or years. Below are examples showcasing the versatility of this new functionality: [um_author_profile_link] - This shortcode retrieves the User Profile URL of the current post author. Furthermore, the mycred_sell_this shortcode no longer allows you to set the cost of the content! This is because the shortcode’s Nov 3, 2023 · Automatic Points. Oct 30, 2023 · SHORTCODE SETTINGS Go to the added forms Copy the shortcodes either from here or inside of every form Create a page and paste the copied shortcodes there Publish the This custom shortcode allows you to show a progress bar for your badges for current user . Mar 20, 2023 · Table Of Contents. In order for us to detect a specific instance, we often need to “hook” into a third-party plugin or a specific WordPress instance via a action or filter hook Jan 6, 2021 · Shortcode works as wrapper for content. This shortcode allows the user viewing the shortcode to send a pre-set amount of points under a specific reference to a pre-selected user. Note that this shortcode will show all badges and not just the badges a user has earned. The type of periods we want to use. The plugin will automatically fetch and display all the point types credited via myCred and display them in the drop-down menu under the select point type label. You can also manually give badge id to render specific badge progress. Note. Note that this is only usable when you have ranks for multiple point types. [mycred_sales_history ctype="customkey"] Example 4: Reverse order and show oldest purchases first going forward in time. Option to show the rank progress of a particular user instead of the user viewing the shortcode. Option to insert a title before the progress bar. FIX – mycred_sell_this shortcode not working in the bbPress topic; FIX – The central deposit missing log entry in some cases. Under the Plugins menu, select “Add New”. We will do this using the mycred_bp_leaderboard_types filter. [/mycred_hide_if] This shortcode allows you to hide parts of your content for those who fulfil the requirements you set. myCred supports up to two types of users. The following shortcode attributes allow the admin to add payment gateway(s), point types(s), and messages for insufficient funds and excluded users. 1. Example 3: Remove all wrappers and only show the balance. There is a tutorial on the subject for further information. Oct 30, 2023 · Third-party Plugin Support View Plugins Built-in Support View Plugins Examples. The Gateway API is responsible for allowing your users to buy points for real money. The order of which the balances should be sorted. Oct 30, 2023 · Store Rewards. 2 Step 2: Configure myCred Settings. [mycred_my_rank user_id="current" ctype="customtypekey"] This shortcode allows Nov 3, 2023 · Redeeming Coupons In order for your users to redeem a coupon and gain points, they need to be logged in on your website and use the mycred_load_coupon shortcode. This means that you can add anything inside shortcode. The myCred Log is one of the most important part of myCred. Adding a Shortcode block in Gutenberg. Go to your website’s wp-admin area and visit the Plugins page. This shortcode will display the current points of the user who is currently logged in. Example 1: Show current users rank logo only. By default, the balance is displayed formatted with a Description. You can customize how each row is presented by wrapig the shortcode around your template. First, we have the “Badge Name Oct 30, 2023 · PayPal Payments Standard checkout page example. In this example, we send points as a thank you for helping in the support forum or points for reporting bugs. This shortcode is used to embed YouTube videos via IFRAME in order to allow us to award points for users who view the video. Select to enable (1) or disable (0) the progress bar animation. Pass “add” or “get”. No. Oct 30, 2023 · Template tag returning the name of your points in plural form. Should only be used when you need to show data for a custom point type. Hooks dragged out of the sidebar are disabled. The point type to show the rank progress for. Code snippets presented here goes in your custom plugin or in your themes functions. [mycred_total_points ref="approved_comment"] This shortcode allows you to show the total amount of points currently in circulation or the total amount of Nov 1, 2023 · Yes 2 No 4. [mycred_chart_balance_history] This shortcode will render the average amount of points that has been awarded on your website for a given period. Usage %plural% or %_plural% Examples. Select the referral link format either based on ID or Username. Example 1: Show the total number of points in circulation. Set Points & Limits for Referee. In version 1. Option to base the leaderboard on users balance (balance) or a particular reference. For example you can show the total number of points a user has gained today (default). It can be used to either disable this shortcode or to limit when or by whom it can be used This shortcode will render all active scratch card sets that you currently have installed on your website. In the import section, click on the Choose File button and select the raw-point. This shortcode returns a list of users for each role in descending order. 4, you can award multiple The chart type to render. A specific URL that we want to append the referral code to. User Profile URL # This shortcode facilitates the retrieval of User Profile URLs. Videos that are embedded without using this shortcode can not award points for viewing. Find out here a step-by-step guide about the myCred integration and usage. Highly customizable and addons that do pretty much anything you desire. This shortcode will always generate a link, even if the user viewing it has already clicked on it / reached their limit or if the shortcode is viewed by a user that is logged out. Option to show the position of a particular user in the leaderboard. FIX – Ranks weren’t working properly on the current balance. The shortcode by default shows the users name and avatar but this can be customized to show the details you want. Notices sent to Description. g. This shortcode allows you to present the “best” user according to their total accumulated balance or by one or more references. The action you want to perform. csv from your local storage. To show a users earned badges, please use the mycred_my_badges shortcode instead. [mycred_leaderboard number=10] Example 2: Show bottom 10 users with the lowest balance first. type: string: No: mycred_default: If you are using multiple point types and the hook is enabled for more then one type, you can use this to define which point type this shortcode belongs to. Oct 30, 2023 · The [userpro] Shortcode. This shortcode is the opposite of the mycred_show_if Oct 30, 2023 · Shortcodes a. [mycred_total_since user_id="author" from=0] This shortcode will show the total number of points a user has gained in a given timeframe. Pending purchases occur when a user has not selected to cancel a payment or if a payment was unsuccessful. Earn points by sharing this page. Jun 6, 2023 · First, go to the page/post editor where you want to insert the shortcode. Oct 30, 2023 · Core Shortcodes. A very basic example of using the mycred_send shortcode to allow an administrator of a bbPress forum to send points to the topic author. Examples 1: Show a user history with default settings. The only thing that is not logged is if you as an administrator edits a users point balance without a log entry. (required 1. Example 3: Show all purchases where user paid using a custom point type. This shortcode will render the number of times a particular post has been bought. If you want to customize the layout of each row, you can create your own template and wrap this shortcode around it. In the top left corner next to the “Add Plugin” title, click on the “Upload Plugin” button. myCred for GD Star Rating. Using the mycred_link shortcode will award or deduct users points for that click, however it does not guaranty that the user actually “shares” the content. Oct 30, 2023 · Award your users with points on the successful purchase of WooCommerce referral products. So if you have one point type with no decimals and another with 2 and you add them up in this shortcode, the final Examples. [mycred_chart_top_instances] This shortcode will render a list of the most common ways your users gain / spend points on your site. Navigate to the Plugins > Add New. If you’re using the Gutenberg editor, you can add the shortcode tag in the standalone Shortcodes block. The following list of shortcodes are available as soon as the plugin has been enabled and you have setup your first point type. Shortcode Attributes. 4 Step 4: Activate Add-Ons. Leaderboard The shortcode for Leaderboard is [mycred_leaderboard image=1]. AffiliateWP . Click on the “ Install Now ” button in the top right corner. myCred has an extensive collection of affordable Oct 30, 2023 · Parameters. Besides giving you a complete overview, the log is Attribute Type Required Default Description; user_id: int: No: current: Option to show pending transfers for a particular user instead of the current user viewing the shortcode. PHP mycred_get_coupon_post - 2 examples found. Example 1: Show a leaderboard based on balances with the top 10 users. This shortcode will display a leaderboard showing the names and current points of the leading users. [mycred_chart_gain_loss] This shortcode will render charts based on the amount of points that Nov 25, 2017 · Example: [mycred_exchange from="mycred_default" to="mycred_usd" min= "0. It is easy to set up and works with a vast library of third-party software. Examples. You can use the shortcode multiple times to Example 7: To view the content, the current user must be: logged in have at least 100 tokens (a custom point type) [mycred_show_if balance=100 ctype="customtypekey"]Content hidden by this shortcode[/mycred_show_if] This shortcode allows you to show parts of your content for those who fulfil the requirements you set. If not used or left empty, the URL of the page where the shortcode is used will be used. The first feature is used to select the point type for which the bulk coupons will be generated. [mycred_exchange from="mycred_default" to="customtypekey"] This shortcode allows your users to exchange one particular point type for another based on an exchange rate that you set for the shortcode. To keep track of this, myCred stores balances under their “point type key” which is used as the meta_key. Shortcode. The gateway add-ons built-in support for WooCommerce allows you to setup point reward systems where your users can earn points by purchasing products and then pay for future orders using those points. Oct 30, 2023 · myCred Widgets (myCred) My Balance This widget will show the current users balance. Description. string. me account. The MYCRED_SHOW_IF and MYCRED_HIDE_IF shortcodes seem useful, but I feel they are missing a key option which is essential to selling content (especially within a page or post). Example 2: Show pending payments for a custom point type: [mycred_buy_pending ctype="customtypekey"] This shortcode allows you to show your users their currently pending buyCRED purchases. [mycred_history show_user=1 time="today"] Example 5: Show log entries This shortcode allows you to display all published badges. Download. The point type we want to show data for. 7. This list is also used to tell the plugin that a custom type might exists. For example, you can create different forms with different parameters, like different Post submit limit. pe zd yl xe gt tb gt nq qu bd