Forum Replies Created
-
AuthorPosts
-
hoaonline1
ParticipantI am not sure what that means. I coded this by hand, so no, I did not use a page builder. The page is just a page with the shortcode included. The construct for the shortcode looks like this:
add_shortcode(‘hoadir’, ‘hoamembershipdirectory’);
with the shortcode being what I posted before as a function called
function hoamembershipdirectory(){
//all the code that I shared above here
}hoaonline1
ParticipantHere is what I am thinking. The shortcode is pretty simple, it goes like this.
<?php
global $wpdb;$table_name = $wpdb->prefix.”swpm_members_tbl”;
?>
<div class=”wrap”>
<table class=”widefat”>
<thead>
<tr>
<td>Name</td>
<td>Address</td>
<td>Phone</td>
<td>Email</td>
</tr>
</thead>
<tfoot>
<tr>
<td>Name</td>
<td>Address</td>
<td>Phone</td>
<td>Email</td>
</tr>
</tfoot>
<tbody>
<?php$result = $wpdb->get_results(
”
SELECT last_name, first_name, address_street, phone, email
FROM $table_name
ORDER BY last_name
”
);foreach($result as $row) {
$member_id = $row->member_id;
$last_name = strtolower($row->last_name);
$last_name = ucfirst($last_name);
$first_name = strtolower($row->first_name);
$first_name = ucfirst($first_name);
$address_street = strtoupper($row->address_street);
$phone = $row->phone;
$email = $row->email;echo “<tr>\n”;
echo ” <td>”.$last_name.”, “.$first_name.”</td>\n”;
echo ” <td>”.$address_street.”</td>\n”;
echo ” <td>”.$phone.”</td>\n”;
echo ” <td>”.$email.”</td>\n”;
echo “</tr>\n”;
}
?>
</tbody>
</table>
</div>
<?php
}
?>What’s happening is that there are over 500 records to pull to generate this list. So, does the Simple Membership Plugin timeout because the MySQL request is too long? I see the message at the bottom of the screen that says you must be logged in to view this content, but the content is displayed on the page before the message.
hoaonline1
ParticipantIf I do that, then the page will be protected. It seems to have an issue with this one particular shortcode.
hoaonline1
ParticipantYes, I had already tried that. The content is quite simple, it is just a shortcode to another plugin. Still, the page will not accept the protection.
hoaonline1
ParticipantTried on multiple browsers at multiple locations (office, home, cellphone). Still not protecting page. Cleared caches. Did not work. Looked for cache clearing plugin. Do you have any recommendations?
hoaonline1
ParticipantUpgraded script for MailChimp. Enabled Form Builder. Did not work.
hoaonline1
ParticipantYes, although the names were different.
What I did is create a free membership level titled, Residents.
Then I enabled the Free Membership feature.What I found out is that if I use the FormBuilder, it does not communicate with MailChimp.
If I use the form that comes with the Simple Membership, then I get the integration with MailChimp.
Ideally, I need to collect addresses, phone numbers and first names. That is why I purchased the FormBuilder.
I also need to be able to eblast residents.
Do you have a solution that combines FormBuilder with MailChimp integration?
hoaonline1
ParticipantRead the instructions. Did not work for me. Any suggestions?
-
AuthorPosts