Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Help me please - CSS & PHP

    Hi, I'm stuck with this shoutmix shoutbox on this website, I have tried to ask people how to get the username from the member logged into the website integrated, but people would not help me out too much; that is why I signed up on this forum. If anyone knows how to get the username from the website that you are logged on into to be connected to the shoutbox, please help me, I would appreaciate it if someone that knew how would help me out. Also, I do not know if this is PHP or CSS.

    Here one code I got.
    Code:
    &name=url_encode(username)&code=md5(username. YOUR_CODE)
    And here is another code I fount on a different website that might or might not work.
    Code:
    <?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;  ?>
    BTW, my shoutmix ID is: JizzInUrMouth69

    Thanks, JizzInUrMouth69

    www.shoutmix.com - Is where I registered for the shoutbox.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Where do you define $user_indentity?

    People probably aren't helping you because of your user name. It sounds inappropriate.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Dec 2007
    Posts
    107
    Thanks
    0
    Thanked 3 Times in 3 Posts
    The reason might be because the variable $user_indentity is empty.

    You will need to define the value for it. Search for the code in your website that fetches the username from database and assignes it to some variable. Then under that code try defining $user_indentity variable with the same value.
    Programming & Webmaster Forum - AdSense Revenue Sharing forum

  • #4
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by technica View Post
    The reason might be because the variable $user_indentity is empty.

    You will need to define the value for it. Search for the code in your website that fetches the username from database and assignes it to some variable. Then under that code try defining $user_indentity variable with the same value.
    I do not know how to do that, can you please help me out?

  • #5
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    Where do you define $user_indentity?

    People probably aren't helping you because of your user name. It sounds inappropriate.
    I got that from a serach engine link, this is the only website that I have asked help for it, so I do now know what you are talking about "becuase of my user name."

  • #6
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    so is anyone gonna help me please?

  • #7
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,951
    Thanks
    9
    Thanked 724 Times in 718 Posts
    OK, I'm going to be nice. Whether you realise it or not, your username is offensive. I suggest you send a PM message to WA and ask for it to be changed to something else.

    You may then find, as Aero suggests, that people are more willing to help you.


  •  

    Tags for this Thread

    Posting Permissions

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