manlio
Members-
Posts
148 -
Joined
-
Last visited
Everything posted by manlio
-
Thank you Andrian for the incredible support. I have contacted my provider suggesting your solution. I will update this post as soon as I have the confirm that it works. Thank you! Edit: Finally it works and seems there was a firewall problem.
-
I have a problem with this module (and also atom feed loader module) in a website. I was able to make the module work changing the php version to an older one (maybe 5.3 or 5.4 I don't remember), but my provider (for other problems) needs to run php 5.5 version When I have this version it doesn't work. I don't get any errors and if I add if($rss->error) { echo "<p>{$rss->error}</p>"; } simply it outputs Unable to load Atom feed at https://www.youtube.com/feeds/videos.xml?playlist_id=... I don't know if the problem is caused by php 5.5 or some other php settings. EDIT: I have seen that the same script is running fine on another server with php 5.5 so I think the problem is related to php settings. Do you have an idea how to fix or debug this problem? Thank you
-
ProcessSlider - Image sliders for ProcessWire
manlio replied to mauricius's topic in Modules/Plugins
Thank you, I will try your suggestion! -
ProcessSlider - Image sliders for ProcessWire
manlio replied to mauricius's topic in Modules/Plugins
This module is really great, thank Mauricius! Do you have any plan to support multilanguage website? I think now is not possible, right? Ciao! -
Thanks Jan! This is what I was looking for. My php skill is really low, but this helps me to improve my coding. Thank you and happy new year!
-
Hello I have a database of people that I wanna filter in the front-end. Now in frontend I have two fields but maybe in future I wanna have more: - Country (select tag) - Surname (text field) If nothing is changed I would like to show the entire user list. Now my problem is to understand which is the cleanest way to accomplish this in PW. I send and sanitize two post variables ($inputcountry and $inputsurname), but I don't know how to cover all cases in a clean way. For example if surname is empty this find doesn't work. $instructors = $users->find("template=user,roles=$role,country=$inputcountry,user_surname*=$inputsurname,include=all"); Thank you! P.S. Before I used only the country select and filtered users based on Urlsegment
-
Is there any other simple way to edit subtree in the front end with Fredi or another module? I have searched but wasn't able to find a solution. Thanks
-
Thanks both. In this context I'm using pagetable to allow manual reorder of news or events in the frontend using Fredi (so every items is a real standard page). My client prefer editing in the frontend and I thought about this way to provide this kind of feature. I tried also to standardize the way my client needs to edit almost any content. I'm also using PageTableExtended but in this case I think his preview ability will be not so useful because I would prefer to preview in a separate view just to not complicate too much the list view. Thank you! P.S. BTW Great new front end additions in PW 3!
-
Hi, in every page I have a View link. But if I click on a page table elements I don't have this button to preview the page, I have only marked tabs in the image below How can I enable this? Would be handy for preview pages before publishing. Thank you
-
ProcessSlider - Image sliders for ProcessWire
manlio replied to mauricius's topic in Modules/Plugins
Really great module. It's perfect for client that wants total control over the slider. Thank you. -
Copy pages (and children) from one site to another
manlio replied to manlio's topic in Getting Started
No problem at all adrian. I understand you perfectly and thank you again for all the effort you put into migrator. Take your time and read it if you can and whenever you can. -
Copy pages (and children) from one site to another
manlio replied to manlio's topic in Getting Started
Hi in the meanwhile I'm trying to figure out with adrian what is happening with migrator, can someone point me which are the alternatives to do this? Thank you -
Copy pages (and children) from one site to another
manlio replied to manlio's topic in Getting Started
Thanks Adrian, last time we wrote seems that there was something wrong with my pw websites. I'll write you a PM reporting whats happen. Thank you. -
Copy pages (and children) from one site to another
manlio replied to manlio's topic in Getting Started
Hi I'm sorry to revamp this post. But can anyone gives some alternative way to Migrator (with some of my websites doesn't work). Thank you. -
Problem importing users with "Import Pages from CSV" module
manlio replied to manlio's topic in General Support
Ok, I solved by myself. Not the cleanest way but it works. Simply I went into the mysql database, opened the "template" table and temporary modified "user" record. In the field "data", I removed the "noMove":1 attribute, so I was able to change the parent of imported pages to the admin->access->users Then I put back the "noMove":1 attribute. Hope this helps someone else. Ciao -
Problem importing users with "Import Pages from CSV" module
manlio posted a topic in General Support
Hi, I'm using PW 2.16.8 and I have a different behaviour from previous versions when I import users as CSV file using "Import Pages from CSV" Ryan module. With older versions of PW (I don't know which one, but not so old), after succesfully import users as children of a page created by me, if I saved all this users pages from API, automatically they were moved under the proper admin->access->users page parent. Now this doesn't work and I tried to change the parent from API but seems that template "user" doesn't allow this. Do you have any advice to solve this problem? Thank you. P.S. In the attached file you can see a small key that appears after import, aside the page name, but I think this only due to the user template attached.- 1 reply
-
- 1
-
Thank you adrian! I didn't know about Batch Child Editor API ability, but I will give a try to phpexcel because it seems to fullfills my need.
-
I'm using the following code to generate a csv file (originally taken from a Soma post - thank you! ) and than improved to be read directly from Excel. $array = $items->explode(function($item){ return array( 'user_cardnumber' => $item->user_cardnumber, 'course_type' => $item->course_type->title, 'user_name' => $item->user_name, 'user_surname' => $item->user_surname, 'user_address' => $item->user_address, 'user_zip' => $item->user_zip, 'user_city' => $item->user_city, 'user_email' => $item->user_email ); }); $filepath = "../assets/files/csv/".$itemrichiesta->id.".csv"; $fp = fopen($filepath, 'w'); fprintf($fp, chr(0xEF).chr(0xBB).chr(0xBF));//fix utf-8 encoding for excel foreach ($array as $fields) fputcsv($fp, $fields, ';', ' '); fclose($fp); I would like to add header labels for each field and other additional data at the bottom of the csv file. I'm really new to this and I need help to understand a possible way to follow. I tried with the code below to add some additional info at the bottom of the csv file, but my array knoledge is very limited and I'm not sure what I'm doing wrong. Thank you! $array = $items->explode(function($item){ return array( 'user_cardnumber' => $item->user_cardnumber, 'course_type' => $item->course_type->title, 'user_name' => $item->user_name, 'user_surname' => $item->user_surname, 'user_address' => $item->user_address, 'user_zip' => $item->user_zip, 'user_city' => $item->user_city, 'user_email' => $item->user_email ); }); $array_add = array( 'user_cardnumber' => $user->user_name, 'course_type' => $user->user_surname, 'user_name' => "", 'user_surname' => $user->user_cardnumber, 'user_address' => "", 'user_zip' => "", 'user_city' => "", 'user_email' => "" ); $array = array_push($array, $array_add); $filepath = "../assets/files/csv/".$itemrichiesta->id.".csv"; $fp = fopen($filepath, 'w'); fprintf($fp, chr(0xEF).chr(0xBB).chr(0xBF));//fix utf-8 encoding for excel foreach ($array as $fields) fputcsv($fp, $fields, ';', ' '); fclose($fp);
-
I can't edit multilanguage code internationalization online
manlio replied to manlio's topic in Multi-Language Support
Hi Ryan, sorry for late reply but I'm overwhelmed by work during these days. I have copied the online DB on my local installation and apparently now seems to work like expected. The translation files were like this { "file": "site\/templates\/footer.inc", "textdomain": "site--templates--footer-inc", "translations": { "07ff124762cd9515484510b0f5d1c231": { "text": "Hello" }, "aea9a2d9c308f1d9202144beff707244": { "text": "Contacts" }, "0ece81856ca39d612fd74576435cb894": { "text": "Company location" }, "8c449a82a3d729e4b52f74e417f6d63c": { "text": "Bye" } } } and I simply changed them to this (I changed only the first line) { "file": "site//templates//footer.inc", "textdomain": "site--templates--footer-inc", "translations": { "07ff124762cd9515484510b0f5d1c231": { "text": "XXXXYYYYY" }, "aea9a2d9c308f1d9202144beff707244": { "text": "Contacts" }, "0ece81856ca39d612fd74576435cb894": { "text": "Company location" }, "8c449a82a3d729e4b52f74e417f6d63c": { "text": "XXXXX" } } } After I copied the remote DB to Local installation, it seems to work properly. I will make more test as soon I have some time. Thank you. -
I can't edit multilanguage code internationalization online
manlio replied to manlio's topic in Multi-Language Support
I can live with this, but would be good to work with same files, because a lot of times I need to develop and test new contents locally and it is not comfortable renaming all the paths. Thank you -
I can't edit multilanguage code internationalization online
manlio replied to manlio's topic in Multi-Language Support
I'm sorry to resume this post, but thanks to mr-fan I was able to fix the problem, but now I would like to know what to change or search in my php local settings to change this behaviour that writes path like "file": "site\/templates\/blog-side-bar.inc" instead of what is used on my webservers "file": "site\\templates\\blog-side-bar.inc". I'm using wamp and php version is 5.5.12 Thank you -
I can't edit multilanguage code internationalization online
manlio replied to manlio's topic in Multi-Language Support
Thank you mr-fan. Unluckily local version is 5.5.12 and online version is 5.5.24 -
I can't edit multilanguage code internationalization online
manlio replied to manlio's topic in Multi-Language Support
Sorry for late reply, but I forgot to follow this topic and was waiting email notification... I also noticed this, but I don't know how to change or fix this problem. Locally I work on windows 8.1 with wamp server and in fact the same problem happens on two different unix websites. As an additional notice both websites works correctly, only that admin screen is not working properly. Thank you. -
Hi I have a multilanguage website with code internationalization that I can manage easily on localhost, but when I put online I'm not able to edit files and I receive the attached error. The only way it works is to modify files locally and upload json files directly. Anyone knows how to fix this? Thank you.
-
Sorry my bad!! And please, forget recompile Thanks for taking time although my previous bad reply. I try to explain better what is happening. At the end of a course, an instructor insert data for all his students (stored as pages in PW) and when finished, he clicks "submit card request" . The request is sent to the secretary (p.e. an email that contains all student data info ) that can produce physical certification cards for every students. My question is how to manage the incremental numbering of the requests for every instructor. For example if I'm an instructor and I've just completed my 4th course with 25 students, I insert 25 students data and then I send the request. I would like to show something like: "request n° 4".. Sometimes happens that some instructor send a wrong certification card request and I need to delete that. Than I ask the instructor to redo the request with correct data and would like that the request counter would be something progressive like 1,2,3,4,5... and not like 1,2,4,5... I was thinking that if I store request counter value inside every student data page/record, if I delete a request I have to reset request counter on all student data by hand (or with lister or API). Maybe in this case the tree could be an advantage? if I have the request number as a parent it is easier to change it. 1 //request number > student data 1 > student data 2 > student data 3 3 //I need to change only this to 2 > student data 1 > student data 2 Hope it is little more clear. Thank you again.