Skip to main content
1-Visitor
August 27, 2013
Question

disabling the PTC LearningConnector in the 6.0 m090 Help Center?

  • August 27, 2013
  • 3 replies
  • 988 views
Has anyone figured out how to do this?

If you haven't seen it yet, in m090 (not sure when it started, I'm
upgrading from m010 to m090), there is some dynamic content provided at the
top of the view frame (below the toolbar) ... *every* view frame ... that
theoretically allows you access the eLearning and Knowledge Base content on
the PTC website.

What this means is that the content you are looking for, seeking help for,
is pushed lower in the frame, perhaps off the page forcing a scroll.

Further, it indicates that "your administrator" installed it. Which would
be me. Hey, waitaminute!? I did? I don't remember choosing to do so. Maybe
I did. Can I take it back?

Somewhat contradicting the statement that your administrator is
responsible, Arbortext Documentation Changes states that it is "Brought to
you by PTC University." Sigh.

--
Paul Nagai

    3 replies

    1-Visitor
    September 9, 2013
    Hi Paul,

    Check out this topic in the Windchill Help Center on ptc.com. (
    naglists1-VisitorAuthor
    1-Visitor
    September 9, 2013
    Awesome, Dan. Thanks a ton!

    For the records, this is the slightly modified procedure outlined in Dan's
    link above:

    Find this file. Make a backup copy of the original in-place. Make a copy on
    your desktop. Edit that copy (notes on how will follow). Copy it over the
    original. (Edit on Desktop, copy into original location strategy gets
    around Win7 security that wouldn't let me edit in-place.)

    editorinstallpath\hc\project\_templates\frame\javascript\toolbar.js

    In the file, find the following line fairly near the top (line 18 or 19 if
    I recall):
    // LearningConnector

    And comment out (prepend each line with "// ") the following six or so
    lines:
    // var ptc_plms_precheck=(function(){var f="
    g=";var h={},pause=true,plms_server_alive=true,tid=0;function
    pause_load(){pause=true}function resume_load(){pause=false}function
    getIframeDocument(a){return(a.contentDocument)?a.contentDocument:a.contentWindow.document}function
    getFrameTagByName(a,b){var
    c=a.getElementsByTagName("frame");if(c.length==0){return null}for(var
    i=0;i<c.length;i++){if(typeof(c[i].id)!=&quot;unknown&quot;){if(c[i].id==b){return<br/>c[i]}}}var d=null;for(var
    i=0;i<c.length;i++){d=getframetagbyname(getiframedocument(c[i]),b);if(d!=null){break}}return<br/>d}var
    j={"header_en":"en_US","header_cn":"zh_CN","header_cs":"zh_CN","header_tw":"zh_TW","header_fr":"fr_FR","header_de":"de_DE","header_it":"it_IT","header_ja":"ja_JP","header_ko":"ko_KR","header_es":"es_ES","header_ru":"ru_RU"};var
    l=["en_US","zh_CN","zh_TW","fr_FR","de_DE","it_IT","ja_JP","ko_KR","es_ES","ru_RU"];var
    m=" onclick='parent.ptc_plms_precheck.tryAgain()'>";var n="";var
    o={"en_US":"LearningConnector is unavailable."+m+"Try
    again"+n,"zh_CN":"LearningConnector
    \u4e0d\u53ef\u7528\u3002"+m+"\u8bf7\u91cd\u8bd5"+n,"zh_TW":"\u76ee\u524d\u7121\u6cd5\u63d0\u4f9b
    LearningConnector\u3002"+m+"\u518d\u8a66\u4e00\u6b21"+n,"fr_FR":"LearningConnector
    n'est pas disponible."+m+"Réessayez"+n,"de_DE":"LearningConnector ist nicht
    verfügbar."+m+"Versuchen Sie es erneut"+n,"it_IT":"LearningConnector non
    disponibile."+m+"Riprovare"+n,"ja_JP":"LearningConnector
    \u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002"+m+"\u518d\u5b9f\u884c"+n,"ko_KR":"LearningConnector\ub97c
    \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4."+m+"\ub2e4\uc2dc
    \uc2dc\ub3c4\ud574 \uc8fc\uc2ed\uc2dc\uc624"+n,"es_ES":"LearningConnector
    no est\u00e1 disponible."+m+"Int\u00e9ntelo de
    nuevo"+n,"ru_RU":"LearningConnector
    \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d."+m+"\u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435"+n};function
    detect_locale(){var
    a=getFrameTagByName(window.top.document,"bannerFrame");if(a){var
    b=getIframeDocument(a);for(var k in j){if(b.getElementById(k)){return
    j[k]}}}var c=getFrameTagByName(window.top.document,"searchFrame");if(c){var
    d=getIframeDocument(c).getElementsByName("locale");if(d){var
    e=d[0].value;for(var i in
    l){if(e==l[i]||e.toLowerCase()==l[i].toLowerCase()){return
    l[i]}}}}return"en_US"}function addScriptLC(a,b){var
    c=a.getElementsByTagName("head")[0];var
    d=a.createElement("script");d.src=b;c.appendChild(d)}function
    addBootstrapScript(){addScriptLC(document,f+"static/javascript/learningconnector/bootstrap.helpcenter.nocache.js")}function
    showErrorMsg(a,b){if(a.getElementById("errLC")){return}var
    c=a.getElementsByTagName("div");if(c.length==0){c=a.getElementsByTagName("h2")}if(c.length==0){c=a.getElementsByTagName("iframe")}if(c.length==0){c=a.getElementsByTagName("p")}if(c.length){var
    d=a.createElement("div");d.innerHTML=b;d.id="errLC";d.style.background="#eee";d.style.border="1px
    solid #819fbc";d.style.color="#888";d.style.fontFamily="arial, verdana,
    sans-serif";d.style.fontSize="15px";d.style.fontWeight="bold";d.style.padding="10px";(c[0].parentNode).insertBefore(d,c[0])}}function
    removeErrDiv(a){var
    b=a.getElementById("errLC");if(b){(b.parentNode).removeChild(b)}}function
    sniff(b){if(tid){clearInterval(tid);tid=0}plms_server_alive=true;var c=new
    Image();pause_load();c.onerror=function(a){ptc_plms_bootstrap=undefined;plms_server_alive=false;resume_load()};c.onabort=function(a){ptc_plms_bootstrap=undefined;resume_load()};c.onload=function(a){plms_server_alive=true;resume_load();if(b===false){return}if(typeof(ptc_plms_bootstrap)=="undefined"||ptc_plms_bootstrap==null){addBootstrapScript()}setTimeout(function(){if(window.ptc_plms_bootstrap&&typeof(ptc_plms_bootstrap.onload)=="function"){removeErrDiv(h._doc);h._tbar.ptc_plms_bootstrap=ptc_plms_bootstrap;ptc_plms_bootstrap.bootstrap(h._win,h._doc)}},1000)};c.src=f+"static/images/blank.gif?"+new
    Date().getTime()}sniff(false);h.tryAgain=function(){sniff(true)};h.loadLC=function(a,b,c){if(tid){clearInterval(tid);tid=0}tid=setInterval(function(){if(pause){return}if(tid){clearInterval(tid);tid=0}if(plms_server_alive&&b.ptc_plms_bootstrap&&typeof(b.ptc_plms_bootstrap.bootstrap)=="function"){b.ptc_plms_bootstrap.bootstrap(a,c)}else{h._win=a;h._tbar=b;h._doc=c;showErrorMsg(c,o[detect_locale()])}},1)};

    // document.write('<meta name="lc:property"&lt;br"/>content="com.ptc.fusion.learningconnector.product=arbtxt"/>');
    // document.write('<meta name="lc:property"&lt;br"/>content="com.ptc.fusion.learningconnector.version=6"/>');
    // document.write("<meta name="lc:property" <br="/>content='com.ptc.fusion.learningconnector.plmsUrl="+f+g+"/>");
    // document.write("<meta name="lc:property" <br="/>content='com.ptc.fusion.learningconnector.bootstrap.home="+f+"static/javascript/learningconnector/learningconnector.nocache.js'/>");
    // document.write('<meta name="lc:property"&lt;br"/>content="com.ptc.fusion.learningconnector.supportTab=true"/>');document.write("<script<br/>src="+f+"static/javascript/learningconnector/bootstrap.helpcenter.nocache.js'></script>");return
    h}());


    16-Pearl
    September 9, 2013
    Simplicity itself! 🙂