I'm not sure the current resize methods (contain and crop) are really doing anything in PhpRad right now to help. I spent quite a while looking at this tonight and finally just edited the timthumb.php file to get a proper result.
The reason was, many of my images were pretty much resized without displaying the entire image, rendering them not usable.
At any rate this worked for me.
Edit timthumb.php file Line 56 Change the ZC scaling options number to the one that best fits your needs.. 3 works for me.
Here are the options for Proportional Image Scaling
0 Resize to Fit specified dimensions (no cropping) 1 Crop and resize to best fit the dimensions (default) 2 Resize proportionally to fit entire image into specified dimensions, and add borders if required 3 Resize proportionally adjusting size of scaled image so there are no borders gaps
I have had an issue with my role based dashboards I designed not displaying. So I looked at the HomeController.php file and the function index() is using the USER_ROLE to load the proper dashboard. But it's not writing the role_id integer field but is writing the role_name field.
This is what phprad is writing to the file if(strtolower(USER_ROLE) == 'user')
but it should be if(strtolower(USER_ROLE) == 2)
If I display the USER_ROLE variable on the dashboard, it's showing the number 2 as expected.
I was trying to avoid using a custom view but decided to go ahead and do it that way and it worked.
It would be nice to have the ability to link php or javascript code to a button event without sidestepping the design interface.
So, like drag a button in the design interface and then add the onlclick action code.. Also adding an ID to the button may be beneficial too for jquery,javascript etc.
Exactly, but I would have thought the code would not run until after the button is clicked and the modal is displayed not when the main view page loads..
I have a Modal control on a view record page.. So the button is located at the top of the record.
On the page design, I've attached a custom view under the button. My hope was to run the code in the custom view when the button is clicked. But the code is running whenever the record view page is loaded..
@willvin that didn't work.. Is it possible this is because the table is a joined table? Because I have other tables in the project that still work fine but the two tables that don't are now joined.
Failed to load resource: the server responded with a status of 501 (No record updated) TypeError: Cannot read property 'requestContent' of undefined
VM67:1 Uncaught SyntaxError: Unexpected token N in JSON at position 0 at JSON.parse (<anonymous>) at EditableForm.error (VM60 bootstrap-editable.js:188) at EditableForm.<anonymous> (VM60 bootstrap-editable.js:299) at Object.i (VM52 jquery-3.3.1.min.js:2) at u (VM52 jquery-3.3.1.min.js:2) at Object.fireWith [as rejectWith] (VM52 jquery-3.3.1.min.js:2) at c (VM52 jquery-3.3.1.min.js:2)
What could cause the inline edit to just show a spinning icon and not finish update?
Somehow, the inline edit is not working at all. The fields are enabled for inline edit, control types are adjusted for field types correctly but not working now. The fields did work before, now they no longer are working. I've tried changing themes but it did not make a difference.
I was trying to use the validation type alpha_num which I selected from the available choices.
When submitting the form, I receive a server error 500 that says Validator method 'validate_alpha_num' does not exist. file error from location: \libs\GUMP.php On Line 456
So, looking at that file, I found that the library has a method called alpha_numeric ... so I changed the field to alpha_numeric and it now works..