view tickets in joomla
Hi dax702
The site isnt live at the moment as its still in development but ive got it uploaded into a subdirectory now
http://www.thecompanymerchant.co.uk/cms/support-view/?e=this@email.co.uk&t=123456(http://www.thecompanymerchant.co.uk/cms/support-view/?e=this@email.co.uk&t=123456)
As you can see, parameters of e and t can be passed in on the url, so rather than pointing the user to http://www.thecompanymerchant.co.uk/ticket/view.php?e=this@email.co.uk&t=123456(http://www.thecompanymerchant.co.uk/ticket/view.php?e=this@email.co.uk&t=123456) which wouldnt be within a Joomla view the first url above will show it within the joomla template
Its a small step, and its all work in progress - I'm new to both Joomla and osTicket so kinda feeling my way at the moment. I simply modded
components/com_wrapper/view/wrapper/tmpl/default.php
and where the iframe declaration is, replace it with this. (the iframe declaration itself is the same - its just the src that changes.
<?
$fullurl=$this->wrapper->url;
$extraparams="";
if (strpos("?",$fullurl)===false)
$extraparams = "?";
if (is_array($_REQUEST) && count($_REQUEST)>0)
{
foreach($_REQUEST as $k=>$v)
$extraparams .= $k."=".urlencode($v)."&";
}
$fullurl .= $extraparams;
?>
<iframe <?php echo $this->wrapper->load; ?>
id="blockrandom"
name="iframe"
src="<?php echo $fullurl; ?>"
width="<?php echo $this->params->get( 'width' ); ?>"
height="<?php echo $this->params->get( 'height' ); ?>"
scrolling="<?php echo $this->params->get( 'scrolling' ); ?>"
align="top"
frameborder="0"
class="wrapper<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<?php echo JText:( 'NO_IFRAMES' ); ?>
</iframe>
I only did a few changes but it seems to work.
Tony Byng
The Company Merchant Limited
www.thecompanymerchant.co.uk(www.thecompanymerchant.co.uk)