Support Forums

SEO Friendly URL's Question

This is a discussion on SEO Friendly URL's Question within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hello, Before installing the SEO Friendly Modual - which is working wonderfully - I had customized the ViewListings2.tpl significantly. Within ...


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

Reply
 
Thread Tools Display Modes
Old 03-05-2008, 12:48 PM   #1
Junior Member
 
Join Date: Feb 2008
Location: Denver, Colorado
Posts: 9
Rep Power: 0
EnvoyData is on a distinguished road
Default SEO Friendly URL's Question

Hello, Before installing the SEO Friendly Modual - which is working wonderfully - I had customized the ViewListings2.tpl significantly. Within the changes, I am displaying an image thumbnail in the top left hand corner of the listing and the larger images lower on that same page - i.e. our friends at eBay. Well, under the thumbnail, I have a link to an on-page anchor to see the other photos - <a href="#photos">More Photos</a> and a named anchor on top of the images section like this: <a name="photo"></a>.

Well, it seems that the SEO module is rewriting the action of this link and sending the browser to http://www.LaxSack.com/#photos instead of just jumping dow the exisitng page to the photos anchor...

I realize also that this isn't a big issue and I'd much rather have the advantages of the SEO modual - I was just hoping someone could advise if correcting this was possible...

(You can see this on our web site www.LaxShack.com)

Scott Jacob
LaxShack.com
EnvoyData is offline   Reply With Quote
Old 03-05-2008, 12:57 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,497
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

You can try this. Change the link to this:
Code:
<a name="{$smarty.const.URL}{$smarty.server.PATH_INFO}#photos</a>
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 03-05-2008, 03:24 PM   #3
Junior Member
 
Join Date: Feb 2008
Location: Denver, Colorado
Posts: 9
Rep Power: 0
EnvoyData is on a distinguished road
Default

Thanks again Eric. I'm afraid though the }{$smarty.server.PATH_INFO}, isn't producing anything. I'm still getting this generated:

<a href="http://www.laxshack.com#photos">More Photos</a>

BTW: is there a good refernce to these smarty commands and templates that you know of? I'm getting my head kind of bloody trying to guess at them

Scott Jacob
www.LaxSHack.com
EnvoyData is offline   Reply With Quote
Old 03-05-2008, 04:13 PM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,352
Rep Power: 134
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

The variables passed from the underlying php script to the smarty templates change depending on what underlying php script is running. To see what php variables are being bassed to the smarty templates you can insert the following at the top of your layout.tpl file.....

{debug=1}

This will cause the smarty debug console to pop open when a page is visitied and it will show the variable names and values.

Alternatively you can add debug=1 to the url as a variable to cause the same thing to happen. Some pages this wouldnt work on though with the SEO mod installed on V3, im not sure if that still happens in V4 or not.

As for learning about smarty, smarty.php.net has the smarty documentaion.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 03-05-2008, 04:51 PM   #5
Junior Member
 
Join Date: Feb 2008
Location: Denver, Colorado
Posts: 9
Rep Power: 0
EnvoyData is on a distinguished road
Default

Thanks Larry. I tried the ?Debug=1 in the SEO V4 URL with no effect. So I tried to add the {debug=1} smarty command to my layout template. I tried it as the very first line - above the DOCTYPE - and as the first line of the body and got this error. Some server setting I need to change?

Quote:
Fatal error: Smarty error: [in layout.tpl line 30]: syntax error: unrecognized tag: debug=1 (Smarty_Compiler.class.php, line 446) in /home/envoy/public_html/includes/classes/smarty/Smarty.class.php on line 1095
Thanks too for the smarty link. I also found
Smarty PHP Template Programming And Applications on Amazon.com. Any good??? worth the $40US???
EnvoyData is offline   Reply With Quote
Old 03-05-2008, 04:58 PM   #6
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,497
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Try adding this to the template:
{debug}

As far as the book I can't vouch for it but I am sure can find most of the information through Smarty's documentation. I also found a pdf version for $28. http://www.packtpub.com/smarty/book

Here is another link I found where you can download chapter 6 to see if you like it:
http://images.packtpub.com/files/Sma...pleChapter.pdf
http://smartybook.packtpub.com/chapter1.htm
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 03-05-2008, 05:03 PM   #7
curmudgeon
 
Join Date: Mar 2006
Posts: 5,352
Rep Power: 134
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Yep its just {debug} now. Appending it to the URL will work on some pages but not all with the SEO mod installed, it must have to do with the rewrite code for the URL.

I also cant vouch for the book. Everything I have learned about smarty was just off the web and from tinkering around. The book may teach you some smarty basics but what it cant help with is how 68C uses smarty and the only way to learn that is kind of by diving in.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 03-29-2008, 08:32 PM   #8
Junior Member
 
Join Date: Feb 2008
Location: Denver, Colorado
Posts: 9
Rep Power: 0
EnvoyData is on a distinguished road
Default SEO- module Errors

Hello Eric et al...
I have installed the SEO mod and it has been running flawlessly until today. i have tried to add a set of redirect 301's in the htaccess file and now the server is thowing 500 Internal Server Errors.

The format I'm using I have used before but may be bad:
redirect 301 /categories.asp /categories.html

Any assistance would be wonderful.

Scott Jacob
www.LaxShack.com
EnvoyData is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
SEO Friendly URL's Question? EnvoyData Pre Sales Questions 9 03-04-2008 05:20 PM
Searc Engine Friendly URL's? razsports Pre Sales Questions 1 01-10-2008 01:28 PM


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


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