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 should not fail because if you type a url of this form directly into your browser you will see ...


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

Reply
 
Thread Tools Display Modes
Old 12-27-2008, 09:53 AM   #11
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,969
Rep Power: 73
seymourjames is a jewel in the rough
Default

It should not fail because if you type a url of this form directly into your browser you will see the listing in its natural php form. The point is that this listing format is not being converted by your .htaccess rewrite statement and seo module.

http://www.yourdomain.com/viewlisting.php?view=41

In several files the overwrite does not work in the way you want it to so Eric is suggesting removing that line in your .htaccess file.

PM me and I can talk more with you about that and all the changes needed to get search engine friendly urls as it is too long winded here.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline   Reply With Quote
Old 01-26-2009, 05:46 PM   #12
Senior Member
 
 
Join Date: Apr 2008
Posts: 144
Rep Power: 14
philoo is on a distinguished road
Default

Nothing new about this problem ?
It makes also the same for me
__________________
v4.08 Developer
philoo is offline   Reply With Quote
Old 01-28-2009, 09:35 AM   #13
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,969
Rep Power: 73
seymourjames is a jewel in the rough
Default

You can generate a php formatted url or an html one. The former should always work. However, if you want an html one to be created, you should test for the seo module and make sure you have the correct format defined for a viewlisting url in your .htaccess file. Yo cqn find this test for thee SEO module in several places in the 68C package. Just do the same.

If you are using one of the premium templates from TemplateCodes.com then we use listings in this form to avoid virtual directories being created by the use of the / instead of a bar - for example.

RewriteRule ^listing-([0-9]+)-([0-9a-zA-Z_-]+)\.html$ viewlisting.php?view=$1 [NC]
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline   Reply With Quote
Old 01-28-2009, 01:46 PM   #14
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 1,999
Rep Power: 62
juven14 is a jewel in the rough
Default

If you have the developer version this can be fixed in friendmail.php

Open friendmail.php and find:

PHP Code:
$rs=$Listings->getListingById($listingid); 
Add this just below it:

PHP Code:
$seoTitle $Listings->seoString($rs['title']); 
Should now look like:

PHP Code:
$rs=$Listings->getListingById($listingid);
$seoTitle $Listings->seoString($rs['title']); 
Then find:

PHP Code:
$vars['url'] = URL."/viewlisting.php?view=".$listingid
And replace this line with:

PHP Code:
if(!defined('SEO')) {
    
$vars['url'] = URL."/viewlisting.php?view=".$listingid;
} else {
    
$vars['url'] = URL '/listing/' . (int)$rs['id'] . '/' $seoTitle '.html';

This should correct the issue, I haven't tested this but it should work.
__________________
John Snyder
PHP Developer

Last edited by juven14; 01-28-2009 at 01:50 PM.
juven14 is offline   Reply With Quote
Old 01-29-2009, 07:47 AM   #15
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,969
Rep Power: 73
seymourjames is a jewel in the rough
Default

Do make that change to the .htaccess and use a bar - in John's code as opposed to a / if you are using a premium template from Templatecodes.com .

It depends upon whether you are using the default template where /'s are used or bars - which are used in our SEO optimised template.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames 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 08:53 AM
Problem with Tell a Friend Plamen Technical Support 5 09-24-2008 12:33 PM
Tell a friend / Viral Marketing / Coupon djstevie84 Modules / Plugins / Modifications 4 09-11-2008 11:03 PM
tell a friend?? atom Technical Support 0 09-01-2008 06:41 PM
Set to confirm new posters by email - not working Slimjim Technical Support 2 05-21-2008 03:40 PM


All times are GMT -4. The time now is 12:54 AM.


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