Support Forums

Seller Store - Unique/Memorable URL's

This is a discussion on Seller Store - Unique/Memorable URL's within the Modules / Plugins / Modifications forums, part of the Developer Forums category; I've seen this done in some CMS applications and wondered if it would be possible here as a module. Could ...


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

Reply
 
Thread Tools Display Modes
Old 06-02-2009, 03:50 PM   #1
Just get on with it!
 
 
Join Date: Jan 2007
Location: Milton Keynes, England
Posts: 486
Rep Power: 34
michael is just really nice michael is just really nice
Default Seller Store - Unique/Memorable URL's

I've seen this done in some CMS applications and wondered if it would be possible here as a module. Could a field be made available for the user to create a memorable URL for their seller store?

For example; myclassifieds.com/citybikes

I guess this would involve some work on the .htaccess file. Any takers?
__________________
M Michael
V4.2.3 Developer - Sigma Template


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline   Reply With Quote
Old 06-03-2009, 10:16 AM   #2
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

I know Mike-N-Tosh was going to rebuild this module so maybe he can include that as a feature in the next release.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 06-05-2009, 10:45 AM   #3
Just get on with it!
 
 
Join Date: Jan 2007
Location: Milton Keynes, England
Posts: 486
Rep Power: 34
michael is just really nice michael is just really nice
Default

Thanks for that Nick but what I was really hoping for was the ability to rewrite the 'View more ads from this seller' link by the seller himself!

I know that the Community Builder component for Joomla has accomplished this via the .htaccess file. A member can choose any name to be appended to the main URL (so long as it's available) but is warned that this can only be done once so choose wisely.

It would be nice if our customers could promote their stores, and our businesses, with a more memorable link than myclassifieds.co.uk/searchresults.php?owner=147

Michael
__________________
M Michael
V4.2.3 Developer - Sigma Template


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline   Reply With Quote
Old 06-05-2009, 12:23 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

I think this is nearly your solution (on the way). It comes from 4.09 working on a real site using the owners. For you it depends on if the variable you need is available.

SEO module mod_user.php

"'(?<!/)".URL."/searchresults.php\?owner=([0-9]*)\&page=([0-9]*)'",
"'(?<!/)searchresults.php\?owner=([0-9]*)\&page=([0-9]*)'",
"'(?<!/)searchresults.php\?owner=([0-9]*)'",
"'(?<!/)storeseller/([0-9]*)/1.html'",


.htaccess file

RewriteRule ^storeseller/([0-9]+)\.html$ searchresults.php?owner=$1 [NC]
RewriteRule ^storeseller/([0-9]+)/([0-9]+)\.html$ searchresults.php?owner=$1&page=$2 [NC]

and in listingsextra2.tpl

<tr><td><span class="moreads"><a href="storeseller/{$owner}.html">{$smarty.const.LANG_MORE_ADS_SELLER }</a></span></td></tr>



Now you should be able to pick up the store name instead of owner if I remember correctly and change the .htaccess commands above to something like

RewriteRule ^storeseller/([0-9a-zA-Z_-]+)\.html$ searchresults.php?owner=$1 [NC]
RewriteRule ^storeseller/([0-9a-zA-Z_-]+)/([0-9]+)\.html$ searchresults.php?owner=$1&page=$2 [NC]


It will need to be played around with
__________________
"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
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Seller Store Founder & CEO Modules / Plugins / Modifications 2 06-04-2008 08:13 AM
Seller Store ? Unregistered Pre Sales Questions 2 02-06-2007 08:47 AM


All times are GMT -4. The time now is 09:59 PM.


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