How to pass user_id to external link using com_wrapper - Joomla! Forum - community, help and support


hi,

because no php programmer struggling hours , hours want, no success.

i building community website using jomsocial , tigracon. part of functionality of website located @ 1 of business partners, has website (using asp) content want reveil users in joomla 2.5.

so want disclose external content users without need of logging in there. in order have send user_id url of external website.

i read forum posts said had change default.php in /component/com_wrapper/views/wrapper/tmpl. did, assuming user_id sent iframe url, "cid" variable business partner needs:

<?php
//add user id
$user_id = jfactory::getuser()->id;
?>

<iframe <?php echo $this->wrapper->load; ?>
id="blockrandom"
name="iframe"
src="<?php echo $this->escape($this->wrapper->url) . "?cid=" . $user_id; ?>"
width="<?php echo $this->escape($this->params->get('width')); ?>"
height="<?php echo $this->escape($this->params->get('height')); ?>"
scrolling="<?php echo $this->escape($this->params->get('scrolling')); ?>"
frameborder="<?php echo $this->escape($this->params->get('frameborder', 1)); ?>"
class="wrapper<?php echo $this->pageclass_sfx; ?>">
<?php echo jtext::_('com_wrapper_no_iframes'); ?>
</iframe>
</div>

unfortunately doesn't work , stuck here.

does know solution problem?

thanxx






Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support