Support Forums

SEO mod - email a friend not working

This is a discussion on SEO mod - email a friend not working within the Modules / Plugins / Modifications forums, part of the Developer Forums category; It seems that my "email a friend" function does not work with the seo mod installed. Once I installed the ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 12-26-2008, 01:19 PM   #1
Member
 
Join Date: Dec 2008
Posts: 30
Rep Power: 12
Adam Waxler is on a distinguished road
Default SEO mod - email a friend not working

It seems that my "email a friend" function does not work with the seo mod installed.

Once I installed the seo mod and used the email a friend function, the link to the listing (in the email) looked like this: Listing URL: viewlisting/3.html

This obviously doesn't work...

When I deactivated the seo mod the listing in the email went back to: Listing URL: http:// www. rentifieds.com/viewlisting.php?view=3

Is there a way to have the seo mod and still be able to use the email a friend function?

Thanks,
Adam
Adam Waxler is offline   Reply With Quote
Old 12-26-2008, 03:30 PM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Always helps to know what version of the module and what version 68C you are using.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 12-26-2008, 04:11 PM   #3
Member
 
Join Date: Dec 2008
Posts: 30
Rep Power: 12
Adam Waxler is on a distinguished road
Default

Ok...

68C: v4.0.9 Developer

SEO Mod: V2.0.1
Adam Waxler is offline   Reply With Quote
Old 12-26-2008, 04:50 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Please put your details in your signature. It helps a lot.

Yes it does do this but there is little harm in it as it does go to the correct listing anyway. In general I do not mind if there are php formatted urls behind the login but those which go out externally so to speak should be converted for completeness sake when the SEO mod rewrite is being used. The file to edit appropriately is friendmail.php. Same issue with contact.php and printer.php
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 12-26-2008, 08:29 PM   #5
Member
 
Join Date: Dec 2008
Posts: 30
Rep Power: 12
Adam Waxler is on a distinguished road
Default

Quote:
Yes it does do this but there is little harm in it as it does go to the correct listing anyway.
That's the problem...it does not go to any listing.

If I "email a friend" when the SEO Mod is active, the complete URL that is sent to the friend is: viewlisting/3.html which is not a complete url and sends them to an address is not valid page or simply doesn't go anywhere.
__________________
v4.0.9 Developer
Adam Waxler is offline   Reply With Quote
Old 12-26-2008, 09:42 PM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

In friendmail.php you should have this at around line 65. This line should not fail

$vars['url'] = URL."/viewlisting.php?view=".$listingid;

It also looks like you have a problem in your .htaccess file where you are rewrting your viewlisting urls. What do you have in your .htaccess?
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 12-26-2008, 11:44 PM   #7
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Tr this:
Open your .htaccess file and remove this line:
Code:
RewriteRule ^listing/([0-9]+)/([0-9a-zA-Z_-]+)\.html$ viewlisting.php?view=$1 [NC]
Save it and upload it then give it a test. It should work then.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 12-27-2008, 08:04 AM   #8
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Yup - I think if he wants an html email though the friendmail.php file needs to be changed to test for the SEO module - same with printer.php, external.php and contact.php. Could be wrong here on that. On a site of mine with the SEO mod rewrite module defined, I had to change them to explicitly put in the test and assign.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 12-27-2008, 08:19 AM   #9
Member
 
Join Date: Dec 2008
Posts: 30
Rep Power: 12
Adam Waxler is on a distinguished road
Default

Quote:
Tr this:
Open your .htaccess file and remove this line:

Code:
RewriteRule ^listing/([0-9]+)/([0-9a-zA-Z_-]+)\.html$ viewlisting.php?view=$1 [NC]Save it and upload it then give it a test. It should work then.
Eric, I tried this, but then when I clicked "view listings" on my website I was only brought to a 404 page

Quote:
In friendmail.php you should have this at around line 65. This line should not fail

$vars['url'] = URL."/viewlisting.php?view=".$listingid;

It also looks like you have a problem in your .htaccess file where you are rewrting your viewlisting urls. What do you have in your .htaccess?
seymourjames, not sure what you mean by "This line should not fail", but I do have that line in friendmail.php

Also,not sure what you mean by "What do you have in your .htaccess?"
__________________
v4.0.9 Developer
Adam Waxler is offline   Reply With Quote
Old 12-27-2008, 08:50 AM   #10
Member
 
Join Date: Dec 2008
Posts: 30
Rep Power: 12
Adam Waxler is on a distinguished road
Default

As far as I can tell, the Printer-freindly function is working just fine with the seo mod installed. Also, the Contact the owner is working just fine. When I send a Contact the Owner email the url is something like this:
ht tp://w ww.rentifieds.com/listing/3/Large_4_bed_4_bath_home_with_Community_pool.html

However, when I send an email a friend the url is like this: viewlisting/3.html
__________________
v4.0.9 Developer
Adam Waxler is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Turn Off Tell A Friend? Thumbs Technical Support 2 11-05-2008 07:53 AM
Problem with Tell a Friend Plamen Technical Support 5 09-24-2008 11:33 AM
Tell a friend / Viral Marketing / Coupon djstevie84 Modules / Plugins / Modifications 4 09-11-2008 10:03 PM
tell a friend?? atom Technical Support 0 09-01-2008 05:41 PM
Set to confirm new posters by email - not working Slimjim Technical Support 2 05-21-2008 02:40 PM


All times are GMT -4. The time now is 02:27 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0