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 - Bill Kay

1
General Discussion / Re: PHPRAD still exist or dying ?
I am unclear as to what the version differences actually are.  Is there an advantage to using one or the other?
(I've just downloaded 2.5.8, but will wait to hear from others as to it's bug fixes)
3
Issues / Re: date picker
I've found trying to use it in preview tab doesn't work.
Seems to only work when launching in a full-blown browser.
6
Bugs / Re: roles break after adding a new table
Confirmed (in another thread), roles are breaking in 2.5.7.  I believe it has something to do with copying a page. 
Roles seem to break after that point.
7
Issues / Re: Error Handler - Adding New Duplicate Records
I see Roles and Users as two menu items in your application. Have you created a separate table for Roles? Are you providing dynamic role creation? How you achieved that with PHPRad?
If memory serves, originally in v2.5.5 I had those two menu entries automatically appear on my ADMIN login.  Now as I rebuild in v2.5.7 my ADMIN user does NOT have those features shown.  (There was a web-based user management system that seem to be system generated), now as I rebuild, there is nothing.  If there is a trick to get this to generate again, please advise!
8
General Discussion / Re: Problems with User Authentication...
In fact, now that I've played with it some more... After adding a "DataEntry" role... after the exception error (and exiting and reloading the project), the role is now missing... (it was saved prior to the crash)... See screenshot attached...
9
General Discussion / Dynamic Text?
How to add some data driven text to a page?

I'd like to include the users NAME or a linked (users COMPANY_NAME (from a linked table) as a text item on a page.

I hope there is a simple answer to this...

If not...  Could there be a "TextData" component in the "Pages, Components & Widgets" panel added?

Allowing the insertion of some data driven text into a page? (See my screenshots)


Thank you for any help!
Bill
10
General Discussion / Re: Problems with User Authentication...
I have the same things happening.  I just spent several hours rebuilding all my pages up from v2.5.5 to v2.5.7, and just started to implement the Roles Management, and same thing.  Now the second time I enter Roles management I get an exception error.
(same as in v2.5.5)  I thought this was fixed.  :o
11
Questions / Data access by users company, rather than by userid?
I currently have a number of users, many of which belong to the same company.  Using User Records Management it seems that I can filter records to display based only on the USER that created the record.

Id like to filter based on the users COMPANY that entered the data (I have a separate table that connects users to a "company" table, where all company information is stored).  This way all users OF THAT COMPANY can see the data ONLY IN THAT COMPANY.   Users from other companies, cannot see records from companies other than their own.

I can then further restrict access by way of roles and permissions, as to edit/delete etc information.

(Chart below).

How can this be accomplished?  or am I missing something?

Thank you!!
12
Questions / Re: Number Formatting/Validation functions?
Here is the code provided in the gump.php file, distributed with PHPRad.  How do I access this for VALIDATION of an input field?

Surely there must be a way to use this function (and others inside gump.php)! :)

Code: [Select]
/**
     * Determine if the provided value is a valid phone number.
     *
     * Usage: '<index>' => 'phone_number'
     *
     * @param string $field
     * @param array  $input
     *
     * @return mixed
     *
     * Examples:
     *
     *  555-555-5555: valid
     *  5555425555: valid
     *  555 555 5555: valid
     *  1(519) 555-4444: valid
     *  1 (519) 555-4422: valid
     *  1-555-555-5555: valid
     *  1-(555)-555-5555: valid
     */
    protected function validate_phone_number($field, $input, $param = null)
    {
        if (!isset($input[$field]) || empty($input[$field])) {
            return;
        }

        $regex = '/^(\d[\s-]?)?[\(\[\s-]{0,2}?\d{3}[\)\]\s-]{0,2}?\d{3}[\s-]?\d{4}$/i';
        if (!preg_match($regex, $input[$field])) {
            return array(
              'field' => $field,
              'value' => $input[$field],
              'rule' => __FUNCTION__,
              'param' => $param,
            );
        }
    }
13
Questions / Validation functions?
Where have these been added?

I'm looking to Validate field input:
1) Telephone numbers, i.e. (###)###-#### in an input box
2) Currency - i.e. user enters 1200, is formatted an displayed as $1,200.00

Can someone explain how/where to do this?

Thanks,
Bill
15
Bugs / Re: roles break after adding a new table
I believe this also happened to me.  It was reported, and I believe was supposed to be fixed by v2.5.7 (which I have not tested yet).

What version are you running?