Kayako logo
Developers & Code Interested in customizing your Kayako products? Discuss modifications and develop your own mods with the community.

Reply
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  (#16) Old
craigbrass Offline
Senior Member
 
Posts: 5,576
Join Date: Jun 2005
Location: Cumbria, UK
05-11-2007, 05:56 PM

Just insert it below "echo $template->displayTemplate("header");".


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#17) Old
octavi Offline
New Member
 
Posts: 4
Join Date: May 2007
06-11-2007, 11:13 AM

Yes, I know how to make the new php web.
My probles is that I can not insert this code

$mode = $_REQUEST['_e'];
switch($mode)
{
case 'rd': require_once("remotedesktop.php"); break;
case 'about': require_once("about.php"); break;
default: echo $template->displayTemplate("index");
}


because in my modules/core/client_index.php I am looking for the the last line "echo $template..." but it don't exist.

My file contains this code:

<?php //0035e
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3) );$__ln='/ioncube/ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3 ).(($__oc=='win')?'.dll':'.so');$__oid=$__id=realp ath(ini_get('extension_dir'));$__here=dirname(__FI LE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists ($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}e lse{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){re turn _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199);
?>
4+oV57iJCBYAa8Y/H/sbcv9te/JjzHP7ETZJBf2ilK5zk3Xf/hum3rcjhZlH3RNLaazzVKexYuxz
zT1w4Nrw9n7Vt4ir55t1nhuH5NQEcCiBzKaBTi+zsvaDejYmr7 hUg8Uc14tYaat54DCqy0KVjBu1
uUeNLGt2CYtWfF+u3HYq75AA7Iuj/UBjVpIS4ZgzhGe0mKWwO3yGtzgjD+JVJ7h81KlJh2htj4T5
...


And I don't know where I must to insert the new code lines...
   
Reply With Quote
  (#18) Old
craigbrass Offline
Senior Member
 
Posts: 5,576
Join Date: Jun 2005
Location: Cumbria, UK
06-11-2007, 11:49 AM

Ok, your file is encoded. You need to contact jamie.edwards <!at!> kayako.com to see if he will give you the file unencoded.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#19) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,692
Join Date: Aug 2006
Location: Mumbai, India
06-11-2007, 11:49 AM

Octavi,
You are on leased license of Kayako where the source code is encoded. You will have to contact Kayako Support to get a unencoded file.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#20) Old
octavi Offline
New Member
 
Posts: 4
Join Date: May 2007
06-11-2007, 03:43 PM

Ok,

Thanks to everybody!
I will contact with Kayako Team.

Merry Christmas!!!
   
Reply With Quote
  (#21) Old
craigbrass Offline
Senior Member
 
Posts: 5,576
Join Date: Jun 2005
Location: Cumbria, UK
06-11-2007, 04:00 PM

Your welcome.

Quote:
Merry Christmas!!!
Tad early isn't it? *winks*


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#22) Old
fivestarhost Offline
Registered User
 
Posts: 28
Join Date: Mar 2007
Location: Las Vegas
30-12-2007, 10:11 AM

I follow all the step but I can get it to work any ideas

https://www.fivestarhost.com/support/tutorials.php
   
Reply With Quote
  (#23) Old
craigbrass Offline
Senior Member
 
Posts: 5,576
Join Date: Jun 2005
Location: Cumbria, UK
30-12-2007, 10:22 AM

Can you paste line 6 for us?


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#24) Old
fivestarhost Offline
Registered User
 
Posts: 28
Join Date: Mar 2007
Location: Las Vegas
30-12-2007, 10:29 AM

I basically copy the code above

<?php
$template->assign("docsubject", "Flash Tutorials");
$template->assign("navigation", '<a href="index.php" id="navlink">'.$_SWIFT["language"]["navhome"].'</a> &raquo; <a href="" id="navlink">Flash Tutorials</a>');
echo $template->displayTemplate("header");

Flash Tutorials

echo $template->displayTemplate("footer");
?>
   
Reply With Quote
  (#25) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,270
Join Date: Jan 2006
Location: United Kingdom
30-12-2007, 10:33 AM

You need to add an echo() to something you want to print out a string:

Code:
<?php
$template->assign("docsubject", "Flash Tutorials");
$template->assign("navigation", "<a href='index.php' id='navlink'>".$_SWIFT["language"]["navhome"]."</a> &raquo; <a href='' id='navlink'>Flash Tutorials</a>");
echo $template->displayTemplate("header");
 
echo "Flash Tutorials";
 
echo $template->displayTemplate("footer");
?>


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
  • Submit bug reports here.
  • Submit support tickets via the members area.
  • Submit sales queries either via live chat or via e-mail.
  • There is no official ETA on Version 4.
  • This is not an official support forum - submit a support ticket.

Last edited by Jamie Edwards; 30-12-2007 at 10:43 AM.
   
Reply With Quote
  (#26) Old
fivestarhost Offline
Registered User
 
Posts: 28
Join Date: Mar 2007
Location: Las Vegas
30-12-2007, 10:40 AM

I just did and still no go for me

https://www.fivestarhost.com/support/tutorials.php
   
Reply With Quote
  (#27) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,270
Join Date: Jan 2006
Location: United Kingdom
30-12-2007, 10:43 AM

Copy and paste the code I did for you. I forgot to add, you should either escape double quotes or just not use them inside PHP strings.


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
  • Submit bug reports here.
  • Submit support tickets via the members area.
  • Submit sales queries either via live chat or via e-mail.
  • There is no official ETA on Version 4.
  • This is not an official support forum - submit a support ticket.
   
Reply With Quote
  (#28) Old
bimmer Offline
New Member
 
Posts: 8
Join Date: Feb 2008
Unhappy Problem - 12-02-2008, 08:43 PM

Did everything as per this tread... my times and no luck.

Always same error message.

Fatal error: Call to a member function assign() on a non-object in /var/www/vhosts/mywebsite/public_html/support/remotedesktop.php on line 2

Here is the code:

<?php
$template->assign("docsubject","remote desktop");
$template->assign("navigation", "<a href='index.php' id='navlink'>".$_SWIFT["english"]["navhome"].'</a> &raquo; <a href="" id="navlink">Remote DesktopSupport</a>');

echo $template->displayTemplate("header");
echo "Flash Tutorials";
echo $template->displayTemplate("footer");
?>


any help would be appreciated

Thanks
   
Reply With Quote
  (#29) Old
Thijs Offline
Member
 
Posts: 253
Join Date: Jan 2007
25-06-2008, 11:42 PM

Was someone able to print an $language[yourphrase] in these included files ?

I'm not able to process this.
   
Reply With Quote
Reply

Tags
footers, headers, php, standard

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46