-
Posts
6,808 -
Joined
-
Last visited
-
Days Won
159
Everything posted by Soma
-
Whoohoooooo! This is great! Great done Pete and Ryan! Only thing I recommend would be to turn off some formating in the RT. No?
-
Hey and welcome transpix! Thanks for sharing that site with us. Great to hear you enjoy ProcessWire. Feel free to share even more Project specific informations.
-
Progress on ProcessWire 2.2 and overview of multi-language support
Soma replied to ryan's topic in Multi-Language Support
Awesome stuff Ryan as always. Interesting read for sure! Thanks so much for this. ;D -
Just a question. How about making it possible to insert cropped images in tinymce too? Would it be possible?
-
Very interesting thread going here Cool to know these.
-
Thanks guys for the answers and suggestions. I think Chrome Frame would be a possible solution to temporary make it work in IE7. I will make some tests. Thanks Nikola for testing out, haven't got the time to test out and I just thought I would ask if there's a specific reason. That's pretty much what I thought would make problems in IE7. I think the layout things would be the easiest to fix, though I'm not sure I would take that path anyway. I used to do it for a decade now, time to move on Well the "deal breaker" would be in using PW as the CMS for this project and not the job itself though. But we would like to use PW, as it would be a good fit.
-
Just curious why you didn't support IE7? Is there any main functionality that isn't working in IE7 or just html/css reasons? I'm just wondering if we could manage to make it work with IE7. We're currently doing early prototype work for a client's intranet. It's a big client and they internally mainly work with IE7-8. So this could be a deal breaker in the worst case.
-
Progress on ProcessWire 2.2 and overview of multi-language support
Soma replied to ryan's topic in Multi-Language Support
I finally got a little more testing with the new admin language modules. I really think it a great solution, and it's now easy to install and manage. Now also checked out the new language text fields. Thanks for those. They can be very helpful I guess. But I question wether it's good to have them in the same fieldset or better using tabs. That way it would be more separated for editors. Or it may would be cool to allow seeing only certain language fields by a user. Just thinking out loud. One thing I experienced was when changing the fieldtype to TextareaLanguage, and save it, the Label/Descr texts entered in the secondary language gets cleared. So I have to reenter them. When I switch back to Textarea.. they again get cleared. -
Problem is this technique is used using a mix of positioning in % and negative left margin. So if you resize your browser the left part of the container get shifted outside browser window. It may not the way to go anymore with fluid responsive layouts, although there could be media queries being used to adapt to window size. I used this technique myself a few years back and decided to get away from it. Just my experience with using it, everyone has to decide on their own.
-
I think it may could be because of Nicos favorite center position technique on the main container (as pointed out in a other thread one I wouldn't recommend ) hint: #home { font-size:13px; left:50%; margin-left:-480px; margin-top:100px; position:relative; width:960px; }
-
OT: Oh cool, another one using my teflon theme. ;D I just sense you need to update , you're using not the latest one.
-
I'm just trying to get this working. I'm not sure if I'm doing it correctly, but I get nothing but a warning. 6 times a waring like: Warning: MarkupLoadGCal::makeCalendarItem() [markuploadgcal.makecalendaritem]: Node no longer exists in /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/site/modules/MarkupLoadGCal/MarkupLoadGCal.module on line 334 ... then error: Fatal error: Cannot break/continue 1 level in /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/site/modules/MarkupLoadGCal/MarkupLoadGCal.module on line 340 I'm using this code: $cal = $modules->get("MarkupLoadGCal"); $cal->load('https://www.google.com/calendar/feeds/ph.urlich%40gmail.com/public/basic'); $items = $cal->find('from=2011-12-1, to=2012-01-31'); foreach($items as $item) { echo " <h2>{$item->title}</h2> <p> <b>Date From:</b> {$item->dateFrom} (Timestamp: {$item->from}) <br /> <b>Date To:</b> {$item->dateTo} (Timestamp: {$item->to}) <br /> <b>Location:</b> {$item->location} <br /> <b>Author:</b> {$item->author} </p> {$item->description} "; } When I use your example xml url it works. But the ones I get are also different... https://www.google.com/calendar/feeds/ph.urlich%40gmail.com/public/basic
-
Hope everybody is enjoying holiday! I'm in Barcelona a couple days with my wife and children in the house of my wife's brother. Nice weather and city, tapas and cuban food (my wife is cuban), cerveza... It's great and I hope I'm abel to relax some from everyday work. Have a merry christmas and a happy new year. I'm sure 2012 will be a great year for ProcessWire! Soma
-
Ryan is on fire! I'm sure this will be very useful. So many new things to try out. Thanks for this module!
-
Site says: "Unable to complete this request due to an error"
Soma replied to nikoka's topic in General Support
Great thanks Ryan. I also was wondering whats going on, Website runs normal, although very slowly loading from server. -
Site says: "Unable to complete this request due to an error"
Soma replied to nikoka's topic in General Support
I experience the same error. 2011-12-22 06:52:45: Unknown User:/?/:ProcessWire Error:Exception: SELECT id, class, flags, data FROM modules ORDER BY class (in /home/aoccons/www/aoc/wire/core/Database.php line 72) #0 /home/aoccons/www/aoc/wire/core/Modules.php(160): Database->query('SELECT id, clas...') #1 /home/aoccons/www/aoc/wire/core/Modules.php(79): Modules->load('/home/aoccons/w...') #2 /home/aoccons/www/aoc/wire/core/ProcessWire.php(100): Modules->__construct('/home/aoccons/w...', '/home/aoccons/w...') #3 /home/aoccons/www/aoc/wire/core/ProcessWire.php(45): ProcessWire->load(Object(Config)) #4 /home/aoccons/www/aoc/index.php(166): ProcessWire->__construct(Object(Config)) #5 {main} -
That's an easy scenario. Code of VKNT is ok but not working for all pages and levels. Since it uses only $page->parent. If we assume the language tree branches are under the root level like /hr/, /en/ you can check for it in the url using strpos or alike, or by using $page->rootParent->name == 'hr' for example. Your choice. I got a language check that is like this, saving it in a session is not required but I needed it in this project. Setting a $lang and a $langpath variable is also project specific. But you get the idea. <?php // get path of request for finding langpath $url = $page->path; if($session->lang){ // if on langpath as in session or requested by /objects/... if(strpos($url,$session->langpath) !== FALSE ){ $lang = $session->lang; $langpath = $session->langpath; }else{ $lang = ''; } } else{ $lang = ''; } if($lang == ''){ if(strpos($url,"/de-ch/") !== FALSE){ $langpath = 'de-ch'; $lang = 'de'; } else if(strpos($url,"/en-ch/") !== FALSE){ $langpath = "en-ch"; $lang = 'en'; } else if(strpos($url,"/fr-fr/") !== FALSE){ $langpath = "fr-fr"; $lang = "fr"; } else if(strpos($url,"/en-fr/") !== FALSE){ $langpath = "en-fr"; $lang = "en"; } else if(strpos($url,"/de-de/") !== FALSE){ $langpath = "de-de"; $lang = "de"; } else{ $langpath = "de-ch"; $lang = "de"; } $session->set('lang',$lang); $session->set('langpath',$langpath); } /** * YAML Language files * import yaml language file for common translations * * key: "value" * * Available in php with $txt['key'] */ require_once($config->paths->root . "site/libs/yaml/sfYaml.php"); require_once($config->paths->root . "site/libs/yaml/sfYamlParser.php"); // instance a parser object $yaml = new sfYamlParser(); // parse language file $txt = $yaml->parse(file_get_contents($config->paths->root . "site/languages/" . $lang . ".yaml")); ?>
-
Awesome work again Ryan! Thanks for the implementation. This will help a lot. I will surely at some point test this out. Just to mention something regarding modules. When I put a lot of modules in at once it show me a nice list of the new modules found, but after installing the first it's gone... It would be nice to somehow (don't know how this could work) have that list being saved and actually being a link list or "install" list on top. If that would be done with ajax, or a "install all" feature that would also help and improve the experience more or less. What you think about something like this?
-
Ah that makes sense now That's ok I think. You could also just use $page->template == "basic-page" as it returns the name and if compared to a string works fine. An alternative would be to have a checkbox field on the template you could check on the desired page and not have the subpages listed. So you don't have to worry about id's. Then going with something like this. <?php if( $page->not_pagelist != 1 && $page->template == "basic-page" && $page->numCildren ) { ... }
-
I'm still not sure that exactly you're trying to do. You say it returns true when on a child of home but you don't want to? But that's what you're trying to originally want in your code, no? Or do you mean false? Do you have a page "home" ? Or do you mean the root?
-
I would use .htaccess, much easier.
-
Maybe you want to check out this http://html5boilerplate.com/docs/htaccess/
-
... let us know via public post
-
Made a little update as discussed in a thread about images. - added new section "Files" to the sheet - minor structuring of some advanced entries
-
That's a strange fix for something done wrong from the beginning. Really, really dirty! The "margin: 0 auto;" together with the "text-align:center" in the body actually does already center the element on page. .. float: left; position: relative; left: 50%; margin-left: -492px; That does the same again using another technique , because it's "position:relative" it enables the "left: 50%", which does moves the left corner of that element in center of window. The margin-left: -492px" moves it to the left by a fixed amount, half the element width. Not something I would recommend but possible. If that fixes the problem it may because of the "float:left", which proves it's a pretty dirty thing and may not working across browsers/oder browsers and in the long run something you should try to avoid. I recommend finding a simple solution to your background image problem, there's quite a lot going on and I'm sure there's a more simple solution, both in markup and css required. Since I can't see how it's meant to be I can't really tell, I would have to take a look more closer and analyze.