We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

username in iframe link | Forum

The Chauffeur
The Chauffeur Nov 30 '14

I've made a custom mobile mage with Mibbit widget


<iframe width="100%" height="475" scrolling="no" src="http://widget.mibbit.com/?settings=7a78e41027d7af62e205d22d5616db18&server=irc.asian-flava.com&channel=%23Lobby&nick=X%3FY%3FZ%3F"></iframe>


How would I replace X%3FY%3FZ%3F with username? I've tried {user_name} it doesn't work

ross Team
ross Dec 1 '14
Topic was moved from General Questions.
The Chauffeur
The Chauffeur Dec 8 '14

I've put these in a plugin now


public_html/ow_plugins/mibbit/controllers/index.php


$uri = "http://widget.mibbit.com/?settings=7787dk7a6220876d72d18&server=irc.domain.com%3A{$port}&channel=%23Channel&authmethod=pass&promptPass={$GuestFalseElseTrue}&nick={$nick}";


I've tested the output of this using echo $uri; everything comes out as it should but struggling to get the content of $uri into the html



public_html/ow_plugins/mibbit/views/controllers/index_chat.html


<iframe width="100%" height="475" scrolling="no" seamless="seamless" src="<?php echo $uri; ?>"></iframe>


I've tried {$uri} instead of <?php echo $uri; ?> that doesn't work either. There must be another syntax that can be used here? other than outputting the content of $uri as src everything else is working fine.