Jump to content



Photo
* * * * * 12 votes

[CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo


  • Please log in to reply
6952 replies to this topic

#41   ACE99

ACE99
  • Members
  • 201 posts
  • Real Name:ace
  • Location:usa

Posted 07 June 2005 - 17:23

Hey everyone,

I just installed the newest version of USEO Urls (I was running 2.0), and it seems to be slower than the last version. I'm figuring this is because there are now mod rewrites for articles and other pages. I find my store significantly slower. Anyone else?

#42   montytx

montytx
  • Members
  • 86 posts
  • Real Name:Joel

Posted 07 June 2005 - 17:33

Hey everyone,

I just installed the newest version of USEO Urls (I was running 2.0), and it seems to be slower than the last version.  I'm figuring this is because there are now mod rewrites for articles and other pages.  I find my store significantly slower.  Anyone else?

<{POST_SNAPBACK}>



I have noticed a smaller delay also. Not so bad that I am worried about it. I wonder if it adds links to cache as it goes. THerefore it would speed up as all the links are cached over time....

#43   montytx

montytx
  • Members
  • 86 posts
  • Real Name:Joel

Posted 07 June 2005 - 17:36

Hi Bobby,

have installed the new SEO URL and get an fatal error:

CODE
Fatal error: Call to a member function on a non-object in /home/dealer/main/pkg/besot/test/html/includes/functions/html_output.php on line 42
Please help me ....

<{POST_SNAPBACK}>


I had similar issues with the html output. You must still have lines of the old code that need to go away. Im not an expert, so back it up. I deleted all of this, then it worked.

// manufacturer addition by WebPixie
case 'manufacturers_id':
$rewrite_manufacturer = true;
if ( defined('MANUFACTURER_NAME_'.$p2[1]) ){
$rewrite_page_manufacturer = short_name(constant('MANUFACTURER_NAME_'.$p2[1])) . '-m-' . $p2[1] . '.html';
} else { $seo = false; }
break;
// end manufacturer addition by WebPixie

default:
$params[$p2[0]] = $p2[1];
break;
} # switch
} # end foreach
$params_stripped = implode_assoc($params);
switch (true){
case ( $rewrite_product && $rewrite_category ):
case ( $rewrite_product ):
$rewrite_page = $rewrite_page_product;
$rewrite_category = false;
break;
case ( $rewrite_category ):
$rewrite_page = $rewrite_page_category;
break;
// manufacturer addition by WebPixie
case ( $rewrite_manufacturer ):
$rewrite_page = $rewrite_page_manufacturer;
break;
// end manufacturer addition by WebPixie
default:
$seo = false;
break;
} #end switch true
$seo_rewrite_link .= $rewrite_page . ( tep_not_null($params_stripped) ? '?'.tep_output_string($params_stripped) : '' );
$separator = ( tep_not_null($params_stripped) ? '&' : '?' );
} else {
foreach ($p as $index => $valuepair) {
$p2 = explode('=', $valuepair);
switch ($p2[0]){
case 'products_id':
if ( defined('PRODUCT_NAME_'.$p2[1]) ){
$params['pName'] = constant('PRODUCT_NAME_'.$p2[1]);
} else { $seo = false; }
break;

case 'cPath':
if ( defined('CATEGORY_NAME_'.$p2[1]) ){
$params['cName'] = constant('CATEGORY_NAME_'.$p2[1]);
} else { $seo = false; }
break;

// manufacturer addition by WebPixie
case 'manufacturers_id':
if ( defined('MANUFACTURER_NAME_'.$p2[1]) ){
$params['mName'] = constant('MANUFACTURER_NAME_'.$p2[1]);
} else { $seo = false; }
break;
// end manufacturer addition by WebPixie

default:
$params[$p2[0]] = $p2[1];
break;
} # switch
} # end foreach
$params_stripped = implode_assoc($params);
$seo_link .= $page . '?'.tep_output_string($params_stripped);
$separator = '&';
} # end if/else
} # end if $seo
} else {
$link .= $page;
$separator = '?';
$seo = false;
} # end if(tep_not_null($parameters)

