Jump to content

Macrura

PW-Moderators
  • Posts

    2,765
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by Macrura

  1. @zota can you screenshot your plugins folder with the subfolders open? I never had any problem adding any plugin, what plugin are you adding.
  2. haven't tested yet but was going to put the init into a function and then do this; $(document).on('ready reloaded wiretabclick opened', initSelectize);
  3. ah - wow that's cool, yeah let me know and i'll make the change..
  4. Since the selectize image tags refers to the image fieldtype a lot, seems easiest to just clone that module and make a version that works with file fields - do you see any extra overhead in doing it that way, might be the cleanest/quickest way to accomplish
  5. OK sure -makes sense to add tags to files, will work on it asap.. #1, it is sort of a hack, since there needs to be a value in the field for it to work right; i never really figured out how to fix that one, but might be able to now. for #2, i always thought that PHP_EOL would be environment neutral, because it is the constant for new line, independent of platform, but i guess it may not work in the context of exploding the newlines from a textarea, so i will change that. #3 - yes, don't know how to fix that AJAX thing, maybe i need to change from document.ready to something else, will look into it;
  6. right - yeah, i'm not actually using the module, just the function which is in my generic site utilities module; using this replacer method (as opposed to hardcode) though allows you to have a few frequently used replacements in a lot of fields, e.g: page.id page.httpUrl etc..
  7. if found this module to be useful for enriching the field descriptions, in the most recent case i needed to output the page ID, and the full url to the frontend page, and did it by using this; not sure if there is any other easier way of parsing tokens in the field descriptions at this stage, this was the only way i could figure out how to do it.
  8. @gar1606just make sure to do a modules refresh and look under new modules
  9. @gmclelland, yeah, you are right, i will probably remove that functionality from my version, and defer it to that module
  10. one way is to use a custom dropdown (richcombo) and let the editor put the caption and src. alternately you could use the Hanna Code Helper module which works on a right click in the editor; not sure how you would get the src, might be better to add tags to the images field and then have the editors put the tag in. [[image caption="Some Caption Text" tag="some-tag"]] that's how the Soundmanager textformatter works; there is also already a module for image references
  11. there must have been a field at one point using it? You should still check all of your images fields and make sure non are set to use that fieldtype (?) if you are upgrading from a really old version, you may also want to have a locally installed fresh version of 3 for reference, so you can add some missing elements from the root folder and the site folder that were added in later versions - did you replace your .htaccess file?
  12. Regarding the first message, you replaced the old ImageExtra with a new version, and did modules refresh? you may also need to go into that field settings and now reset the fieldtype there. You probably also need to disable the Pages2PDF module and check that forum thread in case there are any known issues with compatibilty. if this is a live site, i would downgrade to 2.7.3;
  13. Creating a custom mega menu is not exactly for the faint-of-heart, you would have to decent PHP skills and you would need to be able to build the menu in the backend in such a way that the columns withing any mega menu could be deduced from the settings, or structure of the menu you create. If you don't use the page tree structure for generating the menu, there are several other options... - branch of the page tree representing your menu - Repeater using the recently nesting capabiity - Menu Builder With some basic PHP and the right structure to work from, building the mega menu should not be that hard... You would probably need 2-3 functions that would interact recursively to really make it work right though, IMHO..
  14. Here is the pre-release of the module. https://github.com/outflux3/JqueryIonRangeSlider once it has been tested a bit more, it will be in the directory.. EDIT: In directory: http://modules.processwire.com/modules/jquery-ion-range-slider/
  15. do you have TracyDebugger installed? you probably need to walk through the code and bd() or l() some variables and such until you can see what is failing. you might want to try bd($mo->folder); bd($f); in their respective locations to see if they are failing; what is $mo->folder?
  16. if $page->mo is a repeater, then you need to do $page->mo("check_access=0")
  17. maybe you need to check count of $page->mo, since it appears to be an array field? <?php if(count($page->mo)) { echo " <div class=\"table-responsive m20tb\"> <table class=\"table table-striped table-bordered sm\"> <thead> <th>Ф.И.О.</th> <th>Должность</th> <th>Преподаваемые дисциплины</th> <th>Направление подготовки и (или) специальности</th> <th>Повышение квалификации</th> <th>Общий стаж работы</th> <th>Стаж работы по специальности</th> <th>Ученая степень</th> <th>Ученое звание</th> </thead><tbody>"; $n = 0; foreach($page->mo("check_access=0") as $mo) { $n++; $mo->isFirst = ($n === 1); $mo->isLast = ($n === $total); if($mo->folder) { chdir('/home/admin/web/pw.loc/public_html/data/thicher/'); $f = fopen("{$mo->folder}", "r"); while(($line = fgetcsv($f)) !== false) { $id = $line[0]; $name = $line[1]; $dolg = $line[2]; $disc = $line[3]; $napr = $line[4]; $kat = $line[5]; $cval = $line[6]; $ost = $line[7]; $pst = $line[8]; $uch_s = $line[9]; $uch_z = $line[10]; $reg_z = $line[11]; $foto = $line[12]; echo "<tr> <td itemprop=\"fio\">" . htmlspecialchars($name) . "</td><td itemprop=\"Post\">" . htmlspecialchars($dolg) . "</td> <td itemprop=\"TeachingDiscipline\">" . htmlspecialchars($disc) ."</td> <td itemprop=\"EmployeeQualification\" >" . htmlspecialchars($napr) ."</td> <td itemprop=\"ProfDevelopment\">" . $cval ."</td> <td itemprop=\"GenExperience\">" . htmlspecialchars($ost) ."</td> <td itemprop=\"SpecExperience\">" . htmlspecialchars($pst) ."</td> <td itemprop=\"Degree\">" . htmlspecialchars($uch_s) ."</td> <td itemprop=\"AcademStat\">" . htmlspecialchars($uch_z) ."</td> </tr>"; } fclose($f); } // END IF MO->FOLDER } // END FOREACH echo "</tbody></table></div>"; } // END IF
  18. I use SmartBackup (a codecanyon script) in a subfolder and have it set to backup the /site/ folder and the database; it runs on a cron job, and creates the zip file in wherever you specify. All you need to re-create the site is your site folder and the database; unless you have placed some other custom stuff above /site/ Once Duplicator is released, i will switch to using that for backups, and drop the SmartBackup; SmartBackup is very good, but Duplicator will be a native module, and supports more options, like Amazon S3; For sites with massive assets files, like audio, i set the backup to exclude images and other media like audio and video. The i have a Forklift 'synclet' that i can run and that syncs the entire site/assets folder with an Amazon s3 account, with 1 click.
  19. right that is strange - is markup regions something that you can enable/disable? I know for sure i need comments in my HTML to stay put for the most part.
  20. this may be a namespace snafu - have you tried putting the namespace in front of the call inside the include, e.g. \ProcessWire\myFunction(); ? to be clear, i include tons of functions from the init, in fact my _init includes a _func.php which the includes around 10 separate files all with functions and those all load and are usable everywhere; however i have run into the snafu of having to prepend the namespace for some reason within certain included files down the line
  21. It must be pro cache; i have a site with pro cache enabled and i don't have it set to strip comments, and my comments still appear; have you tried turning off the html minification features of PC? i believe it still processes, even when the caching is off.
  22. @szabesz i think it is fine to use, i first tested it on localhost, and then i started using it on 3 new sites; i did change the module to not use the 'settings' global variable though before installing it, because as far as i can tell, it somehow actually causes the listers in lister pro to all lose their settings; have not tested extensively yet, so i don't know if it happens only if you load the listers... i will most likely fork the module and then change out my new versions... there are still some things to iron out before it could be considered really stable, with the fields and settings import features..
  23. plus DataTables are so easy to setup on the front end, you really don't need a module... just make your table, and then load the datatables scripts and init; the instructions are all there on the datatables site, and it is really well documented..
  24. Released: http://modules.processwire.com/modules/jquery-ion-range-slider/ The built in rangeslider is good, but it is somewhat limited if you need really specific slider interfaces, like with pips and showing the value on the handles. There are many Jquery rangesliders, but one of the best and easiest to implement is the ion.rangeSlider. http://ionden.com/a/plugins/ion.rangeSlider/en.html This is a preview of the very simple module that basically allows you to enable the ion.Rangeslider on any text input, and then you type in your params into the textarea field (careful, you can break the page's javascrpt if you are not careful!) There are way too many options to really make this configurable, so the easiest way it to have a free text field where you enter any params. The params are just passed to the instance of the slider. Features of ion.Rangeslider: Skin support. (5 skins included and PSD for skin creation) Any number of sliders at one page without conflicts and big performance problems Two slider types single (1 slider) and double (2 sliders) Support of negative and fractional values Ability to set custom step and snap grid to step Support of custom values diapason Customisable grid of values Ability to disable UI elements (min and max, current value, grid) Postfixes and prefixes for your numbers ($20, 20 € etc.) Additional postfix for maximum value (eg. $0 — $100+) Ability to prettify large numbers (eg. 10000000 -> 10 000 000 or 10.000.000) Slider writes its value right into input value field. This makes it easy to use in any html form Any slider value can be set through input data-attribute (eg. data-min="10") Slider supports disable param. You can set it true to make slider inactive Slider supports external methods (update, reset and remove) to control it after creation For advanced users slider has callbacks (onStart, onChange, onFinish, onUpdate). Slider pastes all its params to callback first argument as object Slider supports date and time Screenshots comparing Inputfield Rangeslider (Soma) vs. JqueryIonRangeSlider... 1) basic range using currency ' Same with different skin Range of years Same with narrower column and different skin.. the module is functional and being used on 1 site, but some additional testing is needed...
×
×
  • Create New...