Ask your WordPress questions! Pay money and get answers fast! (more info)

Add restrictions with PMPRO to my current theme.. WordPress

  • SOLVED

Hi,

Since my other questions wasn't solved. I suppose I'll try another instead of refund. Need some help http://www.paidmembershipspro.com/ to add certain restrictions in my current theme. Anyone that have time to help out with that?

Answers (5)

2014-09-26

timDesain Nanang answers:

I have finished this job (PMPRO).
Thank you.

2014-08-30

Remy answers:

Which plugin is it ?


Veritus comments:

The name is Advanced Google Maps Plugin


Remy comments:

You can use this filter to add more fields to the output :


add_filter("wpgmp_listing_html","wpgmp_listing_html",1,4);

function wpgmp_listing_html($output,$variables,$post_id,$map_id)
{

$custom_fields=get_post_meta($post_id);

if ( isset( $custom_fields['website'] && !empty( $custom_fields['website'] ) ) {
$output =$output." Website: ".$custom_fields["website"];
}

return $output;
}



You need to repeat the if part for each custom field you want to add.

On the admin you need to add the corresponding custom fields for each location.


Veritus comments:

Hi Remy,

That code doesn't work..


Remy comments:

What's the name of your custom fields in the admin ? Try without the if statement to see if it displays something :

add_filter("wpgmp_listing_html","wpgmp_listing_html",1,4);
function wpgmp_listing_html($output,$variables,$post_id,$map_id)
{
$custom_fields=get_post_meta($post_id);
$output =$output.' Website: '.$custom_fields['website'];
return $output;
}


Veritus comments:

This is only for output, I want a additional field in there so i can fill out.. but I'll try this and see what happens..


Veritus comments:

Here the lite version of the plugin: http://wordpress.org/plugins/wp-google-map-plugin/


Remy comments:

Hooks aren't available in the lite version, so can't test it.

Looking at the lite version, there is no way to change the form to add locations in the admin without modifying the plugin's code, which'll make it not upgradable.


Veritus comments:

Yes, is a quite complicated issue.. I'm talking with the author about this, lets wait and see what he says about this..I don't understand why he only a have made message field. Otherwise you must use html tags to phone,email,website for each post and that sucks..


Remy comments:

He should add a hook to add fields in the admin "add locations" form, it would make sense since he already have one for the output


Veritus comments:

Exactly..


Veritus comments:

Remy, I have changed the question. Can you please help on this instead..


Remy comments:

Hi Felipe,

I'd love to help, but I have no experience with BuddyPress. I'm sorry

2014-08-30

Arnav Joy answers:

Which plugin are you using?


Veritus comments:

The name is Advanced Google Maps Plugin


Veritus comments:

Here is the lite version of the plugin and I want more fields so i can fill out, such as phone, website,email: http://wordpress.org/plugins/wp-google-map-plugin/

2014-09-11

Bob answers:

Hi,

This might be helpful to you

Using this plugin use can add/embed videos [[LINK href="http://wordpress.org/plugins/buddypress-activity-plus/"]]http://wordpress.org/plugins/buddypress-activity-plus/[[/LINK]]

And then this plugin will add videos tabs for users [[LINK href="http://wordpress.org/plugins/ls-buddypress-activity-plus-tabs-extension/"]]http://wordpress.org/plugins/ls-buddypress-activity-plus-tabs-extension/[[/LINK]]

Hope It may become helpful to you.


Veritus comments:

Look interesting Bob, may changing the code a bit could work to that I want. I'll check this out!


Bob comments:

Okay.

2014-09-25

Navjot Singh answers:

I suggest you cancel this question and post a new one if you have a problem. Don't try to sort out all queries here. Its confusing and won't get proper responses.