while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);

// Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined
if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) {
if (tep_not_null($SID)) {
$_sid = $SID;
} elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) {
if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) {
$_sid = tep_session_name() . '=' . tep_session_id();
}
}
}

if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) {
while (strstr($link, '&&')) $link = str_replace('&&', '&', $link);
while (strstr($seo_link, '&&')) $seo_link = str_replace('&&', '&', $seo_link);

$link = str_replace('?', '/', $link);
$link = str_replace('&', '/', $link);
$link = str_replace('=', '/', $link);
$seo_link = str_replace('?', '/', $seo_link);
$seo_link = str_replace('&', '/', $seo_link);
$seo_link = str_replace('=', '/', $seo_link);
$seo_rewrite_link = str_replace('?', '/', $seo_rewrite_link);
$seo_rewrite_link = str_replace('&', '/', $seo_rewrite_link);
$seo_rewrite_link = str_replace('=', '/', $seo_rewrite_link);

$separator = '?';
}

if (!tep_session_is_registered('customer_id') && ENABLE_PAGE_CACHE == 'true' && class_exists('page_cache')) {
$link .= $separator . '<osCsid>';
$seo_link .= $separator . '<osCsid>';
$seo_rewrite_link .= $separator . '<osCsid>';
} elseif (isset($_sid)) {
$link .= $separator . $_sid;
$seo_link .= $separator . $_sid;
$seo_rewrite_link .= $separator . $_sid;
}

if ($seo == 'true') {
return ($seo_rewrite_type == 'Rewrite' ? $seo_rewrite_link : $seo_link);
} else {
return $link;
}
}

#44   jonyo

jonyo
  • Members
  • 104 posts
  • Real Name:Jon

Posted 07 June 2005 - 17:42

Hey everyone,

I just installed the newest version of USEO Urls (I was running 2.0), and it seems to be slower than the last version.  I'm figuring this is because there are now mod rewrites for articles and other pages.  I find my store significantly slower.  Anyone else?

<{POST_SNAPBACK}>


which directions did you follow for the install? The instructions you need to follow (in your case) are the one's labeled "UPGRADE v1.x-v2.0b series- osCommerce MS-2.2".

For people that have already installed the first version of 2.1, all you need to do is upload the new file, and (optional step) drink a cold one.

Do you have a large database of products or a small database?

I do not notice any speed issues, but then my store for some reason has always lagged a little bit... Does anyone else experience slowness issues from their connection? http://shop.faerietreasures.com

It does seem a bit faster when I hit the refresh button, but then that could be my imagination...

Are a lot of people experiencing slowness issues? Do you have a lot of items in your catalog if you do? I have a small product catalog...

#45   jonyo

jonyo
  • Members
  • 104 posts
  • Real Name:Jon

Posted 07 June 2005 - 17:57

Another bug: This is probably how it is suppost to work, but it displays ?manufacturers_id=22 when browsing by manufacturer, and on my site this breaks it. It redirects to product_info.php which says item not found.

Anyone else having issues where having the extra stuff in the url makes it redirect and say product not found? The simple fix would be to add the ability to turn this off in admin (like how cpath is done)

#46   montytx

montytx
  • Members
  • 86 posts
  • Real Name:Joel

Posted 07 June 2005 - 18:01

I do not notice any speed issues, but then my store for some reason has always lagged a little bit...  Does anyone else experience slowness issues from their connection?  http://shop.faerietreasures.com

It does seem a bit faster when I hit the refresh button, but then that could be my imagination...

Are a lot of people experiencing slowness issues?  Do you have a lot of items in your catalog if  you do?  I have a small product catalog...

<{POST_SNAPBACK}>



Your site seems quite slow. I have DSL and there were delays of several seconds. I would talk to your ISP and figure out what is the problem...

#47   jonyo

jonyo
  • Members
  • 104 posts
  • Real Name:Jon

Posted 07 June 2005 - 18:11

Your site seems quite slow. I have DSL and there were delays of several seconds. I would talk to your ISP and figure out what is the problem...

