Jump to content

nikola

Members
  • Posts

    253
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by nikola

  1. How can I add default value to search form input field, for instance: value="Enter your search term" when using: <?php echo htmlentities($input->whitelist('term'), ENT_QUOTES, 'UTF-8'); ?> that "occupies" input field value. That default value ("Enter your search term") would have to be excluded from the search. The behaveiour I'm looking for is similar to search field in PW admin that has value "Search"...
  2. @netcarver It's rainy for past two-three weeks, accept that it's nice. When have you visited Zagreb? @others Sorry for off-topic...
  3. Alan (and others), In a few days time, I'll post updated theme, based on Futura Remixed Theme which has rewritten almost everything in the code and is compatible with PW 2.2+ so it will be more consistent. It also supports multi language capabilities.
  4. Ryan, Unfortunately it's a copy/paste/configure scheme, as for codemagic you could integrate it in you PW distro, some might it find helpful (at least I did ). Here are the instructions for manual installation for TinyMCE theme and plugin. Theme installation 1. Unzip futuraremixed-tinymce-theme.zip to /wire/modules/Inputfield/InputfieldTinyMCE/tinymce-3.4.7/themes/advanced/skins/ directory 2. Change option "skin" to "skin: "futuraremixed" in InputfieldTinyMCE.js located in /wire/modules/Inputfield/InputfieldTinyMCE/ directory CodeMagic plugin installation 1. Unzip codemagic-plugin.zip to /wire/modules/Inputfield/InputfieldTinyMCE/tinymce-3.4.7/plugins 2. Go to Setup - Fields and edit your Body field or some other field that uses TinyMCE 3. Select Input tab, select TinyMCE Advanced Configuration Options 4. Under theme_advanced_buttons1 or theme_advanced_buttons1 add codemagic 5. Under plugins add codemagic at the end of the plugins line (separated with comma) I plan to make improvements as you have suggested, search box annoys me sometimes also codemagic-plugin.zip futuraremixed-tinymce-theme.zip
  5. I've been quite busy last few months (and still am), but I managed to squeeze new admin theme called Futura Remixed (successor to my Futura theme). So let's get started: complete rewrite of the theme complete new graphics, includin PageList tree icons etc. full multi-language support (except "You are logged in as", "Latest updates" and "Newest added" title (could be done by implementing those in language packs I suppose) complete new TinyMCE theme with Fugue icons (that was pain in the ass) integrated CodeMagic TinyMCE plugin that uses CodeMirror to highlight the code and HTML beautifier to beautify the code (unlike plain TinyMCE HTML editor) AdminBar theme How to install: Unpack FuturaRemixed.zip to your /site/ directory Replace /wire/modules/Inputfield/InputfieldTinyMCE directory with InputfieldTinyMCE directory contained in the attached InputfieldTinyMCE.zip file Extract AdminBar.zip to your /site/modules/AdminBar directory (if you use it) I've tested the theme thourougly but errors may still show up. So if you find them, please let me know, so I can fix them. When I get time, I'll update this theme with colors from original Futura theme so you could choose between them. Let's look at the screenshots: Enjoy the theme as much I've enjoyed making it. AdminBar.zip FuturaRemixed.zip InputfieldTinyMCE.zip
  6. If using Thumbnails module in conjunction with Manage files module you could get following scenario: Error occurs without showing any images... Field does not exist: That happens if you set field(s) that contain images to use "CropImage" type instead of "Image" type. You can fix that by adding two lines in ManageFiles.module, first at line 62: Replace: $fields = $this->fields->find('type=FieldtypeFile|FieldtypeImage')->getArray(); with: $fields = $this->fields->find('type=FieldtypeFile|FieldtypeImage|FieldtypeCropImage')->getArray(); and on line 164: Replace: if($field == 'InputfieldImage' || $field == 'InputfieldFile') { with: if($field == 'InputfieldImage' || $field == 'InputfieldCropImage' || $field == 'InputfieldFile') {
  7. Thanks Adam, I completely overlooked that, it's working fine now.
  8. Hey Soma, this is nice plugin, it will definitely simplify various navigation scenarios. I've tried it and it works like a charm. Thanks
  9. Ryan, thanks for the exapmle. It's working fine with manufacturer if I remove code block from selector: list($priceMin, $priceMax) = explode('-', $input->get->price); $priceMin = (int) $priceMin; $priceMax = (int) $priceMax; if(!$priceMax) $priceMax = 99999; // or some other max value $input->whitelist('price', "$priceMin-$priceMax"); $selector .= "price>=$priceMin, $price<=$priceMax, "; If I include this block of code PW throws me an error: PHP Notice: Undefined offset: 1 in C:\inetpub\wwwroot\pw\site\templates\manufacturer-search.php on line 13 PHP Notice: Array to string conversion in C:\inetpub\wwwroot\pw\site\templates\manufacturer-search.php on line 18 PHP Fatal error: Exception: Field does not exist: Array (in C:\inetpub\wwwroot\pw\wire\core\PageFinder.php line 244) manufacturer-search.php template consist only of code you posted above.
  10. I have a small search form that searches products by selected manufacturer, price or manufacturer and price combined. Manufacturer is a page list field, and the generated prices are a range. This is the form: <label for="search-manufacturer">Manufacturer</label> <select id="search-manufacturer" name="manufacturer"> <option value="">Any</option> <!--?php foreach($pages--->get("/manufacturer/")->children() as $manufacturer) { $selected = $manufacturer->name == $input->whitelist->manufacturer ? " selected='selected' " : ''; echo "{$manufacturer->title}"; } ?> </select> <label for="search-price">Price</label> <select id="search-price" name="price"> <option value="">Any</option> <!--?php foreach(array('0-50', '50-250', '250-500', '500-750', '750-1000', '1000+') as $price) { $selected = $price == $input--->whitelist->price ? " selected='selected'" : ''; echo "$price"; } ?> </select> <input type="submit" id="search-submit" name="submit" value="Search"> What code do I need to put into "manufacturer-search" template to search products by criterions mentioned above? I've looked into the skyscapers profile but couldn't make it work... Thanks
  11. Hi Sevarf2, I'll try to fix it as soon as possible, I'm very busy at the moment so I haven't had time to do it. I also have in plan to update the theme to support multiple languages.
  12. Thanks DaveP, I missed that one, mainly because majority of my sites are in Croatian
  13. I've made this site a couple weeks ago using ProcessWire. Once again, it proved as a right choice for my projects... You can check it out at: http://www.croatiabirding.hr P.S. I recently bought a book about PHP OOP programming so I could better understand the PW core and the modules themselves, maybe I'll come with my own plugin finally soon ...
  14. I totally agree, PW is mind blowing. I've used WordPress and SilverStripe before and they were a mess. I like the simplicity that PW offers to designers - I can design a site in Photoshop, make a pure XHTML/CSS templates, think little about API functions and voila, a site is born. I haven't used full PW potential yet, but so far every site I've made came out exactly as I planned. So thanks again, Ryan
  15. Ryan, this is great news! Now we can extend PW further more. Thanks!
  16. No problem Ryan, glad to help and contribute.
  17. +1 Nice suggestion Nico. It would be quite useful when having lots of images on one page for instance...
  18. Hi leroj, I like the site very much. English speakers, excuse me for Croatian now (Drago mi je da još neko iz Hr koristi PW )
  19. Updated translation to reflect changes made in ProcessWire 2.2. Updated file is located in first post.
  20. Thanks Ryan, will try this out. Looking forward to page-based comments module.
  21. Achabany, this is great minimalist theme. You have a bug when hovering on PW logo, screenshot included.
  22. I have a situation where I need comments without name & e-mail inputs, just comments textarea for submitting comments and I've managed to strip those out from the module and it's working fine. Instead of showing name that is submitted through the name inputfield, I need to show the name of current logged in user who writes the comment. Also, new posted comment would have to be displayed instantly without showing "Thank you, your submission has been saved." and without refreshing the page (through ajax request). The name of logged in user would have to be visible in comments admin instead name & e-mail inputfields (which are stripped out). Thanks for your help guys.
  23. Thanks a lot Nico! Works as expected. Nice job, quick as always
  24. Nico & Soma, any chance of further developmnet of this plugin? Deleting images through file manager would be quite nice. Thx
×
×
  • Create New...