Poker Affiliate Solutions Forum
  • Register
  • Help

Community Support Forum

+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Cena's Avatar
    Cena is offline Customer Experience Supervisor
    Join Date
    Jan 2010
    Posts
    126
    Blog Entries
    12

    Default Master Token Reference

    Hi all,

    The following is a list of tokens available globally in the CMS. This means they can be used on any page. There are other tokens which only work on specific pages, they will be detailed elsewhere in the near future.
    This document is a work in progress, but we anticipate we should have the majority of the remaining tokens up by the end of the week.

    {{ current_page }} - If you're at "http://www.rake.com/foo/bar.html", it will return "/foo/bar.html"

    {{ current_page_url }} - If you're at "http://www.rake.com/foo/bar.html", it will return "http://www.rake.com/foo/bar.html"

    {{ captcha }} - inserts the captcha code to a form and should be added within the <form></form> tags. Only works in the “Contact Us” and “Full Member Signup” forms.

    {{ site_name }} - returns the current website’s name (“Rake Tracker”)

    {{ rss_news_link }} - returns the html code that makes browsers aware of an RSS feed, and should be put in the <head></head> part.

    {{ tld }} - returns the websites domain name, includes the “http://” part. ([example: "http://www.raketracker.com")

    {{ title }} - returns the SEO Title for the current page or news post, to be used in the <title></title> part of the HTML code. It gets pulled from the SEO options in the CMS.

    {{ meta_keywords }} - returns the meta keywords to be used in the <meta></meta> tag. It gets pulled from the SEO options in the CMS.

    {{ meta_description }} - returns the meta keywords to be used in the <meta></meta> tag. It gets pulled from the SEO options in the CMS.

    {{ user }} - returns the current authenticated member. Member attributes can also be accessed through this object but we will detail them later.

    {{ signed_in }} - returns “true” if there is a signed in Member.

    {{ current_date }} - returns the current date.

    {{ current_month_name }} - returns the current month name in English: “January”, “December”, etc.

    {{ last_month_name }} - Returns the previous month name in English, as above.

    {{ next_month_name }} - See above.

    {{ analytics_tracking }} - outputs the Google Analytics tracking code that you entered in the publisher admin. To be used in the <head></head> part of the layout.html page.

    {{ news_posts }} - returns an ordered collection of all the news posts that are displayable for the website (with most recent on top).News post can also be accessed through each object in the collection but we will detail them later.

    {{ rakeback_offers }} - returns an ordered collection of all working rakeback offers. Offer attributes can be accessed through the attributes listed below.

    {{ bonus_offers }} - returns an ordered collection of all working bonus offers. Offer attributes can also be accessed through the attributes listed below.

    Attributes: attributes are additional parameters you can supply to a token to get additional related information. The following attributes work for both {{ rakeback_offers }} and {{ bonus_offers }} :
    • account_identifier: The naming convention that the Poker Room uses for their user name. ie: "Screename, Login, Pokername, etc"
    • bonus: the bonus amount/percentage offered.
    • image: The path to the poker room's standard image, ie: /images/offers/ft.png
    • icon: The path to the poker room's icon (also an image, but smaller), ie: /images/offers/ft-icon.png
    • tny_image: The path to the offer's Poker Room small icon (also an icon, but even smaller), ie: /images/offers/ft-icon.png
    • name: The offer name.
    • network: The network the poker room belongs to.
    • rake_type: The poker room's rake type (dealt, contributed, etc.).
    • reward: The offer's reward. If rakeback offer, returns the percentage. If bonus offer, returns the bonus.
    • signup_url: The offer's signup URL.
    • review_page: URL for the offer's review page. ie: "http://www.raketracker.com/rakeback/party-poker.html"
    • signup_code: Offer's signup code.

    Example: {{ rakeback_offers.review_page }} would return the offer's review page.

    If you want to use multiple attributes, you must use multiple instances of the token + attribute, as only one attribute can be appended to a token at a time.

    Example: {{ rakeback_offers.name }}
    {{ rakeback_offers.network }}

    would return the name and network of the rakeback offer.

    Happy hacking!

    Cena

  2. #2
    Cena's Avatar
    Cena is offline Customer Experience Supervisor
    Join Date
    Jan 2010
    Posts
    126
    Blog Entries
    12

    Default Promotions/Leaderboard Tokens

    The following tokens and attributes will only work on the leaderboard pages of the CMS:
    • /promotions/leaderboards/party_freeroll_leaderboard.html
    • /promotions/leaderboards/rake_chase_leaderboards.html
    • /promotions/leaderboards/rake_race_leaderboards.html
    • /promotions/leaderboards/rake_race_leaderboards_party.html

    {{ rake_race }}

    Attributes:
    • prize_pool - total prize amount
    • start_date - start date of chase.
    • end_date - end date of chase.
    • requirement_field - requirements for chase.
    • name - name of chase.
    • stats_accurate_up_to - stats were last updated on this date.
    • status - active or final.


    Code loop used with rake races:

    Code:
    {% for winner in rake_race.winners %}
        <tr>
          <th style="text-align:center">{{ winner.place }}</th>     
          <td style="text-align:center">{{ winner.prize | dollars }}</td>     
          <td>{{ winner.tracker_id }}</th>
          <td style="text-align:center">{{ winner.amount }}</td>
        </tr>
         {% endfor %}
    Attributes description:
    • place - place achieved by winner.
    • prize - prize won by winner.
    • amount - amount won by winner.
    • tracker_id - tracker identifier of winner.


    {{ rake_chase }}

    Attributes:
    • prize_pool - total prize amount
    • start_date - start date of chase.
    • end_date - end date of chase.
    • requirement_field - requirements for chase.
    • name - name of chase.
    • stats_accurate_up_to - stats were last updated on this date.
    • status - active or final.

    Code loop used with rake chases:

    Code:
     {% for tier in rake_chase.tiers %}
      <thead>
        <tr>
        <th colspan="4" style="text-align: center;">
          {{ tier.target_amount }} {{ tier.target_type }} Target
          </th>
        </tr>
       </thead>    
      {% for winner in tier.winners %}
        <tbody>
          <tr>
            <th style="text-align: center;">{{ tier.number }}</th>
            <td style="text-align: center;">{{ tier.prize | dollars }}</td>
            <td>{{ winner.tracker_id }}</td>
            <td style="text-align: center;">{{ winner.amount }}</td>
          </tr>
        </tbody>
      {% endfor %}
    
      {% endfor %}
    Attributes:
    • target_amount - tier target amount (for example, tier 1 = $500 MGR).
    • target_type - target type (MGR/Points).
    • number - number of slots available within a given tier
    • prize - prize for a given tier.

  3. #3
    Trikkur is offline Junior Member
    Join Date
    Dec 2008
    Location
    Ohio
    Posts
    8

    Default

    Am I able to personally change the value of these? Example: I have a personal sign up code for a room and want to change the bonus-code being called. Can you tell me the proper syntax for what I'm trying to do and where I should place it?

    red-star-poker.signup_code = RAKEBACK33

    Then when the red star page creates the sign up form, I want it to import the new sign up code instead of the default one you guys are using.

  4. #4
    mark_s is offline Baller
    Join Date
    Jan 2009
    Posts
    430
    Blog Entries
    14

    Default

    Try this:

    1. Login to Admin and open the following CMS file:
    signup forms > room-signup-form > bonus-code.html

    2. Add logic to show bonus code for Red Star
    PHP Code:
    {% if offer.slug == "red-star-poker" %}
    <
    p>You <strong>MUST</strongalso enter the referral Code: <strong>MYSIGNUPCODE</strongwhen depositing at {{ offer.name }} </p>
    {% else %}
    <
    p>You <strong>MUST</strongalso enter the referral Code: <strong>{{ offer.signup_code }}</strongwhen signing up at {{ offer.name }} </p>
    {% endif %} 
    Obviously you'll want to replace my text, "MYSIGNUPCODE".
    Mark
    PAS Design Department

  5. #5
    Trikkur is offline Junior Member
    Join Date
    Dec 2008
    Location
    Ohio
    Posts
    8

    Default

    Perfect. Thanks for the help.

  6. #6
    Dan280 is offline Junior Member
    Join Date
    Nov 2011
    Posts
    26

    Default

    I am trying to integrate PAS into my main site. At the moment I have it set-up in a sub-domain. How can I access the Master Tokens from my main site using PHP?
    Last edited by Dan280; 12-02-2011 at 12:50 PM. Reason: To show signature
    My poker website. All about online poker and poker games.
    My poker forum where you can discuss anything about poker.

  7. #7
    GonzoPAS's Avatar
    GonzoPAS is online now PAS Content Specialist
    Join Date
    Jul 2010
    Posts
    757
    Blog Entries
    248

    Default

    Hi again Dan,

    As the techs are gone for the weekend, I can't get you an answer until Monday. Thanks for your patience.

  8. #8
    Arthur's Avatar
    Arthur is offline PAS Technical Team
    Join Date
    Nov 2008
    Posts
    610
    Blog Entries
    2

    Default

    Dan,

    The tokens that are available via the CMS can almost all (if not all) be obtained via different calls to our API. You'd have to setup some custom scripts that can hit the API using your authentication credentials and then make that data available to your CMS / pages as needed for your specific setup.

    As I mentioned in a different thread, I highly recommend that you take a look at our PHP library which is a wrapper for the PAS API. Using this, you can often grab the data you need in just a few lines of code - from there, you'll just need to figure out how to then make that data available, or display it directly on your pages, depending on how you have things setup on your end. Beyond that, I also would recommend checking out our API documentation (and also running a search here on the forums for 'API' or similar terms) where you should find a wealth of information related to what all you can do with our API (and a *lot* can be done)...

    PAS Docs (API stuff on right side) - Poker Affiliate Solutions - Rakeback Software, Poker CPA, Bankrolls
    PHP Library for PAS API - https://github.com/fourcubed/PAS-API-Wrapper-PHP

    Arthur
    PAS Tech Team

  9. #9
    Dan280 is offline Junior Member
    Join Date
    Nov 2011
    Posts
    26

    Default

    I've read all the documentation and I'm still really not sure how to use the PAS API. I modified the code to create a new member and I just get the following error: Array ( [0] => Website can't be blank ). Also, can you please give me an example of how I can make API calls to get token variables. The first one I would like to access is "signed_in". Then I could display the accounts page instead of the sign-up page when a members logged in.
    Last edited by Dan280; 12-02-2011 at 12:51 PM. Reason: To show signature
    My poker website. All about online poker and poker games.
    My poker forum where you can discuss anything about poker.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts