Posts by bj.lewis221

    The issue seams to happen when I click on the 'dashboard' button line 44 in the second set of code.

    When I log into member A's profile member A's loads to dashboard/index.php with member A's info but then I click the 'dashboard' button it loads dashboard/index.php with member B's info.

    THEN I refresh and it shows Member A's info again, and it just goes in that loop over and over

    this is happening on incognito and on a computer/network that has never logged into any other profile but member A.

    oh code!
    my members area folder is 'dashboard'

    this is my dashboard/index.php

    this is the global.sidebar

    Ah! Beautiful! Thank you, it didn't even cross my mind!

    Here is what I did, if anyone else runs into this.

    It is still outputting the full name.

    This is in the templates/members/members.html file

    1. <perch:members type="text" id="first_name" label="First name" listing="true" order="1"/>
    2. <perch:members type="text" id="last_name" label="Last name" listing="true" order="2" />
    3. <perch:members type="text" id="header" label="Header Image Path" />
    4. <perch:members type="text" id="profile_picture" label="Profile Picture"/>
    5. <perch:members type="text" id="first_name" format="C:1">

    I'm trying to output it in the sidebar with perch_members_get()

    I still need to store and output the full first name

    1. echo '<img src="';
    2. perch_content_custom('Brand Colors', [
    3. 'page'=>'/brand-assets.php',
    4. 'template' => 'color.html',
    5. 'sort' => 'color',
    6. 'sort-order' => 'RAND',
    7. 'count'=>1
    8. ]);
    9. echo'/fff.jpg&text=' . perch_member_get('first_name') . '" width="100%" class="circle_img" alt="">';

    I want to use the first_name members tag again to reformat it to just show their first initial, so I figured using the composite fieldtype would do this, but it seems to ignore the format attribute.

    Is there a better way to do this or can I add the format attribute to the composite fieldtype

    1. <perch:members type="text" id="first_name" label="First Name" listing="true" order="1"/>
    2. <perch:members type="composite" id="fullname" for="first_name" format="C:1"/>

    I figured it out! But I will put this here incase anyone else ever needs it answered

    1. <perch:input type="hidden" id="commentName" value="<perch:member id="first_name"/> <perch:member id="last_name"/>" />
    2. <perch:input type="hidden" id="commentEmail" value="<perch:member id="email"/>"/>

    Running into an issue where it will only filter by the default tags and not custom ones this message pops up in the debug

    1. Invalid query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'companyID' in 'where clause'

    Does this mean it will only filter columns that aren't in the dynamic content field?

    that <perch:showall> is NICE! Thank you! so the template was using <perch:sample> and that worked with it as is, but with your $filtered_things code the namespace was <perch:content> and now it works! Will this cause any issues down the road?

    Also THANK YOU! how can I send you some cookies?

    So I reverted back to clean my_sample files to try and locate the issue and tried to rework with your above code. And it does return items it just returns them empty.


    1. SELECT main.* FROM perch3_my_sample_things main WHERE 1=1 ORDER BY thingDateTime ASC
    2. [3] Using template: /addons/apps/my_sample/templates/listing.html

    Ok I fixed all those errors but It's still not returning anything.


    1. ------------------------------ Start ------------------------------
    2. [2] SELECT SQL_CALC_FOUND_ROWS DISTINCT main.* FROM perch3_my_sample_things main WHERE 1=1 ORDER BY thingDateTime ASC LIMIT 0, 2
    3. [3] SELECT FOUND_ROWS() AS `count`
    4. [2] Using template: /addons/apps/my_sample/templates/listing.html
    5. ------------------------------ End ------------------------------
    6. [0] Using template: /addons/apps/my_sample/templates/sample/listing.html

    Current runtime.php

    This is the messages that comes out

    and when I change to

    the debug message returns this

    1. Array
    2. ( [type] => 8 [message] => Use of undefined constant my_sample - assumed 'my_sample' [file] => /home1/twoperc6/public_html/login/config/apps.php [line] => 2
    3. )