WordPress.org

Ready to get started?Download WordPress

Forums

Slide Out Tab
[resolved] PHP in Content Box? (4 posts)

  1. YOUAREtehSCENE
    Member
    Posted 6 months ago #

    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 - http://www.shoutmix.com --><iframe title="nighttimescene" src="http://www.shoutmix.com/?nighttimescene" width="100%" height="460" frameborder="0" scrolling="auto"><a href="http://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

    http://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="http://www.shoutmix.com/?nighttimescene<?=shoutmixnightimescene($user_identity);?>" width="170" 
    
    height="555" frameborder="0" scrolling="auto"> allowtransparency="true"
    <a href="http://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

    https://wordpress.org/plugins/wp-slide-out-tab/

  2. Catapult
    Member
    Plugin Author

    Posted 6 months ago #

    Hi - unfortunately the plugin doesn't support php in the content area.

  3. YOUAREtehSCENE
    Member
    Posted 6 months ago #

    Anyone to get that in there in next release/ update that would help big time.

  4. dr_tracker
    Member
    Posted 4 months ago #

    Hi guys, while this plugin doesn't support PHP I was able to insert some code using the "PHP Code for Posts" plugin. I inserted a contact form in the tab and wanted it to be multilanguage, with the PHP plugin I was able to check the language selected on the page and insert the contact form accordingly.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.