Support Forums

How to create SEO friendly URL for the page "all ads from one advertiser"

This is a discussion on How to create SEO friendly URL for the page "all ads from one advertiser" within the Technical Support forums, part of the Technical Support Forums category; What version of 68 Classifieds are you running? v4.1.9 Developer What template are you using? Default (custom) Please describe in ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

Reply
 
Thread Tools Display Modes
Old 02-18-2011, 09:04 PM   #1
Customer
 
Join Date: Dec 2009
Posts: 58
Rep Power: 8
user2616 has a spectacular aura about
Default How to create SEO friendly URL for the page "all ads from one advertiser"

What version of 68 Classifieds are you running?
v4.1.9 Developer

What template are you using?
Default (custom)

Please describe in detail the issue you are having:

Recently, I installed SEO module.

At the view listing page, when I click the link "More ads from this Advertiser", the system displays all the listings of the Advertiser, but the URL is not SEO friendly.

Example:
http://mysite.com/searchresults.php?owner=123

I want to create a SEO friendly URL.

Example:
http://mysite.com/advertiser/john

john=username

I appreciate any help.
__________________
user2616
v4.1.9 Developer - Default Template (custom)
user2616 is offline   Reply With Quote
Old 02-23-2011, 11:01 PM   #2
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,091
Rep Power: 65
John Snyder is a jewel in the rough
Default

Since it is actually loading search results they are generally not treated as friendly urls, but that can be changed by modifying your .htaccess file and modifying your link in listingextras.tpl.

For example, rewrite the url owner/id to searchresults.php?owner=id

.htaccess
Code:
#owner results
RewriteRule ^owner/([0-9]+)$ searchresults.php?owner=$1 [NC,QSA]
listingextras.tpl
HTML Code:
<span class="moreads"><a href="owner/{$owner}">{$smarty.const.LANG_MORE_ADS_SELLER}</a></span>
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline   Reply With Quote
Old 02-27-2011, 06:51 AM   #3
Customer
 
Join Date: Dec 2009
Posts: 58
Rep Power: 8
user2616 has a spectacular aura about
Default

Hi John,

Thank you for providing me a solution.

I just changed .htaccess file and listingextras.tpl by copy and paste the code from your reply.

What a magic, it simply works.

It is really amazing !

For the benefit of other users, I would like to add one more point.

I noticed that member.tpl has a link "More ads from this Advertiser".

I replaced the following line:
HTML Code:
<td colspan="2"><a href="searchresults.php?owner={$id}">{$smarty.const.LANG_SEE_ALL_ADS}</a></td>
with the following line:
HTML Code:
<td colspan="2"><a href="owner/{$id}">{$smarty.const.LANG_SEE_ALL_ADS}</a></td>

Thank you for helping.
__________________
user2616
v4.1.9 Developer - Default Template (custom)

Last edited by John Snyder; 02-27-2011 at 09:56 AM.
user2616 is offline   Reply With Quote
Old 02-27-2011, 09:57 AM   #4
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,091
Rep Power: 65
John Snyder is a jewel in the rough
Default

Glad I could help. I added the HTML code boxes for you
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline   Reply With Quote
Old 02-28-2011, 03:01 AM   #5
Customer
 
Join Date: Dec 2009
Posts: 58
Rep Power: 8
user2616 has a spectacular aura about
Default

Thank you John again for helping to add HTML code box and make my reply message looks great.

I am very keen to learn how to add HTML code box.

Any help is appreciated.
__________________
user2616
v4.1.9 Developer - Default Template (custom)
user2616 is offline   Reply With Quote
Old 02-28-2011, 09:41 AM   #6
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,091
Rep Power: 65
John Snyder is a jewel in the rough
Default

You have to click reply or go advanced, as the option isn't available in qyuick reply. You might also need to enable the wysiwyg editor in your control panel (http://www.68classifieds.com/forums/profile/options/ scroll to the bottom and choose enhanced interface).

Then you will see buttons on the editor, 2nd row on the far right: # <> php. # is for a generic code box, <> is for html code box and the php button is for a php code box. This will add [...][/...] with uppercase text to the content you are writing. Anything between the 2 will appear in the code box.
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline   Reply With Quote
Old 03-01-2011, 01:25 PM   #7
Customer
 
Join Date: Dec 2009
Posts: 58
Rep Power: 8
user2616 has a spectacular aura about
Default

Thank you John.

I tried your suggested steps.
Simply it works, as always.
__________________
user2616
v4.1.9 Developer - Default Template (custom)
user2616 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create search engine friendly links jonten123 Site Marketing 8 01-22-2010 04:26 AM
Adding Advertiser Banner Ads and Changing Language in Modules guillopuig TemplateCodes 4 11-27-2009 09:36 PM
Can an advertiser see the number of clicks to his website and other stats? spark Technical Support 5 06-06-2008 07:48 PM
Advertiser company logo in showlisting.tpl wesse249 Technical Support 7 03-12-2008 09:40 AM
Modify contact advertiser form David Pre Sales Questions 3 07-25-2006 08:32 AM


All times are GMT -4. The time now is 08:36 PM.


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