<{POST_SNAPBACK}>


LOL!!! Wow I'm an idiot... I just realized cache was turned off!!! And I have 1and1, they should be pretty fast... I'll contact them if the speed doesn't improve w/ cache enabled...

For the other people that are having speed issues, once you go to the page, does it speed up? I think montyx might be right about it re-caching stuff, or in my case cacheing it for the first time...

#48   RGStephens

RGStephens
  • Members
  • 51 posts
  • Real Name:Rick Stephens

Posted 08 June 2005 - 00:42

I just installed this contibution and it went fine. I notice however that when I buy something and receive the Success page, that when I click continue it takes me to a login in screen even though I have already logged in. I can't figure that this is related to this install but I don't recall it happening before today.

Any ideas?

Thanks
Rick

#49   jls

jls
  • Members
  • 16 posts
  • Real Name:Jason S

Posted 08 June 2005 - 01:39

Are you just guessing about the cDynamic_Meta_Tags or is there some error message that points to that contrib?  Reason I ask is because I have this contrib installed too...


I too had the cDynamic Meta Tags Contrib installed with the older version of Ultimate SEO. When I upgraded, my site wouldn't work. I had to change the setting for the cDynamic Meta Tags contrib to not use the Chemo's cache, and my site now works.

That might be the problem.

#50   flame_hawk_oz

flame_hawk_oz
  • Members
  • 1 posts
  • Real Name:Ian Macgregor

Posted 08 June 2005 - 04:16

I have applied this fantastic contribution to my site however i now have a slight issue.

When i access the catalog in admin nothing displays???
No error msg just a blank screen.

Anyone else had this issue.

#51   montytx

montytx
  • Members
  • 86 posts
  • Real Name:Joel

Posted 08 June 2005 - 11:12

Has anyone noticed that the 301 redirects do not appear to be working. My error log is filled with missing page errors.

#52   jonyo

jonyo
  • Members
  • 104 posts
  • Real Name:Jon

Posted 08 June 2005 - 12:51

In case anyone else is having the same problem as me, where having ?cname= or ?manufacturers_id= in the url makes it not display the product,

I was able to fix it by turning off auto redirect in the admin under seo admin. Hope this helps someone.

#53   hakan haknuz

hakan haknuz
  • Members
  • 58 posts
  • Real Name:hakan haknuz
  • Location:holland

Posted 08 June 2005 - 13:12

I posted this in the 2.0b thread but its for 2.01
[quote name='Chemo' date='Jun 3 2005, 12:37 PM']
You have an unusual problem with cPath=0_* as that is not the usual form. The 0 indicates top level category and should be formed like cPath=1 and NOT cPath=0_1. Do you have a custom category menu?

Yes i do because the cpath=0 link is the top/home link in the categorie box

I am interested in utilizing your store to finish development since it meets all of the requirements: articles, informations pages, and also has the added bonus of being a large product category with possible multiple languages.

Get with me on instant messenger and we'll work out the FTP credentials.

I have installed your contribution update 2.01 and the other upgrade i will start testing this later in the evening and i will e-mail my site-adres to you. I cannot give my ftp credentials due to the fact it is live and functioning, even i must inform my fellow shoprunners before modifying anything
BTW, do you have issues with special characters in the URLs? How many characters as an estimate?

I am not sure what you mean by this these caracters are also put in the rewrited url say example a trademark or copyright , will be parsed within the url . But the link will work when clicked on

For development of 2.01
One thing i found was that when using the default settings .
The reset option didn't work.
The turn seo off switch didn't work, when i turned it off my site wasn't able to load normal cpath values this means the entire categorie box.
Also products wouldn't load normal product_id=.
I tried putting oscdefaultcache off and page_cache also your 7 caches in configuration.
I deleted all cache files and cleared cache in database.
No help there, it seems like im tied to put seo on.
I shall put things back on and test this later in the evening because i really don't want to bother visitors or spiders
Come to think of it maybe this is because the htacces file has still rewrite on..
I suppose the switch set SEO off cannot remove these rules from the htacces file..but i will test some more this night
I have tested this some more and i am unable to switch it off, i have reversed back to 20b

