clarocque
-
Posts
548 -
Joined
-
Last visited
Posts posted by clarocque
-
-
Hi Guys,
I know Bobbi is history here but hoping someobe else may have come accross this..
Shop worked fine with SEO urls. I imported about 8,000 products (still worked fine) then I deleted the SEO cache to configure the url paths correctly... now all I get after deleting cache:
ANY IDEAS??? I even tried turning off the SEO but still same results.
Thanks.. KJ
You either have to increase the allowed mempry for PHP script (if you have acess) or disable the cahce feature.
-
Gary,
That should work... in fact if I get the time (ha right - but hoping) or someone else gets the time...
The thing to do would be to take the entire language file and move it in to the databse (if that is how people want it).
The rest of the data is configuration which should really be in it's own group in the back end. But I am not sure what else has changed since the original versions.
Chris
-
You are correct...
I am not sure who updated 1.5 (I have not looked yet) but any time a contribution has set ID numbers like that there will be problems.
Those should be set dynaimcly so they avoid issues like this...
you can either mod the script to get the last and set them or change them to this:
INSERT INTO `configuration` VALUES ('',
If there is a group you will have to get that number and change them in the SQL
Maybe whoever changed this to use the database can fix his/her contributino so the sql will run dynamicly and that will set the id's and configuration group id based on each stores current settings.
Good luck
Chris
-
What version of PHP are you running?
If you have an old php versino < 4.3 I dont believe you can use glob.
But I am not sure what was changed for the latest version either...
Where are you storing your cache files?
Chris
-
yes...but how would I go about renaming something to prevent it from conflicting with...ITSELF?
The error happens at the same spot as the error message points to as being the culprit.....see what I'm saying?
:(
Fullasoul
It is not coflicting with itself....
-
I'm not sure I understand what you mean....what "functions" would I rename? The error message (if believed) would indicate that the same functions in meta.php are being called more times than they're meant to, as the crashing point and the point that is considered the source of the problem are one and the same...in fact I gotta say, I'm no php expert by a long shot, but that's one funky error message...
Fullasoul
Fatal error: Cannot redeclare meta_create_title() (previously declared in /home/xxxx/public_html/includes/functions/meta.php:30) in /home/xxxx/public_html/includes/functions/meta.php on line 30It is not a funky message it is telling you the issue. The function is declared multiple times. If they are not the same function then you can rename one like
meta_create_title2()
and you will have to change it where ever it was called as well.
-
Is there some other forum I should be asking for help at? Before making the leap into trying to build my cart, everyone went on and on about how supportive the oscommerce community is...and yet for 4 days I've been essentially talking to myself here....not one remote attempt at help from anyone here or on my other thread :(
Fullasoul
SAorry I cant off you to much help via forum as I dont use STS in fact I avoid it for different reasons. A quick fix would be to rename one of the functionss if they are not the same.
-
Hi, I have a couple of questions.
I have a category description. I thought I downloaded a version before this was removed but it is using the default meta page description. Could someone point me to a version that will utilize my category description, or the changes for the meta_tags file.
Also I've added a few extra fields to my product descriptions. Can I simply querry for this data and place more values in $product_meta_info ?
# get data for the description $desc.=$product_meta_info['products_name']; $man=$product_man_meta_info['manufacturers_name']; $descfull.=$product_meta_info['products_description'];
Thanks for any help,
Dan
Dan if you cant find an early version on osc this will have the code you need - you can pick through it
# index.php with categories }else if (strpos($_SERVER['PHP_SELF'], 'index.php') || strpos($_SERVER['PHP_SELF'], 'window.php')){ # If using Categories & Products get the product info if ($current_category_id && CAT_PRODUCTS =='true'){ $cacherun='true'; $categories_query = tep_db_query("select categories_name, categories_description from " . TABLE_CATEGORIES_DESCRIPTION . " WHERE categories_id ='" .$current_category_id. "' AND language_id = '" . (int)$languages_id . "'"); $categories = tep_db_fetch_array($categories_query); # get sub categories to list keywords when no product $sub_categories_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " cd, " . TABLE_CATEGORIES . " c WHERE c.parent_id ='" .$current_category_id. "' AND c.categories_status = '1' AND cd.categories_id = c.categories_id AND cd.language_id = '" . (int)$languages_id . "' LIMIT 20"); # get top level categories to list keywords when no product or sub cats if ($category_depth != 'products' && $category_depth != 'nested') { $categories_all_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " cd, " . TABLE_CATEGORIES . " c WHERE c.parent_id = 0 AND c.categories_status = '1' AND cd.categories_id = c.categories_id AND cd.language_id = '" . (int)$languages_id . "' ORDER BY c.sort_order ASC"); } # Start getting data for the meta tags $title.=$categories['categories_name']; $pre_desc=strip_tags($breadcrumb->trail(' - ')); $pre_desc=str_replace('"', '?', $pre_desc); $desc.=$pre_desc.' from '.STORE_NAME.'.'; if (tep_not_null($categories['categories_description'])) { $fa = array('’', '"','&','"'); $ra = array('\'', '"','&','?'); $desc.=' '.str_replace($fa, $ra, $categories['categories_description']); } tep_not_null(HEAD_DESC_TAG_ALL) ? $desc.=HEAD_DESC_TAG_ALL : NULL; $metadescription=meta_create_meta_description($metadescription); $key.=$categories['categories_name'].', '; # get sub categories to list as keywords when no product if ($category_depth != 'products') { while ($sub_categories = tep_db_fetch_array($sub_categories_query)) { $key.=$sub_categories['categories_name'].', '; } } # get the products in this category if ($category_depth == 'products') { $products_query = tep_db_query("SELECT pd.products_name FROM " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " pc WHERE pc.categories_id = '".$current_category_id."' AND pc.products_id = p.products_id AND p.products_status = '1' AND p.products_id = pd.products_id AND pd.language_id = '" . (int)$languages_id . "' ORDER BY rand()"); while($products = tep_db_fetch_array($products_query)) { $key.=$products['products_name'].', '; } } if ($category_depth != 'products' && $category_depth != 'nested') { while ($categories_all = tep_db_fetch_array($categories_all_query)) { $key.=str_replace($categories['categories_name'], '`~`~`',$categories_all['categories_name']).', '; } } # if the page is showing products by manufacturers }else if ($HTTP_GET_VARS['manufacturers_id']){ $title.=$manufacturers['manufacturers_name']; $desc.='Products by '.$manufacturers['manufacturers_name'].' from '.STORE_OWNER; // get products by this manufacturer $listing_man_sql = tep_db_query("select pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' AND p.products_status = '1' AND pd.products_id = p.products_id ORDER BY rand()"); while($products = tep_db_fetch_array($listing_man_sql)) { $key.=$products['products_name'].', '; } } # index.php default if (!isset($HTTP_GET_VARS['manufacturers_id']) && (!$current_category_id)) $default=true; # Final stage for index.php w/o categories # Title tep_not_null($title) ? $metatitle.=$title.' - ' : NULL; $metatitle.=STORE_NAME; tep_not_null(HEAD_TITLE_TAG_ALL) && $default==true ? $metatitle.=HEAD_TITLE_TAG_ALL : NULL; tep_not_null(HEAD_TITLE_TAG_INDEX) ? $metatitle.=HEAD_TITLE_TAG_INDEX : NULL; $metatitle=meta_create_title($metatitle); # Description !tep_not_null($desc) ? $metadescription.=STORE_NAME.' - ' : NULL; tep_not_null(HEAD_DESC_TAG_ALL) && $default==true ? $desc.=HEAD_DESC_TAG_ALL : NULL; $metadescription.=$desc; tep_not_null($metadescription)&& $default==true ? $metadescription.=' - ' : NULL; tep_not_null(HEAD_DESC_TAG_INDEX) && $default==true ? $metadescription.=HEAD_DESC_TAG_INDEX : NULL; $metadescription=meta_create_meta_description($metadescription); # Keywords tep_not_null(HEAD_KEY_TAG_INDEX) && $default==true ? $key.=HEAD_KEY_TAG_INDEX.', ' : NULL; tep_not_null(HEAD_KEY_TAG_ALL) ? $key.=HEAD_KEY_TAG_ALL : NULL; $metakeywords=strtolower(meta_create_meta_keywords($key));
-
Yes, others have noticed, but I have not had the time to fix - and now I am seeing how many point that out vs how many will make the change and upload the fix ;)
-
Has anyone considered modifying this contribution specically for use wink Link Manager and and Article Manager? I tried myself, but I must admit my shortcomings. Other than that one small thing I'm more than satisfied with this contribution.
What type o fmeta tags do you want for links manager????
-
you mean english/meta_tags.php right? not english.php?
All this will do is put the HEADING_TITLE in the <title></title> right?
but for my all_products.php page I want it to generate keywords/descriptions like it does for the product_info.php, specials.php, etc.
yes sorry - not english.php
If you want that for all products you will have to right the logic for the page sepcificily
-
Hi,
I have installed cDynamic_Meta_Tags v1.4.
When testing it I get the title back but no keywoards are generated.
How do I include keywords?
And, do I have to modify the default;
#---------------------------------------------------------------------------#
# Define specific meta tags by entering the value between the '':
# For all pages using meta_tags:
define('HEAD_TITLE_TAG_ALL',''); # Title
define('HEAD_DESC_TAG_ALL',''); # Description
define('HEAD_KEY_TAG_ALL',''); # Keywords
# For default index page (no products or categories)
define('HEAD_TITLE_TAG_INDEX',''); # Title
define('HEAD_DESC_TAG_INDEX',''); # Description
define('HEAD_KEY_TAG_INDEX',''); # Keywords
Regards Peter
If you ar not seeing keywords or description on products and/pr actegories something is wrong...
If you are talking about say the index.php page (home page) you will have to set the defaults in the fields you listed above....
-
I've got the cDynamic Meta Tags working on the pages included in includes/meta_tags.php. (such as specials.php, products_new.php, product_info.php, etc.)
However, I've added a couple other pages to my site that I'd like cDynamic to work with such as all_products.php (which lists categories/product titles). How do I go about getting it to work with these new pages. Do I need to add it somehow to includes/meta_tags.php? I'm just not sure how to go about doing this. Thanks for any help.
p.s. I'm using STS.
To add additional pages add them to this line :
$heading_pages = array('contact_us.php', 'product_reviews.php');
around line 60 in includes/;anguages/english.php
-
What about the further development of ultimate seo urls? Since Bobby has been banned, it seems that he has lost interest, at least it seems not longer to be in his focus.
I`d like to develop it to a state in which it is useful for multilanguage stores too. But I need help & someone with whom I can discuss it. Somebody interested?
1... It has been devolped a little further - I dont think it is fair to say he has lost interest it is not possible for him to continue here as he is unable to access it.
2... It is set up for multi language already
-
Hi Bobby,
I admire your work and some appreciation needs to be made. Your google sitemap contrib was perfect and gave me rankings 1 and 2 within 1 month after installation.
This weekend I tried to install your Ultimate SEO URLs v2.1c. Unfortunately this didn't work. Everything looked fine, but after adding the code to my .htaccess file in the catalog directory, I got an internal server error. I checked everything out I could read in your posts, but no result. Do you have any idea what I can ask my hosting provider?
Just 10 minutes ago, I installed your cname_pname contrib and that works fine for now. But hopefully I can install your Ultimate SEO URL contrib soon........... or do you have an expectation date for version 3.0
If you can help me with my shop, I can let you use my live shop for testing Ultimate SEO v. 3.0. You look reliable and do a lot of nice things.
Kind regards,
Marcel
my shop:
What is your server?
Is mod rewrite enabled?
Make sure you path is correct....
-
Which part? lol
I guess my host was having a ton of problems with people exploiting the fopen whatevertheheck so they turned it off then linked to a customers blog who explained a way around it with the curl stuff you see above.
Had never mattered to me before on any site I was using until I installed this fantasticly easy to use contribution. Just glad I was able to figure out what was going on.
On a whim I compaired the information found in the asCommerce tools to see if there was a difference in my local machines php and my hosts and the fopen was the first thing that was different. Luckily I didnt have to spend hours sorting through that stuff. All gibberish to me. :)
The whole thing - lol
Id a good find - but intersting avenue with out fopen it will sure limit many things but I guess if there is a curl workaround you have the ability to modify - was just interesting reading ;)
-
Although it doesn't look like this contribution is being supported I am going to ask a question anyhow with hopes someone may know what is going on.
I have one site I am working on. Same files online and on my computer.
Contribution works great on my computer but won't work online. Both have php 4.3.1.
I changed the code from
localhost/supply.php?box=shopping_cart
on my computer to
wendy.digitalreject.com/supply.php?box=shopping_cart
on the web
it has the http:// but i took it off here so it wont make clickable links. :)
According to this contribution that is the only thing that needs to be changed.... sooooooo My question is any idea why it would work on my computer but not online?
I get this error
ERROR - Either this page is not available or this option is not added to the list of authorized elements.
But that doesn't tell me a thing since it is the stock error written into this contribution.
Thanks in advance!
Back, and incase anyone else has this problem I figured I would post the fix. Atleast what fixed it for me.
My host has fopen shut off so I had to change the code from
# InfoBox Anywhere with PHP by clarocquevt --------------------------------# # Format: http://www.domain.com?box=xx # $value=@file_get_contents('http://url.com/supply.php?box=categories'); #--------------------------------------------------------------------------# ($value) ? $results = $value : $results = 'ERROR - Either this page is not available or this option is not added to the list of authorized elements.'; echo $results; # eof InfoBox Anywhere with PHP by clarocquevt ----------------------------#
to
# InfoBox Anywhere with PHP by clarocquevt --------------------------------# # Format: http://www.domain.com?box=xx # $curl_handle = curl_init(); // Where should we get the data? curl_setopt ($curl_handle, CURLOPT_URL, 'http://url.com/supply.php?box=categories'); // This says not to dump it directly to the output stream, but instead // have it return as a string. curl_setopt ($curl_handle, CURLOPT_RETURNTRANSFER, 1); // the following is optional, but you should consider setting it // anyway. It prevents your page from hanging if the remote site is // down. curl_setopt ($curl_handle, CURLOPT_CONNECTTIMEOUT, 1); // Now, YOU make the call. $buffer = curl_exec($curl_handle); // And tell it to shut down (when your done. You can always make more // calls if you want.) curl_close($curl_handle); // This is where i?d probably do some extra checks on what i just got. // Paranoia pays dividends. print $buffer; #--------------------------------------------------------------------------#
Hope this can help someone in the future. :)
Very interesting Wendy....
-
Hello,
Will this Ultimate SEO URL contribution work fine or requiere different installation procedure on Windows server 2003 IIS
Thanks
No,
If you want to use SEO URLs use cNAME pNAME.
I dont know of anyone who had been able to get mod rewrite to work on windows
-
Well crap, figured it was worth a shot. Its possible its the same problem, just coded differently. Something that is done in the URL manipulation seems to be causing the problems.
I have been pretty busy and I have not been following all of this thread but a quick check for people using SEO URLS
Make sure:
Output W3C valid URLs (parameter string)? => false
Remove all non-alphanumeric characters? = > false
Chris
-
Actually, I had to change it from session.save_path = "C:\php4\sessions" to session.save_path = ;
Any idea whether this will cause any problems on my development computer?
Cheers,
Chris
SEO URLS using mod rewrite will not work on windows... you will have to use cName (older version)
New version has settings (Enable automatic redirects?)
Chris
-
You want pure MS2.2 with articles and info. pages? Did you get one?
Kym,
Bobby is no longer an oscommerce community member as he has been banned, If you are looking for information on this, other new codes or support you will have to find it elswhere ( I would post where but that will just get removed).
It appears they hav stripped his card But you can probably figure out where if you get creative.
Chris
-
-
I would like to thank the person whom recommended this contribution over the "other" header tag contribution I was fighting with..... LOL This was so much easier and deffinietly works alot better... the install time was amazingly fast...
much kudos on this contribution....
just one quick question.... is there anything that can be added that would allow me to set title information on an individual basis??? The products work fine... but on other pages i would like the title to be a bit more customizable....
anyway of acheiving this? if not its cool I love the contrib anyways...
oh and i gotta say one thing.... ITS FAST!!!!!!!!!!
thanks alot
indi
Yes, you can simply add code for any page... but will take a little PHP knowledge...
The correct way would be to set up the page like existing pages are (ie specials or product_info)
If you want to do pages that fall under other and looking for quick hack you could do something like:
Around line 346 look for $metatitle=meta_create_title($metatitle);
under it add something like:
if (eregi($_SERVER['PHP_SELF'], 'page_you_want_to_set.php') ) $metatitle='What you want for title'; if (eregi($_SERVER['PHP_SELF'], 'page_you_want_to_set2.php') ) $metatitle='What you want for title2';
Hope it helps a little
Chris
-
How can I remove the item title from the description tag. The description tag shows the items title then product code then the items description from the page.
I would like to remove the items title from the description tag only but whatever I have tried changing in meta_tags.php seems to remove the titel from the title tag also.
Look around line 87 for $desc.=$product_meta_info['products_name'];
and comment it out.
Chris
[Contribution] Ultimate SEO URLs - by Chemo
in General Add-Ons Support
Posted
Did you try disabling "Output W3C valid URLs"
I am not sure if that optino is in the osC release.