PDA

View Full Version : Email listings to friends: bad link url


jlynds
09-30-2010, 03:45 PM
I have been playing with the email features of wp-realty and I have ran into a few issues:

1. When I test the "Email this listing to a friend", the link inserted into the body is not correct. The url for a listing in this example is:

http://www.domain.ca/search-listings/all-listings/listing-59-18-piccadilly-stillwater-lake-ns/

The url provided in the body of the email is:

http://www.domain.ca//index.php?action=listingview&listingID=13

Note the double fwd slashes after the domain name in the auto generated url in the email.

I do not yet have a page with {wp-realty index}.....is this the cause?

2. Upon sending off an email I would get undefined index errors in contact.inc.php siting the use photo verification and another for tracking the senders IP....these are set in my site config to "no" for do not use. I simply deleted the code from contact.inc.php and that took care of the problem...but not the solution I wanted.

Any pointers?

J

jlynds
10-04-2010, 03:23 PM
Still need some input here...

If I click the url it takes me to my home page...as if it does not know how to display the listing. What am I missing?

jlynds
10-04-2010, 04:05 PM
I see that I am missing /realestate/ that is used in many of the examples and this explains the dbl fwd slashes in the url "//". So, I need to set my permalinks?....I feel really stupid at the moment...not sure why this matters

I need someone to dumb this down for me...I can get search pages working etc using the {wp-realty searchresults} tag etc...and the urls are fine.

The only setting I have made in my wordpress permalinks settings is custom structure: "/%category%/%postname%/"

What do I fill in below, and how does that affect wp-realty (if at all)?

Category base :
Tag base:


Again...sorry for the lame questions and no else seemed to have an issue with this but me :(

Jared
10-04-2010, 04:16 PM
Hello, here is what I'd do.

1) Set your permalink to /%postname%/ (begging and trailing slash)
2) Create a new page titled Real Estate or Listing Search or something befitting of your SEO efforts and on that page put {wp-realty index} and nothing else.
3) Change the permalink for that new page to the url you desire. Once saved it will be the primary path for all listings.
4) Create a custom search form and paste that into a WordPress page. We have dozens and dozens of examples we are willing to share with you if you are curious how to build a search form.

I personally do not suggest to people that they use the default search form with WPRealty, it is database dependant and in my opinion isn't ideal for all situations.

Also it is important to note that if you have any custom settings in your .htaccess it could effect the permalinks.

Let us know if this works, if not I'll log in and fix it for you, just send me an email.
Jared

jlynds
10-05-2010, 05:26 PM
Hey Jared,


Thanks that did the trick. I pretty much did this before but I did not allow enough time for wordpress permalink changes to take affect so I thought I was doing something wrong...your advice was what I needed.

I sent you a PM on a related matter though....if you could take a quick peek you could save me a ton of time....


Thanks again.


J