Jump to content

flydev

Members
  • Posts

    1,359
  • Joined

  • Last visited

  • Days Won

    49

Everything posted by flydev

  1. Installing the module is fine, but still no luck, I get the following error: Error: Call to a member function find() on boolean (line 35 of /site/assets/cache/FileCompiler/site/modules/TextformatterUIKitImages.module).
  2. I forgot to copy the file simple_html_dom.php with the module... but still, one error exist, disctracted or not
  3. nevermind, I am distracted, no error here.
  4. You say you you are using form-upload.php and form-process.php from Soma, ok, lets simplify a bit the code for our example. Also we are going to create a template and a page. First step: we create a new file form-xml.php in the templates folder and copypasta the following code into this file : Second step: we create another new file _form-process.php in our templates folder (note: the underscore is here to avoid the file being listed as template found) and again we copypasta the following code into this file : Third step: we go in the backend, create a new template and choose (check) form-xml.php from the template found listing. Then we go to the page tree, create a page under root page, give the new page a title and we assign form-xml as template. The final step is to create the folder which hold our XML generated files. I set as arbitrary path - site/assets/XMLFILES - so we go in site/assets and create a folder with the following name: XMLFILES Now we can open our new page in the browser and play with the form generating XML file. Result: <?xml version="1.0"?> <user_profil> <username>root</username> <email>root@foo.bar</email> </user_profil>
  5. I will post you an example later, i am on mobile right now.
  6. if you remove the two variables ($image and $thumb) + the if statement : if(count($post->blog_thumbnail)) { echo "<img src='{$thumb->url}' alt='{$album->title}' />"; } you should get what you need - your post without thumbnail. Sorry if I misunderstood your question.
  7. @BitPoet And about this question? an idea ? Sorry Rajiv for the wrong link
  8. Hi, in before better answer, check this small thread from yesterday :
  9. I dont know. To test an upgrade, just make a backup of your database, rename the directory Blog to .Blog (in site/modules path) and past the new Blog folder from the ZIP you downloaded from github, copy the content of modules/Blog/template-file folder in your templates folder, then go to in backend > modules then click Refresh and see what happen. Edit: It dont work. The module have some dependencies not fixed, it do not copy the content of certain files, and some problems appear due to namespace. We must wait comment from BitPoet.
  10. From the module directory ? if yes : - uninstall it and reinstall this version : https://github.com/BitPoet/Blog/archive/dev-3x-compat.zip
  11. Hello @Rajiv welcome to the forum. Which version of the module have you installed ? It is the fork of @BitPoet linked there ? : PS: for better support you must post directly to the support thread of the module.
  12. also, consider buying PathFinder on your mac, you will have full control over your file system and will save you a lot of time. I am on a mac since september, and didnt opened the Finder since I tried this program.
  13. Got it working, the cron task call the PHP script. Now I am getting another exception, but I suspect my code MariaDB server - I will open a new thread, thanks for your help horst ! @Entil`zha could you update the module ?
  14. Yes I refreshed the modules cache, but even more, I reinstalled it from scratch (PW, PwCron) but still getting the same error. I will try on a live server into one hour and will come back. Thanks again.
  15. Thank you horst, I made the change, now calling the cron.php via CLI still give me this error :
  16. Another try on PW 3.0.40, another error : Someone has already tried this module ? if so, is it working properly?
  17. To complete @pwired answer, you can also read this blog post and this. You could also study the code of blog profile 2. It use another approach. I think that after these posts you should have a clear idea on how to structure your template folder.
  18. @Pravin You need to remove the html code - first (<pre>) and last lines (</pre>) in your clean-file.php.
  19. You could use $imageobject->width and $imageobject->height So you will use it like that : $square = $page->original_uploaded_image; echo ($square->width >= $square->height) ? '<img src="' . $square->width(500)->url . '" />'; : '<img src="' . $square->height(500)->url . '" />';
  20. Hi, I have the following error on ProcessWire 3.0.40 / MySQL 5.6.28 / PHP 5.6.25 : And this error on another live site (ProcessWire 3.0.25 / MySQL 5.5.50 / PHP 5.6.24 :
  21. try : $items = $pages->find("template=event")->setTotal(100)->setLimit(10); echo $items->renderPager();
×
×
  • Create New...