I found it in 20 minutes , how to do it ? . Its simple take this shortcode that i found in some other question that you have answered and $(“a[href=’http://www.google.com/’%5D”).attr(‘href’, ‘http://www.live.com/’) replace the links and youa re done. Add the jquery in your files and you are ready. The easier way is this to add the jquery in this widget and make your life easier. http://wordpress.org/plugins/jquery-ui-widgets/ Have Fun Guys !
Can u explain me step by step how to do it?
I used this link to make the online offline work, cause actually the plugin had a problem. It stacked sometimes. but his works.
http://obsproject.com/forum/viewtopic.php?f=22&t=2556 here a link that helps .
Add a photo with php class and a photo in it. For example heres the code of my forst streamer that i used . use it on your own streamers
<img class=”alignnone” alt=”” src=”/wp-content/uploads/img/devatva.jpg” /> <span style=”font-size: 16px;”>Devatva</span><div class=”fright”><img class=”alignnone” alt=”” src=”http://teamewix.com/stream.php/devatva_east/sred” /></div>
/live-streaming — is the page that contains the stream . all the other just simply take the information to show online/offline factor
i dont have problem with the offline/online, but actualy i want to redirect clicking on stream thumnail, from twitch.tv to my page including the stream window too keep people on my page
the code i gave you does exactly what you want!
<li><a href="/live-streaming/" target="_blank"><img class="alignnone" alt="" src="/wp-content/uploads/img/devatva.jpg" /></a> <span style="font-size: 16px;"><a href="/live-streaming/" target="_blank">Devatva</a></span><div class="fright"><img class="alignnone" alt="" src="http://teamewix.com/stream.php/devatva_east/sred" /></div></li>
Ok, it works for me if i would like to add streams manually, and put them on my site. The problem is i would like to use that plugin Tadas created, and after clicking on Tadas’s thumbnail it would redirect whereever i want.
http://hearthstonestreams.com
for example clicking link here redirects to my page, not to twitch
Hi Carlito,
You can use jQuery to replace links as a temporary solution before it’s rolled out in the next versions of the plugin.
Use it as explained here: http://stackoverflow.com/questions/179713/how-to-change-the-href-for-a-hyperlink-using-jquery
You can enqueue a script from your theme’s functions.php file and place all this jQuery based stuff inside of that script.
Or another option would be to use an additional plugin that would allow writing javascript inplace, as George explained http://wordpress.org/support/topic/redirect-link-to-twitch-tv-to-a-custom-stream-page?replies=11#post-4748183
Regards
Can someone tell me how to enqueue the script into theme function.php because I cant do it (I
m so low) 😐
I have been going at this for a couple of hours but I honestly am at a lost. I tried doing what George said but I am getting nowhere at all. I installed the plugin he said but I don’t know what I’m putting in exactly and where. The whole php with an image part is a bit confusing as well.
http://wordpress.org/plugins/scripts-n-styles
Please use this plugin, then enter your script in Blogwide Javascript > Scripts (for the head element).
Awesome, everything seems to be working great now. I have a new problem in my hands now though.
Yesterday night before I slept, the status widget was working fine. Now today when I went to check it out, the widget was missing. I was thinking that maybe I could just reassign it in the Dashboard>Widgets settings. The problem here is that LSB Status doesn’t even show up as a widget anymore. I see all of my other widgets there but I don’t see LSB Status anywhere so I can put it in my main sidebar. I have no idea where my LSB Stream Widget has gone.
I reinstalled, deactivated, reactivated but no go. I have no idea what the problem is here.