PHP in Content Box?
-
Hello my name is Dave. I run a website of course. now. I have a subscib to shoutmix.com.
With the website and the chatbox. I’ve intergrated it to run my users log into the site. it will actually use their username for the chatbox, so they can’t change it and be someone else. Which is a huge problem for other websites. Now. is their a way to interegrate php into the content box?
Cause. the only way to run the chatbox right is to copy and paste from shoutmix.com the code they give me.
<!-- Begin ShoutMix - https://www.shoutmix.com --><iframe title="nighttimescene" src="https://www.shoutmix.com/?nighttimescene" width="100%" height="460" frameborder="0" scrolling="auto"><a href="https://www.shoutmix.com/?nighttimescene">View shoutbox</a></iframe><!-- End ShoutMix -->
That code above is what I have in the content box. and users are able to change there name which i don’t want.
This is their intergration code
https://www.shoutmix.com/main/set_integrate.php
please check it out.
if, I add this to the content box it won’t work
<?php function shoutmixnightimescene($user_identity = ”) {
return htmlspecialchars(
‘&name=’.rawurlencode($user_identity)
.’&code=’.md5($user_identity.’7f7ebe7421′));
}
?><?php if ( $user_ID ) : ?> <iframe title="nighttimescene" src="https://www.shoutmix.com/?nighttimescene<?=shoutmixnightimescene($user_identity);?>" width="170" height="555" frameborder="0" scrolling="auto"> allowtransparency="true" <a href="https://www.shoutmix.com/?nighttimescene<?=shoutmixnightimescene($user_identity);?>">View shoutbox</a> </iframe> <?php endif; ?>
When I go to the main page i click the sliding tool and it will read
‘return htmlspecialchars(
‘&name=’.rawurlencode($user_identity)
.’&code=’.md5($user_identity.’7f7ebe7421′));
}
?>’howcome?
I did leave this code in the index.php file
<?php function shoutmixnightimescene($user_identity = '') { return htmlspecialchars( '&name='.rawurlencode($user_identity) .'&code='.md5($user_identity.'7f7ebe7421')); } ?>
To, see if it would make the chatbox work nope it didnt.
please help
- The topic ‘PHP in Content Box?’ is closed to new replies.