Welcome to Our Community

Registration on our forums are now open for some days! Feel free to sign up today.

[FREE] Twitch script to show if member is online/offline 1.0

twitch, online/offline

  1. XenForo Rocks
    Compatible XF Versions:
    • 1.0
    • 1.1
    • 1.2
    • 1.3
    • 1.4
    • 1.5
    Additional Requirements:
    cURL installed on server
    open source....just give credit if used
    This simple script will allow you to know if member is online....and placed in the postbit area.

    upload contents of zip to root

    edit message_user_info Template

    <xen:if is="@messageShowTrophyPoints AND {$user.user_id} AND {$xenOptions.enableTrophies}">
                        <dl class="pairsJustified">
                            <dt>{xen:phrase trophy_points}:</dt>
                            <dd><a href="{xen:link 'members/trophies', $user}" class="OverlayTrigger concealed">{xen:number $user.trophy_points}</a></dd>
    add after:
    <!-- stream status -->
    <xen:if is="{$user.customFields.Field_Id}"><div style="color:darkorange; font-weight: bold; float:left;">Stream:<img src="http://www.yoursite.com/status/twitch.php?stream={$user.customFields.Field_Id}" class="Tooltip" title="What ever you want it to say when hovering over image"/></div></xen:if>
    <!-- end stream status -->
    Field_Id = is the field that corresponds to the custom profile field you use for twitch.

    You can style to your choosing. Added a couple different images to use for online/offline. By default the script looks for offline.png and online.png. Or you can create your own online/offline images & also edit your own message within the "Title"

    This will only show if members entered their twitch username. On the road so haven't tested this recently but should still work.

    I will do my best to help with any issues.....
    HaaaaKu and Tweeknuts like this.
  • About Us

    Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.
  • Like us on Facebook

  • Buy us a beer!

    The management works very hard to make sure the community is running the best software, best designs, and all the other bells and whistles. Care to buy us a beer? We'd really appreciate it!

    Donate to us!