Forums

shoutmix integration (4 posts)

  1. S3vEn
    Member
    Posted 1 year ago #

    I recently purchase a shoutmix prem. account which allow integration but the guide they provided isn't very useful. Can someone walk my though or post a more realiable guide please and thanks.

    (shoutmix integration = use current user database as a login)

    I use wordpress 2.6.3 btw sorry >>> forgot to change it lol

  2. wxwx
    Member
    Posted 8 months ago #

    On the guide they give the php function like this

    function shoutmix($name = '') {
    	return htmlspecialchars(
    		'&name='.rawurlencode($name)
    		.'&code='.md5($name.'uniquecodehere'));
    }

    ...mix.com/?ourname< ? =shoutmix($name); ? >" width="...

    my question too how to combine the md5+current username registered on our blog

    i found this code can be help

    global $user_ID, $user_identity, $user_level
    if ( $user_ID ) :

  3. wxwx
    Member
    Posted 8 months ago #

    OK got it work now :)

    <?php global $user_ID, $user_identity ?>
    <?php  function shoutmix($user_identity = '') {
    	return htmlspecialchars(
    		'&name='.rawurlencode($user_identity)
    		.'&code='.md5($user_identity.'uniquecodehere'));
    }
    ?>
    <?php if ( $user_ID ) : ?>
    <iframe title="yourshoutmixid" src="http://www5.shoutmix.com/?yourshoutmixid<?=shoutmix($user_identity);?>" width="200" height="200" frameborder="0" scrolling="auto">
    <a href="http://www5.shoutmix.com/?yourshoutmixid<?=shoutmix($user_identity);?>">View shoutbox</a>
    </iframe>
    <?php endif;  ?>
  4. YOUAREtehSCENE
    Member
    Posted 3 months ago #

    So will this code be able to log someone into the chatbox with the user name that they signed up for the blog with?

Topic Closed

This topic has been closed to new replies.

About this Topic