Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - darbdenral

2
Suggestions / image resize
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

Hope this helps someone .
4
Issues / Role Based Mult Dashboard
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.
5
Questions / Re: Problem with Modal running Php code before display
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.
7
Questions / Problem with Modal running Php code before display
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..

Is this normal?

Any suggestions welcome..

thanks!
8
Questions / Re: Inline Edit
 I just created the table and views again and now it works.  I'm not sure what did it, but it works now just fine. 

Thank you for the help..
9
Questions / Re: Inline Edit
@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.
10
Questions / Re: Inline Edit
In chrome console I can find these errors ..

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)
11
Questions / Inline Edit
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've emptied cache and hard reload too

Any ideas welcome..
12
Bugs / Validator method 'validate_alpha_num' does not exist.
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..


14
Bugs / PhpRad Inline Edit Field Control Position
I believe I found a bug..

Goto the inline edit group of any field properties
Inline Edit -->  True
Use PopoverDisplay  --> True
Placement -->  Top

When setting the popup to display on the top position it will display on the bottom position.


15
Issues / How to delete duplicate ListView
Using PhpRad Studio Classic, specifically the page designer I have a strange problem.

I copied the listview for the table to another tree node rather than moving it.. and now I have two listviews.

The software does not allow me to delete either one, the delete button is not enabled for the items.

For now I just set IncludePage to False to hide.