-
Posts
1,360 -
Joined
-
Last visited
-
Days Won
49
Everything posted by flydev
-
Yes tested to uninstall and reinstall; I used Tracy in simple_html_dom.php and it look like I always get into the condition where $str is empty and so return false, line #95 in simple_html_dom.php. // get html dom from string function str_get_html($str, $lowercase=true, $forceTagsClosed=true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN=true, $defaultBRText=DEFAULT_BR_TEXT, $defaultSpanText=DEFAULT_SPAN_TEXT) { $dom = new simple_html_dom(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText, $defaultSpanText); if (empty($str) || strlen($str) > MAX_FILE_SIZE) { $dom->clear(); return false; } $dom->load($str, $lowercase, $stripRN); return $dom; } My body field contain mostly text and code formatted by the plugin pbckcode/highlight.js. I dont know if it can interfere.
-
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).
-
I forgot to copy the file simple_html_dom.php with the module... but still, one error exist, disctracted or not
-
nevermind, I am distracted, no error here.
-
look very usefull, testing right now
-
want to show data from Form fields in XML document
flydev replied to Pravin's topic in API & Templates
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> -
want to show data from Form fields in XML document
flydev replied to Pravin's topic in API & Templates
I will post you an example later, i am on mobile right now. -
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.
-
@BitPoet And about this question? an idea ? Sorry Rajiv for the wrong link
-
Hi, in before better answer, check this small thread from yesterday :
-
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.
-
From the module directory ? if yes : - uninstall it and reinstall this version : https://github.com/BitPoet/Blog/archive/dev-3x-compat.zip
-
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.
-
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.
-
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 ?
-
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.
-
Thank you horst, I made the change, now calling the cron.php via CLI still give me this error :
-
Another try on PW 3.0.40, another error : Someone has already tried this module ? if so, is it working properly?
-
Folder structure into Template Folder not working..
flydev replied to Junaid Farooqui's topic in Themes and Profiles
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. -
delete orphaned files/images from site/assets/files
flydev replied to interrobang's topic in General Support
@Pravin You need to remove the html code - first (<pre>) and last lines (</pre>) in your clean-file.php. -
lets ping @horst
-
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 . '" />';
-
want to show data from Form fields in XML document
flydev replied to Pravin's topic in API & Templates
Check this discussion, can get you started : -
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 :
-
try : $items = $pages->find("template=event")->setTotal(100)->setLimit(10); echo $items->renderPager();