Retrieving Email Address For Integration with CF7 | General Discussion | Support Forum

A A A

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Retrieving Email Address For Integration with CF7
September 9, 2016
12:37 am
Derek Bringewatt
Member
Members
Forum Posts: 4
Member Since:
September 8, 2016
sp_UserOfflineSmall Offline

I was curious to know if it was possible to call the email address associated with the ad placed? I am trying to integrate with Contact From 7 and would like to dynamically enter the email of the ad owner into the form. I can add a extra profile field in the users account, however i am unsure if this email would be passed along with the ad given the fact each AWPCP ad is not a post so they technically are not the author. Anybody have any ideas?

 

Thanks

September 10, 2016
12:39 pm
Derek Bringewatt
Member
Members
Forum Posts: 4
Member Since:
September 8, 2016
sp_UserOfflineSmall Offline

I have come a little ways, however I was wondering if anyone could help out with the last little bit of coding. Not quite that experienced yet. I can pass the Extra profile field I made ( from the users profile area ), through the url and have the form pull the address from the url. However for the life of me, i cannot figure out how to use the awpcp-listing-url function. after adding what I thought would work, it displays all over the ads instead of in the url. So I guess what i am asking is if anyone could help get the authors email, or the extra profile field email in the url so CF7 can pick it out and use it?

 

Thanks

September 11, 2016
6:28 am
AWPCP Support
Moderator
Members

Moderators
Forum Posts: 5202
Member Since:
September 4, 2013
sp_UserOfflineSmall Offline

Hi Derek Bringewatt,

Here is an article that describes the general layout of the AWPCP folders and files. You could check this and hopefully it could help you with what you are trying to achieve http://awpcp.com/documentation.....ion-guide/

September 11, 2016
8:55 pm
Derek Bringewatt
Member
Members
Forum Posts: 4
Member Since:
September 8, 2016
sp_UserOfflineSmall Offline

AWPCP Support,

 

Thanks for pointing me in the right direction. I have it to the point where I feel like I am missing something oblivious. I need the email of the person that posted the ad in the URL following ?context=(ad-listers-email). Using the edit url filter I was able to get that far however I can only get the email of the user browsing the ad. Here is the code I am using:

function cf7email( $url, $listing ) {
$url= $url . '?context='.urlencode(get_the_author_meta( 'user_email' )) .' ';
return $url;
}

add_filter( 'awpcp-listing-url', 'cf7email', 10, 2 );

 

Any Ideas on where I might be off alittle bit?

 

Thanks for your time,

Derek

September 13, 2016
4:49 am
AWPCP Support
Moderator
Members

Moderators
Forum Posts: 5202
Member Since:
September 4, 2013
sp_UserOfflineSmall Offline

Hi Derek Bringewatt,

Providing you the customization article is as far as we could go when it comes to customization like this one. Maybe there are other users that did something like this before. Let us wait for them to respond.

September 14, 2016
2:08 pm
Derek Bringewatt
Member
Members
Forum Posts: 4
Member Since:
September 8, 2016
sp_UserOfflineSmall Offline

Ok thank you.  So let me ask you this,  does the extra fields module allow for a field to be returned in the URL? Ex. - have a extra field in the place ad page and have that field returned in the URL of the show ad page?

Thanks

September 14, 2016
5:37 pm
AWPCP Support
Moderator
Members

Moderators
Forum Posts: 5202
Member Since:
September 4, 2013
sp_UserOfflineSmall Offline

Hi Derek Bringewatt,

This is not possible as extra fields doesn't go to the URL at all. 

Forum Timezone: America/Denver

Most Users Ever Online: 163

Currently Online:
22 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Johnny B: 140

godie: 120

kerdezo: 99

laburke: 94

NAIN KHAN: 93

salvig67: 84

rude: 72

purplepaula: 72

WAYTOBAYWTB52: 71

gery: 71

Member Stats:

Guest Posters: 31

Members: 37864

Moderators: 2

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 6942

Posts: 30939

Newest Members:

Karin Bandarq, ubugitof, digi, Patty, pirin, tennillle, caramenggugurkanjanin, siyanda, Biruqq, Jheyson

Moderators: awpcp: 7530, AWPCP Support: 5202

Administrators: wpengine: 0, awpcp: 298

Skip to toolbar