-
Posts
1,560 -
Joined
-
Last visited
-
Days Won
49
Everything posted by gebeer
-
I think it is better to handle incorrect data inputs with proper form validation. To me your plugin is very confusing, too. Maybe you can have a placeholder text instead that shows the expected input format.
-
This is a nice looking, clear design. I don't miss borders around the form fields or focus styles at all. But this depends on personal preference, I guess. The light grey type renders clean on Linux Chrome and FF But to me it could need a little more contrast. Personally, I hate long forms like this. Maybe you want to split it up and make it a multi page form. Your idea of breaking the form into a wizard would help in keeping it shorter. From my own experience it is easier to obtain the info that you want to collect through your form in a personal chat with the client. A long form like yours would drive me away. So you might want to consider asking less questions and trying to put the focus more on convincing the clients to give you their contact details. Then you can call them and talk about all that other stuff.
-
Hello bowenac and welcome to the forum! The standard editor is CKEditor which is widely used on the net and has many configuration options. There is an extesive thread about it: https://processwire.com/talk/topic/3023-module-ckeditor/ If you don't like it, you can also go and install TinyMCE or the very lightweight Trumbowyg. When I did my first site with PW, it was quite challenging. But it was well worth to spend the time learning it. I wouldn't want to miss it and develop all new sites with PW now. You find tons of help and info in this board, in the docs section and the API Cheat Sheet can be particularly helpful. It is also useful to take a look at the different site profiles that come with PW 2.5. You can learn a lot about how things are working. Have fun with PW!
-
Name format for children based on any field (not just title)
gebeer replied to Lars282's topic in General Support
For the concatenating part you can have a look at module FieldtypeConcatenate. -
Integrating a member / visitor login form
gebeer replied to thetuningspoon's topic in General Support
I'm in Thailand where it was 9 in the morning when 3 in the morning in Berlin. At 3am I was sound asleep -
Integrating a member / visitor login form
gebeer replied to thetuningspoon's topic in General Support
When you create a user through the admin or through the API, it always gets assigned the guest role along with the custom roles that you assign. So if you assign a custom role "user", your user will have 2 roles: guest and user. Now you can check if a user has the role "user" and a total of 2 roles assigned. In PHP: if (count($user->roles) == 2 && $user->hasRole("user")) { //do stuff here } -
My profile is based on Ryan's Foundation 4 profile. So I already did all the hard work of updating classes etc. to fit Foundation 5. If you are going to use my profile, please be aware that it uses SASS/SCSS. If you are not familiar with that it might take a little more effort to understand how things are working in the beginning.
-
Notice: Undefined index: searchFields after update to 2.5 dev
gebeer replied to gebeer's topic in General Support
My post about that might be a little confusing. I do not get any error messages when I set debug to false. I was referring to the system messages from my screenshot in post #3 that are persistent. Sorry if this has caused you additional work.- 12 replies
-
- Undefined index
- searchFields
-
(and 2 more)
Tagged with:
-
Notice: Undefined index: searchFields after update to 2.5 dev
gebeer replied to gebeer's topic in General Support
So this is overwriting the php.ini settings then, I guess. Good to know I don't have to fiddle with php.ini settings- 12 replies
-
- Undefined index
- searchFields
-
(and 2 more)
Tagged with:
-
Notice: Undefined index: searchFields after update to 2.5 dev
gebeer replied to gebeer's topic in General Support
OK, I see. But what worries me more is the system messages (screenshot in post #3) that are persistent no matter whether I set debug to true or false.- 12 replies
-
- Undefined index
- searchFields
-
(and 2 more)
Tagged with:
-
Notice: Undefined index: searchFields after update to 2.5 dev
gebeer replied to gebeer's topic in General Support
Thank you Raymond. Will update soon to the latest dev branch and try again. About those SysUp messages, they are even there when I switch $config->debug to false.- 12 replies
-
- Undefined index
- searchFields
-
(and 2 more)
Tagged with:
-
If I understand you right, you are looking for a field type that can store values in multiple rows. Have a look at the Inputfieldtype Events. This stores multiple values as rows in it's own DB table which makes searching really fast. I'm using an altered version to store thousands of timestamps with a page and searching them is really performant.
-
Notice: Undefined index: searchFields after update to 2.5 dev
gebeer replied to gebeer's topic in General Support
Thank you. This helped partially. But it is only a temporary fix because with the next upgrade it will be overridden. I would consider this a bug. Now when I login, I can see the admin but all update messages are persistent When I click them away, they always reappear on the next page load. When I try and edit a page I get a notice but can edit the page. That line says $limit = $pageListConfig['limit']; So things seem a bit messy overall after the upgrade and I would really like to be able to fix this.- 12 replies
-
- Undefined index
- searchFields
-
(and 2 more)
Tagged with:
-
Hi, I upgraded a site in development from 2.5 stable to 2.5.7 dev by copying /wire/, index.php and .htaccess over. After the upgrade, I get a notice on frontend and before login to the admin, when $config->debug = true After login there is no admin page visible, only debug info. I can see in the Variables on local scope that $admin returns a nullpage. When I switch debug to false, I can see and use the admin. Couldn't find anything related here in the forum. Any pointers how I can fix this? Thank you.
- 12 replies
-
- Undefined index
- searchFields
-
(and 2 more)
Tagged with:
-
Does anyone know when OR condition s will be available?I' be willing to donate towards developmentin near future.
-
Doing it server side has the advantage that only the code you need for mobile clients will be served which can save quite some kB. If I understand response.js right, first the whole DOM needs to be loaded before response.js can swap things around or deactivate them. If you do things server side, on mobile devices you don't output elements you need for the desktop and vice versa. There is a module for minimizing images. Or you can use image compression tools. A good overview here. I have used ImageOptim on the Mac and Trimage on Linux. Both work well and can help saving bandwidth. Don't know about Windows tools. But some of them use the same libraries, I think.
-
First tests on a shared host (uberspace.de) reveal nothing good for only 1000 requests and 100 at a time and searching only through 10 pages. Running ApacheBench on the same server that my app is on. Concurrency Level: 100 Time taken for tests: 10.772 seconds Complete requests: 1000 Failed requests: 20 (Connect: 0, Receive: 0, Length: 20, Exceptions: 0) Write errors: 0 Total transferred: 1321560 bytes HTML transferred: 1144560 bytes Requests per second: 92.84 [#/sec] (mean) Time per request: 1077.164 [ms] (mean) Time per request: 10.772 [ms] (mean, across all concurrent requests) Transfer rate: 119.81 [Kbytes/sec] received Now comes the hard part: improving my code
- 4 replies
-
- Performance
- test
-
(and 1 more)
Tagged with:
-
Thanks for the tip with ApacheBench. This works pretty straight forward.
- 4 replies
-
- Performance
- test
-
(and 1 more)
Tagged with:
-
There is this fairly new module for mobile detection. It might come in handy for your situation because you can output just the code you need for the mobile clients. Doing this with response.js is putting additional load to the mobile client which might have an impact on overall performance. Plus you need to load response.js. Might be worth taking a look at doing this server side.
-
Hello, I'm in the process of building a web application with PW that delivers data to mobile clients. There will be up to 1000 requests per minute to my webapp (later maybe more). Every request triggers a search through up to 1000 pages and compares timestamps that are sent by the mobile clients with the request to timestamps that are saved with each page that is being searched. The timestamps are saved in PW in their own table in the DB together with a page reference id which makes searching pretty fast. For my search I use: $ads = $pages->find("template=advertisement, ad_server=$serverID, ad_publish_at.date<$tsHigh, ad_publish_at.date>$tsLow"); I want to do some load testing for my webapp to ensure it can handle that many requests per minute and further optimize it. What I need is a testing framework that lets me simulate hundreds of requests/minute. Have you ever done this and what testing framework would you use? Here are some apps that I briefly took a look at: http://jmeter.apache.org/ http://www.pylot.org/ https://code.google.com/p/httperf/ https://github.com/JoeDog/siege
- 4 replies
-
- Performance
- test
-
(and 1 more)
Tagged with:
-
ProcessPageEditImageSelect - hook and change default $page
gebeer replied to mr-fan's topic in Modules/Plugins
@adrian I was able to solve my problem without the need for a module. See also my post in the other thread. Cheers Gerhard -
Bingo My assumption from my previous post was right. The PWimage plugin needs a hidden text input field with the value set to the page id of the page that you want to grab images from. I added a hidden input field to my form with $imgPageID = $pages->get("template=media, created_users_id=$uID")->id; $field = $modules->get("InputfieldText"); $field->label = " "; $field->attr("id+name","Inputfield_id"); $field->attr("value",$imgPageID); $field->attr("type","hidden"); $adform->append($field); Now I can choose images from the user's images page And there is no custom module with hook to ProcessPageEditImageSelect required. EDIT: This only works for PW 2.5. For 2.6.x some adjustments are needed. You'll find more info here
- 5 replies
-
- 7
-
-
- PWimage plugin
- frontend
-
(and 2 more)
Tagged with:
-
ProcessPageEditImageSelect - hook and change default $page
gebeer replied to mr-fan's topic in Modules/Plugins
Thanks a ton, adrian! I meanwhile discovered why I get an error with PWimage plugin in a frontend form and am currently looking into solving it. It looks like I might be able solve 2 problems together. I'll report back in my other thread. Cheers Gerhard