We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for MetaX (Meta Tags Extended) 1.3-public by thekiller237.

    Brief Description:

    Tested on both Revolution and Evolution. This version adds the entire Dublin Core, CSS tagging and the &ietool parameter.
      • 33988
      • 110 Posts
      Any comments/suggestion are very welcome. If you have any issues, I am here to help.

      Support Website: http://salscode.com/index.php?id=93
        Sal Sodano
        President & Co-Founder of SkyToaster
        My Website Salscode.
        • 6180
        • 31 Posts
        I must say, this is a very nice snippet, well done!

        I made a tweak to the code for handling the RSS feed. I prefer to keep my pagetitle field nice and short, and use the longtitle for display. I generally trap for an empty longtitle and default to the pagetitle in the event of an empty longtitle. As such, I added an if loop to look for the longtitle first.

        /**RSS Feed**/
          $rssout = "";
          $rss = explode(",", $rss);
          $count = count($rss);
          $i = 0;
          while ($i < $count)
          {
          $rss[$i] = trim($rss[$i]);
          $tmpdoc = $modx->getDocument($rss[$i]);
          if ($tmpdoc == TRUE)
            {
              if ($tmpdoc['longtitle'] === '')
                {$rssout .= "\n".$tabstxt."<link href=\"".$modx->makeUrl($rss[$i], '', '', 'full')."\" rel=\"alternate\" type=\"application/rss+xml\" title=\"".$tmpdoc['pagetitle']."\"".$tagend;}
              else
                {$rssout .= "\n".$tabstxt."<link href=\"".$modx->makeUrl($rss[$i], '', '', 'full')."\" rel=\"alternate\" type=\"application/rss+xml\" title=\"".$tmpdoc['longtitle']."\"".$tagend;}
            }
          $i++;
          }


        I just wanted to throw that out there. I plan on tweaking the favicon section as well, since I prefer to use PNG files. I’d like to see the code determine what kind of file it’s preparing the output for, and render the appropriate type.
          • 1343 ☆ A M B ☆
          • 2,213 Posts
          Quote from: CwnAnnwn at Nov 07, 2010, 01:33 AM
          I plan on tweaking the favicon section as well, since I prefer to use PNG files. I’d like to see the code determine what kind of file it’s preparing the output for, and render the appropriate type.

          PNG files work great for most browsers, but IE (at least early versions) only support ICO files. I’m guessing you don’t care about IE support of fav icons? Granted I could see him adding a check for favicon.* to allow for .ico or .png fav icons... Very interesting suggestions.

          Very nice code for the RSS feeds, I can see that being included in the next release smiley
            Patrick | Server Wrangler
            About Me: Website | Tweets |  MODX Hosting
            • 33988
            • 110 Posts
            Will look into this soon for 1.4 release.

            Also, soon I will be posting 1.3.1, a micro-release correcting an issue with installation on Revo dealing with the function getTvOutput.
              Sal Sodano
              President & Co-Founder of SkyToaster
              My Website Salscode.
              • 19534
              • 183 Posts
              Hey!

              I like your snippet very much! But I think there is a need to change the code:

              Recoverable error: Argument 1 passed to modX::getTemplateVarOutput() must be an array, boolean given, called in core/cache/elements/modsnippet/1.include.cache.php on line 209 and defined


              You’re not using the the right syntax of this function. Additionally this function is deprecated and will be removed in Rev 2.1 (so your snippet won’t run anymore).

              Have a look at the MODx API: http://api.modxcms.com/modx/modX.html#getTemplateVarOutput

              Cheers,

              Jakob

                Add-On to easily manage your multilingual sites: Babel
                • 28121
                • 107 Posts

                Just installed MetaX on one of my Revo sites and it’s not appearing under the Template Variables Tab.
                Normally I see a tab called MetaX and everything is ok. Any known bugs resulting in this issue?
                  • 33988
                  • 110 Posts
                  Quote from: Jakob at Dec 06, 2010, 02:34 AM

                  Hey!

                  I like your snippet very much! But I think there is a need to change the code:

                  Recoverable error: Argument 1 passed to modX::getTemplateVarOutput() must be an array, boolean given, called in core/cache/elements/modsnippet/1.include.cache.php on line 209 and defined


                  You’re not using the the right syntax of this function. Additionally this function is deprecated and will be removed in Rev 2.1 (so your snippet won’t run anymore).

                  Have a look at the MODx API: http://api.modxcms.com/modx/modX.html#getTemplateVarOutput

                  Cheers,

                  Jakob


                  Thanks for the catch, am correcting in 1.5. Was using the old stuff to keep Evo compat. Now I have forked the project into two development paths so no worries about that anymore.
                    Sal Sodano
                    President & Co-Founder of SkyToaster
                    My Website Salscode.
                    • 33988
                    • 110 Posts
                    Quote from: sparrow at Feb 19, 2011, 09:26 AM


                    Just installed MetaX on one of my Revo sites and it’s not appearing under the Template Variables Tab.
                    Normally I see a tab called MetaX and everything is ok. Any known bugs resulting in this issue?
                    All of the TVs that you wish to use with MetaX are not included in the install. MetaX has default TV names but does not clutter your install by making the TVs when you may not want it to in the first place.
                      Sal Sodano
                      President & Co-Founder of SkyToaster
                      My Website Salscode.
                      • 8790
                      • 526 Posts
                      Hi,

                      I recently found an issue on all site using MetaX (EVO).Very annoying qs this snippet is one of the "best stuff I saw".

                      event logs is filled by 900MB of php warning. I found a discussion about a PHP 5.3 bug but I found this issue on a PHP 5.2.

                      error is logged maybe 4 o r 5 time a minute.
                      date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead


                      Server are located in France and I don’t have access to php ini

                      Any help ?
                      Thank you
                        Schtroumpf Grognon - Grouchy Smurf
                        ---------------------------------
                        Faites pas attention.. - Don&#39;t pay attention
                        http://www.dzi-neo.net