Jump to content

adrian

PW-Moderators
  • Posts

    10,797
  • Joined

  • Last visited

  • Days Won

    346

Everything posted by adrian

  1. Wow kongondo - I have always thought of you as one of the most productive and prolific writers on this forum, but now I am wondering what's been going on - after seeing this, it seems to me you've gotten slack since coming over to PW. It's either that, or just that PW is so easy by comparison with MODx that a tome is not needed. Which is it ?
  2. Russell, Really sorry about that - I made some significant changes to the form processing in the last version and it looks it was having some issues with session variables which is why it wasn't remembering the parent you selected. I have implemented a quick fix and tested the blog install at my end and it seems to be working fine here. I will revisit things properly before the next version, but please test the latest version from github and let me know how it goes. Thanks.
  3. Hi Russell, Glad you'll find it useful. It's still a bit of a work in progress, but I hope to dedicate some more time to it shortly to get the final pieces in place. If I were you I would use the blog file included in this thread because it is already modified to work as a child page, rather than needing to be the home page. Then play with the css as needed, ideally taking the blog specific bits from the imported css files and putting them into your main css files and changing the paths in the template files to those main css files. No matter what you do you'll need to make some css changes to match your site. Good luck and please let us know how you go.
  4. So as horst says in that post I linked to, 5.5.10 is your problem. You can either upgrade to 5.5.11 or implement one of the fixes he describes. These fixes will be available in the dev version of PW shortly: https://github.com/ryancramerdesign/ProcessWire/pull/445
  5. Regarding the issue of images getting sized larger than original, go back to that documentation page and read about setting upscaling to false. As far as the blurry images goes, check out this post: https://processwire.com/talk/topic/6077-reduced-image-quality-of-images-added-to-image-fields/ and any of the links/advice from horst. It may be due to a bug in your version of PHP.
  6. Please have a read through this: https://processwire.com/api/fieldtypes/images/ You must specify both dimensions if you use size. You are only specifying one. Otherwise you should use ->width or ->height instead.
  7. The error is because you have ?options instead of $options
  8. Sorry, in a bit of a rush, so not reading through your post well enough, but is it as simple as: $ordered = $pa->find("template=news, limit=25"); Sounds like you don't want to be finding from the full $pages array anymore, but rather your ordered $pa array?
  9. Is anyone else still have this blank content issue. I tried Martijn's trick, but it didn't work. I ended up having to go with inline mode, which always seems to work fine.
  10. The method on that page you linked to should work just fine, but obviously will need tweaking for a PageArray, rather than a WireArray of images. Show us the code you are using so we can debug that for you.
  11. I guess I don't understand your setup, but it sounds like you have a field called page_role in a template that allows users to select a role when viewing a particular page? I think I also need to see a schematic of your page, template and field structure to understand what is going on. Maybe someone else can see what I am missing?
  12. I assume you are having issues with quote matching? You can take a couple of different approaches: echo "<li class='col'><a href='{$child->url}'>{$child->title}</a></li>"; echo '<li class="col"><a href="'.$child->url.'">'.$child->title.'</a></li>'; Have a read through some of these links: http://www.scriptingok.com/tutorial/Single-quotes-vs-double-quotes-in-PHP http://www.trans4mind.com/personal_development/phpTutorial/quotes.htm http://techtalk.virendrachandak.com/php-double-quotes-vs-single-quotes/
  13. Sounds like a decent idea - perhaps you could try to parse the results of the delegates value first is exec is available on the server, and if not, then get them to run the test?
  14. I don't understand the assigning of $id to the id of a page named "page_role". Are you trying to get the id of an access role? That is what you would need to then assign to the template's edit/add/create/Roles. EDIT: You can get the id of school1 with: $id = $roles->get("school1")->id;
  15. No sign of lcms anywhere! According to the docs, it looks like it needs to be included during compile: --with-lcms=yes My IM installation was manually compiled from source because at the time I set things up, the debian package was out of date and didn't support things I needed. I can't think of, or find, any way to get delegate info directly using iMagick extension. Name Value ------------------------------------------------------------------------------- CC gcc -std=gnu99 -std=gnu99 CFLAGS -fopenmp -g -O2 -Wall -pthread CONFIGURE ./configure '--without-perl' '--with-gslib=yes' COPYRIGHT Copyright (C) 1999-2011 ImageMagick Studio LLC CPPFLAGS -I/usr/local/include/ImageMagick CXX g++ CXXFLAGS -g -O2 -pthread DEFS -DHAVE_CONFIG_H DELEGATES bzlib fontconfig freetype gs jpeg jng jp2 png rsvg tiff x11 xml zlib DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontpath= --with-perl=no EXEC-PREFIX /usr/local FEATURES OpenMP HOST x86_64-unknown-linux-gnu LDFLAGS -L/usr/local/lib LIB_VERSION 0x667 LIB_VERSION_NUMBER 6,6,7,5 LIBS -lMagickCore -ltiff -lfreetype -ljasper -ljpeg -lgs -lpng -lfontconfig -lXext -lSM -lICE -lX11 -lbz2 -pthread -L/usr/local/lib -lrsvg-2 -lgio-2.0 -lgdk_pixbuf-2.0 -lm -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2 -lz -lm -lgomp -lpthread -lltdl NAME ImageMagick PCFLAGS -fopenmp PREFIX /usr/local QuantumDepth 16 RELEASE_DATE 2011-02-05 VERSION 6.6.7 WEBSITE http://www.imagemagick.org Path: [built-in] Name Value ------------------------------------------------------------------------------- NAME ImageMagick Path: /usr/local/lib/ImageMagick-6.6.7/config/delegates.xml Delegate Command ------------------------------------------------------------------------------- blender => "blender" -b "%i" -F PNG -o "%o""\n"convert" -concatenate "%o*.png" "%o" cdr => "uniconvertor" "%i" "%o.svg"; mv "%o.svg" "%o" cgm => "ralcgm" -d ps -oC < "%i" > "%o" 2> "%Z" dng:decode => "/usr/bin/ufraw-batch" --silent --wb=camera --black-point=auto --exposure=auto --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i" dvi => "dvips" -q -o "%o" "%i" eps<=>pdf "gs" -q -dQUIET -dSAFER -dBATCH -dUseCIEColor -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i" eps<=>ps "gs" -q -dQUIET -dSAFER -dBATCH -dUseCIEColor -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pswrite" "-sOutputFile=%o" "-f%i" fig => "fig2dev" -L ps "%i" "%o" gplt => "echo" "set size 1.25,0.62 set terminal postscript portrait color solid; set output "%o"; load "%i"" > "%u";"gnuplot" "%u" hdr => "ra_pfm" "%i" "%o" hpg => "hp2xx" -q -m eps -f `basename "%o"` "%i"; mv -f `basename "%o"` "%o" hpgl => "if [ -e hp2xx -o -e /usr/bin/hp2xx ]; then hp2xx -q -m eps -f `basename "%o"` "%i"; mv -f `basename "%o"` "%o"; else echo "You need to install hp2xx to use HPGL files with ImageMagick."; exit 1; fi" htm => "html2ps" -U -o "%o" "%i" html => "html2ps" -U -o "%o" "%i" https => "curl" -s -k -o "%o" "https:%M" ilbm => "ilbmtoppm" "%i" > "%o" man => "groff" -man -Tps "%i" > "%o" miff<= show "/usr/local/bin/display" -delay 0 -window-group %[group] -title "%l of %f" "ephemeral:%i" mpeg:decode => "ffmpeg" -v -1 -vframes %S -i "%i" -vcodec pam -an -f rawvideo -y "%u.pam" 2> "%Z" pdf<=>eps "gs" -q -dQUIET -dSAFER -dBATCH -dUseCIEColor -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=epswrite" "-sOutputFile=%o" "-f%i" pdf<=>ps "gs" -q -dQUIET -dSAFER -dBATCH -dUseCIEColor -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pswrite" "-sOutputFile=%o" "-f%i" pic => "ra_pfm" "%i" "%o" png<= launch "gimp" "%i" png<= webp "cp "%i" "%i.png"; "webpconv" "%i.png"; rm "%i.png"; mv "%i.webp" "%o" pnm<= ilbm "ppmtoilbm" -24if "%i" > "%o" pov => "povray" "+i%i" -D0 +o"%o" +fn%q +w%w +h%h +a -q9 -kfi"%s" -kff"%n"\n"convert" -concatenate "%o*.png" "%o" ps<=>eps "gs" -q -dQUIET -dSAFER -dBATCH -dUseCIEColor -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=epswrite" "-sOutputFile=%o" "-f%i" ps<=>pdf "gs" -q -dQUIET -dSAFER -dBATCH -dUseCIEColor -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i" ps<= print "lpr "%i" rad => "ra_pfm" "%i" "%o" rgba<= rle "rawtorle" -o "%o" -v "%i" scan => "scanimage" -d "%i" > "%o" scanx => "scanimage" > "%o" shtml => "html2ps" -U -o "%o" "%i" sid => "mrsidgeodecode" -if sid -i "%i" -of tif -o "%o" > "%u" svg => "rsvg" "%i" "%o" txt<=>ps "enscript" -o "%o" "%i" webp => "cp "%i" "%i.webp";"webpconv" -format PNG "%i.webp"; convert "%i.png" "%o";rm "%i.webp" "%i.png" wmf => "wmf2eps" -o "%o" "%i"
  16. I don't think there is a proper way to do this in PW (but I might be wrong). I found the setting in two places: https://github.com/ryancramerdesign/ProcessWire/blob/dev/wire/modules/Jquery/JqueryUI/JqueryUI.js Look for firstDay:0 and change it to firstDay:1 Obviously this is a core file and you don't want to modify this. The other place it is, is in the jqueryUI language files: https://github.com/ryancramerdesign/ProcessWire/tree/dev/wire/modules/Jquery/JqueryUI/i18n Trouble is there doesn't seem to be one for US English, which is why it is defaulting to 0 (assuming that is your locale). Even so, these are still core files and shouldn't modified. The only other solution I am seeing around the place is a jQuery hack: http://stackoverflow.com/questions/1313317/set-start-day-of-the-week-in-jquery-ui-datepicker Not a great answer I'm afraid!
  17. Sorry about that - I just pushed a new version that supports grabbing the thumbnails when saving a page through the API as well. Let me know how it goes.
  18. Do you have the video field selected in the "Video Images Field" setting in the GetVideoThumbs module config?
  19. You can create a blog component within an existing site using PW templates and page fields for categories and tags. I know that kongondo is working on an installable blog, which will be awesome, but if you want to use Ryan's blog profile in an existing site, you can try this out: https://processwire.com/talk/topic/4420-page-list-migrator/?p=56484 This will let you install the blog into any subpage of your site and includes all the files required to make it work out of the box, although the styling will match Ryan's so you will need to tweak the css to match your site. Make sure you test on a copy of your site first as Page Tree Migrator is still not quite considered production ready and this blog install is a proof of concept at the moment, but still fun to play with
  20. Hi madhu1 and welcome to PW. I noticed you just posted this in another board. You'll find we're a pretty responsive bunch here, so no need to post the same thing multiple times. I am having trouble understanding exactly what your code is trying to accomplish, especially the $editRoles[] = $id section - What is $id being defined as? I also have no idea what $template_ is. Are you defining this somewhere else too? Here is an idea of how to add a new role: $newrole = new Role(); $newrole->name= "school1"; $newrole->save(); I think you have managed to do this already, but it's not in your code. This post from Soma explains how to add a new role to the list of editRoles on a template: https://processwire.com/talk/topic/2374-batch-allow-template-edit-access-to-new-role/?p=22366 Maybe you are already attempting to do this though with the $editRoles[] = $id Please post all your code - it will make it easier to figure out where things are going wrong.
  21. Please have another read of the instructions: https://github.com/ryancramerdesign/FieldtypeMapMarker You need to either render the current page, or a page array, but in either case, you need to make sure you replace the second argument in the render to match the name of your map field. Have you checked the result of your $pages->find? In case you don't know about it already, take a look at Nik's excellent Selector Test module for testing the results of a selector.
  22. That errors to me that you are not passing a page array as the first argument of the render() call. Show us your code!
  23. I think the issue is simply that this module requires the video link to be in a <p> tag. Take a look at the two functions in the module and you'll see what I mean. So you could just do this and I think it should work. if($videoUrl) { $np->video = '<p>'.$sanitizer->textarea($url).'</p>';}
  24. Agreed - they don't look good That's on my production server and IM is compiled with rsvg and ghostscript and I am hesitant to upgrade it at the moment because I have definitely come across version conflicts between all these things in the past, but I'll try to get my testing server up to date with all the latest versions and send you results from those.
  25. Hey Nico, Sorry, I haven't done that yet - I actually thought you had some more stuff to do on your module around image importing and RTE embedding. I am super busy at the moment, but I'll see if I can get the hookable part sorted out for you in the next few days. Diogo's ideas actually got me a little sidetracked because I really want to add that functionality now too I'll PM you more thoughts to avoid spamming people here.
×
×
  • Create New...