Symphony – Forum http://symphony-cms.com Symphony Forum Discussions en Symphony CMS JIT not processing cmyk images http://symphony-cms.com/discuss/thread/41003/ Sun, 14 Mar 2010 01:56:00 +1000 http://symphony-cms.com/discuss/thread/41003/ <p><strong>By moonoo2</strong></p><p>Am I right in thinking the current JIT Image Manipulation extension does nt handle CMYK colour space images?</p> <p>Client sometimes gets logo&#8217;s sent to them in this format and unknowingly just upload them for processing and use in the site.</p> <p>But the JIT extension does not interpret these files and results in no images being rendered in the front end.</p> <p>Is it supposed to be able to convert to RGB colour space or is this an oversight on my half not to point this out from the start, that client should request RGB files from (their clients)?</p> Show Active Authors http://symphony-cms.com/discuss/thread/41000/ Sun, 14 Mar 2010 01:01:00 +1000 http://symphony-cms.com/discuss/thread/41000/ <p><strong>By wisolman</strong></p><p>I recently put up my first site powered by Symphony. It permits multiple authors to post content. I want to display the authors that are currently logged in. My login-info only shows me as logged in when I know others are logged in. Any help on this will be much appreciated.</p> <p>I see that this site displays the number of users online and I assume that it is powered by Symphony.</p> Dump DB http://symphony-cms.com/discuss/thread/40987/ Sat, 13 Mar 2010 09:45:00 +1000 http://symphony-cms.com/discuss/thread/40987/ <p><strong>By phoque</strong></p><p>A new extension, &#8220;<a href="http://symphony-cms.com/download/extensions/view/40986/">Dump DB</a>&#8221; is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the <a href="http://symphony-cms.com/download/extensions/issues/40986/">issue tracker</a>.</p> <blockquote> <p>This extension will help you dump your complete Symphony CMS database into a file. It might come in handy when you start developing the same site on several machines or in collaboration with others.</p> <p>Simply commit the generated file with the rest of your code and tell your collegues to import it into their database every time it updates.</p> <p>99% of the code is taken from Alistairs Export Ensemble extension.</p> </blockquote> <p>The difference between Dump DB and Export Ensemble is that Export Ensemble doesn&#8217;t dump all your tables but only the ones it knows about (default-fields and -data). Dump DB however dumps everything as long as it has the table prefix you chose on installation.</p> What about a flowchart... http://symphony-cms.com/discuss/thread/40967/ Sat, 13 Mar 2010 05:41:00 +1000 http://symphony-cms.com/discuss/thread/40967/ <p><strong>By adrianlebar</strong></p><p>I could really use a workflow flowchart, that demonstrates the steps required to do something like create a simple blog or something.</p> <p>Something that teaches the new people what steps to take to get stuff from the admin interface into a template.</p> <p>Maybe something like this already exists, but I am not finding it.</p> <p>Help?</p> [tip] rederect on browser language using htaccess http://symphony-cms.com/discuss/thread/40957/ Sat, 13 Mar 2010 04:01:00 +1000 http://symphony-cms.com/discuss/thread/40957/ <p><strong>By panic</strong></p><p>Hi!</p> <p>In the past I&#8217;ve used php to redirect visitors based on their browser language. Still new to symphony I don&#8217;t know how to use my php scripts with it and looked for another solution.</p> <p><a href="http://tech-blog.borychowski.com/index.php/2009/03/htaccess/redirect-according-to-browser-language-mod-rewrite-and-http_accept_language/">Here</a> I&#8217;ve found a solution using htaccess I just wanted to share.</p> <pre><code>#The 'Accept-Language' header starts with 'de' #and the test is case-insensitive ([NC]) RewriteCond %{HTTP:Accept-Language} ^de [NC] #Redirect user to /de/hauptseite address #sending 301 (Moved Permanently) HTTP status code RewriteRule ^$ /de/hauptseite [L,R=301] RewriteCond %{HTTP:Accept-Language} ^es [NC] RewriteRule ^$ /es/pagina-primera [L,R=301] #For every other language (including English :)) use English RewriteRule ^$ /en/main-page [L,R=301] </code></pre> Best way to proceed http://symphony-cms.com/discuss/thread/40948/ Sat, 13 Mar 2010 03:29:00 +1000 http://symphony-cms.com/discuss/thread/40948/ <p><strong>By ScottJordan</strong></p><p>Hi,</p> <p>I have a client with a Windows App that he wants to move to the Web, so I&#8217;m going to start a simple version as a training exercise in Symphony.</p> <p>I want to use some of the data that all ready exists, so do I just move the existing data tables into the Database, or do I let Symphony create these as I go and then import the data.</p> <p>Just not sure which way to proceed.</p> Data Source Filtering: Distinct Subsets of a Value http://symphony-cms.com/discuss/thread/40940/ Sat, 13 Mar 2010 02:20:00 +1000 http://symphony-cms.com/discuss/thread/40940/ <p><strong>By BBQbrains</strong></p><p>Howdy all. Total noob here, but I&#8217;m definitely liking Symphony.</p> <p>Part of a learning site I&#8217;m building contains a blog, and as is normal with blogs, it has archive sub-navigation that lists years or years and months of existing articles. To get those years I have a data source fetching all the published article dates sorted and grouped by date. Everything works fine, but I feel like I&#8217;m not doing this the right way. For blogs with a high post frequency, it seems like I&#8217;m having to drag up a lot of data just to get a handful of corresponding years.</p> <p>For example, say the blogger posts daily for 5 years. To get 5 year entries in the navigation, I&#8217;d be fetching 1800+ items. But all I need from the XML side is 5 items, one for each year. Is there a way to perform a query for distinct subsets of the date value (unique years)? I haven&#8217;t found anything addressing this in the forum yet. Am I going about this all wrong? Or is this an insignificant efficiency I&#8217;m after?</p> <p>Thanks in advance.</p> Issue tracker cleanup http://symphony-cms.com/discuss/thread/40937/ Sat, 13 Mar 2010 02:00:00 +1000 http://symphony-cms.com/discuss/thread/40937/ <p><strong>By Nils</strong></p><p>There is a long list of &#8220;open&#8221; bugs in the issue tracker. Would it be possible that one of the admins cleans up the list closing all the issues that have been solved in the meantime?</p> <p>By the way, any chance the issues tracker sees an update in the near future covering things like email notification, highlighting of new issues and comments, better handling of closed issues (they currently disappear quietly while being moved to the closed issues list).</p> <p>Thanks a lot!<br /> Nils</p> Create New Section Fails With No Error http://symphony-cms.com/discuss/thread/40898/ Fri, 12 Mar 2010 01:44:00 +1000 http://symphony-cms.com/discuss/thread/40898/ <p><strong>By cmaslow</strong></p><p>I created a new section called Track to store audio files. The section has 3 fields: Title (textbox), Album (select box link), Audio File (file upload).</p> <p>I then tried to create a new entry in the back end, attaching a 10mb file. Saving takes about the amount of time it should to upload a large file, and then nothing. I&#8217;m back to a blank new entry form, with no error, warning, or success message displayed. When I go back to the entry list, there is no new entry in the list.</p> <p>I have successfully created new entries for other sections containing file upload fields to store images.</p> <p>Am I hitting a file size or request size limit or something? If so, is there some setting I can change to increase the max size?</p> Tidying up some Warnings in 2.0.7 http://symphony-cms.com/discuss/thread/40894/ Fri, 12 Mar 2010 01:25:00 +1000 http://symphony-cms.com/discuss/thread/40894/ <p><strong>By ashooner</strong></p><p>We&#8217;re going to be deploying a Symphony site in a client server environment that has some specific technical standards, including the requirement that Symphony produces no errors, warnings, or notices during normal operation.</p> <p>Our dev version has a couple warnings that seem to appear regularly during admin usage, and I&#8217;m wondering what the best way to avoid these would be. Should I submit them as individual issues, or just fix them myself? They are all</p> <blockquote> <p>in-array() - Wrong datatype for second argument</p> </blockquote> <p>But point to:</p> <ul> <li>/symphony/content/content.blueprintspages.php on line 579 (and 597)</li> <li>/symphony/content/content.blueprintsevents.php on line 117,118,119,208, 323</li> <li>Also the Select Box Field on 482</li> </ul> <p>Thanks!</p> Symphony on Hostgator? http://symphony-cms.com/discuss/thread/40891/ Fri, 12 Mar 2010 00:25:00 +1000 http://symphony-cms.com/discuss/thread/40891/ <p><strong>By chris-goodchild</strong></p><p>Hello all,</p> <p>I just happened upon Symphony whilst looking for a suitable CMS to complement an online storefront. I&#8217;m a front-end developer based in London and have worked on many projects using Worpress and the like.</p> <p>Looking through the features it is clear to me that this is the best choice for the project. However, looking at the list of compatible hosts I couldn&#8217;t see HostGator on there and was wondering if anyone had used Symphony with them before?</p> <p>Thanks, Chris</p> Encoding troubles http://symphony-cms.com/discuss/thread/40871/ Thu, 11 Mar 2010 21:59:00 +1000 http://symphony-cms.com/discuss/thread/40871/ <p><strong>By vissper</strong></p><p>Some strange troubles with encoding:</p> <p>I install Symphony 2.0.7 on my home computer (Mac OS Snow Leopard). When trying save some cyrilic text I got &#8220;????&#8221; symbols.</p> <p>Database encoding - UTF-8.</p> <p>When I install Symphony on hosting everything works OK.</p> <p>Any ideas?</p> Is Symphony 2.1 Imminent? http://symphony-cms.com/discuss/thread/40854/ Thu, 11 Mar 2010 16:41:00 +1000 http://symphony-cms.com/discuss/thread/40854/ <p><strong>By bauhouse</strong></p><p>It looks like there is a lot of activity on GitHub. It looks like version 2.1 is imminent. If so, how can we help test?</p> <p>I like the new XML configuration files, such as the <code>db.xml</code> file:</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;driver&gt;mysql&lt;/driver&gt; &lt;character-set&gt;utf8&lt;/character-set&gt; &lt;character-encoding&gt;utf8&lt;/character-encoding&gt; &lt;runtime-character-set-alter&gt;1&lt;/runtime-character-set-alter&gt; &lt;disable-query-caching&gt;no&lt;/disable-query-caching&gt; &lt;host&gt;localhost&lt;/host&gt; &lt;port&gt;3306&lt;/port&gt; &lt;user&gt;root&lt;/user&gt; &lt;password&gt;root&lt;/password&gt; &lt;db&gt;projects_symphony_2.1&lt;/db&gt; &lt;tbl-prefix&gt;sym_&lt;/tbl-prefix&gt; &lt;/configuration&gt; </code></pre> <p>Curious about <a href="http://github.com/allen/symphony-2/commits/working">what you&#8217;re up to</a>, I&#8217;ve cloned <a href="http://github.com/allen/symphony-2">Allen&#8217;s repository</a> and poked around a bit. I was able to establish a connection to the database by copying the <code>db.xml.example.xml</code> file and renaming it to <code>db.xml</code>.</p> <p>Then, I copied the <code>.htaccess</code> file from a Symphony 2.0.7 install. That gave me access to the login form. But attempting to login resulted in the following error:</p> <pre><code>Table 'sym_symphony-working.sym_users' doesn't exist </code></pre> <p>So, I renamed the <code>sym_authors</code> table to <code>sym_users</code> and copied data from another install. Then, I was able to successfully login, I think. But I encountered a Symphony Fatal Error.</p> <pre><code>DirectoryIterator::__construct(/Users/stephen/Sites/sym/symphony-working/workspace/sections): failed to open dir: No such file or directory </code></pre> <p>There was no workspace. So, I copied a workspace from another 2.0.7 install and created a sections directory. Bingo! I have an almost working Symphony 2.1 install. Cool!</p> <p>Looks like there&#8217;s still a bit of work to do on the installer.</p> reorganizing XML elements based on attributes http://symphony-cms.com/discuss/thread/40832/ Thu, 11 Mar 2010 07:31:00 +1000 http://symphony-cms.com/discuss/thread/40832/ <p><strong>By Ixai</strong></p><p>I have some problems with an XSLT that I can&#8217;t figure out (I have little XSLT experience), hopefully someone can help me out. I know it&#8217;s not Symphony-specific but this is the only forum I know that deals with XSL all the time.</p> <p>How can you turn an XML from this:</p> <pre><code>&lt;root&gt; &lt;item id="1" category="a"/&gt; &lt;item id="2" category="b"/&gt; &lt;item id="3" category="a"/&gt; &lt;item id="4" category="b"/&gt; ... &lt;/root&gt; </code></pre> <p>To this:</p> <pre><code>&lt;root&gt; &lt;category id="a"&gt; &lt;item id="1"/&gt; &lt;item id="3"/&gt; ... &lt;/category&gt; &lt;category id="b"&gt; &lt;item id="2"/&gt; &lt;item id="4"/&gt; ... &lt;/category&gt; ... &lt;/root&gt; </code></pre> <p>I started with something like this:</p> <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; &lt;xsl:template match="/"&gt; &lt;xsl:apply-templates/&gt; &lt;/xsl:template&gt; &lt;xsl:template match="item"&gt; &lt;category id="{@category}"&gt; &lt;item id="{@id}"/&gt; &lt;/category&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt; </code></pre> <p>but this obviously creates one category element for each item (duplicating categories with the same id)</p> <p>I then tried to get only the categories with a distinct-values:</p> <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; &lt;xsl:template match="/"&gt; &lt;xsl:for-each select="distinct-values(root/item/@category)"&gt; &lt;category id="{.}"/&gt; &lt;/xsl:for-each&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt; </code></pre> <p>but this doesn&#8217;t seem to output anything (I&#8217;m testing against w3school&#8217;s &#8220;tryxslt&#8221; page with Opera 10.50 so I don&#8217;t know how reliable it is).</p> <p>Thanks</p> Introduction and Request For Help Getting Started With Symphony http://symphony-cms.com/discuss/thread/40830/ Thu, 11 Mar 2010 07:19:00 +1000 http://symphony-cms.com/discuss/thread/40830/ <p><strong>By cmaslow</strong></p><p>Hello, Symphony Community!</p> <p>I&#8217;ve been thinking about taking on a few more freelance jobs lately, and wanted to find a decent CMS to dig my teeth into. I just recently discovered Symphony and am pretty excited about it so far.</p> <p>A little about me. My name is Craig. (At least, the second in the community, I&#8217;ve noticed. Hopefully that doesn&#8217;t get confusing.) I&#8217;ve been writing software 25 years, developing websites for the last 16 years, and writing web applications for about 14 years now. Most of my web development experience has been with asp, asp.net, and asp.net mvc, but I&#8217;ve delved into php and RoR a bit here and there as well. I have a strong background in OOP and the MVC pattern, so I&#8217;m not much concerned about that side of things.</p> <p>Where I&#8217;m definitely lacking in regards to using Symphony is in my knowledge of XSLT and XPath, though I&#8217;m already reading some books on that. My php could also use some brushing up I&#8217;m sure.</p> <p>I&#8217;ve read all the docs I&#8217;ve been able to find on the Symphony site and the light bulbs are starting to turn on, but I&#8217;m still not finding myself making the leap between an idea in my head and a clear path to implement it in Symphony. What resources beyond this site are available for coming up to speed with Symphony? Is it a matter of diving into the available code and figuring things out the long way? Am I correct in assuming that some of this will also come with a better knowledge of XSLT and XPath?</p> <p>Also, assuming that Symphony becomes something I commit to using regularly, I&#8217;d like to contribute to the community codebase. I&#8217;ve noticed that Git is widely used here. I have absolutely no experience with it. Can anyone recommend good resources for getting up to speed with Git and Github?</p> <p>Any other recommendations on learning resources are also appreciated.</p> <p>This seems like a friendly community. I&#8217;m looking forward to becoming a part of it!</p> TinyMCE JavasScript Error http://symphony-cms.com/discuss/thread/40822/ Thu, 11 Mar 2010 02:58:00 +1000 http://symphony-cms.com/discuss/thread/40822/ <p><strong>By dougoftheabaci</strong></p><p>I have a client who&#8217;s complaining about a few parts of Symphony that aren&#8217;t behaving as expected. I can&#8217;t replicate the issue on their site so I&#8217;m running down the list of errors on that page.</p> <p>The one I don&#8217;t have a solution for is an error in TinyMCE&#8217;s javascript. The Error in the console is:</p> <blockquote> <p>Error: DOM is not defined Source File: http://www.goodbuytimeshare.com/extensions/richtext_tinymce/assets/applyMCE.js Line: 21</p> </blockquote> <p>That corresponds to this javascript function:</p> <pre><code>DOM.Event.addListener(window, "load", function() { DOM.select("div[class^=mceeditor]").forEach(function(div) { div.style.marginTop = "2px"; // Fix styles }); }); </code></pre> <p>I did some Googling to see if I coud find out why this wasn&#8217;t behaving but as far as I could tell everything was fine. I thought about just converting this to a jQuery function but I&#8217;m afraid my javascript skills leave something to be desired.</p> Log author actions? http://symphony-cms.com/discuss/thread/40802/ Wed, 10 Mar 2010 20:01:00 +1000 http://symphony-cms.com/discuss/thread/40802/ <p><strong>By Torb</strong></p><p>Hello again :-)</p> <p>sorry, that i post that much posts, but i&#8217;m thrilled by symphony and full of questions.</p> <p>As far as i can see there is no way or extension to track what each user has done or to track who changed a specific entry.</p> <p>That might be usefull if you have a larger amount of users and something went wrong.</p> <p>What might be the best way to implement this? Any Ideas?</p> <p>Best regards</p> <p>Torb</p> Roadmap an API Documentation? http://symphony-cms.com/discuss/thread/40799/ Wed, 10 Mar 2010 19:17:00 +1000 http://symphony-cms.com/discuss/thread/40799/ <p><strong>By Torb</strong></p><p>Hello,</p> <p>as a starer with symphony i&#8217;m interested in the api, but wherever i look i read that the api documentation is forthcoming. Is there some kind of roadmap till it comes or are there any alpha or beta versions one might already use?</p> <p>If not, what do you recommend to get familiar with symphonys possibilities while creating extensions and events?</p> <p>Best regards</p> <p>Torb</p> what did I do wrong? http://symphony-cms.com/discuss/thread/40786/ Wed, 10 Mar 2010 10:26:00 +1000 http://symphony-cms.com/discuss/thread/40786/ <p><strong>By diomed</strong></p><p>I was following tutorial on how to make new page in symphony, but I must have left out something?</p> <p>Could you guys figure out what I did wrong and tell me how to fix it?</p> <p><a href="http://tinypaste.com/0edbe">http://tinypaste.com/0edbe</a></p> <p>Errors say:</p> <p>XSLTProcessor::importStylesheet(): element template only allowed as child of stylesheet XSLTProcessor::importStylesheet(): element template only allowed as child of stylesheet XSLTProcessor::transformToXml(): No stylesheet associated to this object</p> PHP --enable-zip http://symphony-cms.com/discuss/thread/40780/ Wed, 10 Mar 2010 07:39:00 +1000 http://symphony-cms.com/discuss/thread/40780/ <p><strong>By designermonkey</strong></p><p>After searching the web, looking at hosts, researching local servers etc etc I have found that it isn&#8217;t that common to see PHP configured with &#8211;enable-zip.</p> <p>My thoughts then are, is it not a bit odd to use an extension that no one else I can find uses?</p> <p>I really want to be able to develop a site on my localhost (MAMP Pro) and then reinstall it on my live server.</p> <p>My host (FastHosts (UK)) habe enable-zip set to: &#8211;enable-zip=shared yet this doesn&#8217;t even work with Symphony.</p> <p>What to do&#8230;</p> <p>Does anyone know of any way to move a symphony setup between servers without the ensamble extension and &#8211;enable-zip??</p>