Jump to content

Christophe

Members
  • Posts

    701
  • Joined

  • Last visited

Everything posted by Christophe

  1. This is incorrect. You can access files/images from other pages, be it any page, sibling pages, parent pages, children pages, a "media" page (for example), "media" (sub-)categories (and/or their children) pages, etc. It's quite flexible. Edit: I would just like a way to get to some page assets quicker sometimes, when, because of the structure I set up, I have to click many times in order to access them and to do it several times to get several images not far from each other, for instance, in the page tree. It would be nice to be able to bookmark "places" to get there in fewer clicks. Edit 2: I'm just thinking (again) that being able to select several files/images at once would be a big progress. Several from the same page and/or several from several pages before validating the insertion(s). I don't know if/how it could be done with the different options available for each file and/or image: cropping, title, etc.).
  2. Seems like a futuristic surveillance/monitoring repression drone. No protections around the propellers. For the moment, I'd rather try something like the Vusion 250 Extreme FPV Race Pack, for example. Or a flying car like the AeroMobil, for instance.
  3. I guess I can change them if I'm not using utf8mb4 and InnoDB, or just remove both lines to stay with the default options. I guess these lines are here to show the new options.
  4. Yes, why? I didn't read the readme (this time). I didn't look closely enough at the requirements written on the profile homepage (demo or localhost). And/or I didn't want to install the DEV version (I've never done it). I hope I can come back to the MASTER version with the upgrades module once the new master is out. Perhaps my mind filtered the information.
  5. I'm not sure this is the right place to talk about the following (feel free to move it): I've just installed this new profile with the latest PW 3 stable version (3.0.42 MASTER). It's the first time I install PW 3. I've installed it on localhost (Linux Mint 18 - PHP7 - MariaDB). 1) I can access the frontend and the backend. But the profile/theme doesn't load well (see the uploaded image please). I have some ideas as to why but I'm not finding the solution yet. Could it have something to do with compilation? I've replaced the templates folder, cleared the cache... Do I have to suppress files/folders from assets, for example? 2) In phpMyAdmin, I see MyISAM utf8_general_ci for each table (I created the database there. By default it was utf8mb4_general_ci, so, not sure, I suppressed it and recreated it). But I also see 27 tables Total InnoDB utf8_general_ci. At installation, I only clicked on advanded settings to see information related to utf8mb4 and InnoDB. I didn't change anything, as far as I remember. In config.php I see : $config->dbCharset = 'utf8mb4'; $config->dbEngine = 'InnoDB'; Is it normal or should I change it to?: $config->dbCharset = 'utf8'; $config->dbEngine = 'MyISAM'; Thank you in advance.
  6. Please try with a fresh .htaccess file (in the sub-directory(?)). Disable the (lines you have added in the) .htaccess file you have in the root(?). # 11. RewriteBase /audino.us/ # 13. RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] If you want to redirect to the "www." version of the site (and not the opposite). Don't put anything in ready.php related to this problem. With some web hostings you can just point the website to a sub-directory from within their administrations. You don't need to touch RewriteBase.
  7. Normally you just have to customize RewriteBase. http://processwire.com/docs/tutorials/troubleshooting-guide/page3 (Or) doesn't your hosting provider ("panel") allow you to point your website to a sub-directory? NB: http://domainname.tld/index.php should redirect to http://domainname.tld/, shouldn't it? And, for SEO at least, the non-www version should redirect to the www version (or the contrary). Perhaps you have planned to do it later. PS: for security reasons, perhaps you should "hide" the domain name of your website if it's still in development mode.
  8. Where are the ProcessWire case studies? https://snipcart.com/case-studies
  9. I often (have to) customize the Style drop-down list in CKEditor. The styles applied can add classes to elements, like p for example. So these classes already exist if you are using a framework and/or you can add your own css rules, and you can add colors, align to the right, justify, etc. You can see some summarized information here:
  10. https://preciousplastic.com/
      • 5
      • Like
  11. I've just noticed that the top logo and menu disappear completely when clicking on a top menu link or sub-link with the third/central mouse button, as I often open several pages in other tabs that way. They don't reappear like it is the case when clicking with the left mouse button. This happens with Chromium. I've tried with Firefox, this doesn't happen. With Opera, it's the same as with Chromium. [ On Linux Mint ] Edit: I'll remove this edit later. 2 little details: "Simple,high performing home technology systems" -> a space is missing after the comma + no dot (difference) "Saving time and money with smarter technology." -> dot (difference)
  12. Christophe

    Cache

    @Klenkes, Could it be because of Opera Turbo mode?
  13. On my list to try one day: http://lostgrid.org/ PostCSS and Lost video tutorials: https://goo.gl/7Nxkhw
  14. You can also try https://filezilla-project.org/ or http://www.freefilesync.org/, for example.
  15. @SiNNuT, if we stay in the non-proprietary category, you might be interested by http://sk1project.net/.
  16. Here is the code for Autres Artistes: <?php include('./_head.php'); // include header markup ?> <!-- main content --> <div id='content'> <div id="directory_listing" class="row"> <div class="grid-fourth margin-top"> <?php include('./_left_menu.php'); ?> </div> <div class="grid-three-fourths row"> <?php echo "<h1>" . $title . "&nbsp;<span>" . $skill_title . "</span></h1>"; $children = $page->children("limit=12{$filter}"); $pagination = $children->renderPager(); if($children->count) { foreach($children as $child) { $thumb = $child->joindre_au_maximum_4_photos->first()->size(200,200); echo "<div><a href='$child->url'><img src='$thumb->url' width='$thumb->width' height='$thumb->height' /></a><p><strong><em>$child->votre_pseudo</em></strong><br />$child->pays</p></div>"; } } else { echo __("Pas de ") . $skill_title . __(" pour le moment."); } echo $pagination; ?> </div> </div> </div> <?php include('./_foot.php'); // include footer markup ?> Some variables are in _init.php now: // Gender variables $woman = __("femme"); $man = __("homme"); $gender = ""; $filter = ""; if($input->urlSegment1 == $woman) { $gender = $woman; } if($input->urlSegment1 == $man) { $gender = $man; } // Skill variable $choix_autre_artiste = $pages->get(1069); $filter2 = ""; foreach($choix_autre_artiste->children('include=hidden') as $skill) { if($input->urlSegment1 == $skill->name) { $skill_title = $skill->title; $filter2 = ", qui_2=$skill->name"; } } I've updated the left menu code in the post where it was displayed. Thanks a lot again @fbg13 for your help and for introducing me to url segments. I knew they existed but it's the first time I'm using them.
  17. <?php include('./_head.php'); // include header markup ?> <!-- main content --> <div id='content'> <?php if($input->urlSegment1 == $woman) { $filter = ", civilite=mademoiselle|madame"; } if($input->urlSegment1 == $man) { $filter = ", civilite=monsieur"; } ?> <div id="directory_listing" class="row"> <div class="grid-fourth margin-top"> <?php include('./_left_menu.php'); ?> </div> <div class="grid-three-fourths row"> <?php echo "<h1>" . $title . "&nbsp;<span>" . $gender . "</span></h1>"; $children = $page->children("limit=12{$filter}"); $pagination = $children->renderPager(); foreach($children as $child) { $thumb = $child->joindre_au_maximum_4_photos->first()->size(200,200); echo "<div><a href='$child->url'><img src='$thumb->url' width='$thumb->width' height='$thumb->height' /></a><p><strong><em>$child->votre_pseudo</em></strong><br />$child->pays</p></div>"; } echo $pagination; ?> </div> </div> </div> <?php include('./_foot.php'); // include footer markup ?>
  18. @fbg13, I think I've found the source of the problem. I made a big mistake. I've learned my lesson. Logically, civilite should only have one value. At one moment I had allowed the field to contain several pages (I think I wasn't sure it was only for the API and not also for the admin). (I had had a similar problem at one moment with another radio button (page) field on the persons pages where, when changing the color of the eyes, the new color would be added instead of the old choice being replaced. I had converted this field from a checkboxes (page) one to a radio buttons (page) one.) I've had this confirmation by changing the value for some "key" pages, with several pages allowed and with only one allowed for the field, and seeing the differences in 3 different versions of the sql file made with DB Backup. Easy with Sublime Text (but I'm currently using Linux Mint's default text editor to write code, I like the back and forward buttons...). And I had cloned a lot of pages to quickly have several pages for the tests. So, I made one or two silly mistakes... I hope I can resolve this quickly by saving again all the pages. I'll come back to confirm. Edit: apparently, once it is stored, it stays there. So pages that already have more than one value keep the other values. I guess I'll just have to remove the pages having this issue. I don't want to mess with/edit the sql file. Edit2: after saving again, both men (that were cloned women initially) had the value of Mademoiselle, and the women that were displayed in the Men page (that were cloned women that had had at least once the value of Monsieur saved) had the value of Monsieur. I've changed all this, saved and now everything is working. I still have the other filtering system to figure out, but now I have more chance of being able to make it work. And this one was a little more "mandatory" than the other one. Thanks again (a lot)! I've learned a lot!
  19. @fbg13, Tracy Debugger is installed in case (even if right now I don't really know how to use it to help me resolve this issue). Civilité (civilite) has 3 radio button options. So normally only one is "checked". I don't understand why it doesn't work...
  20. Hello ryan, I hope you are doing well! Fell free to move this post to a more suitable topic. Using version 2.8.35, I am in the Modules page to install and try Tracy Debugger for the first time. I've just noticed that the link modules.processwire.com sends to http://moduels.processwire.com/ Surely a translation problem. When I go to the Upgrades (module) page I now see: ProcessWireUpgradeCheck: Error loading GitHub branches - https://api.github.com/repos/processwire/processwire/branches - HTTP error(s): 403 Forbidden: 2: fopen(https://api.github.com/repos/processwire/processwire/branches): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden , Forbidden - Check that HTTP requests are not blocked by your server. I don't remember having this warning message displayed a few days ago with version 2.8.35. Please remove/suppress this post.
  21. @fbg13, I see , civilite=mademoiselle|madame added to the content (above the fourth/top left image). I've tried with civilite!=monsieur, it doesn't change anything. So close to and so far away from the solution :). NB: perhaps It's a good opportunity to try @adrian's Tracy Debugger module.
  22. @fbg13, Thank you again for your help. I've put your code. There are no error messages and something is output but Femmes doesn't seem to filter anything, it outputs the same thing as its "parent" Mannequins-Modèles. It keeps the two images with mustaches (corresponding to the 2 only pages where Monsieur is chosen for Civilité). And Hommes outputs the 2 men but also 5 mademoiselles (I've checked and saved again these pages). (There are at least 15 mademoiselles in Mannequins-Modèles.) Edit: I hadn't noticed the post above...
  23. @fbg13, I've woke up late. I went to bed too late/"early". I was just going to post this: <?php $filter = ""; if($input->urlSegment1 == "femmes") { $filter = ", civilite=mademoiselle|madame"; } if($input->urlSegment1 == "hommes") { $filter = ", civilite=monsieur"; } $results = $pages->find("template=directory_listing_mm{$filter}, limit=12"); $pagination = $results->renderPager(); foreach($results as $child) { if($child->joindre_au_maximum_4_photos->count) { $thumb = $child->joindre_au_maximum_4_photos->first()->size(200,200); echo "<div><a href='$child->url'><img src='$thumb->url' width='$thumb->width' height='$thumb->height' /></a><p><strong><em>$child->votre_pseudo</em></strong><br />$child->pays</p></div>"; } } echo $pagination; ?> I'm having an empty page (nothing output) in Mannequins-Modèles, Femmes, or Hommes. And (in Mannequins-Modèles) if I change some things in order to resolve this issue I have error messages like: Notice: Trying to get property of non-object in if removing or changing something to if($child->joindre_au_maximum_4_photos->count). If I remove ->count I have an empty results/content area (no error message) or Fatal error: Call to a member function first() on null if I add ->first() (with or without ->count()). I'm going to take a close look at what you've just posted.
  24. @fbg13 I guess I have to rest. I suppose that what I do with $results will be echoed intead of the code already in place when there are url segments added in the url(?). It's what I wasn't sure about. Edit: I'll see "tomorrow". I'm starting to think what I've just written is wrong. Have a great evening/night!
  25. @fbg13, Thank you. I'll try to make this work this morning when I wake up (as it's past midnight). I still wonder what to do with $results... I'll try to implement what you've posted and post back some code.
×
×
  • Create New...