We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37967
    • 9 Posts
    I've just put a nice natty Sharethis bar at the bottom of my site:

    http://www.yourswisslifeline.com/

    but since I added in this functionality, my friendly URLs have stopped working. I'm using Revo 2.1.5.

    My template code is this:
    [[$ysl_template_header]]
    
    [[$ysl_template_sidebar]]
    
    <div id="content">
    
    [[*content]]
    
    </div>
    
    <script>
    var options={ "publisher": "ed2c904e-ff0c-49d7-892d-5e46f26f0b9e", "logo": { "visible": false, "url": "", "img": "http://sd.sharethis.com/disc/images/demo_logo.png", "height": 45}, "ad": { "visible": true, "openDelay": "10", "closeDelay": "5"}, "livestream": { "domain": "", "type": "sharethis", "customColors": { "widgetBackgroundColor": "#707070", "articleLinkColor": "#ffffff"}}, "ticker": { "visible": false, "domain": "", "title": "", "type": "sharethis", "customColors": { "widgetBackgroundColor": "#707070", "articleLinkColor": "#FFFFFF"}}, "facebook": { "visible": true, "profile": "YourSwissLifeline"}, "fblike": { "visible": true, "url": ""}, "twitter": { "visible": false, "user": "sharethis"}, "twfollow": { "visible": true, "url": "http://twitter.com/swiss_lifeline"}, "custom": [{ "visible": false, "title": "Custom 1", "url": "", "img": "", "popup": false, "popupCustom": { "width": 300, "height": 250}}, { "visible": false, "title": "Custom 2", "url": "", "img": "", "popup": false, "popupCustom": { "width": 300, "height": 250}}, { "visible": false, "title": "Custom 3", "url": "", "img": "", "popup": false, "popupCustom": { "width": 300, "height": 250}}], "chicklets": { "items": ["facebook", "twitter", "linkedin", "sharethis", "googleplus", "email", "evernote"]}, "shadow": "solid", "background": "#acacac", "color": "#555555"};
    var st_bar_widget = new sharethis.widgets.sharebar(options);
    </script>
    
    
    
    [[$ysl_template_footer]]


    and my header chunk is this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>[[++site_name]] | [[*pagetitle]]</title>
    <base href="[[++site_url]]" />
    <link href="assets/Style/style.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=[[++modx_charset]]" />
    <meta name="keywords" content="[[*meta-keywords]]" />
    <meta name="description" content="[[*meta-description]]" />
    
    </head>
    
    <script type="text/javascript">var switchTo5x=true;</script>
    <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
    <script type="text/javascript" src="http://s.sharethis.com/loader.js"></script>
    
    <body>
    
    <div id="container">
    
    <div id="topimg">
    
    
    </div>		
    
    <div id="tabsE">
    
    <ul>
    
    				<li><a href="[[~1]]" title="Home"><span>Home</span></a></li>
    				<li><a href="[[~10]]" title="Contact us"><span>Contact us</span></a></li>
    
    </ul>
    
    
    </div>
    
    


    Thanks in advance if anyone has any thoughts or ideas why this might be happening and how to rectify it!
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      FURLs don't seem to be enabled right now.. also I'm not sure how adding a script like that would confuse friendly urls..
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 37967
        • 9 Posts
        You're right, they've become deactivated, but if I reactivate them, everything defaults to the home page. This has only happened since installing the Sharethis bar. Having said that, since this site isn't intended to be multilingual, friendly URLs are a "nice to have" rather than essential. But it's still annoying
          • 18373 ☆ A M B ☆
          • 3,141 Posts
          If "everything defaults to the home page" that sounds like there's no URI sets on the resources, and this being unrelated to AddThis. This can be cause they're not assigned aliases or that there are duplicates somewhere.

          I suggest enabling friendly_urls again, and running this code to force refresh the URIs: https://gist.github.com/917662 If that throws any errors you will know where to look...
            Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

            Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
            • 41149
            • 43 Posts
            Regardless of if you are using a "Share This" toolbar on the page it will not affect your MODx Chunks, Templates, or Backend Settings. It appears that you aren't even using Friendly URLs. Make sure that you have Friendly URLs enabled via the MODx Manager and also via the .htaccess file on the root of your MODx Installation via FTP [assuming you are using an Apache Server].

            Check out this documentation below:
            http://rtfm.modx.com/display/revolution20/Using+Friendly+URLs
              The web is our sandbox, so let's develop a castle.