<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Don't mess about with config.php...<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Launch PHPMyadmin<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Edit site details<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Change th import_path and root_file_path e.g.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>/xampp/htdocs/xertetoolkits/import/<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>/xampp/htdocs/xertetoolkits/<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Obviously if you didn't call your root folder xertetoolkits change that to whatever it is.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You should find it then works fine even when the drive letter changes.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Try that and confirm?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>HTH<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Ron<o:p></o:p></span></p><p class=MsoNormal><a name="_MailEndCompose"><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></a></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> xerte-dev-bounces@lists.nottingham.ac.uk [mailto:xerte-dev-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Cowell, Elizabeth<br><b>Sent:</b> 13 December 2012 19:09<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: drive problems with XOT on USB's<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>hi pat,<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>yes I am. I just wanted to make a version our team could work on which was portable the other option would to be install it on specific pcs at work as IT won't put it on the network. <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>the problem is that without this fix you can't rely on XOT always working on ur USB across all pcs or when you happen to have stuff in other ports which shifts the drive letters about. so I wonder if anyone else comes across this they will also think as I initially did that my work is all lost or corrupted. <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>regards<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Liz<o:p></o:p></p></div><div><p class=MsoNormal><br>Sent from my iPhone<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><br>On 13 Dec 2012, at 17:01, "Pat Lockley" <<a href="mailto:patrick.lockley@googlemail.com">patrick.lockley@googlemail.com</a>> wrote:<o:p></o:p></p></div><div><p class=MsoNormal>Hi Liz,<br><br>That change will work for the root_file_path in this instance - I can't remember if changing it to that setting permanently would be a fix, or might introduce other problems. For movable USB sticks it'd work though.<br><br>A backup script would back up the entire database, and everything in user-files.<br><br>Are you running XAMPP on the USB stick?<br><br>Pat<o:p></o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Thu, Dec 13, 2012 at 4:42 PM, Cowell, Elizabeth <<a href="mailto:E.Cowell@wlv.ac.uk" target="_blank">E.Cowell@wlv.ac.uk</a>> wrote:<o:p></o:p></p><p class=MsoNormal>Hello,<br><br>Not sure where to post this so sorry if the wrong place.<br><br>I've been running XOT on a USB and found that when you move your USB from pc to pc, it runs into problems if the drive letter changes. Basically your templates don't show because the scripts (eg edit.php) fail on a require command that looks for scripts on the wrong drive.<br><br>It seems this is because it uses the root_file_path field from the sitedetails table in the database and I am guessing that this is only set when the initial setup is done.<br><br>To make it fool-proof,  I've altered the config.php file to just set the xerte_toolkits_site variable as follows:<br><br>$xerte_toolkits_site->root_file_path=dirname(__FILE__) . "/";<br><br>I put this statement  after it picks up the field from sitedetails in the statement<br><br>foreach($row as $key => $value) {<br>        $xerte_toolkits_site->$key = $value;<br>    }<br><br>It seems to work but I'm not familiar with the XOT code. Do you think it's a good idea to run with this until there's a proper fix?.  (Its just I use XOT on my USB and kept thinking I'd lost everything when all that was happening was that it was being picked up as a different drive letter on my PC vs laptop).<br><br>Also, as USB's are pretty fragile, would you suggest a backup strategy for users of having a .bat file to just back up their USER_FILES to a hard drive, on the basis that if XOT gets corrupted I can re-install, re-add their folders, recreate dummy templates and then copy their original LO's back over these for them (with the right template numbers in the file names).<br><br>Or would you suggest also backing up other areas (the database, other XOT files? ) - I am not sure where all any  user specific config is held, is it just in the toolkits_data database or in files outside of the database?<br><br>Many thanks if you can help  with any suggestions on getting around this,<br><br>regards<br><br>Liz Cowell<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>--<br>Scanned by iCritical.<br><br>_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br><br>This message has been checked for viruses but the contents of an attachment<br>may still contain software viruses which could damage your computer system:<br>you are advised to perform your own checks. Email communications with the<br>University of Nottingham may be monitored as permitted by UK legislation.<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div><div><p class=MsoNormal>_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p>-- <br>Scanned by iCritical. <o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><br><br><br><o:p></o:p></p></div></body></html>