Note for chemo.
I really love your contrib but the're is one thing about this new version wich is not suitable for me. ..
In seo classes there is automatic database install. Wich removed my former database-tables. Some of those new ones do not work properly- and to be honest i really like doing these things by hand.. I am not fond of the idea of automatic install without me being able to control what is going on. I read some post of someone suggesting that all updates should be automatically..Well that's a big possible vulnerability and i really hope you don't follow his advice .


regards hakan

Edited by hakan haknuz, 08 June 2005 - 13:15.

Kind regards

Hakan Haknuz

#54   Diablo_365

Diablo_365
  • Members
  • 52 posts
  • Real Name:Richard

Posted 09 June 2005 - 01:34

http://www.oscommerc...tributions,2823

This contribution contains link/s to an external support forum - is this allowed ?

Edited by Diablo_365, 09 June 2005 - 01:36.


#55   DavidR

DavidR
  • Members
  • 198 posts
  • Real Name:David

Posted 09 June 2005 - 02:10

Come on, if you are going to play hall monitor, could you at least not cross post?

#56   DavidR

DavidR
  • Members
  • 198 posts
  • Real Name:David

Posted 09 June 2005 - 02:17

Dog gone short edit time limit /crying.gif' class='bbc_emoticon' alt=':'(' />

Has anyone gotten Ultimate SEO URL's v2.1x to work with Information Pages? I've looked through the code and can't see any reason that it shouldn't rewrite but it comes through as sitedomain.com/information.php?info_id=1 every time.

David

#57   jonyo

jonyo
  • Members
  • 104 posts
  • Real Name:Jon

Posted 09 June 2005 - 02:53

Dog gone short edit time limit  /crying.gif' class='bbc_emoticon' alt=':'(' />

Has anyone gotten Ultimate SEO URL's v2.1x to work with Information Pages?  I've looked through the code and can't see any reason that it shouldn't rewrite but it comes through as sitedomain.com/information.php?info_id=1 every time.

David

<{POST_SNAPBACK}>


I don't know about information pages, but it works for my ultimate information pages, right off the bat w/o modification...

You could try asking in the controversial forums, or try installing the information pages unlimited contrib (don't know exactly which one, unfortunately I did not keep good track enough of which contribs I installed, I don't know base code from modified code any more)

What exactly is not working with the information pages for you? (maybe give a url for an example, sometimes it's easier than explaining) Sorry I can't help out more...

#58   DavidR

DavidR
  • Members
  • 198 posts
  • Real Name:David

Posted 09 June 2005 - 03:05

Thanks, I will give ultimate information pages a try first. As for what it's doing, it just works normally - no rewrite. It's like Ultimate SEO just ignores it. Bobby actually had a go at fixing the code in Information Pages (it's pretty much a mess) but it didn't help. Thanks for your suggestion, I'll post back if that works.

David

#59   JoeMcManus

JoeMcManus
  • Members
  • 168 posts
  • Real Name:Joe McManus

Posted 09 June 2005 - 14:23

Chemo mentions the Abstract Code feature where it can be used with other contribs that generate links.

Is there currently a Froogle datafeed contrib that has this feature enabled? Can anyone please point me to the one I'd want for this purpose?
Johan a.k.a. T0PS3O elsewhere.

Contributed Barclay's ePDQ Payment Module though not originally mine. Made it work though...

#60   tryagain

tryagain
  • Members
  • 68 posts
  • Real Name:Mike

Posted 09 June 2005 - 16:19

Hello, I installed this contribution last night and I have some questions about it so here it goes.

1. How can you tell if it is working?

2. After I installed it my secured pages quit working so I had to remove it. Any body else have this problem?

3. After I removed it I still get the SEO URL in the admin control panel and can't seem to get rid of it. Any Idea's?

I liked this contribution and would like to get it working since I am learning how to improve my page ranking. I am new to the whole internet sales scene and there is a whole lot of info to try to absorb.

Thanks, Mike