Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
Tutsumi
tagDiv Member
Tutsumi
tagDiv Member

Can you guys just allow proper PHP to be run through that part? Or make a widget that allows for it?

Tutsumi
tagDiv Member

That … doesn’t really help. That’s just putting articles on the side.

I did find a workaround though, folks. I got a plugin called Widget Shortcode, from there you can use the element, “Text with title”.
Press Edit Content and get the shortcode for the widget and place it in there.
You can find the shortcode in the Appearance>Widgets section, just press on the widget you want to use and you’ll see it at the bottom of the drop down.

Tutsumi
tagDiv Member

I’ve tested this in a widget, and it works as intended. Something in the Header Ad area, both in the backened and using TD editor, is blocking the PHP from connecting properly to the plugin.

Tutsumi
tagDiv Member

Hi Calin,

While it shows up, part of the PHP code is using a plugin that’s called Twitch Conditional. That plugin hides that video from showing up if we’re not live. If we are, then it shows up.

So what you showed me in https://www.screencast.com/t/K3cZ33YJ0cE0 should not even show up. Either it’s there when I’m live or not when I’m offline.

This worked fine up until the update.

Tutsumi
tagDiv Member

It’s not reading the PHP correctly, I’m getting artifacts.

The code is <?php if (twitch_is_live('moarcookies')) { ?>
<div align="center" style="background-color:#c1711b; color:#fff; padding-left:10px; padding-right:10px;">See when we’re live! Join in the conversation and click on the Twitch icon in the lower right of the stream!</div><br /><div id="twitch-embed"></div>

<script src="https://embed.twitch.tv/embed/v1.js"></script>

<script type="text/javascript">
new Twitch.Embed("twitch-embed", {
width: "100%",
height: 480,
channel: "moarcookies",
allowfullscreen: true,
});
</script>
<?php } else { ?>
<?php } ?>

This, before the 9.7 update, worked fine and hid the content if I wasn’t live. Now it just shows up regardless.

  • This reply was modified 7 years by Tutsumi.
  • This reply was modified 7 years by Tutsumi.
Tutsumi
tagDiv Member

Thanks. This worked. I just needed to add a space into the header ad box to enable it once the code was in the header.

Tutsumi
tagDiv Member

Can we get these buttons?

Tutsumi
tagDiv Member

Thank you, Simon. I went with the per category method and it worked great.

Tutsumi
tagDiv Member

Nvm, just gonna forget about that theme.

Viewing 11 posts - 1 through 11 (of 11 total)