VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Development Projects, Modifications, Hacks & Tweaks. VM1.1 => Topic started by: Forrest on January 17, 2010, 08:51:08 am

Title: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on January 17, 2010, 08:51:08 am
Hello VM fans,


I have created a Metadata HACK for VM (tested 1.1.4 w/ J1.5). If you want better seo value, and/or have lots of products, you will NEED THIS for automatic and unique metadata / metatag generation of meta title, meta description,  meta keywords, and starting from v1.7, supports most all other metatags including CANONICAL![/b]

1. This hack will auto-generate a better Title, Meta Description, Meta Keywords set, Meta Abstract, and Meta Subject, UNIQUE to each product and category. Likewise, you can now add the Meta Canonical Tag, unique to each product and category. Also supports adding tags like:
  • Overwrite Joomla Meta Generator Tag
  • Meta Classification
  • Meta Author
  • Meta Organization
  • Meta Copyright
  • Meta Country
  • Meta Content-Language
  • Meta Language
  • Meta Designer
  • Meta Comments
  • Meta No-Email-Collection

2. You can let it automatically run it's course and generate this info dynamically, or you can use the dynamic output to build a base then edit the output for each product and/or category.

3. Instructions are included on the VM admin add/edit product page (first tab), or the add/edit category page (first tab).
(http://www.thewebdna.com/images/boxes/metadata.jpg)
4. This is a hack, so you will need to modify or replace 6 files:
administrator/components/com_virtuemart/html/product.product_category_form.php
administrator/components/com_virtuemart/html/product.product_form.php
administrator/components/com_virtuemart/html/shop.browse.php
administrator/components/com_virtuemart/html/shop.product_details.php
administrator/components/com_virtuemart/classes/ps_product.php
administrator/components/com_virtuemart/classes/ps_product_category.php

5. You will need to run the metadata_hack.sql included as well. This:
Adds five new columns (fields) to jos_vm_product
Adds five new columns (fields) to jos_vm_category
Adds new table jos_vm_product_metakeys
Adds new table jos_vm_category_metakeys

Note: If you did not use the "jos" naming convention on your database, please update this before running the script.

6.Comes with an sql to uninstall hack database changes. Comes with files to overwrite hack files should you want to remove.



NOW FOR THE BEEF BEHIND THE HACK:

A. If you have a store running and install this hack, you don't have to do a thing if you so wish. You will see the changes are instant on live site, and you will have, UNIQUE TO EACH PRODUCT AND CATEGORY, extremely relevant, accurate, complete, and better arranged TITLE, META DESCRIPTION, META KEYWORDS, META ABSTRACT, META SUBJECT.

B. 2 are two global settings groups. 1, global settings for products. 2, global settings for categories. You can access the global settings for each type respectively from any product or category VM admin add/edit page. Global settings include: Global appends to title, description and keywords; badwords; turn manual edit on/off; number of keywords to generate; etc.

C. If you want to get even more hands on then what the system does automatically, then you can turn on the global manual edit param, which allows you to view and edit the dynamically created tags individually, make global appends, etc. In other words, the system will generate a great base for you to work off of, rather than starting from scratch for each product/category. Most likely, you won't even need to use this feature. If you do, let me know what you needed it for so I can make it better.

D. The system comes with a word filter (like a bad word filter) so you can exclude words you know you do not want in your keywords (like, the, of, for, if). I have included a fairly extensive set already.

E. I won't get much more detailed here as to how the system generates the tags, but you can read more within each add/edit category/product page where my instructions reside. The system does use a systematic culmination of product name, category name, product short and full description, category description, parent category, child products, and whatever global or manual overrides you may make. Important to note: the more you have completed above listed fields, the better your auto- populate and append will perform.

Screenshot of admin panel metadata tab:
(http://www.thewebdna.com/images/boxes/admin-metadata.jpg)

HAVE FUN! RELIEVE SOME SEO STRESS AND BE VISIBLE!

PLEASE:
1. Report any bugs here.
2. Request additional features here.
3. Give comments of any kind... I would like your feedback.

-F

Note: using vm1.1.3 see post #32 by joenist99. Or, for pre vm1.1.4 versions, you should keep your original files and add my code within each file to the appropriate locations. All added code is commented (search for METADATA).
http://forum.virtuemart.net/index.php?topic=65697.msg219413#msg219413

Note: If your config file is not saving in product and category metaforms please check the solution here (post #49 by me). Fixed in v1.3: http://forum.virtuemart.net/index.php?topic=65697.msg220321#msg220321

Note: For those using sh404SEF, or a similar SEF which tries to attempt metadata support, you will need to turn off the metadata aspect of it, since this hack injects metadata changes before other components will (like sh4040SEF), hence being overwritten. See this:
http://forum.virtuemart.net/index.php?topic=65697.msg224641#msg224641

Note: If your using CSVI and already have a metadata set you want to use as well, check out this post by Jimvertical. http://forum.virtuemart.net/index.php?topic=65697.msg229786#msg229786


Note: If your using Joomfish Multilanguage, check out this post by ningpa.
http://forum.virtuemart.net/index.php?topic=65697.msg238624#msg238624


[UPDATE] 01-30-2010 -> download v1.2

[UPDATE] 02-05-2010 -> download v1.3

[UPDATE] 02-09-2010 -> download v1.4

[UPDATE] 02-20-2010 -> download TabMetaData.zip

[UPDATE] 03-02-2010 -> download v1.5

[UPDATE] 04-04-2010 -> download v1.6

[UPDATE] 04-08-2010 -> download v1.7


[UPDATE] 10-15-2010 -> download vm1.1.5 v1.7

[UPDATE] 09-22-2011 -> download vm1.1.4 v1.7_multi


Please take a minute of time to leave a review here: http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=6&sobi2Id=328&Itemid=

If you like or found useful, please donate at http://www.paypal.com to forrestchamberlain@hotmail.com

[attachment cleanup by admin]
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: flash244 on January 20, 2010, 12:56:32 pm
Hi Forrest,

I cant believe that VM does not have a default metatags. I tryed your hack and WOW, meta keywords and metadescriptions come out!

Thanks man, for such a good hack!

Best regards!
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: detlilto on January 20, 2010, 14:39:37 pm
Hi,
it is realy good idea.
How can I see how it works?
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on January 20, 2010, 20:37:44 pm
***UPDATE**** RuggedRadios is no longer in my control. They have moved to Zencart!?


Visit ruggedradios.com. I am still working on filling out the category descriptions and better product short and full descriptions.

If you find a product on the site that has a good product description and short description, you can see what the system automatically generated by viewing source:

Here is a good example:
http://www.ruggedradios.com/race-racing-communications-store/details/619/82/intercoms/jeep/browse-by-product/4-watt-vhf-car-to-car-radio-kit.html

Just view the source to see what my system generated for TITLE, META DESCRIPTION, and META KEYWORDS

Again, if you don't like what the system generates on its own, then you can manually edit/override the pre-generated title, meta desc, and meta keys on the category or product add/edit pages.

In this example I have also enabled the "append to end title" and so it adds to every product title:
rugged. radios Communications Products

Likewise, I have enabled "append to end keywords", so the system appends to all product keywords:
product, products, buy, top, best, value, store, shop, new, used

You can specify/change what you want to append to end as keywords or meta title/description. Both products and categories have this append function, and are separate, meaning you can specify a different append of keywords for categories vs appended of keywords for products.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: detlilto on January 21, 2010, 01:01:02 am
I see all in yours source, it looks very nice. In my source i don't see anything. I see only configuration hack panel in product backend.

Here is my product example:
http://www.szpejarnia.pl/index.php?page=shop.product_details&flypage=flypage.tpl&product_id=1131&option=com_virtuemart

I don't know why nothing has in the source.
Do You have any suggestions?
 
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on January 21, 2010, 01:12:06 am
I see that the TITLE and Description is working great.

I see that your keywords are working partly... that it is pulling words from your product name and category description just fine.

However, it does seem like the keywords is not working in terms of pulling them from your short and full product description.

Anyone else experiencing this? I'm wondering if it's a language issue. I'll look into this further.

1. Please make sure you do not have the "Edit Override" box checked for title/keywords/description of products.

2. Clean your Joomla cache if it is on.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on January 21, 2010, 01:27:45 am
I tested with your language on my site and did not see a problem... keywords came right up. I am assuming you have the "Edit Override" checked... and then added your short and full description when adding the product.

If you do have the "Edit override" checked, just clear the meta keywords box to have it generate a new set from your current description and short description.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: detlilto on January 21, 2010, 02:29:13 am
I have turn on:

1. Turn On Manual Edit of Meta Title/Description/Keywords (Global)
2. Append Category Name to Title and Description Metatag

I don't now what is "Edit override".
   
   
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on January 21, 2010, 02:32:49 am
please turn off edit over-ride
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: detlilto on January 21, 2010, 02:40:28 am
Aha you mean: Turn On Manual Edit of Meta Title/Description/Keywords (Global)


Now is off, but still I don't see keywords in source.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on January 21, 2010, 02:54:09 am
looks perfect to me!~

  <meta name="keywords" content="grifone, latok, gore, tex, performance, shell, kurtka, bardzo, wytrzyma, zamkami, ytkowana, yciem, wykonana, wszechstronnie, swojemu, oddychaj, nadaje, membrany, materia, lekka, kszta, doskonale, dobrych, ciach, zintegrowany, zamek, ytkowania, wysoko, wysokiej, wysok, wspinaczki, wilgotno, wentylacja, trzne, gore-tex" />
  <meta name="description" content="GRIFONE Latok - GORE-TEX PERFORMANCE SHELL - Lekka i bardzo wytrzymała kurtka, wykonana z  użyciem membrany Gore-Tex Performance Shell o dobrych właściwościach oddychających. Kurtka, dzięki swojemu kształtowi i  wytrzymałości może być użytkowana bardzo wszechstronnie. Doskonale nadaje się jako techn" />
  <meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: detlilto on January 21, 2010, 03:06:10 am
I don't know how it is possible, because I see only:

<meta name="robots" content="index, follow" /><meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on January 21, 2010, 03:12:10 am
not sure, but I can tell you it's working as it should. This hack is only for categories and products, and looking at your pages, and the link you sent, it looks great!

I am assuming your browser is caching, so not fetching the updated data. Try cleaning your browser cache or try another browser... I recommend Google Chrome
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: detlilto on January 21, 2010, 03:25:54 am
I don't understand, after installing chrome, I still see only:

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl-pl" lang="pl-pl"><head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><script src="http://1.2.3.4/bmi-int-js/bmi.js" language="javascript"></script><meta name="robots" content="index, follow" /><meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />


it is irritating ;/
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on January 21, 2010, 03:35:19 am
not sure your problem. using the w3c validator and showing source i see the tags just fine. have a look:
http://validator.w3.org/check?uri=http://www.szpejarnia.pl/index.php%3Fpage%3Dshop.product_details%26flypage%3Dflypage.tpl%26product_id%3D1131%26option%3Dcom_virtuemart&charset=(detect+automatically)&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator/1.654

check your product pages this way, you'll see all is great
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: detlilto on January 21, 2010, 03:45:02 am
Really here he looks good.
It's working :)

Thanks for all.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: pzb on January 26, 2010, 17:26:22 pm
Hello all,
please, can someone put here step by step guide (as for a idiot :)) how to run the sql script metadat_hack.sql?
I rewrote the php files, but now i do not know how to continue.
Thanks
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on January 26, 2010, 17:36:13 pm
Do you have phpMyAdmin?
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: pzb on January 26, 2010, 18:46:53 pm
Do you have phpMyAdmin?
I do now  :)
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on January 26, 2010, 18:50:01 pm
Use phpMyAdmin to import the sql document. Very easy, just select the file to import and click "go".
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Hisajean on January 27, 2010, 02:35:21 am
Wow, thanks Forrest! I'm going to try this on my site, I'll inform you if it works!
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on January 27, 2010, 02:56:05 am
Look forward to your response, as I have gotten very little feedback.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Hisajean on January 27, 2010, 03:04:28 am
Seriously? I don't know what to say, it works perfectly. I turned it on for both products and categories and it shows up - thank you so much!! It was a breeze installing it too  ;D I only left SEF mods now though.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on January 27, 2010, 03:15:35 am
Thanks Hisajean :) A simple solution for SEF URLs is router.php. You can find it on this forum somewhere. Not the best URL output, but its the fastest and easiest and free. You can see what the URLs look like on http://ruggedradios.com
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Hisajean on January 27, 2010, 03:23:46 am
Hold on, I'll be searching for it - no no, thank YOU!  ;)

Hi, I'm back - I got hold of the router.php file - uploaded it - and it....... works! Hehehe as expected, now I'm done with the site! Thanks again for everything!
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: joenist99 on January 27, 2010, 09:19:38 am
thanks for your hack, i try it, and i can use it
but when i acces my page i get error url

ex. http://www.example.com/www.example.com?page=shop.product_details&flypage=flypage.tpl&product_id=3&category_id=5&option=com_virtuemart&Itemid=2

can you help me
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: pzb on January 27, 2010, 13:45:11 pm
Use phpMyAdmin to import the sql document. Very easy, just select the file to import and click "go".
Thanks for help. Hack works perfectly. Thanks a lot. 
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on January 27, 2010, 22:02:24 pm
thanks pzb :)

Joenist99n my hack doesn't mess with ur url structure, only alters metadata, so you must have something else acting up, since your base url is repeating twice.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: joenist99 on January 28, 2010, 02:49:10 am
thanks pzb :)

Joenist99n my hack doesn't mess with ur url structure, only alters metadata, so you must have something else acting up, since your base url is repeating twice.

thanks a lot, i can't find where my error, but i change <?php $product_flypage ?> in my browse_x.php from my VMtemplate, and i can fix it,
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: vickyb on January 29, 2010, 10:13:57 am
Hi There,

Above hack looks really great !!!

But, I'm new to Virtuemart and I want to add title and meta descriptions and meta keywords manually for products. I have replaced my html and classes files with the hack files as instructed and ran the metadata_hack.sql. I could not find the VM admin add/edit product page and I also want to access the global settings for products and global settings for categories. Will u please guide me where can I see these global settings so I can add title, meta keywords and meta discriptions for each product?

I would really appreciate quick reply.

Kind Regards
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on January 29, 2010, 18:35:21 pm
The meta-forms are found in the add/edit product pages or add edit category pages. In Joomla admin, go to the Virtuemart Component. Once in the VM component, on the left side there is a menu. You will see "Products", and under products you will see "List Products" or "Add Product". If you click on Add Product, you will see the form on the first tab that pops up.

Same goes for categories... "Add Category", first tab that appears.

Components -> Virtuemart -> Products -> Add Product
Components -> Virtuemart -> Products -> Add Category

or

Components -> Virtuemart -> Products -> List Products -> SELECT YOUR PRODUCT
Components -> Virtuemart -> Products -> List Categories -> SELECT YOUR CATEGORY
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: joenist99 on January 30, 2010, 09:12:42 am
I use Virtuemart 1.1.3 + autogen_metatags_vm1.14_v1.1

on the first time i get repeating url for my livesite  ???
ex: http://www.juraganbatik.com/www.juraganbatik.com?page=shop.product_details&flypage=flypage.tpl&product_id=3&category_id=5

i edited shop.browse.php in line-574 
Code: [Select]
$url = $sess->url( $mm_action_url.'?'.$url_parameters );to
Code: [Select]
$url = $sess->url( $url_parameters );and my livesite can run normaly  ;D

now autogen_metatags_vm1.14_v1.1 -> tested in Virtuemart 1.1.3 stable  :-*
thanks to A.K.A forrest you are the best  ;)
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on January 30, 2010, 19:13:02 pm
Thanks for the update and 1.1.3 solution joenist99 :)
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: anticubestudios on January 31, 2010, 02:45:59 am
Hey, Mate,

Excellent hack, thanks for your good work!

The products work like a champ, but I can't for the life of me get the categories to work properly.

Here's a link to a product:
http://www.dynamicbizsupplies.com/hasler/15-hasler-ink-cartridges/17-pppinkr-2-ink-cartridges

And it's parent category:
http://www.dynamicbizsupplies.com/hasler/15-hasler-ink-cartridges

You can see that the title isn't appended, even though I've checked the DB settings. I've even gone into your code in shop.browse and added debug statements. It's calling $document->setTitle() from the right place, but the title isn't changing.

I'm curious if this has anything to do with SEF redirects being enabled..? I don't really know. It seems strange that it's getting to the appropriate lines of code and they're not really doing anything.

Any thoughts?

Cheers,
Matt
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on January 31, 2010, 03:34:08 am
Did you clear your Joomla cache? Please make sure the manual edit override box is NOT checked for categories.

SEF should have nothing to do with this. I have SEF running fine.

Your discription is coming up blank as well. Did you remove this code?

Did you use the files I included in the hack, or did you copy the code and put it into your original files? If so, did you comment out the title and description from the original files?

What version of VM and Joomla please?
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: swacks on February 03, 2010, 09:51:28 am
hello -

i would like to see my parent category and child category in the title before the product.

i followed the instruction and i thought this would happen like it does on your site , but it doesnt happen on mine



http://www.tonerandink.co.za/index.php?option=com_virtuemart&page=shop.browse&category_id=1403&Itemid=47
 (http://www.tonerandink.co.za/index.php?option=com_virtuemart&page=shop.browse&category_id=1403&Itemid=47)
that should be Lexmark Paper in title but it just says paper

thanks in advance!
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on February 03, 2010, 10:05:38 am
1. First, the link you sent me was for a category, not a product.

2. Looking at the category however, it should have something like "Lemark - Paper", where your's only has "Paper". PLEASE MAKE SURE YOU HAVE UNCHECKED:
* Turn On Manual Edit of Meta Title/Description/Keywords (Global)
within any category edit page.
AND MAKE SURE YOU HAVE CHECKED
* Append PARENT Category Name to Title and Description Metatag (a Globla setting)

3. As for your products pages: On my site, and the way I have the hack set up, the CATEGORY is only APPENED, not PREPENDED, in the title of the product. In other words, unless you hack my hack, you can only add Category AFTER the product name. To make this work MAKE SURE YOU HAVE CHECKED:
* Append Category Name to Title and Description Metatag (a Global setting)
within any product edit page.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: swacks on February 03, 2010, 10:39:58 am
Quote
UNCHECKED:
* Turn On Manual Edit of Meta Title/Description/Keywords (Global)
within any category edit page.


YES I LEFT IT UNCHECKED

Quote
AND MAKE SURE YOU HAVE CHECKED
* Append PARENT Category Name to Title and Description Metatag (a Globla setting)


the problem is that it does not save!

thnx
I CHECK this but when i save it remains UNCHECKED ???
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on February 03, 2010, 10:41:50 am
K, I'll look into it now.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on February 03, 2010, 10:58:00 am
While I'm doing that can you tell me a few things.

1. Does the append category check box work for products (does it save checked)?

2. Are other check boxes/variables in the category form saving? In other words, can you check the other boxes, or make edits to the fields in all other category meta options?


This would help me troubleshoot. Thanks.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: swacks on February 04, 2010, 09:30:51 am
Thanks Forrest ,

I tried for both categories and products:

Append Category Name to Title and Description Metatag: DOESNT SAVE   

Turn On Manual Edit of Meta Title/Description/Keywords (Global): DOESNT SAVE

insert of text does not save either

thnx !
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: demsey on February 04, 2010, 13:33:02 pm
Hi,

Thank you Forrest for that great hack.

I have found a few problems.

Quote
D. The system comes with a word filter (like a bad word filter) so you can exclude words you know you do not want in your keywords (like, the, of, for, if). I have included a fairly extensive set already.

That filter doesn't want to remove first word from product short description. If I have a word in my product short description which I don't want to have with my keywords that filter can't do it. I tried to fix that but I couldn't. But I used a hack.

From this
Code: [Select]
$get_words = ucwords(strip_tags($desc.' '.$category_has_parent_description.' '.$product_names_list));
To that
Code: [Select]
$get_words = ucwords(strip_tags("xx" . $desc.' '.$category_has_parent_description.' xx '.$product_names_list));
So first word in get_words array will be "xx" and the script will remove that anyway because it is too short so I don't have to worry and filter will exclude the first word from product description.

Second problem is $general_append_keys. If I have a phrases (2 or 3 words) that script will split all of them to single keywords. I think it could be better if I have not just single keywords but also some phrases. So this is what I changed:

From
Code: [Select]
$end_result = strtolower($trimmed_title.', '.$trimmed_words.', '.$general_append_keys);To
Code: [Select]
$end_result = strtolower($trimmed_title.', '.$trimmed_words);
And added extra line after
Code: [Select]
$unique = str_replace(' ', ', ', $unique);
$unique = str_replace(',,', ',', $unique);

$unique = $unique . ", " .$general_append_keys; //an extra line
Now I have some keywords created from my product description + some phrases which I have added to database manually.

I also removed $general_append_end from title because it creates too long title.

Same changes for both files (shop.browse.php and shop.product_details.php).


I would like to fix the first problem.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on February 04, 2010, 19:39:29 pm
SWACKS
Quote
Thanks Forrest ,

I tried for both categories and products:

Append Category Name to Title and Description Metatag: DOESNT SAVE   

Turn On Manual Edit of Meta Title/Description/Keywords (Global): DOESNT SAVE

insert of text does not save either

thnx !

Sounds to me like you either didn't run the SQL, or that you didn't copy over a few files/necessary code. Please review more carefully!
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on February 04, 2010, 19:44:48 pm
DEMSEY

Thanks for the insightful post. I'll look into the first problem over the coming days. That's an interesting bug.

As for your second thought, it's a good idea. The problem is I didn't want to have keywords repeated, so the general append keys went through the unique cleanse processes as well. So if you had the word "product" as a keyword from your description, but also as a general append key, I didn't want to use that word twice, so it went into unique cleansing.

I'll consider some alternatives to this in the future though, as you have a valid point.

Best :)
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on February 05, 2010, 00:16:43 am
I think the solution to your second point... general append keys... is to create a second field all altogether called general_append_phrases... which would be added where you moved general_append_keys in your fix.

This way keywords are not repeated, but full phrases can be added. I'll add this to my hack soon.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: swacks on February 05, 2010, 07:31:34 am
hello -

ok - i will try it again , i did in fact load the sql file successfully and also successfully overwrote the files with filezilla.

i am also running joomla 1.5.15 with vm 1.1.4

trying again now
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: swacks on February 05, 2010, 07:44:28 am
i just tried it again no luck

overwrote all files successfully

uninstalled the sql uninstall file and then re-installed the sql from the install using the files from the zip file on this foreum i.e. autogen_metatags_vm1.1.4_v1.2.zip

are the permission or something that needs to be changed somewhere.

must this be runn in legacy mode or something.

please help - its only a great solution if i can use category and subcategory in titles

thanks
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on February 05, 2010, 08:04:09 am
Hmmm, I really don't have an answer for you. No, NOT LEGACY. No, no permissions! Is EVERYTHING working ok for products? Is it just a category issue? <- UPDATE:I just reread a previous post of yours, so I see not everything is working for products either... hmmm.

I can explain few things... the saving functions happen in the
administrator/components/com_virtuemart/classes/ps_product.php for products
and
administrator/components/com_virtuemart/classes/ps_product_category.php for category

I would look further into these pages to make sure you have copied them from my hack.

You can search for "metadata" in these documents to see where the saving funcitons for the database tables have been added.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on February 05, 2010, 08:17:00 am
Another thing... can you check your database to see if the mid for product_metakeys and category_metakeys is "1". There should only be one entry into each of these tables, and that should be with an mid of "1".

Likewise, are you using a different naming convention other than jos_vm_xxxxx?
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: swacks on February 05, 2010, 09:21:50 am
bingo !!

both mids were 0 in the dbase - i changed it to 1 and it works great!

thanks forrest !!
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on February 05, 2010, 19:16:02 pm
OK great. I'll have to look into why it did that for you. Glad it's working now tho.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keyw
Post by: Forrest on February 06, 2010, 00:07:32 am
[UPDATE] 02-05-2010 -> download v1.3
Fixed potential problem of forms/pages not using/saving metakeys config files/database entries
Added support for appending key PHRASES
Added 2nd field to separate appending title and description. Now title has it's own append, as does description.
Files modified: All files, including sql, modified.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: demsey on February 09, 2010, 15:36:19 pm
Hi,

Thank you Forrest for the update.

I am still thinking about that first issue with the filter. I prefer to use proper solution instead my hack because it is not perfect so I hope you can sort it out.

Another thing is category name. For example I have a category "Anti Slip Tiles" and as a result of your hack I have got following keywords "anti,slip,tiles,". I think I can get better results in Google if my category name stays as it is "Anti Slip Tiles" and will be displayed as a phrase in my meta keywords.

I know that means we will repeat a couple same keywords but as phrase they have got more power.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on February 09, 2010, 22:49:28 pm
Hum, good idea (key phrase of name). That is a simple fix, and I will add that for categories. It won't work well for products, however, because product names can get too lengthy. I will append full category names key phase as the first "keyword", and product names phrase as the last keyword because of length issues.

-F
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on February 10, 2010, 00:45:16 am
[UPDATE] 02-09-2010 -> download v1.4
Added support to PREpend category name PHRASE and/or parent category name PHRASE to category keywords. A global param, configurable in admin category add/edit.
Added support to append product name PHRASE and/or parent category name PHRASE to product keywords. A global param, configurable in admin product add/edit.
Files modified: All files, including sql, modified.

Download from first post of this topic or here: http://forum.virtuemart.net/index.php?action=dlattach;topic=65697.0;attach=13785
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: simple79 on February 14, 2010, 15:35:44 pm
Thanks for the Hack Forrest.

I'm a slight challenge saving changes. When the product category admin, any changes I make whether global or not are not saved to the db.

DB scripts have been run in and all modded files updated.

Anyone else had a similar scenario?
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on February 14, 2010, 19:07:49 pm
Have you tried products? Are you able to save them ok? What version did you download?

Two things to check.
1. database table jos_category_metakeys which holds the global category data.
2. ps_product_category (which saves the added/edited products).

Previous issues:
1. the jos_category_metakeys "mid" entry is not "1". If not 1, set to 1.
2. if you manually added the hacks to your files (not over-writing, but rather inserting code manually) make sure you double check ps_product_category that you did it right.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: arepie on February 20, 2010, 17:24:23 pm
Hie,

Thanks for the hack. Im not sure this is ethical or not, but, i have edit some codes to make it more user friendly. I added a "tab" called "MetaData" to all pages that apply to this hack. I know this is not much, but it makes people feel much more comfortable while using VM like they usually do, and this is my way showing my gratitude and my contribution to this good hack.

Only can be use with:-

This will apply to:-

And only infected 2 files:-

HOW TO (Will be added automaticaly with Autogen Metatags v1.5 and above)

Example:-
(http://img13.imageshack.us/img13/9828/vmhax.jpg)

You can get the files from this attachment.

[attachment cleanup by admin]
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: klutzon on February 20, 2010, 20:40:29 pm
Hie,

Thanks for the hack. Im not sure this is ethical or not, but, i have edit some codes to make it more user friendly. I added a "tab" called "MetaData" to all pages that apply to this hack. I know this is not much, but it makes people feel much more comfortable while using VM like they usually do, and this is my way showing my gratitude and my contribution to this good hack.

Only can be use with:-
  • Autogen Metatags v1.4
  • Joomla Version 1.5.15
  • VirtueMart 1.1.4

This will apply to:-
  • new product page
  • edit product page
  • new category page
  • edit category page

And only infected 2 files:-
  • product.product_category_form.php
  • product.product_form.php

HOW TO
  • Update the hack "Autogen Metatags v1.4"
  • Then update the hack with my files
  • Finish

Very nicely done! :) A fitting complement to an already great hack, thank you for sharing that with us arepie. :)

And Forrester, thanks for this Auto-Generate Meta mod. Until your mod, VM 1.1.x didn't have any native metadata entry for categories and products, and some would argue it's an important feature to have for decent SEO.

The weird thing is that VM did at some point have native metadata entry for categories and products. They introduced it in VM 1.2.0 alpha (which I have a copy of and can attach here for you guys to install and check out, but only if it's okay with the management). There is a Metadata Information fieldset on both product and category entry pages, similar to Joomla's native setup and offering "Description", "Keywords", "Robots" and "Author" fields. On the front end, all the metadata will show up in the header as expected.

Perhaps in addition to this hack, we could get the 1.2.0 code ported to 1.1.4 to offer those who want that kind of control of their metadata, and get a few other neat features back (such as smooth Accordion admin menu, Order By "Best Selling" option, among others) from a version that didn't see light for long... :)
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on February 20, 2010, 21:12:59 pm
Arepie, thanks for the tab addition. I have included it for the next release v1.5.

Klutzon, I have played with VM1.2, and yes I see they have brought back basic controls of metadata as you mention. I am working right now for this hack to also be available for VM1.2, as by default, they still don't auto-generate. Perhaps it can be included in the stable release of VM1.2 if I get it to them fast enough.

Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Stefanos on February 25, 2010, 08:01:13 am
hi ! I am looking for a way to insert metadata and so far I can do this using JoomSEF. Before I try your hacks could you tell me if you are willing to try and find a way to insert metadata to the product images too ? This is important so they appear in Google Images. I mean the main product image, cause I guess the additional might be hard to do.

I am very interested in your work.

cheers
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Stefanos on February 25, 2010, 08:42:34 am
wow ! this is perfect ! I am impressed badly. Great Work !

>> So my suggestion is to include Product Image Metadata. To me it's 100% must for SEO.

I am administrating a store of an Artist, and surely it needs metadata like "Alt" to the Artworks (product images). This will make the images take a better place in "Google Images" searches.

>> Another suggestion (dunno if that is possible even) is to have a choice for English/Other Language for the product, so that other language keywords can be entered. Considering Joom!Fish compatibility for metadata.

easy ? :D

peace
CONGRATULATIONS !

P.S I will make a Greek translation for you soon, once I will do it for the Artist anyway !
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: sushimonster on February 27, 2010, 14:04:51 pm
Thanks so much for this, it was very easy to implement and works great. Only thing I have noticed is that there is an extra hyphen in the title at the very end.

So you end up with:

'My title - - Mozilla Firefox'.

Is it just my site or has anyone else noticed this.

thanks
patrick
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Stefanos on February 27, 2010, 14:09:11 pm
you are right, it has this extra "-", just check it.. hm
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on February 28, 2010, 03:30:00 am
Ill have this fixed for v1.5, coming at end of this new week.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on March 01, 2010, 22:06:40 pm
eorisis, I will look into, and give you answers on ur recommendations soon.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on March 01, 2010, 22:09:52 pm
Just a reminder, for those of you who have used this hack, please leave a review here for others. Thanks :)
http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=6&sobi2Id=328&Itemid=
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Stefanos on March 01, 2010, 22:23:04 pm
I will look into, and give you answers on ur recommendations soon.

very nice! don't you think it's must important for seo ?
I am waiting for such a thing.
I am sure in the near future your work will be part of Virtuemart. So keep it man.

cool
cheers
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on March 01, 2010, 22:31:51 pm
This issue is with the metadata for images:

1. It really is a different hack altogether. While the functions could act the similar, where and how it is implemented would be different (different files).

2. I'm not really sure how to make it an auto-generated system, to which mine is, when each image would end up with the same auto-generated tags. If would work fine if you only had one image per product, but would be a much larger overhaul of the code to apply it to multiple images. About the only things that could be easily done is to have a metadata field that could be manually filled in for each image.

If someone wanted to do this now, using the keywords that are generated by the auto-gen system, is to make the end variables in my hack GLOBAL, and call out those variables in alt/title tags of image calls in template. That in itself is not difficult. Again, it's the issue of multiple images having the SAME tags, which is not really appealing.

--------

As for language, I'm not sure that I understand your point. Whatever language is inputted into the product/category, is the langue that is output. Enter in whatever language you want. Am I missing something here?
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Stefanos on March 01, 2010, 22:49:36 pm
2. I'm not really sure how to make it an auto-generated system, to which mine is, when each image would end up with the same auto-generated tags. If would work fine if you only had one image per product, but would be a much larger overhaul of the code to apply it to multiple images. About the only things that could be easily done is to have a metadata field that could be manually filled in for each image.

really not a problem not to have auto generated tags at all. actually I think most (including me) do love manual tag edit. As for the additional images, I think it is not that important for a start !!!

I will reply you about the rest soon, just cause I am doing something right now :)

but sounds great you are into it and might happen soon!
cheers
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on March 02, 2010, 09:15:30 am
sushimonster and/or eorisis,

Can you tell me, what pages are you seeing this - - after the title? Is it only for categories, or products, or both?

thanks.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on March 02, 2010, 12:59:33 pm
[UPDATE] 03-02-2010 -> download v1.5

See first post for download:
http://forum.virtuemart.net/index.php?topic=65697.msg217254#msg217254
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: alekseyyy on March 04, 2010, 00:34:30 am
Sorry? i have a problem
 Previous issues:
1. the jos_category_metakeys "mid" entry is not "1". If not 1, set to 1.
2. if you manually added the hacks to your files (not over-writing, but rather inserting code manually) make sure you double check ps_product_category that you did it right.

Can u explain please how can i change from 0 to 1. Im tried to use myphp admin, but dot understand how to do it (((
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on March 04, 2010, 01:20:14 am
First, two questions:

1. What version of this hack are you using?
2. Having it set to 0 or 1 shouldn't matter now, so what is/are the problem(s) you have?
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: alekseyyy on March 04, 2010, 16:07:01 pm
1) im use autogen_metatags_vm1.1.4_v1.5
2) i have same problem as swacks.  the problem is that it does not save!
then i want urn On Manual Edit of Meta Title/Description/Keywords (Global)
joomla 1.5.8 vm 1.1.4
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: wogopoulos on March 04, 2010, 16:25:40 pm
Thanks for the great extension but I have across a compatibility error with the sh404SEF component. You hack works great when I turn off sh404SEF for virtuemart, but it doesn't modify the category or product metadata whn sh404SEF is enabled.

My site config is:
      - Joomla 1.5.15
      - Virtuemart 1.1.4
      - sh404SEF 1.0.20_Beta - build_237

Do you have any ideas why this might be the case?
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: wogopoulos on March 04, 2010, 17:36:33 pm
Thanks for the great extension but I have across a compatibility error with the sh404SEF component. You hack works great when I turn off sh404SEF for virtuemart, but it doesn't modify the category or product metadata whn sh404SEF is enabled.

My site config is:
      - Joomla 1.5.15
      - Virtuemart 1.1.4
      - sh404SEF 1.0.20_Beta - build_237

Do you have any ideas why this might be the case?


Never mind, I worked out what the problem was.
I needed to set "Activate Meta management" to no in the sh404SEF Control Panel. This seems to have solved my problem.
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Forrest on March 04, 2010, 18:23:10 pm
alekseyyy: You just need to go to the table (in phpMyAdmin) that says "jos_my_category_metakeys". Make sure you click the BROWSE tab at the top. You will see one table entry for that table, and you will need to edit it. Click the edit button (the pencil) and change the MID to 1. Save it.

Do the same thing for "jos_vm_product_metakeys".

I'm at a loss why that is not working for you. It should be fixed. But give this a try and see.


wogopoulos: Glad you figured it out!
Title: Re: HACK: AutoGenerate Metatags. Product, Category - Edit Title Description Keywords
Post by: Stefanos on March 05, 2010, 16:27:53 pm
Can you tell me, what pages are you seeing this - - after the title? Is it only for categories, or products, or both?

thanks.


I just checked about your question, and I see it in categories, but not in > store. I mean you got to enter a category to see it. In flypages its fine.

But your new version corrected this :-)
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: apexfreelance on March 06, 2010, 02:09:28 am
@Forrest:

 ;D Great Work! Works perfect in my website. But I have still one problem,

The URL in my category and product is not Search Engine Friendly. Here is the link:

Category:

http://www.neatfeetcare.com/shop.html?page=shop.browse&category_id=6

Product:

http://www.neatfeetcare.com/shop.html?page=shop.product_details&flypage=flypage.tp-ecommerce.tpl&product_id=30&category_id=6


Can you help me with this problem?

Im using:

VirtueMart 1.1.4
joomla Version 1.5.15
autogen_metatags_vm1.1.4_v1.5.zip

Thanks you and God bless!!
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 06, 2010, 02:13:55 am
1st, make sure you have turned on SEF URLS in Joomla configuration, and rename "htaccess.txt" to ".htaccess" (found in web root).

My hack is for metadata only. If you want better SEF URLS for VM than what Joomla does, the easiest thing to do is get router.php and install it in the components/com_virtuemart/ folder. You can find router.php on this forum... just search for it.

Once found, download and ftp to the location I stated above... and POOF, you have sef urls for VM.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: apexfreelance on March 06, 2010, 02:49:20 am
1st, make sure you have turned on SEF URLS in Joomla configuration, and rename "htaccess.txt" to ".htaccess" (found in web root).
Yes, I have already turn on the SEF URLS in joomla configuration and i have already rename the htaccess file.

But nothing happens in the virtuemart link. It is only applicable in the joomla page and not in the virtuemart page.

 
My hack is for metadata only. If you want better SEF URLS for VM than what Joomla does, the easiest thing to do is get router.php and install it in the components/com_virtuemart/ folder. You can find router.php on this forum... just search for it.

Once found, download and ftp to the location I stated above... and POOF, you have sef urls for VM.

Ok i'll try for it, Can you give me the exact link for the router.php? So that i can apply it now. I found many router.php and i dont know which file to used.

Thanks Forrest for the great hack!

God bless you always

Best Regards,
Apex Freelance Designer

Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 06, 2010, 03:03:46 am
Try this plugin:
http://en.tinkeltools.de/sef-links-for-virtuemart-with-vmsef.html

or
http://www.joomlaplugins.net/joomla-extension-download/cat_view/34-virtuemart-specific-extension.html
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: apexfreelance on March 06, 2010, 03:15:09 am
Try this plugin:
http://en.tinkeltools.de/sef-links-for-virtuemart-with-vmsef.html

or
http://www.joomlaplugins.net/joomla-extension-download/cat_view/34-virtuemart-specific-extension.html

100% PERFECT!!!! Your Great FORREST!!!  I salute you.. Thanks anyway great job.... you made me rock!!!

here is the link:

Category:
http://www.neatfeetcare.com/shop/category/9/athlete’s-foot.html

Product:
http://www.neatfeetcare.com/shop/details/32/9/athlete’s-foot/2-for-1-foot-powder.html


Works perfect.... Thank you, thank you so much...


Best Regards,
Apex Freelance Designer
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 06, 2010, 03:19:51 am
Looks good!
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: bardius on March 08, 2010, 11:09:51 am
Hello,

Real thank you about this great hack! Easy to apply too.

However i have an issue that I find kinda hard to resolve :(

I use Greek characters and even through I get meta title and meta description fine, the meta keywords are all marked as question marks ???????? ????

If I type and save a keyword in Greek chars displays correctly :S so i guess it is not an encoding issue. Maybe its something in the regular expressions used to clean the keywords?

Please help me if you get some free time :)

Anyway....real thank you again!

 
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: bardius on March 08, 2010, 12:14:09 pm
for some reason (that i need to find out :P) when I remove the string to lower in the line below it works ok :S

$end_result = $trimmed_title.', '.$trimmed_words;

Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 08, 2010, 20:00:18 pm
very odd?
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 08, 2010, 20:33:15 pm
Please keep me posted on what you discover bardius.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: mdlhale on March 09, 2010, 07:51:05 am
Nevermind, fixed it in the shop.browse. Thanks!!!!
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 09, 2010, 08:07:44 am
This hack doesn't mess with the URL structure. Check ur VM admin config site URL settings.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 09, 2010, 08:12:26 am
http://forum.virtuemart.net/index.php?topic=65697.msg219413#msg219413

You are not using VM 1.1.14... See my post in link above and joenist99 response and fix for 1.1.13. This was noted as well on the post where this download is available.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: romario on March 10, 2010, 12:03:51 pm
What should I do with the metadata_hack.sql? Should I upload it or where should i put this one. I'm seriously a new one when it comes to hacks
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: klutzon on March 10, 2010, 13:08:20 pm
What should I do with the metadata_hack.sql? Should I upload it or where should i put this one. I'm seriously a new one when it comes to hacks

That .sql file is a set of SQL statements that are meant to create a new table and insert fields into the Joomla database. This hack requires some extra tables be made in the database to manage and store all the metadata. If you're familiar with phpmyadmin (the backend access to your database and all its tables), log into phpmyadmin and open up the database for your Joomla site. (I'm working on my PC using WAMP, so I would access it by typing in the URL http://localhost/phpmyadmin , if you're working locally it should be the same.)

When it's open, click on the "SQL" tab, and in the white space provided, copy and paste the contents of the .sql file (which you can open in Notepad, it's just a text file at the end of the day) and then click on the "Go" button to execute the statements and create the necessary tables.

If you're not familiar with phpmyadmin, or you use a different system, I suggest you ask for some help inserting the SQL into your database.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: romario on March 10, 2010, 13:35:16 pm
Oh thanks I see it. It works really good, but before I knew of this hack is changed something in the code (I read that somewhere on the internet). This helped me to put in a meta description. I you look at my meta description on 'http://www.blokkenwereld.nl/index.php/webshop/details/105/32/duplo/bouwplaten/2198---duplo-bouwplaten-3-stuks'

you can see my meta description: 

<meta name="description" content="2198 - Duplo Bouwplaten (3 stuks) bij Blokkenwereld.nl - De Duplo 2198 bouwplaten is de start voor jongere kinderen voor de bouw van hun grootste creaties. - Bouwplaten" />

 I want to get rid of the -Bouwplaten. You know where to do that? I can't remember it anymore
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 10, 2010, 21:09:25 pm
Could have been many places. Is this appended to ALL pages on your site? Or just one page? Or just products details pages. Be more specific.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: romario on March 11, 2010, 18:09:38 pm
It is only on the front page of webshop, so n the fly page of VM.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 11, 2010, 18:56:10 pm
Not sure what you did then.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: mdlhale on March 12, 2010, 08:13:43 am
Hi, I used the hack and now when I try to go to mywebsite.com/administrator I get a "Restricted index access" Any ideas?

P.S Thanks for the AWESOME script :)
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 12, 2010, 08:45:20 am
Not really. My script does nothing of the sort from touching your JOOMLA access.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: mdlhale on March 12, 2010, 09:10:16 am
That's weird. I ran it on two different servers and it happened to both websites right after i copied over the files and put the SQL up... hmm
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: mdlhale on March 12, 2010, 09:27:41 am
Nevermind, you're right. I am an idiot accidentally made a admin folder in the / rather than in the public_html. lol
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 12, 2010, 09:32:02 am
Glad you got it.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: soulmktpro on March 15, 2010, 21:56:23 pm
I do not obtain to record goal tags manual, exactly qualifying Turn Manual On Edit of Title/Description/Keywords Goal (Global). it helps me! marcus
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 15, 2010, 22:05:16 pm
Marcus, I not sure if you need help or are giving a compliment?! I didn't really understand you much.

A suggestion, try using "Google Translate" to type in your native language and convert to English; paste English in here :)
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: sk1nlimited on March 18, 2010, 15:58:40 pm
Hi,

Please could you help me ?

I bought a VM template that is customised!!, I made a backup before overwriting the files. When I overwrote them the layout and flypage was all wrong so I simply overwrote them with my back up files and everything was good to go again.

Please can you help me to modify the files so that it works with your meta tags, as I contacted the guy that done the VM template and he was not prepared to hack my files   :-[ .

just to let you know I have run the SQL query, and I have also installed the hack for the VM SEF that you mentioned, worked very well (thank you for the recommend)

Seems made that VM does not have this as standard & can I just say from reviews and feedback the work you are doing is brilliant

Regards
Jay
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Pitty on March 18, 2010, 23:12:41 pm
Just wondering what use are keywords and metadata now, since google doesn't use it anymore?
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 18, 2010, 23:30:37 pm
It seems you are mis-informed. Metadata is used still, although in REGULAR WEB SEARCH RESULTS, keywords are SAID to be irrelevant. There is a lot more to metadata than keywords, and Google does use keywords in other products.

Likewise, although Google makes up 65-70% of search market share, there is still another 30-35% search market using other search engines, although true, the other engines as well SAY this is of no consequence. Either way, it's not all about Google or regular web searches.

I can say this... remember where you get your info from, and what the incentive is in providing such info. I'll get back to that in a minute.

So in fact, you can test it yourself. Try a website duplication, one with keywords, one without, keeping all other factors the same, in same timeline, and see what appears faster, and performs better on ALL major search engines. You might be surprised. I have, on several occasions, as this is my biz to do such, and I can tell you, it matters. Surely not like is was when the web search engines were invented... not even close.

Remember, search engines are trying to make the web fair, and may release info that is not entirely accurate, as to benefit their own objectives. It's called propaganda. Don't believe everything your read. Instead, try it.

But frankly, if you want to argue metadata or learn about it, please go somewhere else to do it. There are plenty of forums or other threads for that, and this isn't one. If you have a question about this hack, or how to works, feel free to ask.

Thanks!
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Pitty on March 18, 2010, 23:55:35 pm
Sorry, it was a general question not meaning to sound rude or ungrateful.

I should have rephrased the question to "Just wondering what use are meta keywords, since google doesn't use it anymore?" but youve already answered anyway.

Anyway thanks for the great hack.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 19, 2010, 00:02:26 am
Fair enough, now you have my opinion. :) And you're welcome.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: naoko15 on March 19, 2010, 08:55:49 am
Hi Forrest, first of all thank you for what looks like a great hack. I've got Joomla 1.0.13 and VM 1.0.13a (quite old, i know). I want to upgrade VM to version 1.14, and i'd like to know if your hack would work with J1.0.1 + VM 1.1.4 or it'd be better to upgrade both. I'm a bit scared to mess things up in my site! Thank you
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 19, 2010, 18:37:17 pm
You have asked me two separate questions really.

Would my hack work with J1.0.1 and VM 1.1.4. Natively I don't think so, though I have not tried it. Either way, IT COULD only take a few minor edits to get it to work on J1.0.1

Do I think it would be better to upgrade both? Yes, absolutely. VM is the harder of the two to upgrade in my opinion. If you going to take on this undertaking, might as well do it in one swoop!
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: peppercornmedia on March 20, 2010, 03:23:34 am
Just a word of thanks for this fantastic solution.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 20, 2010, 04:22:17 am
Thank you. Please take a moment of time to post a review here:
http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=6&sobi2Id=328&Itemid=
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: nirajlama on March 21, 2010, 17:15:33 pm
Incredible job, Forrest! Thank you very much for the same. I got great looking sef's now for my small virtuemart store.
Just a couple of questions. By the way, I am a novice when it comes to the subject of SEO.
?#1 After executing the hack successfully, I used Xmap for creating the Sitemap. I deleted the earlier Sitemap from Google Webmaster's tool and uploaded the new one. It has been three days now and out of 44 urls submitted, only 1 has been indexed.
This is my robots.txt
User-agent: *
Disallow: /administrator/
Disallow: /cache/
Disallow: /components/
Disallow: /editor/
Disallow: /help/
Disallow: /images/
Disallow: /includes/
Disallow: /language/
Disallow: /mambots/
Disallow: /media/
Disallow: /modules/
Disallow: /templates/
Disallow: /installation/
Disallow: /index.php?option=com_virtuemart&page=shop.registration
Disallow: /index.php?page=account.index
Disallow: /index.php?option=com_virtuemart&page=shop.search
Disallow: /index.php?page=shop.browse&age_id
Disallow: /index.php?page=shop.cart&func=cartAdd&
Disallow: /index.php?page=shop.cart
Disallow: /index.php?page=checkout.index
Disallow: /index2.php
Sitemap: http://www.darjeelingteaexclusive.com/index.php?option=com_xmap&sitemap=1&view=xml   


What is going on here? Why have I been able to index just a single page so far?

?#2 When I look at the source of www.ruggedradios.com, I see a lot of metadata categories besides title, description, keywords, generator that I have. Ruggedradios got additionally subject, classification, copyright, designer, etc. Have these been generated through the same hack? And do these have an impact on search results?

Lastly, where could I modify the meta name "generator" = "Joomla 1.5....." to include data of my choice?

I am on Joomla 1.5.15 and VM 1.1.3

Thanks for taking the time to read this.
PS: I shall certainly record my gratefulness in the reviews. 
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 22, 2010, 07:16:46 am
This is typical of Google. I have over 1500 links, with only 250 indexed so far. It will take time, and that is all there is to it.

This hack doesn't create the other results, but you can modify and add results if you wish by editing:

libraries/joomla/document/document.php (for "generator")

and

libraries/joomla/document/html/renderer/head.php (for more metadata fields)

I have attached the edited (head.php) for rugged, to which you can use to replace their info with yours.

[attachment cleanup by admin]
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: mizamba on March 22, 2010, 16:53:44 pm
After install Autogen Metadata my shop is broken and the code appar is:

Fatal error: Call to undefined method ps_product::product_related() in /web/htdocs/www.pbikestore.com/home/components/com_virtuemart/themes/default/templates/common/relatedProducts.tpl.php on line 23

My shop site is: http://www.pbikestore.com/index.php

Why?

Michele

P.S. Sorry for my english
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 22, 2010, 17:05:51 pm
1. You did not install hack right.

or

2. You were not using VM1.1.4
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: mizamba on March 22, 2010, 17:09:07 pm
Using VM 1.1.4 and use and may be install corretly this hack ...
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 22, 2010, 17:24:07 pm
3. You did something else wrong, unrelated to installing this hack. This hack doesn't mess with ps_product::product_related().


Ok, I just did some poking around, and in my relatedProducts.tpl.php I have this:
            <?php echo $ps_product->product_snapshot( $products->f('product_sku') ) ?>

I have no call out to "ps_product::product_related()".

Furthermore, in my ps_product.php, I have no function called ps_product::product_related().

My guess is you have an older version in some way. What you can do though, is add that function to your ps_product from your original files.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: mizamba on March 22, 2010, 17:36:35 pm
This is code in my relatedProducts.tpl.php

<table width="100%" align="center">
   <tr>
    <?php
    while( $products->next_record() ) { ?>

         <td valign="top">

            <?php echo $ps_product->product_related( $products->f('product_sku') ) ?>

         </td>
   <?php
    }
   ?>
    </tr>
</table>

and ps_product not change ....
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 22, 2010, 17:53:41 pm
mizamba, I understand that your relatedProducts.tpl.php is calling this out, but I am telling you also this is not the updated version.

Regardless, since you have a different ps_product.php than the one this hack is made for, you can do a manual install of the hack if you wish.

You will need to go inside each document, and copy the hack code (commented meta) and paste it into your original documents.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 22, 2010, 17:55:45 pm
You can verify that what I say is correct. Look at the version of ps_produt.php you are using and the version I have provided. You will notice that there is a date difference (date / version found at top of document).
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: nirajlama on March 22, 2010, 18:26:34 pm

This is typical of Google. I have over 1500 links, with only 250 indexed so far. It will take time, and that is all there is to it.

This hack doesn't create the other results, but you can modify and add results if you wish by editing:

libraries/joomla/document/document.php (for "generator")

and

libraries/joomla/document/html/renderer/head.php (for more metadata fields)

I have attached the edited (head.php) for rugged, to which you can use to replace their info with yours.

Hey Forrest!
Thanks for your generous input.
I guess with Google I just have to have exercise patience - a rare, but welcome opportunity.
Cheers!
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: MattCruz on March 23, 2010, 21:53:59 pm
Hi Forrest,

I've installed your Autogen Metadata hack in a VM 1.1.4 localhost catalog-only dev environment with 10K products. 2 things I noticed:

 1. On product browse paging (with 10-product display set), going to the next page took from 5-10 seconds (in DEBUG mode) although uninstalling the hack then doing the same took just .1 second!
 2. The metakeys tables (both product and category) were not auto-populated if I did not open the product in VM. What triggers the auto-populating of metakeys?

Thanks a lot for a great hack. Hopefully, you could help me sort this out.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 23, 2010, 22:50:25 pm
As for speed, since you have the metadata currently auto-generating data on the fly, and you probably have tons of product in one category, it might take a few seconds more.

Category metadata is not based on just what is shown one one page, its based on category description, parent category info, and ALL products within that category (not just what is currently shown). So it's takes into account names of all products in that category, which if you have 100s of them, I can see how this might slow things down a bit.

You shouldn't have this problem for products, as it only takes into account that product, and the assigned category name/description.

To alleviate the category problem, you will want to turn on the "Turn On Manual Edit of Meta Title/Description/Keywords (Global)" setting.

When you do this, instead of generating Title, Description, and Keywords on the fly on the front end, it will refer to the database entry for metadata for that category. But in order to have a database entry for category metadata, you must enter each category via VM admin, and edit/save what is auto-generated there. Now instead of dynamically creating metadata keywords (most intensive process) on the fly as visitors go to your category, the info will be pulled from the database, greatly reducing the processing.

So, if you have follow that.
1. DO NOT TURN ON for products:
Turn On Manual Edit of Meta Title/Description/Keywords (Global)
unless you want to edit (title, description, keywords) for each product. 10,000 products... that is a lot of time.

2. TURN ON for categories:
Turn On Manual Edit of Meta Title/Description/Keywords (Global)
and enter each category in VM admin, then save it. This will save the dynamic info into database, so not having to do this when user visits site front end.

3. The other global settings you can use a s you please... they should not make much difference at all in terms of speed (appending, pre-pending options)
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: nirajlama on March 29, 2010, 06:03:38 am
Hi Forrest,
Now that Google has begun indexing my new Sitemap (the results are good), I am having another problem. A whole lot of 404s.
Instead of redirecting each and every page using .htaccess, I was wondering if I used Artio JoomSef which has an easier form for doing the redirects.
I would be thankful if you had some advice. I have a feeling that I am staring into bottomless abyss!
Thank you for your patience with us obtuse kinds. 
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: orasis on March 29, 2010, 06:12:22 am
Hi Forrest,
Now that Google has begun indexing my new Sitemap (the results are good), I am having another problem. A whole lot of 404s.
Instead of redirecting each and every page using .htaccess, I was wondering if I used Artio JoomSef which has an easier form for doing the redirects.
I would be thankful if you had some advice. I have a feeling that I am staring into bottomless abyss!
Thank you for your patience with us obtuse kinds. 

Hi, why do you relate the redirects and 404s to this plugin ? I didn't get it, did you reinstall all virtuemart or recreated (deleted etc) your products, and the old indexed ones from google results point to a 404 error ??
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: nirajlama on March 29, 2010, 18:15:10 pm
I am sorry. The other day I had discussed a bit with Forrest about how Google was "reindexing" because I had resubmitted by Sitemap after the installing the hack.
The problem is also after this procedure I activated SEF for the first time using router.php, as recommended by Forrest. I overlooked the redirect problem. Now I am looking for some solution.
Do you think I could use the Joomsef?
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 29, 2010, 20:51:04 pm
I use a nifty little Joomla plugin to direct old URLS to new URLS called:
JRedirect

Be sure you read the instructions and use correctly! No spaces (or returns) on last redirect URL param.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: cliffordsfleas on March 29, 2010, 22:01:26 pm
This is brilliant. Thanks for putting this together. :)
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: nuller-joe on March 29, 2010, 22:20:54 pm
Hm, for some reason it doesnt autofill mnta keywords. I dont know why?, any known bugs?
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 30, 2010, 00:57:08 am
No bugs now that I know of. This release has been out for a bit now.

There are two ways keywords are generated. From the VM admin edit product, or from the front end product details page.

Where are you checking to see keywords (or lack thereof)?
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: nuller-joe on March 30, 2010, 03:03:19 am
Both in the VB admin, and frontend
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: orasis on March 30, 2010, 09:29:21 am
Do you think I could use the Joomsef?

I do, but it looks like it is going commercial soon although it is not very user friendly and has problems as all SEF plugins.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: nirajlama on March 30, 2010, 15:17:12 pm
Thanks Forrest for the tip. I have downloaded it, READ the instructions carefully, and am executing it right now.
And thank you Orasis for the advise.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 30, 2010, 22:43:30 pm
nuller-joe: I can only assume you have not copied over the files correctly, or did not update the database with the .sql file included.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Stefanos on March 30, 2010, 22:54:28 pm
Hi Forrest what's up, how is it going with the plugin, how about the image meta ?

cheers, happy holy days
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on March 31, 2010, 18:14:47 pm
No rest for the weary. No progress on image meta, and probably not for another month (if at all) at this rate.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: zazu on April 01, 2010, 01:25:30 am
I note in the example url that the product name is appended as in:

http://www.ruggedradios.com/race-racing-communications-store/details/619/82/intercoms/jeep/browse-by-product/4-watt-vhf-car-to-car-radio-kit.html

I have disabled sh404sef as per the Google Webmaster Official blog and my urls are now like:

/index.php?page=shop.product_details&flypage=flypage.tpl&product_id=9611&category_id=241&option=com_virtuemart&Itemid=71

Is the appending of product name part of the hack please?
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on April 01, 2010, 01:32:24 am
Not in the URL. This hack has nothing to do with URL structure. Just TITLE, DESCRIPTION, and KEYWORDS METADATA.

sh404sef will alter the URLs. I use router.php, which does the same thing.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: zazu on April 01, 2010, 01:37:36 am
Thanks

Where can i find router.php please?
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on April 01, 2010, 01:43:55 am
Search the forum for it.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Stefanos on April 01, 2010, 02:06:44 am
Forrest I believe that many of Joomla users do use some SEF plugin and are already able to use metadata for virtuemart that way, so I believe image metadata is what is left to be done, and I find it much more important at this point. Sorry but I think you should reconsider this case.

cheers
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on April 01, 2010, 02:17:01 am
That may be so, however:

1. This hack has been downloaded 1000+ times since I posted first rev 2 1/2 months ago. This hack fills several needs that SEF plugins do not.

2. As I stated before, what you are asking for is a completely different hack. This hack is for PAGE METADATA, not IMAGE tags. The core files to hack, and functions associated with them, will be different.

So, considering time and efforts, it's not going to happen any time on the short future.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: klutzon on April 01, 2010, 08:57:55 am
Forrest I believe that many of Joomla users do use some SEF plugin and are already able to use metadata for virtuemart that way, so I believe image metadata is what is left to be done, and I find it much more important at this point. Sorry but I think you should reconsider this case.

cheers

I don't think an Image Meta generator is necessary, VM already has all the facilities to assign images short and long descriptions which you could then apply to the images on the front end, however it does not use this information by default (the long description entry input isn't even available on the File / Image Upload form, but it is in the database) and doesn't make it clear how to use them, so I don't blame you for thinking such a generator would be required.

It would not take much to create a script that auto-populated the short and long descriptions for each additional product image in the database, although I'd recommend entering it yourself to give each image better context, and then it would just be a matter of assigning each description as a variable you can use on the front end and off you go.

I've got a product image slideshow set up for the site I'm working on, I will post the link when it's ready for the public.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Jimvertical on April 01, 2010, 16:58:05 pm
For those using Virtuemart, CSVimproved and this hack... it is possible to use CSVimproved to upload meta-keys in bulk with a CSV file.

I am by no means a Joomla or Virtuemart expert.
I just thought I would try this and it worked for me. If it doesn't work for you, I probably can not help you (sorry).

Here is how I did it:

1. I added a column to my CSVimproved CSV file called "product_metakey" (see attached screenshot).(http://img408.imageshack.us/img408/9857/metakeycsv.gif)
2. I added a "Field Name" to my CSVimproved template called "default" (you can find it in the drop down box). This was on my CSVimproved page called "Template fields::CSVI Product Import" (screenshot attached).(http://img253.imageshack.us/img253/9914/metakeycsvimproved.gif)
3. I added a column header in this same template called "product_metakey" (note that it matches the column in my CSV file).(same screenshot as #2)
4. I made sure the check box for this hack called "Turn On Manual Edit of Meta Title/Description/Keywords" on the Metadata tab for the products in Virtuemart was checked.
5. Uploaded the CSVimproved CSV file, checked my product in Virtuemart, clicked the tab for "Metadata" and my uploaded keywords appeared.

It was used here on a few items:
http://www.maximummidrange.com/

Regards
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: zazu on April 02, 2010, 05:59:22 am
This hack an excellent product. One question, the first page of the shop that lists all the categories, simply has the title tag "Shop" - is it possible to change this to something more meaningful?

[EDIT] Dumb question! its in the parameter section of the menu module
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on April 02, 2010, 19:37:11 pm
:)
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on April 04, 2010, 08:59:40 am
[UPDATE] 04-04-2010 -> download v1.6

Note: You can download the update from first post / first page of this thread.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Mackenziella on April 04, 2010, 18:05:40 pm
Where is the download link?
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on April 04, 2010, 18:07:12 pm
Note: You can download the update from first post / first page of this thread.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Mackenziella on April 04, 2010, 19:59:20 pm
I click om the link indicated and the only clickable link I see is

http://forum.virtuemart.net/index.php?topic=65697.msg217254#msg217254

But this only returns to the page where I started.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on April 04, 2010, 20:13:13 pm
That is not the download. You need to go to the VERY BOTTOM of the post, and look at all the available download versions. Download the latest. You just need to look harder.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: zazu on April 04, 2010, 23:57:35 pm
Forrest, we have a bookshop and added additional column to the product table for author, ISBN plus a few more for publisher, pages, publication date etc. We modified the flypage as well. Is it possible to modify the hack so that it picks up these author and ISBN columns as additional to the global keywords?
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on April 05, 2010, 00:10:25 am
Sure is... just checkout the are where my code gets and cleans the keywords in shop.product_details.php and product.product_form.php.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Mackenziella on April 05, 2010, 15:31:19 pm
I see the download links now and I downloaded the latest version and unzipped it but it is not accepted by the install process in Joomla.

I see that the instructions identify it as a "hack". I am interpreting this to mean that instead of using the usual virtuemart install function that one should manually replace the identified files on one's server using FTP commands. Is this correct?
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on April 05, 2010, 21:35:30 pm
Yes, this is a HACK, not a Joomla mod or component. You will need to backup existing files, and overwrite them with the ones included, as well as import the .sql script into your database (using phpMyAdmin or similar).
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on April 06, 2010, 21:39:52 pm
Please remember to place a review on my hack here. Anyone?
http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=6&sobi2Id=328&Itemid=
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: NolanS on April 08, 2010, 01:41:16 am
I know this is the autogen thread for your metadata hack. I was wondering if there is a hack that will help with the workload of creating related products? For some reason I remember a post about a hack whereby if you related product A to B, product B is automatically related back to product A. But I can't for the life of me find that thread!
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on April 08, 2010, 02:37:52 am
Sounds cool, but no idea. Keep searching. Might try Google search as well.
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: tekilas on April 08, 2010, 16:58:24 pm
Hi:

one question .... to perform this hack, change urls as sh404sef? or are exactly alike?

Thanks
Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: Forrest on April 08, 2010, 18:38:26 pm
This hack is for Metadata only, not SEF URLs.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 09, 2010, 02:06:32 am
[UPDATE] 04-08-2010 -> download v1.7

Note: Download update from first page/ first post of this thread.
Note: Please remember to review this hack here:
http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=6&sobi2Id=328&Itemid=
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Roderick1 on April 09, 2010, 19:40:35 pm
Forrest, you are a genius!!!
Works out of the box with joomla 1.5.15 and virtuemart 1.14

This is great stuff, and it should not be free at all...
Thanks Forrest!!!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 09, 2010, 19:42:42 pm
Txs for your accolades Roderick1 :).

If you find time, please remember to review this hack here:
http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=6&sobi2Id=328&Itemid=
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on April 15, 2010, 15:11:58 pm
cant figure out how to add a review on there. There is a button for "add entry" but I think thats for adding an extension.

I cant even figure out how to donate to virtuemart.
I have looked many times, and give up every time.

Its so confusing
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 15, 2010, 19:42:08 pm
Hehe, agreed.
The review option is at the bottom of the specific extension page, but does not work in certain browsers... So you might not see a button. You must be logged in as well.

To donate to VM, I have no idea either! I haven't come across a link to do it.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: nimbusc on April 17, 2010, 12:28:31 pm
Hello,

Firstly thank you for this great hack!

I updated to latest version using the provided sql update and I was getting an error in phpadmin I had to remove the parenthesis in all requests for it to actually work. eg. ALTER TABLE `jos_vm_product_metakeys` >>>(<<< anyway all is good now.

What I really want to know though is if you can do something about my problem concerning multi lingual sites. If "Turn On Manual Edit of Meta Title/Description/Keywords/" is NOT ticked my meta tags use the language provided and everything works great but when I tick it to manually tinker the auto-generated tags on the second language

a) I only get the default language tags when I view the source
b) Is there a possibility to manually edit second language tags?

Thanks again for a great hack hoping for vm intergration ;)

Edit: Edited text added "NOT"
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 17, 2010, 19:36:32 pm
nimbusc...
I am assuming you meant:
If "Turn On Manual Edit of Meta Title/Description/Keywords/" is NOT ticked my meta tags use the language provided and everything works great. Correct?

I haven't worked with multi-lingual before in VM. What are you using, JoomFish? I'm sure I can work something out, but I'd need to figure out how the multilingual thing works first with VM.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: nimbusc on April 18, 2010, 09:26:04 am
Forrest you are correct my mistake if manual edit is NOT ticked. I am using joomfish. Multilingual translations work with a joomfish content elements file you copy paste inside joomfish folder. I attached one for you to take a look.
I wouldnt even mind going inside the sqlDB and editing there manually if the autogenerated translations could be seen when manual edit is on.

cheers

[attachment cleanup by admin]
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mitico_good on April 18, 2010, 17:40:46 pm
Quote
query SQL:

-- Metadata hack to update and add tables
-- --------------------------------------
--
-- Add columns for title, meta description and keywords
-- for product
--
ALTER TABLE `jos_vm_product` ADD COLUMN `product_title` text,
ADD COLUMN `product_metadesc` text,
ADD COLUMN `product_metakey` text,
ADD COLUMN `product_abstract` text,
ADD COLUMN `product_canonical` text;

Messaggio di MySQL: Documentazione
#1060 - Duplicate column name 'product_abstract'

now I no longer stored as meta tags.
I also tried to delete the changes to the table and do it all but
the result is always the same
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 18, 2010, 19:44:37 pm
nimbusc: I'll have to take a look at this in a few days.

mitico_good: I do not fully understand you.
Quote
#1060 - Duplicate column name 'product_abstract'
If you are having problems... the error says is all. Looks like you already have a column called product_abstract in jos_vm_product. This is not a standard VM column, so if it already exists, you have installed another hack that installed this, or you already ran the sql, removed the other columns, but did not remove this one.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: tekilas on April 19, 2010, 10:51:52 am
I have a problem ...

no settings will be saved "Turn On Manual Edit of Meta Title / Description / Keywords / Abstract (Global)" and all the global settings.

Any ideas?

On the other hand, there is some way to know if it installed the hack?

Thanks

PD use VirtueMart 1.1.4 and Joomla 1.5.14
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 19, 2010, 20:57:37 pm
make sure your jos_vm_product_metakeys and your jos_vm_product_ketakeys have an mid of 1. Just edit it and put a "1" if it does not.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: tekilas on April 19, 2010, 21:47:51 pm
Excuse me, but I do not understand what you say (my English is not the best) :(

second, you mean to jos_vm_product_metakeys and jos_vm_category_metakeys (because you put your jos_vm_product_metakeys and jos_vm_product_ketakeys)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 19, 2010, 23:57:09 pm
yes metakeys. These are TABLES in your database. Please look at those to tables and make sure the only entries in them have an MID (name of table column) set to 1 (a value of "1").
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: nuller-joe on April 21, 2010, 11:28:31 am
The "Remove words from keywords metatag (comma seperated):" doesnt work for me. The words i put in there doesnt get removed from the keywords metatag
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Davec on April 21, 2010, 21:26:20 pm
Great Hack -

Dave
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 22, 2010, 05:50:54 am
nuller-joe, the latest rev?

Did it ever work for you?

Can you confirm that all words you put it there... NONE of them are removed? Please try more words.

I have heard this from one other user. Works ok for me, though I have noticed an inconsistency from time to time and I have not figured it out.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 22, 2010, 05:52:24 am
Txs for accolades Davec.

Please take a few moments to post a review here!
http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=6&sobi2Id=328&Itemid=2
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: nuller-joe on April 22, 2010, 07:51:45 am
nuller-joe, the latest rev?

Did it ever work for you?

Can you confirm that all words you put it there... NONE of them are removed? Please try more words.

I have heard this from one other user. Works ok for me, though I have noticed an inconsistency from time to time and I have not figured it out.

No, it never worked for me. Im using the latest 1.7
It seems like only some of the word is removed :O
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 22, 2010, 07:58:13 am
A funny request, but could you enter the same word (one not working) in twice in the banned section and see if that solves it? Something like:
.... all, all, remove, remove, ...
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: nuller-joe on April 22, 2010, 08:15:58 am
Had to write the word 3 times, but then it worked.. I guess i just have to c/p all of the words 2-3 times :)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 22, 2010, 20:40:37 pm
K, thanks... I had a feeling. I'll get this fixed in next release.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: alinutz83 on April 25, 2010, 13:00:46 pm
First of all Forrest thank you for your effort and kindness to create Auto-Generate Metadata. This is a very usefull for me.

I have a queston, it`s posible to add Metadata to manufacture, i see that a lot of my clients search the web for manufacture.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 26, 2010, 01:28:03 am
Good idea. I'll add that as option as well to next release.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: alinutz83 on April 26, 2010, 07:12:17 am
Thank you Forrest
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on May 08, 2010, 02:14:47 am
@nuller-joe, @alinutz83:
Haven't forgotten about you guys. I'll hopefully have release out this weekend.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: naoko15 on May 10, 2010, 11:48:38 am
I've installed your hack in my site and it works great....very nice indeed! Thank you for the hard work.

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: alinutz83 on May 13, 2010, 12:30:12 pm
Yupi...i`m waiting for it, you are the best Forrest. Thank you
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Hermes on May 15, 2010, 03:25:51 am
Hi Forrest!!

¿Do you remember me?
I hope you're well!!

I'm finishing my online store and I decided to take a look to this hack.

I have installed and I'm not sure if I'm doing something wrong, but I can't seen any different between my old source code and the new source code generated with your hack.

¿Is there a place to turn on a global button?

I have edit in the descripttion of one product, and I haven't touch any button. If I don't touch anything, ¿Is it suppose that the default mode is automatic mode?
or ¿Should I turn on some button?

Ah!! I've taken a look to the database and only the first product have data inserted that seems to be OK, although this info is not published in any way in the source code.

Before to take a look to all the code inserted in each file ¿Any Idea?

Only as info... The 5 new fields in the vm_product table are exactly behind 6 fields more than I added to the same database in order to publish some especial data of the products I sell. ¿Could it be this the problem? ¿Could be the insert statement the problem?

Thanks in adavance!!
Nice to see you again Man!!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: james123 on May 15, 2010, 19:47:13 pm
Hey Forrest,

This looks very promising. I'm trying to decided between using sh404sef or this for my metatag needs. What are the benefits of this over sh404sef? Also, should i wait for your next release to get started?

Thanks for you work. Much appreciated.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: james123 on May 16, 2010, 03:31:01 am
So I got anxious and tried this out. Works amazing so far. I did notice that the appending text on the title for the categories is doing a double (--) dash...so

<title>Category Tittle -  - Appended text here.</title>

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on May 17, 2010, 23:28:32 pm
@Hermes:
Did you figure it out?
My hack requires no editing of anything by default to work.

The database fields (for jos_vm_product/category) are only filled out when you enter a product/category and save. These fields are not used unless you have opted to Override the auto-generated output.

As for global settings, these apply to all product (or all categories). If you enable (or fill) them in, they should work immediately.

I can only assume either
1) you missed something in the install
or
2) you have caching enabled? and did not clear your cache.

Let me know if the problem persists via pm with a web link and admin/database rights/access.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: ladyhotchkiss on May 21, 2010, 06:43:12 am
Cannot load!

When I go to install (via the extensions manager, I get this error:  Error! Could not find an XML setup file in the package.

Should be installing another way?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on May 21, 2010, 06:50:40 am
Yes, this is a HACK. You will need to read instructions included in zip file. You will be over-writing core files, and running database scripts to make this work. Pls don't use if you are noob. Get familiar with VM first. Otherwise, if you proceed, please Backup First!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: ladyhotchkiss on May 21, 2010, 17:42:33 pm
Thank you!  This will have to wait . . .wish it wasn't a HACK!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Everest on May 22, 2010, 15:53:01 pm
Great job, pal, keep on doing it. I didn't expect much from auto-generated meta data but manual editing for sure does the magic. So far i didn't experience any hurdles to make it run - everything's slick. You have some minor issues with non-Latin automatically generated meta keys, though. Any ways I attest that it's fully operational for folks not using English as primary language and with some efforts you can get pretty decent results. I'd love to share my thoughts with others on your official virtuemart extension page but for some reason in order to make it one has to have a different account there so instead I appreciate your great job here. Thanks again.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on May 22, 2010, 20:55:51 pm
Thanks for the feedback Everest :)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: scothern99 on May 23, 2010, 17:10:09 pm
So, I copied over the files and backed up my originals.  This did NOTHING.  Not a single change.  I mean nothing showed up at all.  So I guess I missed something?  I'm running VM 1.1.3, but didn't see any errors when copied over the files, so I'm guessing I have to manually edit all 6 of these files?  How do I know exactly where to put the info in the files then and what info do I put there?  A Little help would be appreciated.  Thank you.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on May 25, 2010, 09:58:31 am
Please search this thread regarding VM1.13

You can find a note about this on the first post of this thread as well. You need to adjust a certain file accordingly... as it has been addressed in this thread!

And make sure you run the sql included in the download as well.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: james123 on May 25, 2010, 13:59:29 pm
So I got anxious and tried this out. Works amazing so far. I did notice that the appending text on the title for the categories is doing a double (--) dash...so

<title>Category Tittle -  - Appended text here.</title>



Anything on this Forrest?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: scothern99 on May 25, 2010, 16:02:36 pm
Please search this thread regarding VM1.13

You can find a note about this on the first post of this thread as well. You need to adjust a certain file accordingly... as it has been addressed in this thread!

And make sure you run the sql included in the download as well.

It works wonderfully actually.  I had an FTP error and it missed a couple of files.  Thanks again.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on May 26, 2010, 01:26:50 am
@james123: I'll have to look into this over the weekend. It's something minor.

@scothern99: glad it's working for you now :)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: tax on May 30, 2010, 19:44:01 pm
First excuse my bad English. This translator Google.
Forest, your job is very helpful for me. However, this hack does not work with cyrillic words. example in the picture.
Database in UTF8 encoding
Need your help.
Thanks

[attachment cleanup by admin]
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: spottedsparrow on May 31, 2010, 13:19:41 pm
Thanks for the great hack.  Does this auto-update metadata when you change a product description?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: 3NDG4M3 on May 31, 2010, 17:20:59 pm
Everything is working nice, Great job!! ;)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: ningpa on June 01, 2010, 04:17:47 am
hi, nice hack :)
didn't have any problems making changes to core files, everything went smooth...

i'm also having some problems with multi lingual site.
everything is fine when my default language is selected, but if you select some other language my title (part of the title with vm category/product name) and my meta tags are displayed in defalut language.
(this is of course if "Turn On Manual Edit of Meta Title/Description/Keywords/Abstract (Global)" is ticked)

is there a way to somehow 'disable' this hack for other than default languages if not make it work with joomfish?

thanks once again for this.

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: ningpa on June 02, 2010, 09:42:48 am
i managed to make this work.

first you i got currently active language with:
Code: [Select]
$lg = &JFactory::getLanguage();
$language = $lg->getBackwardLang();

and then i just made if statement:

if( $language != 'your_default_language' ) {
 // default vm code goes here
}
else {
 // hack code goes here
}

hope it helps someone ;)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on June 02, 2010, 10:41:51 am
@spottedsparrow: Yes, if you update the description, and the
"Turn On Manual Edit of Meta Title/Description/Keywords/Abstract (Global)"
option is unchecked / off, then it will update on it's own.

If
"Turn On Manual Edit of Meta Title/Description/Keywords/Abstract (Global)"
is checked / on, then it always pulls from that admin form field. If you want the override to re-generate/re-populate the data in the admin form field, then you have to clear the field desired to re-generate and then save the form. Upon re-entry of the product admin form, the data will repopulate. Again, this is only for if you are using the override (checked) option.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on June 02, 2010, 10:43:59 am
@tax: see ningpa's previous post.

@ningpa: Thanks for the update. A good solution till get it to work with joomfish.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: tax on June 02, 2010, 11:03:33 am
i managed to make this work.

first you i got currently active language with:
Code: [Select]
$lg = &JFactory::getLanguage();
$language = $lg->getBackwardLang();

and then i just made if statement:

if( $language != 'your_default_language' ) {
 // default vm code goes here
}
else {
 // hack code goes here
}

@ningpa, where (in which file) do this hack?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on June 02, 2010, 11:17:15 am
shop.broswe.php

and

shop.product_details.php

(find my code (hack))
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: tax on June 02, 2010, 12:06:06 pm
please, help me correctly modify files. When I make changes, metakeys taken from the default joomla settings
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: ningpa on June 02, 2010, 17:39:33 pm
i was really busy when i was writing previous post and totally forgot to point out in which files you need to make this update:
Code: [Select]
administrator/components/com_virtuemart/html/shop.broswe.php
administrator/components/com_virtuemart/html/shop.product_details.php

i attached modified files.
you need to substitute 'serbian_lat' in
Code: [Select]
if( $language != 'serbian_lat' )statement with your default language.

(i think i made some changes with the rest of the code so dont just copy/paste entire files)



forest, thanks again


[attachment cleanup by admin]
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: allan.backhouse on June 03, 2010, 11:41:35 am
Hi Forrest,

Thanks so much for an awesome hack. It was a little difficult at forst but I managed to get it working in the end.

The only problem I am currently experiencing is that the description tags in my products pages dont automatically populate.

Could you possible please take a look at this website http://mycamera.co.za/sony-alpha-330-dslr-camera-twin-lens-kit.html and point me in the direction?

I am using
VirtueMart 1.1.3
Joomla 1.5.13 Stable &
autogen_metatags_vm1.1.4_v1.7

Thanks,

Charles
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: allan.backhouse on June 03, 2010, 12:52:55 pm
Hi, Please can anyone help with the below?
I am needing help desperately.

Thanks,
Charles
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on June 04, 2010, 07:27:59 am
Did you check the manual override of the metadata? If so, this will not automatically populate on front-end? If you want it to populate on the admin, clear the description (make sure no spaces), then save, and re-enter product admin and save again.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: allan.backhouse on June 04, 2010, 10:02:10 am
Did you check the manual override of the metadata? If so, this will not automatically populate on front-end? If you want it to populate on the admin, clear the description (make sure no spaces), then save, and re-enter product admin and save again.

Hi Forrest, I have cleared both the Product Description fields and Meta Description fields, and left the Manual Override unchecked since I installed this, and it is still not updating. Any other ideas what may the problem be?

Regards,

Charles
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: allan.backhouse on June 04, 2010, 13:22:15 pm
Hi Forrest,

I just found out that it is because I dont have any Short Descriptions, I only populated the Product Description fields. Could you please send me the code or work-around so that the meta-description pulls from the Product Description field and not from the Short Decription field?
Or please tell me in which files and what lines I need to edit and I can implement.

Many thanks for an awesome product so far.

Thanks,

Charles
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on June 06, 2010, 21:20:33 pm
You'll need to change the files (html folder files), and specifically where in my hack calls out for "product_s_desc", and instead change all calls to the "product_desc".
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: zazu on June 07, 2010, 00:59:23 am
I have been using the hack for some time and think its great. I have some long category names often with commas and product names with colons and the urls get represented like the following:

http://www.goodwins.co.nz/shop/details/3694/1675/earth-sciences,-geography,-environment,-planning/earth-sciences/geology-&-the-lithosphere/the-hidden-landscape--a-journey-into-the-geological-past.html

The commas are retained in the url and the colon is changed to a dash, hence the double dash in the url

I am not sure whether this is a good thing for Google and if not how can I remove the commas and avoid the double dash

FYI the category names are based on international standard of book classification
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on June 07, 2010, 01:04:08 am
I think your misunderstanding what is generating that URL. This hack doesn't generate SEF URLS... It does SEO (metatags: title, description, keywords, etc). You must be using an SEF component/mod/plugin to generate the SEF URLS, in whcih case that is where you want to check.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: zazu on June 07, 2010, 03:24:09 am
Sorry about that - the issue is with router.php
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: tax on June 07, 2010, 09:04:19 am
Hi, Forrest
Haсk ningpa not decided my problem.
Is it possible to add in the ANSI codepage UTF8 for metakey?

Thanks,
Nick
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: allan.backhouse on June 07, 2010, 09:27:54 am
You'll need to change the files (html folder files), and specifically where in my hack calls out for "product_s_desc", and instead change all calls to the "product_desc".

Hi Forrest,

Finally I got it to work, thanks so much for the prompt help. I would definitely recommend this to anyone looking to add SEO to their Virtuemart component and its products etc.

Thanks,

Charles :)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: gocartgo on June 10, 2010, 03:41:38 am
Thanks, Forrest for this great functionality! Simply awesome!

I had some problems like others in this post about not getting meta name Description to update. It always showed my site name. It took me a while to find it, but I remembered editing index.php with the following:

Code: [Select]
<?php $this->setDescription('My Site Name Here'); ?>
Taking this out surely fixed my problem. Maybe other folks that still have a Description problem have done something similar.

Thanks again!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: fewleh on June 11, 2010, 13:37:04 pm
Hi Forrest, firstly would like to say thanks for such a useful little hack. I've just been testing it, and it's all working 99% correctly...except, it seems to be over-writing the meta information for my hompeage that I have saved in "global configuration". It seems to be taking the meta data from another page all together...any ideas on how I can iron out this small wrinkle? Thanks again dude, people like you make the world go around!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: fewleh on June 11, 2010, 13:41:14 pm
A little side note - my contact us page seems to be using the global config meta data...index.php seems to be using some old meta data...i'm a bit confused, have I missed something?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: fewleh on June 11, 2010, 13:48:08 pm
Hi again...sorry, I had a module on the homepage that was overwriting the normal meta data, I deleted the meta from the module and it is now picking up the correct text. Now it is just the Contact us page, as far as I can tell that has the wrong meta data, but that's not the end of the world...just using the global meta data
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on June 12, 2010, 11:10:17 am
@fewleh: please note, this metadata hack is for VM pages only. Contact pages, and other component pages that are NON-VM will not be altered by this hack. It's purely for product category and product details pages.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: renton84uk on June 12, 2010, 12:08:42 pm
Hi, thanks this is a great hack, and works really smoothly.

The only thing i am confused about is the meta abstract. I cant seem to find that anywhere  in my pages?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: renton84uk on June 12, 2010, 12:37:14 pm
Oh i found the option at the very bottom, silly me. All I would say in maybe change the description slightly at the top to point at the abstract is not enabled by default.

Thanks again for this great hack.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: franzpeter on June 12, 2010, 16:36:48 pm
Before I did use the AuotGen Metadata Metatag, I did buy a 99$ Joomla extension to do that job. It did slow down the server performance and an uninstall did some very nasty things inside the virtuemart files. I had to close my store for one day to reinstall virtuemart. My Joomla installation is now protected by a firewall. I did try to reinstall the component and the installation was blocked by the firewall. So it seems to content some strange code. So I forget about that component.
Did find that AutoGen Metadata Metatag installed the database tables, backed up the virtuemart files as precaution but: it was not necessary. AutoGen Metadata Metatag works like a charm. It does not slow down the server performance and generates the Metadata without any problem.
Hope, that the virtuemart developers will integrate it as standard.

Dear Forrest,
You did an excellent work. Thanks for that great addition
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on June 13, 2010, 10:16:30 am
@renton84uk & @franzpeter, glad to hear it's working well. Thanks for accolades :).
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: diastasi on June 14, 2010, 19:20:50 pm
forrest..

a) The UTF8 proble in Product Meta-keywords still exist, even if I tried everything here.
Everythink Greek in Meta-Keywords field is like:
Code: [Select]
kidbox, pc, ���������������, tft, monitor, gb, xp, windows, suite, rom, ram, optical, openoffice, mouse,
The same in Category Meta-Keywords
Code: [Select]
�������������, ��������, ���������, �������������, ��������, floral, �������, ����������, ����, city, ����������,
b) Is there a way to put in products pages the keywords of the category?
For me it is more simple that way because every product in my category could use the same keywords. The only thing changeable is the product name!


Thanks for the good work  ;)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: spottedsparrow on June 15, 2010, 15:23:25 pm
This does not seem to be working.  I have not checked or turned on the manual edit option, but descriptions and meta tags are not being updated.

@spottedsparrow: Yes, if you update the description, and the
"Turn On Manual Edit of Meta Title/Description/Keywords/Abstract (Global)"
option is unchecked / off, then it will update on it's own.

If
"Turn On Manual Edit of Meta Title/Description/Keywords/Abstract (Global)"
is checked / on, then it always pulls from that admin form field. If you want the override to re-generate/re-populate the data in the admin form field, then you have to clear the field desired to re-generate and then save the form. Upon re-entry of the product admin form, the data will repopulate. Again, this is only for if you are using the override (checked) option.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on June 16, 2010, 22:18:14 pm
Then likely you did something wrong in your install, or you are using another metadata program that is overwriting the hack.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on June 16, 2010, 22:18:55 pm
@diastasi: I'll take a look as this as well soon. I think I know the issue.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: wildwill on June 17, 2010, 00:28:23 am
Hi Forest

So i have this VM 1.1.4 site and i have been using sh404sef for meta data, description keywords and general SEO.

I was wondering if i would have to disable this to use you SEO hack? also will your hack remove the multiple URLs for a single product/ cat?

Ww
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on June 17, 2010, 15:52:45 pm
wildwill

The hack does not re-write urls. BUT you can set cannonical urls for categories, and products ETC. AND NOT use re-write. That would make your site faster.

As far as using both together, Forrest will answer that.

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: wildwill on June 18, 2010, 03:13:18 am
Hmm ok so i have a copy of a site that i want to install this on and see how it works.

I have J1.5.18 and VM 1.1.4 and the site was working fine beofr ethe install.

I uploaded teh files and ran the SQL.

but now when i hit the frontend i a white page rendered it the browser and i also see the following error mssage in teh error log:

PHP Fatal error:  Call to undefined method ps_product_category::get_vmj_child_list() in /var/www/vhosts/sitename.co.uk/httpdocs/administrator/components/com_virtuemart/html/shop.index.php on line 26

Any ideas?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on June 18, 2010, 09:50:31 am
@Ww: To answer your previous question, yes, likely you'd have to disable parts, or all of the sh404sef... specifically the metadata writes. I think there is an option within sh404sef to turn of metadata.... but I'm not for sure.

As for your other problem... dunno. Sounds like something went wrong in the install. No other reports of this issue, so I can only guess it's something that failed in copying files or sql. Sry. Try again.
PS. Joomla version should have nothing to do with it, as it's only a VM modification.

And BanquetTables.pro is right on both regards.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: diastasi on June 18, 2010, 21:45:12 pm
@diastasi: I'll take a look as this as well soon. I think I know the issue.
are there any news about UTF8 problem?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on June 23, 2010, 12:29:03 pm
@diastasi: I'll take a look as this as well soon. I think I know the issue.
are there any news about UTF8 problem?
there is an issue with greek characters?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: diastasi on June 23, 2010, 14:00:26 pm
Yes there is an issue. The Greek characters in Keywords are shown as ��������. All other (description etc.. are OK)

I want to use the categories Keywords as Products Keywords.
I have to make changes to shop.product_details.php in order to take Keywords from its Category. How is this possible?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on June 23, 2010, 14:04:06 pm
diastasi i was to use greek characters also :)
simple adding encoding utf-8 doesnt work ?

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: diastasi on June 23, 2010, 17:18:53 pm
No.. δυστυχως!! :(
Im trying now some "magic" for having the Category Description and Keywords for all products in category.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: diastasi on June 23, 2010, 19:00:51 pm
because I wanted "product" keywords and descroption to be the same from "category" keywords and descriptions , I modified a little the codes.

@Forrest Please check it if it works or I put some uneened codes inside. The changes was in shop.product_details.php

[attachment cleanup by admin]
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: diastasi on June 25, 2010, 08:13:42 am
As I understood I think there was an issue with local Apache & PHP.
I tried this addon locally in Xampp and I had an issue with Greek.
I tried it online and Greek worked!!! maybe something with ereg (php).
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on June 26, 2010, 00:31:49 am
Great. I was thinking ereg may have had something to do with it. Never got a chance to check tho.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: fabiogarcia on June 29, 2010, 22:11:50 pm
Hi there!

I'm getting this message at my admin page, at Product info tab:

Notice: Undefined variable: category_names_list in /home2/eurekas/public_html/administrator/components/com_virtuemart/html/product.product_form.php on line 818

This is the line 818:       $category_names_list .= ' '.$dbc->f('category_name');

How can I fix this?

Thanks,

Fábio Garcia
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: tankist on July 04, 2010, 23:27:13 pm
Forrest, i want to thank you for you great hack.
But +1 for a problem of diastasi. Only with russian characters.
UTF8 characters displayed like ��� in keywords. All others (description, title etc...) is ok. Where is a bug?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: tax on July 05, 2010, 09:55:15 am
tankist у меня была подобная проблема с русскими символами. Когда перенёс сайт с денвера на хостинг, то там всё заработало нормально. Скорее всего это траблы настроек денвера.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: tankist on July 05, 2010, 12:31:14 pm
У меня именно на хостинге не работает. Что самое печальное. Даже ума не приложу где копать...
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: tankist on July 05, 2010, 12:34:51 pm
http://net.com.ua/telefoniya/mini-ats/panasonic.html - See the source...
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: diastasi on July 08, 2010, 07:58:40 am
@tankist
The problem with me was maybe the version of php locally and online.
Locally I had these problems but when I tried it online "magically" the characters were Greek utf8.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: tankist on July 08, 2010, 08:55:04 am
I have a problem on online server. What vertion of PHP you using online?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: tankist on July 08, 2010, 09:23:58 am
The problem in functions, thats separated strings. But i cant find it...
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: tankist on July 08, 2010, 19:14:06 pm
The problem in using function preg_split with UTF-8 characters...
Need to rebuild a code...
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: diastasi on July 08, 2010, 20:33:31 pm
I saw something similar here http://bugs.php.net/27103 and here http://wtanaka.com/node/7464
and around google there were problems with preg_split and they replace them with preg_match_all
Too bad I am not PHP familiar and I can not make the tests.
@Forrest have a look at this :)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: ashantycapre on July 12, 2010, 02:04:24 am
hELLO gUYZ!!!
I have created a Metadata HACK for VM (tested 1.1.4 w/ J1.5). If you want better seo value, and/or have lots of products, you will NEED THIS for automatic and unique metadata / metatag generation of meta title, meta description,  meta keywords, and starting from v1.7, supports most all other metatags including CANONICAL![/b]

1. This hack will auto-generate a better Title, Meta Description, Meta Keywords set, Meta Abstract, and Meta Subject, UNIQUE to each product and category. Likewise, you can now add the Meta Canonical Tag, unique to each product and category. Also supports adding tags like:

    * Overwrite Joomla Meta Generator Tag
    * Meta Classification
    * Meta Author
    * Meta Organization
    * Meta Copyright
    * Meta Country
    * Meta Content-Language
    * Meta Language
    * Meta Designer
    * Meta Comments
    * Meta No-Email-Collection


2. You can let it automatically run it's course and generate this info dynamically, or you can use the dynamic output to build a base then edit the output for each product and/or category.

3. Instructions are included on the VM admin add/edit product page (first tab), or the add/edit category page (first tab).
   
4. This is a hack, so you will need to modify or replace 6 files:
administrator/components/com_virtuemart/html/product.product_category_form.php
administrator/components/com_virtuemart/html/product.product_form.php
administrator/components/com_virtuemart/html/shop.browse.php
administrator/components/com_virtuemart/html/shop.product_details.php
administrator/components/com_virtuemart/classes/ps_product.php
administrator/components/com_virtuemart/classes/ps_product_category.php

5. You will need to run the metadata_hack.sql included as well. This:
Adds five new columns (fields) to jos_vm_product
Adds five new columns (fields) to jos_vm_category
Adds new table jos_vm_product_metakeys
Adds new table jos_vm_category_metakeys

Note: If you did not use the "jos" naming convention on your database, please update this before running the script.

6.Comes with an sql to uninstall hack database changes. Comes with files to overwrite hack files should you want to remove.


Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: thod on July 20, 2010, 01:17:10 am
Hi there!

I'm getting this message at my admin page, at Product info tab:

Notice: Undefined variable: category_names_list in /home2/eurekas/public_html/administrator/components/com_virtuemart/html/product.product_form.php on line 818

This is the line 818:       $category_names_list .= ' '.$dbc->f('category_name');

How can I fix this?

Thanks,

Fábio Garcia

I've got the same message but on line 436. Here is the line 436 : $category_names_list .= ' '.$dbc->f('category_name');.

Did you or someone find a solution to this problem ?
Thank's
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: bortx on July 26, 2010, 18:34:17 pm
hello,

first of all, thanks for the great hack

I have a problem (probably my fault) ... I am using Joomfish and can't get the right language metadata, it will allways take the metadata from the product->metadata tab, which I can not translate from Joomfish, so I can only set one language identifier, common to all languages, any way to fix this?

Thanks!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: franzpeter on July 27, 2010, 15:26:11 pm
It works with Virtuemart 1.1.5 too.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Sunglasses-Joe on August 02, 2010, 14:54:56 pm
Fantastic product, Thank you,

 ???One slight problem which I presume is me as I cant find any messages on the forum about the problem,

All installed  ok Looks great from the backend, however the product in my store seem to all have a problem with the URL now, The  website name is being duplicated when I click on a product from the category view.
i.e.
http://www.thesunglasses4u.com/www.thesunglasses4u.com?page=shop.product_details&flypage=eny_fly_furniture.tpl&product_id=21&category_id=1&option=com_virtuemart&Itemid=29

so the only way of viewing an item without a direct link is to edit the URL and remove www.thesunglasses4u.com from it.

Any Ideas or help would be much appreciated,
Thanks
Joe
 ;D
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on August 02, 2010, 19:12:24 pm
Fantastic product, Thank you,

 ???One slight problem which I presume is me as I cant find any messages on the forum about the problem,

All installed  ok Looks great from the backend, however the product in my store seem to all have a problem with the URL now, The  website name is being duplicated when I click on a product from the category view.
i.e.
http://www.thesunglasses4u.com/www.thesunglasses4u.com?page=shop.product_details&flypage=eny_fly_furniture.tpl&product_id=21&category_id=1&option=com_virtuemart&Itemid=29

so the only way of viewing an item without a direct link is to edit the URL and remove www.thesunglasses4u.com from it.

Any Ideas or help would be much appreciated,
Thanks
Joe
 ;D

make sure you have the trailing slash in your shop url, in the configuration

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Sunglasses-Joe on August 03, 2010, 11:10:53 am
Thanks for the reply , do you mean in Virtuemart, Configuration, Security , ?  if so there is    http://www.thesunglasses4u.com/ in both ?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Joy on August 05, 2010, 12:09:30 pm
Hi, i have this weird problem, while in categories everything works perfect, in the products it won't save either the checkbox to manually add metatags or the metatags. I've checked in the db table and the mid is 1. What else can i check?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Joy on August 08, 2010, 18:33:19 pm
OK I found the problem, i downloaded a previous version. I've also changed the joomfish contentelement files for translating metatags and i'm attaching them here.

[attachment cleanup by admin]
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: costicanu on August 10, 2010, 09:03:06 am
Your hack works fine. But what sef component should we use to be compatible with your hack? I tried an old version of sh404sef with everything set to "No" on sh404sef/Configuration/Plugins/VirtuemartConfiguration. And sh404sef rewrites the title and the metadata of your plugin. Maybe my version is too old, but what sef component do you use with this hack?
Thanks!

SOLVED: go to sh404SEF configuration/Meta Seo tab/ and set "Activate Meta management" to "No".

I love your hack, thanks!


Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mindblock on August 25, 2010, 12:34:19 pm
Hi

Thank you for your metatag, i uploaded your script, but still I have some problem

when I customise the metatag in product and catagories and save it. still its in auto generate metatag, even I click the global, but still its not working for me


even I tried SEF on but its not working

can u please tell me how to do it

Thanks in Advance

S

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mindblock on August 25, 2010, 15:28:30 pm
Hi

I upload the AutoGen Metatag according to your procdure.
I upload the sql


    * five new columns (fields) to jos_vm_product
    * five new columns (fields) to jos_vm_category
    * new table jos_vm_product_metakeys
    * new table jos_vm_category_metakeys
in my sql.


after then Iam unable to any products and catagories.
in products I got an  Error: Something went wrong when trying to add the product!

Iam using VirtueMart 1.1.4 stable


can u please give me the solution that how to solve it

Regards
Sridhar
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on September 10, 2010, 09:04:40 am
i am preparing to update virtuemart form 1.4 to 1.5 and as i see in administrator/classes/ps_product.php if i update there are some parts of the code lines 280-286 , lines 448-478, lines 518-524, lines 681-710 .

After i update in order the metahack to work correctly i should copy this lines from my back up to the new updated files?

edit: there are also some lines for metahack that after update will be gone in shop.browse.php & shop.product_details.php .
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: dhoegerm on September 10, 2010, 20:47:05 pm
Just FYI... I had a similar problem others had mentioned previously in this forum... When I checked "Turn On Manual Edit of Meta Title" and saved the product or category, the manual edit would not turn on. If I looked at the live site, the automatically generated data showed and if I went back to the admin category / product page the check box was unchecked.

Solution...
Using phpmyadmin I inserted a record in jos_vm_product_metakeys and jos_vm_category_metakeys with mid=1 and then it all worked fine.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: jesen_tse on September 14, 2010, 12:35:34 pm
HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords

it's work with vm 1.15 ?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: pmmd on September 21, 2010, 22:37:17 pm
Hi Guys, I have installed this hack and it seems to work well except one thing...my source code shows two meta descrption tags...any ideas?

my website is www.partywarehouseni.com

Thanks in advance!

Paul
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on September 21, 2010, 22:54:29 pm
Hi Guys, I have installed this hack and it seems to work well except one thing...my source code shows two meta descrption tags...any ideas?

my website is www.partywarehouseni.com

Thanks in advance!

Paul

I think you forgot to replace the meta desc instead you added
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: pmmd on September 22, 2010, 11:58:27 am
Hi BanquetTables,

Im not sure i understand what you mean... The Global meta description in Joomla are showing up on all pages including the product pages for my site. I also run another site and this didnt occur and i followed the same install procedure, any more thoughts?

Cheers,

Paul
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on September 22, 2010, 14:22:59 pm
well you set that in the joomla admin
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: pmmd on September 23, 2010, 00:02:21 am
Yep im aware of that but even if i delete that, the meta tag still shows up in the code!

:(

any other idears?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: szbstvn on September 23, 2010, 15:14:11 pm
Hi!

1. I have a problem with national characters (hungarian). Missing from the words. What can i do?

2. What about the 1.1.5 version? This hack working correctly with 1.1.5 too?

Thanks
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: CaptureBug on September 23, 2010, 16:55:06 pm
I just updated my VM to 1.1.5 yestderday and then found and installed the hack today. It does not seem to work with 1.1.5 yet.

Just got it working in VM 1.1.5. I reuploaded the hack each file 1 at a time and then cleared my Joomla cache and temp internet files and is workin beautifully now.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: pmmd on September 25, 2010, 11:40:59 am
any one think of any thing?

Paul
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mrhuge on September 27, 2010, 19:18:18 pm
Hey guys!

If anyone needs - this is a hack version for Virtuemart 1.1.5. I've inserted hack manually.

[attachment cleanup by admin]
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mrhuge on September 27, 2010, 19:22:55 pm
Can anyone help me answer the question?

Is there a way to auto generate keywords from product full description in language other than English? I use this hack on russian site and I see only keywords generated from english words. Russian words are only taken from category name and appends.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: alex2010 on September 29, 2010, 07:49:20 am
hello everybody
when i want to add new product i got an Error: Something went wrong when trying to add the product!
i use v-m 1.1.5 and joomla! 1.5.20
please help!??
(autogen_metatags_vm1.1.4_v1.7)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on October 07, 2010, 04:44:56 am
Hello all. Back form an extended break. I'll get this updated for 1.1.5 ASAP. (might want to check mrhuge post above for it... tho I have not tested myself).
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: sdebaun on October 10, 2010, 02:50:33 am
just installed into VM 1.1.5 so I manually copied all the code into the respective files... and so far it's looking great!
Thanks for all your work and pro job with the commenting! You rock!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mrhuge on October 10, 2010, 09:13:14 am
Hello all. Back form an extended break. I'll get this updated for 1.1.5 ASAP. (might want to check mrhuge post above for it... tho I have not tested myself).
Hey Forrest! Glad to see you here! What a nice product you've made with a minimum database queries.

Could you help me with this:

How to auto generate meta keywords from product full description in language other than English? I use this hack on russian site and I see only keywords generated from english words. Russian words are only taken from category name and appends.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on October 11, 2010, 07:07:41 am
I'm totally naive with other language support. Sorry. It's been posted about some in this thread. Post ur results if you have luck! Txs.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mrhuge on October 12, 2010, 18:35:25 pm
It's a pity, Forrest. I've checked everything in the thread about language issues and there is nothing helpful. Some problem with displaying of other language words was solved but I have no such problem. Russian words are displayed correctly. The problem is only that hack doesn't pull out keywords in russian for meta keywords from product description. Only english words.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on October 14, 2010, 06:32:45 am
My guess is the filtering of words in the hack is somehow having an issue with Russian characters.

I suggest you try an echo statement within shop.product_details.php (or shop.browse.php), starting with:

function clean_text($input_text)

and slowly move down each part of the filter from there, echoing variables until you find where the Russian words are being filtered out. I bet you can nail it down this way. Let me know your results!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: IntraX on October 14, 2010, 21:14:53 pm
Just a note, no issues with foreign language here, the german language has lots of special chars, all displayed correctly. Also no problem with high product amounts (+40000), no slow down either on browse or any other page or backend (what happens with some or more extensions sometimes).
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on October 14, 2010, 22:16:48 pm
Good feedback IntraX... thanks :)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: IntraX on October 14, 2010, 22:28:42 pm
No problem, as soon you have the time to get back to my inquiry, you can take a look yourself;)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: dremes on October 15, 2010, 14:36:38 pm
This appears to be a great Hack for adding meta information, how ever I have a bug, issue or what ever you want to call it!

Site meta information updated upon installing the hack, I now wish to over write some of the meta details and turn off some of the settings that are under Settings below this are GLOBAL SETTINGS for ALL Product Pages.

The --- Turn On Manual Edit of Meta Title/Description/Keywords/Abstract (Global) for over writing the metas just does not do anything, on or off! Front end and source I still see the generated meta not what I over type with.

Anyone got any idea on how to manually edit these metas and why Turn On Manual Edit of Meta Title/Description/Keywords/Abstract (Global) is not functioning?

Thanks
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on October 15, 2010, 20:38:57 pm
Dremes, are you using Joomla cache? Make sure you clear your cache when enabling/altering the manual edit.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: grietbroek on October 16, 2010, 10:14:48 am
Hi Forrest,

I've installed the hack on my local server, looks good untill now. Only one question. It appears that my Joomla SEO Patch (the one that gives you SEO metadata for articles) is not working anymore. It would be great if those 2 work together. That way I have metadata for articles via the SEO patch and metadata info in VM via your HACK.

Yagendoo also offers a sef plugin which gives you nice urls without databasing. I will try to use this shortly together with your hack. I will also try to get that SEO patch working again, don't have time now though.

Thanks for the nice hack. I hope VM will include this feature standard in their component. It is a real pain in the ass that you don't have any control over the metadata, title and so on. great work!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: IntraX on October 16, 2010, 16:12:34 pm
I have some addition to this project, would be "customizable VM landing pages for Google Adwords and other forms of advertising where a special landing page is preferable". So without using Joomla pages or static pages and working in conjunction with MetaData too. Could be great for "special pages" too.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mrhuge on October 18, 2010, 21:10:36 pm
My guess is the filtering of words in the hack is somehow having an issue with Russian characters.

I suggest you try an echo statement within shop.product_details.php (or shop.browse.php), starting with:

function clean_text($input_text)

and slowly move down each part of the filter from there, echoing variables until you find where the Russian words are being filtered out. I bet you can nail it down this way. Let me know your results!

Thanks for suggestion, Forrest!

Soon I'll get my hands to it, try and post results here. Great that you continue to support such a nice useful hack!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on October 18, 2010, 23:10:35 pm
@grietbroek: I understand you believe your issues are the fault of this hack, but this hack has NOTHING to do with your Joomla article SEO. This hack is and can only be run on VM product/category pages.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: noanna001 on October 19, 2010, 00:20:34 am
Hello,
I tried to install the hack, but there is still some problems. I tried to instal by joomla installator and receive information that .xml installation file is not found. What exactly should I do to instal it, because it looks very interesting. Please help, and sorry for so simple question(probably).
Joomla 1.5.7, VM 1.1.4.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on October 19, 2010, 00:31:09 am
This is a hack... not an installable zip. You have to run the .sql via phpmyadmin (or similar), and overwrite your old files in VM with the new ones included via FTP.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: grietbroek on October 20, 2010, 08:41:16 am
@forrest, you are right. I thought I allready updated the patch after the Joomla update, but I failed to do it. So it is working fine. Great to have the benefits of metadata now!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on October 20, 2010, 19:56:41 pm
Check out your settings in sh404SEF. While I have not used it, others have, and have posted about a setting you can turn off in it to keep this hack working, rather than being overwritten by sh404sef.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: xeont on October 21, 2010, 06:43:19 am
hi,

i have "installed" this in mywebsite, this is working fine until i turn on my sef404sef.. when i turn that on this category/product title and metadata disappears. any suggestions?

Thanks You.

Vituemart 1.1.5

Sh404SEF 2.1.6.749

my website http://www.xeont.com.au/
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: xeont on October 21, 2010, 06:53:24 am
thanks Forrest, i tried all the setting in Sh404SEF but nothing seems to work, its always override this metadata and titles 
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on October 21, 2010, 07:14:30 am
Too bad, use to be able to turn that off somehow.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: swacks on October 22, 2010, 00:12:50 am
hello forrest - thanks you really done something for all of us here friend.

anyway  , my question:

can this automatically append to words to TITLE  from product_s_desc  (product short description) and if so where is that setup.

and if not,

then dont you think this should have that feature ?
seems to me that it would help to do this

look at the first say 30 words in short description and automatically generate them to the title

and maybe to take it furter if the description is short and there are not enough words in it then take some from the presets from the
Quote
Append to end of Title Metatag
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on October 22, 2010, 09:59:29 am
It could, but it doesn't right now from my recollection. I'll consider it an option on next release tho. :) I appreciate your input.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: lombiz on October 24, 2010, 20:59:29 pm
Thanks for yet another great mod.

I have a small issue though but maybe I am missing a setting or !?

A lof of keywords are a combination of many other words from description etc. (and with some letters missing I think)

i.e. if description is "tiles for indoor use" I could get a keyword like "ilesforindooruse" or something like that.

So acutally many words without spaces in between.

My site is in Swedish if that matters.

Thanks !
BR,
Peter
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: noanna001 on October 28, 2010, 13:05:32 pm
Thank you for the hack it seems to be very interesting. I have one question regarding this:
My web is in Polish, so there are some special Polish only letters. The problem is with automatic generation of metatags. Words with Polish letter are deviding into two separate words: one word consists of letter before Polish mark, and the second one of after it. It cases that in metatags there appear only some letters without any sence. When I write manualy words with Polish marks, then it is Ok, but function of automatic generation is not used then. Meta titles and descripions are OK. Is it possible to correct this?
Polish letters: ą,ć,ę,ł,ń,ó,ś,ź,ż and capital: Ą,Ć,Ę,Ł,Ń,Ó,Ś,Ź,Ż
Thank you in advanced.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Giannis86 on November 01, 2010, 11:30:27 am
I would like to thank the developer for this hack.
I am quite a beginner in Joomla & VM and i am currently designing my own webshop.

This hack was easy to install than i thought and works exactly as it should.

Nice work!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: misholini on November 02, 2010, 02:00:36 am
Try this plugin:
http://en.tinkeltools.de/sef-links-for-virtuemart-with-vmsef.html

or
http://www.joomlaplugins.net/joomla-extension-download/cat_view/34-virtuemart-specific-extension.html
Thanks for the great hack!
Just a question here, is it possible to achieve the meta tags functionality on the VM home page as well?
I use vmsef and joomla SEF and wish not to use any othe SEF extension.
It would be great if this hack can cover the VM Shop page as well.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: The Girl from Ipanema on November 03, 2010, 14:04:54 pm
Hello,

Thank you for this hack. At first I was really afraid and hesitated to use it. But it is so simple and there is nothing to be afraid of if you backup ur website and database.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: reinaldo83 on November 04, 2010, 06:22:42 am
Hello!

I need some help please. I have a weird issue. I can see Meta Abstract, Keywords, Author, Languages, etc.. but my website doesn't show meta title or meta description and i don't know why.

It's not about the template because i have installed a copy of my original website in another domain including databases and some components and this hack works perfectly right there, but not in my original website.

I have unistalled the hack, i removed the 5 columns located in _products and the others 2 tables, I replaced back the original files and then i made the process again, i mean, a re-installation, but the problem is still going on. The website can show any Meta Tag, except title and description. Actually title tag appears but is empty, it shows something like this <title></title> but meta description doesn't appear.

I have to say that before this, i had a Global Meta Description set up at Joomla Global Configuration site, i deactivated it and Meta description is gone, but if i set the meta description again up, it will be showed again in my site.

The point is, no matter what i do at Global Configuration or at the Virtuemart Meta hack section it doesn't show the Meta Description set up at VirtueMart's products, but no matter what i do at Global configuration or at Virtuemart Meta hack section it can show any other meta tag set up by the hack.

I think the most important tags are title, description and keywords, but i can't see title or description. That's why i say it's a weird problem. Can you help me please.

Thanks in advance and sorry for my english, i know it's not very good since my natal language is spanish.

Reinaldo.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on November 04, 2010, 20:07:16 pm
@misholini: Sry, this will not work for the homepage of a VM store. That requires a separate file to be hacked. I mean it's possible, but I haven't done it. Maybe in the future.


@reinaldo83: Sounds like maybe you have a Joomla SEO/SEF component that is overwriting the data from my hack. Check that component... turn it off or uninstall it (if you do  have one installed) and see if that helps.


As for the other posts here as of late... thanks for your support and compliments. As for language issues.. I know it is an issue... and I haven't had the time to solve it! Sry. Likely its a part in the bad word filter process or keyword sorting that has some issue.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: reinaldo83 on November 07, 2010, 01:07:01 am
Hi Forrest!

Thanks for your tip and your hack. Before i wrote the first time i turned some components and plugins off because i was thinking that was the problem too, but i didn't it with all of them. Now, you gave the same tip and i did it again with each component i have installed.

Actually, what i did was to install each component at the domain i have as a copy of my site just for testing.

After i installed a component that i already had at my original site i was testing if something wrong happened until i got the component shocking with your AutoGen Hack.

Firstly, i uninstalled that component, but after that, i prefered to reinstall it back again and try to check the code to solve the problem and, i have just done, i did it. I solved the problem and i just wanted to thank you for the tip again and for the hack.

I solved the problem by recoding the file /libraries/joomla/document/html/renderer/head.php which was one of the files replaced by the component i previously had.

The component i had before was about setting metatags up, basically the same metatags as yours but it works for the front page, articles, joomla menu and those things. So now, i have metatags completely set up on my website, front page, articles, VM products, VM categories, and all of them personalized for each page thanks to these 2 fantastic tools.

I spent 48 to 72 hours trying to solve this. :s

Thanks...

Reinaldo.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mark111 on November 11, 2010, 10:28:57 am
Good afternoon, everyone. Prompt as with the aid of this hack you've done that in the address bar of the site are given human-understandable links instead of dynamic? After installing the hack I have meta tags have earned excellent, but the link remained kind http://20897.domrybak.web13.hosting-test.net/index.php?page=shop.product_details&flypage=flypage.tpl&product_id=8&category_id = 2 & option = com_virtuemart & Itemid = 53


Please, tell a beginner ... Thanks in advance
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mookite on November 12, 2010, 12:10:17 pm
Forest, et all, a great hack, well done. :)

If like me you already have a number of products already in your system.  These SQL scripts will populate the product_metadesc,product_abstract and product_title for you.  Saves having to go through each product in turn and save or update it.

Code: [Select]
update jos_vm_product set product_metadesc = CONCAT(product_title," - ",product_s_desc);
update jos_vm_product set product_title = product_name;
update jos_vm_product set product_abstract = product_metadesc;

I couldn't manage to come up with a script to populate the product_metakey column, SQL is not my strong point, any help would be appreciated.

I also use another great plugin, include_content_item for all of my cart short and full descriptions.  This works fine with VM but the meta data was not processing the {include_content_item } tag.

To fix this a added a few lines in: shop.product_details.php, adding vmCommonHTML::ParseContentByPlugins wherever it was reading the product_metadesc


Code: line 328 replace with the following:

Code: [Select]
// Set Description Metatag
if (($db_product->f("product_metadesc") != "") && ($turn_on_edit == "Y")) {
if ($append_category == "Y") {
if ($general_append_end != "") {
$document->setMetaData('description', str_replace('"', '', strip_tags(vmCommonHTML::ParseContentByPlugins($db_product->f("product_metadesc")).' - '.$get_category.' - '.$general_append_end)));
} else {
$document->setMetaData('description', str_replace('"', '', strip_tags(vmCommonHTML::ParseContentByPlugins($db_product->f("product_metadesc")).' - '.$get_category)));
}
} else {
if ($general_append_end != "") {
$document->setMetaData('description', str_replace('"', '', strip_tags(vmCommonHTML::ParseContentByPlugins($db_product->f("product_metadesc")).' - '.$general_append_end)));
} else {
$document->setMetaData('description', str_replace('"', '', strip_tags(vmCommonHTML::ParseContentByPlugins($db_product->f("product_metadesc")))));
}
}
} else {
if ($append_category == "Y") {
if ($general_append_end != "") {
$document->setMetaData('description', str_replace('"', '', strip_tags($db_product->f("product_name").' - '.$get_category.' - '.vmCommonHTML::ParseContentByPlugins($db_product->f("product_s_desc")).' - '.$general_append_end)));
} else {
$document->setMetaData('description', str_replace('"', '', strip_tags($db_product->f("product_name").' - '.$get_category.' - '.vmCommonHTML::ParseContentByPlugins($db_product->f("product_s_desc")))));
}
} else {
if ($general_append_end != "") {
$document->setMetaData('description', str_replace('"', '', strip_tags($db_product->f("product_name").' - '.vmCommonHTML::ParseContentByPlugins($db_product->f("product_s_desc")).' - '.$general_append_end)));
} else {
$document->setMetaData('description', str_replace('"', '', strip_tags($db_product->f("product_name").' - '.vmCommonHTML::ParseContentByPlugins($db_product->f("product_s_desc")))));
}
}
}

// Add and Set Abstract Metatag?
if ($add_abstract == "Y") {
if ($turn_on_edit == "Y") {
$name = "abstract";
$content = strip_tags(vmCommonHTML::ParseContentByPlugins($db_product->f("product_abstract")));
$document->setMetaData($name, $content);
} else {
$name = "abstract";
$content = str_replace('"', '', strip_tags($db_product->f("product_name").' - '.vmCommonHTML::ParseContentByPlugins($db_product->f("product_s_desc"))));
$document->setMetaData($name, $content);
}
}
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: IntraX on November 12, 2010, 13:47:24 pm
We had a large number of products and never had to go through any product manually, when you turn on the setting "global" in any of the products admin page, the function is turned on for all products. No need for this hack :)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Blakharaz on November 29, 2010, 18:57:54 pm
I only would like to know if someone already has installed VM 1.1.6 and could tell me if it works well with the hack.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: angi79 on November 29, 2010, 21:51:02 pm
Thank you for this "grande" hack.
I have joomla 1.5 and VM 1.4., with the router.php for joomla sef, but the sef not working.
The sef is attach.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: kortaben on December 02, 2010, 16:16:45 pm
Hi.
I'm having some problem with the meta title and meta description not being fetched by your hack when I try to do it manually. It fetches the title and description from the category title and description field, not from your hack.
The keywords tag work perfectly as does the e.g. Author tag if I decide to tick that.

Link:
http://www.stalprodukter.se/index.php?option=com_virtuemart&page=shop.browse&category_id=25&Itemid=81

I'm running VM 1.1.3 with Joomla 1.5

Regards Marcus
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: rrmdp on December 07, 2010, 14:12:29 pm
is possible to install with VM 1.1.6 ??
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: uniqbuy on December 22, 2010, 00:28:41 am
Hi

Has anyone tried to run this with Joomla! 1.5.22 and VM 1.1.6. 

I have tried it and all the meta fields are showing but the meta information is not updating. 

My database prefix is not jos so I changed this in the sql file before running and I also did not copy the files straight over, I used winmerge and only updated those sections relating to the hack.

Thanks
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: uniqbuy on December 22, 2010, 00:44:17 am
Update to my last post:
It actually does work with VM 1.1.6 but I can't get manual edit to work - it will not save the setting when I apply it. 

Does anyone know how to change it in the code so it is automatically set to manual edit - the automatic option puts in too much unnecessary stuff.

Thanks again
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: johnwayne on January 03, 2011, 16:49:55 pm
are the dl links down?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: ichepurnoy on January 05, 2011, 11:00:34 am
are the dl links down?
Yes, the download link is broken =(  Moderators, please, take a look at what happened.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: rajeevkk on January 05, 2011, 11:21:14 am
Hi I am Rajeev K Krishna from India,

Download links for the hacks given above are not working.....

regards,
Rajeev K Krishna
www.manatown.com
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: rajeevkk on January 05, 2011, 16:34:07 pm
can anyone please send me the module to my email id
rajeevkkrishna@gmail.com
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Wisey on January 06, 2011, 10:25:07 am
are the dl links down?
Yes, the download link is broken =(  Moderators, please, take a look at what happened.
Please do, this hack is exactly what I need!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Wisey on January 13, 2011, 15:47:28 pm
The download link is back up and working now.

(Sorry for the double post, but...)

I just wanted to say thanks for this, it provided exactly what I wanted in terms of SEO features that other commercial plug-ins could provide half of. So really, thanks very much!

The only way I think it could be improved was if it was somehow a plugin rather than a mod (purely because it would have saved me half an hour with the Notepad++ Compare plugin, which is a life saver by the way). Otherwise perfect, thanks again!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on January 17, 2011, 03:37:28 am
wisey, there is no way it could be a plugin because it takes manual input for individual products

ofcourse, if you just wanted meta data it could be a plugin, but with the canonical option, you should have to choose which url you want to be the canonical, as well as the page title


Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: rbwood on January 19, 2011, 17:38:31 pm
I'm having a bit of trouble getting the hack to add the product name as the page title. All other aspects of the hack work v. well, and the title is fine for the browse pages. At the moment all I get in the flypage title meta tag is the category name. I've tried disabling all plugins and components that I though might be over writing the title, and I deactivated the system cache, but nothing seems to work. Has anyone else had similar problems?

I'm using Joomla V1.5.14, with Virtuemant V1.1.4. Initially I edited the existing files, but after encountering the problem I copied the original files onto the server.

Thanks for any and all help offered, and thanks for developing the hack. Its a much needed addition to virtuemart and should be included in all future releases!

Ric

www.thegoodboatshop.com
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: rbwood on January 20, 2011, 16:01:27 pm
Update on the problem, I found the culprit. I have a module installed called Good Relations, this is a semantic web addition for virtuemart, have a look here for anyone interested - http://code.google.com/p/goodrelations-for-joomla. I'll have a look at the module code and see if I can fix the problem there. Cheers,

Ric

www.thegoodboatshop.com
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: stanoli on January 21, 2011, 09:52:23 am
hi, this hack works excellent, but have a problem with <br /> tag.
This tag doesn't split the keywords

for example

text1</br>text2</br>text3

results in keywords

text1text2, text2

i think it has something to do with preg_replace
can someone help me?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: stanoli on January 21, 2011, 09:55:47 am
Excuse me
In the previous post i made a mistake

The result of keywords is

text1text2, text3
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on January 21, 2011, 18:28:43 pm
does this hack work with Joomfish ? Is there a way to reveal the meta fields in the joomfish translations?

thx
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Wisey on January 25, 2011, 14:42:42 pm
wisey, there is no way it could be a plugin because it takes manual input for individual products

Sorry yes, I meant extension rather than specifically plug-in. Maybe a component with it's own set of tables... not entirely sure what I was on about!

I've changed the code on mine slightly so when manual product keywords are entered the automatic ones are also appended to the end. If anyone wants the small amount of code for this, I'd be happy to post. Just saying.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Souls33k on January 28, 2011, 09:59:18 am
My guess is the filtering of words in the hack is somehow having an issue with Russian characters.

I suggest you try an echo statement within shop.product_details.php (or shop.browse.php), starting with:

function clean_text($input_text)

and slowly move down each part of the filter from there, echoing variables until you find where the Russian words are being filtered out. I bet you can nail it down this way. Let me know your results!

Thanks for suggestion, Forrest!

Soon I'll get my hands to it, try and post results here. Great that you continue to support such a nice useful hack!
Greetings,
I am also very interested in those results, since any other language (except for english) is not processed in the product description.

Overall this is a great hack! well done forrest, not only for your work but also for the constant support. :)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: dirtybird on February 02, 2011, 23:27:06 pm
This hack and the UPSv2 hack share a couple files and I was wondering if anyone has combined them?  Any help??

Nevermind, I've done it myself.  If anyone needs the modified files so that you can use this Metadata hack and the UPSv2 shipping module hack then contact me.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on February 08, 2011, 03:21:19 am
you can do each of the files manually. Just open the old file, and search for "hack"

then examine the new file for the correct place to paste it.

Thats all I did to change the new 1.1.7 files
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: m.davide82 on February 12, 2011, 09:49:23 am
Does it work with the new version 1.1.7?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: diastasi on February 12, 2011, 10:01:43 am
Why not? The update 1.1.7 had only 8-9 files changed, and those files has nothing to do with the mod's files
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: m.davide82 on February 12, 2011, 19:52:36 pm
Thanks a lot  ;)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on February 14, 2011, 06:45:40 am
Correct, from my knowledge, all should be fine.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on February 14, 2011, 13:07:25 pm
on almost all updates you can replace the form files with no problem.

product.product.form
category.category.form

on the others, you can easily copy the code , and paste it into it manually
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: beachy on March 08, 2011, 23:08:26 pm
I am trying to get the title tag on my product pages to be Product Name - Product Price - Category.

So far I have done this in shop_product.details.php

Code: [Select]
if ($append_category == "Y") {
if ($general_append_end_title != "") {
$document->setTitle(str_replace('"', '', strip_tags( $db_product->f('product_name').' - '.$db_product->f('product_price').' - '.$get_category.' - '.$general_append_end_title)));
} else {
$document->setTitle(str_replace('"', '', strip_tags( $db_product->f('product_name').' - '.$db_product->f('product_price').' - '.$get_category)));
}

But product_price is not displaying anything. I use this in flypages etc do I need to add it somewhere else for it to display properly?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on March 10, 2011, 11:46:26 am
i am using a title : Product name - Category Name - Sitename
but i see that  searching with keywords eg test  , sites with only that keyword as a title are ranking better .. whats the ideal title for a product page?

also does everything works fine with vm 1.1.7 ?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mark R on March 12, 2011, 23:41:45 pm
Thanks Forrest for this truly fantastic mod to VM, just a quick question is it possible to mod this to the manufactures?. (ie meta data is created for products and categories but not Manufacturers) as I have a manufactures/brand page to show all products from a manufacturer/brand.

Many thanks
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: elenajen on March 14, 2011, 23:50:55 pm
Hello, thanks for this hack looks fantastic!
i've changed some things via phpmyadmin for example banned words, number of keywords etc, but i dont see any change on live site, why that?

Thank you
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: dodibasa on March 18, 2011, 14:12:58 pm
Hello

The autogen_metatags_vm1.1.4_v1.5m compatible with joomla 1.5.15 version? VirtueMart and VirtueMart 1.1.4 stable version?

Hi Jano
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Rookie232 on March 25, 2011, 20:40:43 pm
Forest, is this HACK compatible with VM 1.1.7? Looking for something like this.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on March 25, 2011, 20:41:31 pm
yes
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: 32golf on March 27, 2011, 22:53:33 pm
how do i install this - keeps asking for the XML file
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on March 29, 2011, 05:09:48 am
It's a hack, not an installable module. IE: You ftp overwrite existing files for the ones included. I believe there r instructions in the zip file.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mmphis on March 29, 2011, 17:24:31 pm
Thanx for amazing hack, but i'm having problem with images. I'm using vmj naru template, it uses phatfusionslideshow plugin to show images. if product has no aditional images than everything is ok, but if there are aditional images, than all images dissapear. Hack is working fine, except problem when i add aditional images.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on March 30, 2011, 17:57:06 pm
mmphis, I dont see how this hack could conflict
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: flahsfinder on April 05, 2011, 21:45:26 pm
Does it work with the new version 1.1.8?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: diastasi on April 07, 2011, 12:52:00 pm
Does it work with the new version 1.1.8?
As I kept the file changes, it is still working in 1.1.8
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on April 07, 2011, 16:14:26 pm
I am using it with 1.1.8

I just paste the code into the new files.

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: chintan on April 08, 2011, 21:07:38 pm
Yes, Its working fine with Joomla 1.5.10 VM 1.1.7  ;D

Please check on www.BeyondToyz.in (http://www.BeyondToyz.in)

@ Forrest,

Why "by default" I am getting following keywords on every product page?
Keywords: product, products, buy, top, best, value, store, shop, new, used, buy product, purchase products.

Is there any logic behind it to do so?

Regards,
Chintan

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 11, 2011, 19:11:26 pm
No, not really. Just set up as an example. Edit your metadata tabs on product and category to alter accordingly.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on April 12, 2011, 10:08:47 am
is possible to make metadata available for manufacturers?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Marioooo on April 12, 2011, 15:10:03 pm
Hi,

I have did what You said to install the meta tag system. It works ok but i`ve got troubles with some signs in words. I use polish signs like ó,ż,ł and the auto metatag puts some bush instead of those letters. When i put the same words by manual, it is all ok. What can i make to fix this problem?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: ChrisL on April 12, 2011, 22:58:07 pm
This works for the newest virtuemart and joomla?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Joso on April 14, 2011, 09:16:51 am
Hi to all, I am new to virtuemart and am interested autogen metadata metatag , but I did not understand how one should install autogen, whether manually or as a normal application to joomla.

Could you explain this point.

Joso
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: m.davide82 on April 18, 2011, 09:21:02 am
Hy Forrest,

thanks a lot for you hack it's very useful.

I have a question about the canonical...

If I put the canonical I have in all the pages the canonical inserted... the canonical page too... is there any way to have something like this?

site.com/category  (NO link canonical this is the main page)
site.com/category?dkd.. (link canonical)
site.com/category?keywod.. (link canonical)

adding the canonical in your hack I will have it on the 3 pages.


I hope to receive an answer.

Thanks a lot in advance,

Davide
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 18, 2011, 09:37:10 am
Well, Google states there is not conflict in doing this, but if you still want to peruse, if I were you I would open up my hack on the category and detail pages (html folder), and include a URL check where the canonical tag is being called out to be inserted into the head. A simple PHP check of the URL vs the Canonical to decipher whether the canonical should be inserted would work just fine.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: m.davide82 on April 18, 2011, 10:50:25 am
How can I do this? I'm not a PHP expert...
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: lindapowers on April 22, 2011, 11:25:56 am
this should be added in next release, all the code is done and it's a great addon.

Please make the hack for 1.1.8
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 26, 2011, 11:19:24 am
lindapowers, OK! :) I'll get to it sooner than later hopefully.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: jeffrps on May 04, 2011, 23:04:15 pm
Hi,

Question , I installed the hack and was impressed right off the bat! However I notice when I go to add products it's displayed differential now. For example: with the hack uninstalled and I go to add a product, the Categories displays in a box with a scroll bar and you have the option to click mulitple categories. However with the hack installed that is no longer there, it simply looks the same as if I'm trying to add a "Related Product" by typing in a box so it can search for the categorie. Is this normal? Or Did I do something incorrectly? I hope this is fixable simply because I use the same Sub Categories under different Main Categories.

Thanks
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on May 06, 2011, 00:48:23 am
That should not have changed at all. What VM version did you install it on?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: jeffrps on May 10, 2011, 00:20:10 am
1.1.6 .. You know though I never did run the sql file. Could that be the issue?
I'm thinking of upgrading to 1.1.8 .. is that a good idea?

Thanks
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on May 10, 2011, 00:21:36 am
That surely did not help. You need to run that file.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: jeffrps on May 10, 2011, 00:22:39 am
Ok I will do that. Is it safe to upgrade or will it no work with the new version?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on May 10, 2011, 00:30:10 am
Well, always make a backup. I have not personally tested on anything higher than 1.1.4, but I have seen on this thread others using successfully on updated versions.

If you are concerned about it, I have clearly commented where the hacks begin and end for all overwritten files. You should be able to easily move this to a newer versions with a few minutes of copy and paste.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on May 10, 2011, 01:21:55 am
I have it running on 1.1.8


Just copied the code manually and inserted it
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: jeffrps on May 10, 2011, 01:59:57 am
Ok so I updated to 1.1.8 , I copied each file into it's appropriate directory and ran the sql file. Still having the same issue, I've attached a photo so you can maybe better understand my issue. Last time I just replaced the php files with the orginal ones and it went back to normal. Any help would be appreciated , thanks

In the photo you can see the MetaData tab , that all seems to be working great! However it's the categories issue.. it's not showing all my main and sub categories which make it impossible to add products since I use some of the same sub categories under different main categories
(http://i14.photobucket.com/albums/a309/pure2k7/display.jpg)

*Update*
Ok so I put my backup php files back in and it's back to normal , here is a pic so you can see exactly what I'm talking about.
(http://i14.photobucket.com/albums/a309/pure2k7/display1.jpg)


After looking and comparing the php file that has the hack included in it already and my backup ones... my backup ones has more data in it .. i'm not sure if i'm suppose to over write part of the data or what .. must be my newbness  :-\
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on May 10, 2011, 12:20:10 pm
you dont have to update product.productform   or the category form.

Those are almost never updated
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: jeffrps on May 10, 2011, 15:59:24 pm
If I don't update them then I can't see the metadata tab .. when I mean update I'm simply stating inserting the new php files that include the hack
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on May 10, 2011, 19:07:45 pm
did you have the meta hack installed before updating to 1.1.8?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on May 10, 2011, 19:14:40 pm
Looking at your pic, I'd say I must have installed the search function instead of the regular category list. This means you can start typing the name of a category and search to have it bring back a list (yellow box to the right), of the matching categories. I probably did this because I was dealing with a long long list of categories.

This is just a guess. I have seen no one else complain about it, and I do not remember making it part of this release ever (if so it was a mistake), so it's still kinda fishy.

I recommend you do what I suggested previously. Keep default files, and copy over all hacks from the hacked file versions. Everything is commented with start and end tags.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: jeffrps on May 10, 2011, 20:06:07 pm
did you have the meta hack installed before updating to 1.1.8?

Yes and no , yes I installed the php files but never ran the sql. I then replaced the php files with the defaults ones , updated to 1.1.8 then reinstalled php files and ran sql.

I'm going to try and manual enter the code into my default files as mine seems to have different coding. As you can tell I'm no programmer .. I greatly appreciate both of your help!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: jeffrps on May 10, 2011, 20:27:32 pm
Update: Ok I manually entered the hack code into my default product.product_form and product.product_category_form php files and it all works great! My category listing is the way it normally is!! Very happy now! Thank you guys again for the help and for a great hack!!  ;D Now I just have to figure every option out , for now I'll let it do it's thing!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on May 10, 2011, 21:25:42 pm
:) great! Good luck
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Rookie232 on May 12, 2011, 23:04:36 pm
I am sure this is a simple question. I am running VM 1.1.7 in Joomla 1.5.15. Which download is correct for my environment? Read through but do not see any guidance
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Rookie232 on May 12, 2011, 23:05:49 pm
I am sure this is a simple question. I am running VM 1.1.7 in Joomla 1.5.15. Which download is correct for my environment? Read through but do not see any guidance
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: flahsfinder on June 01, 2011, 15:36:02 pm
VM 1.1.6 Joomla! 1.5.22
For Categories - HACK works.
For the Products - is not works, i.e. does not Save the made changes. If handles to bring in Database - all OK.
Help to correct.
Thanks.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on June 01, 2011, 18:47:39 pm
flash, are you saying it does NOT save to database?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: flahsfinder on June 01, 2011, 19:32:08 pm
BanquetTables.pro
HACK For the Products - does NOT save to database!
(For Categories - save to database)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on June 02, 2011, 13:57:29 pm
did you run the sql file?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Margaret on June 02, 2011, 14:44:42 pm
what about SEF URLs like here http://www.artio.net/e-shop/joomsef/joomsef-bundles/virtuemart-seo-bundle-joomsef-3-virtuemart-extension?gclid=CMqG096Yl6kCFQod4Qodrz9KtQ?
Is this feature supported or it will be avaliable in the future?
is this hack compatible with this extension? (meta data from this hack and sef url from the extension)
how i can access admin panel metadata tab?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: flahsfinder on June 02, 2011, 19:22:54 pm
BanquetTables.pro

Yes! I run the sql file!
For Categories - save to database!
For the Products - does NOT save to database! If handles to bring in Database - all OK.

What does this text mean?
subject` char(1) NULL default 'N'
no_email_collection` char(1) NULL default 'N'
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on June 02, 2011, 20:36:10 pm
i have no idea what that means
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on June 02, 2011, 23:34:57 pm
@flahsfinder: Please see this previous dialogue. I bet your sql table entry does not have an mid set to "1". Not sure why, but this seems to happen for a few folks from time to time.
http://forum.virtuemart.net/index.php?topic=65697.msg220321#msg220321

@Margaret: yes, this will work with SEF extensions, as long as you turn off the metadata section of the sef extension. This hack hs nothing to do with SEF, but some SEF programs have metadata capacities which may overwrite my hack's output.

@Rookie232: I have not updated the hack for 1.17, but you can easily take my hack additions and alterations for the latest version I offer, and move over to the 1.17 core files. Everything is clearly commented.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: flahsfinder on June 03, 2011, 13:35:53 pm
Forrest
I see this previous dialogue. All 27 pages.
sql table entry have an mid set to "1".

For Categories - save to database! HACK Works.
For the Products - does NOT save to database! If handles to bring in Database - all OK. (HACK Does not work.)

Joomla 1.5.22 + SEO Patch

Sorry for my English.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on June 03, 2011, 21:40:54 pm
I am just not following you to well flashfinder. I understand that the hack is not working for products... and is not saving to the database. The mid issue is the only thing that has been brought to my attention as an issue in this regard.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: hancro on June 11, 2011, 01:01:47 am
Thanks for an excellent mod. I saw that people were looking for microformat meta tags (e.g. requested by Facebook), so I added some quick and dirty (I did not bother to include any settings opportunities, you have to edit the fb-id before using it) rows that solves this to  shop.product_details.php, right below the end of the original hack (about line 565):

Code: [Select]
/* BEGIN HACK FB METADATA FOR PRODUCT DETAILS PAGE */
function MetaProp($name, $content){
$return = '<meta property="'.strtolower($name).'" content="'.$content.'" />';
return $return;
}
$product_full_image = 'http://'.$_SERVER['HTTP_HOST'].'/components/com_virtuemart/shop_image/product/'.$db_product->f("product_full_image");
$product_store_url = $sess->url( URL.'index.php?page=shop.product_details&product_id='.$product_id, true );
$document->addCustomTag( '<!-- BOF FB tags. -->' );
$document->addCustomTag(MetaProp("og:title",$product_name));          # product name
$document->addCustomTag(MetaProp("og:type","product"));               # hard coded "product"
$document->addCustomTag(MetaProp("og:url",$product_store_url));       # full product detail page url
$document->addCustomTag(MetaProp("og:image",$product_full_image));    # full product image url
$document->addCustomTag(MetaProp("og:site_name",$vendor_store_name)); # store name
$document->addCustomTag(MetaProp("fb:admins","7007007007"));          # your stores (or your own) fb-id goes here
$document->addCustomTag( '<!-- EOF FB tags. -->' );
/* END HACK FB METADATA FOR PRODUCT DETAILS PAGE */

Thanks again :-)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on June 25, 2011, 17:06:46 pm
is there a way to make this hack work for manufacturers so we can add specific meta descriptions for each one ? avoiding duplicates meta descriptions?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on July 09, 2011, 12:23:47 pm
is there a way to make this hack work for manufacturers so we can add specific meta descriptions for each one ? avoiding duplicates meta descriptions?

no hacks/suggestions?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on July 09, 2011, 19:10:09 pm
Well, I have not looked that that code. I'm sure much of what I have done could be ported into the manufactures code... but it would up to you to figure that one out.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: nuller-joe on July 13, 2011, 12:33:38 pm
Could somebody re-upload mr. huge files for 1.1.5?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mrhuge on July 13, 2011, 13:22:29 pm
Here, take this.

[attachment cleanup by admin]
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on July 14, 2011, 17:55:39 pm
For those that need to use canonical urls for your category childlist here is the code.

categoryChildlist.tpl

if( empty( $categories )) {
   return; // Do nothing, if there are no child categories!
}
?>
<ul class="inlinecats"><li><strong>Related Categories-></strong></li>
<?php
foreach( $categories as $category ) {
   ?>
   <li>
         <a title="<?php echo $category["category_title"] ?>" href="<?php echo $category["category_canonical"] ?>">
         <?php
         echo $category["category_name"];
         ?>
       </a>
   </li>
   
   
   <?php

}
?>
</ul>


EDIT: i think I had to add category_title, and category_canonical to a select from query file. JUST cant rememeber which one.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on July 14, 2011, 19:22:31 pm
i have an problem using this hack. the description of each products it generates automatically an  abstract i dont like.
adds products name at the begging of the description and product category at the end of it.
any way to


Append Category Name ONLY to the end Title and not to description?
+ do not append product name at the begging of description?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on July 15, 2011, 19:42:09 pm
mbit, just take a look a t my code. It's not cryptic I do not think. It should be pretty easy to make adjustments as desired.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on July 16, 2011, 16:36:28 pm
i tried editing some of the code..

as far as that concern the name of the category at the end of the meta-description, i found out that if i change the line
$document->setMetaData('description', str_replace('"', '', strip_tags($db_product->f("product_metadesc").' - '.$get_category)));
with
$document->setMetaData('description', str_replace('"', '', strip_tags($db_product->f("product_metadesc"))));
at file shop.product_details.php , the category name at the end of meta-description gets away..

about the product-name at the begging of the meta-description, this is being saved and its not a parameter like above.
is there a way to clear all the product meta-descriptions and rewrite them without the the product name at the begging?? or i should do this one by one?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: palq4o on August 10, 2011, 12:46:58 pm
Hi there,
the hack is great and thanks for making it ! ;)
So my problem is with joomfish and autogen metatags working together.
In my default language all is working fine.
I have the joomfish vm_product and vm-category contentelement files updated so i can input data when i translate and it looks like it goes to the DB but then when i change the language of the site to my second language the metatags are still in my default language.
Any ideas ?

Well i just found out that the problem is only with the titles - does not matter is it a product or category the title stays in my defaul language.
i am using - Joomla 1.5.23 + Virtuemart 1.1.9 and Joomfish 2.1.7

Here is a link to my working area so you can see it yourself ;) - http://shopeee.com/rentex/

thanks in advance for your help ;)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on August 10, 2011, 21:59:08 pm
I think a small edit in my code to stop from pulling the title from the product name + metadata hack settings/params, and instead pull from Joomfish would help. The hack was not designed for multi-language joomfish add-on, and I am unfamiliar with Joomfish.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: thanoss43 on August 23, 2011, 01:08:22 am
Hello,

Thanks for your hack, it works great, I have been using it for the past 2 months.

Recently my hosting company complained about high CPU usage, so I have been trying to figure out what is causing the problem.
I have been checking my components and modules, but today I thought about this hack.

Do you think the hack may affect the CPU usage of my site? I believe that it consumes much less CPU than components such as SEF404 etc...

What do you think?

Thanks!

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: aricak on August 27, 2011, 01:29:00 am
Hello, I have to say in advance that this hack is really great! Hack has a cosmetic problem that prevents operation of a multilingual website. Please advise how rozchodím multilingual web with this hack? I've come so far that I translate a single title, matatag and description that are the products, but the general text that is added as it remains in default language. Please how can it fix? Thanks with best regards
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on August 27, 2011, 16:53:01 pm

Do you think the hack may affect the CPU usage of my site? I believe that it consumes much less CPU than components such as SEF404

Not at all.

SEF404 definitely does.

ALSO: having dynamic thumbnails ON uses quite a bit of cpu.

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: ruben-sp on August 27, 2011, 19:44:53 pm
Hi, thanks for this great hack, however i cant get nice meta keywords as the hack just one after another with no coma nor space between them.

Any idea why is that happening?

thx in advance!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: thanoss43 on August 29, 2011, 17:39:50 pm
Thank you Banquet for your answer!

I have disabled dynamic thumbs. I have read your suggestion in another thread. Thanks.

Ruben-sp, I don't understand your question, but in case it helps, I think that keywords need to be comma separated.

keyord1, keyword2, this is a phrase , etc....
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: ruben-sp on August 29, 2011, 17:42:44 pm
thanks for your reply thanos43, the problem is that the hack doesn't insert comas in some keywords and they (the keywords) all come together
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: dkaneloglou on September 02, 2011, 13:40:28 pm
THIS HACK MAY NOT BE OFFERED FOR DOWNLOAD ON OTHER WEBSITES BY OTHER INDIVIDUALS / BUSINESSES. By downloading, you agree to the for mentioned term.

Hello, I would like to use this hack as a SEO fan!
Sorry but I cannot see the link.. Where can I download the archives of the hack?!

Thank you!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: diastasi on September 02, 2011, 13:49:06 pm
@dkaneloglou See the first page of the topic
http://forum.virtuemart.net/index.php?topic=65697.0
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: aricak on September 11, 2011, 16:53:33 pm
Hi, so me and this was no hack, I modified for multilingual website. There are small changes in the SELECT database. I attach the complete package with a version and files for joomfish. It still needs to be changed in the database table, also attached. It works great. Thanks for this hack.

This version works with multilingual website!

Ver.: 1.1.4_v1.7_multilanguage for joomfish

[attachment cleanup by admin]
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on September 24, 2011, 05:54:14 am
Txs Aricak... I will post this to the first page of thread.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: stavros-s on October 12, 2011, 12:11:02 pm
Hello

this is a great hack and adds great value to VM

Further more This multilingual hack works great for the auto generated meta only, and if we turn on the manual edit of meta, then it shows the defauld language's meta to any language selected and so it becomes as the original hack without multilingual support

also in joomfish translation i cannot find the new datafields inorder to create the language equivalent translations

pls advice
All the best
Stavros
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: seanctc on October 21, 2011, 13:35:30 pm
Thanks for a great addon!!, i am having a problem though, with Turn On Manual Edit of Meta Title/Description/Keywords feature, this is not working, i'm using VM 1.1.9,

Also I have Joomsef installed is there any benefit to have this hack? as I can add in my metadata through this?

Thanks in advance
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: deflection on November 12, 2011, 02:57:03 am
Hi,
its work but i have problem with polish signs in keywords.
it looks like this:
pi, ro,

it should be pióro.

sometimes it looks: d?ugopis

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: sodego on November 18, 2011, 23:07:08 pm
First thank's very very much for awesome addon.
Forrest your work will help many to go up in google rank,
if my site go up i will for sure donate.


But I confirm that there is a problem with language settings
semewhere in script , I use polish UTF-8 language charset
and script shred words metatags when the polish special character is
used (for one word we receive 2 words divided).
For exapmle instead of one word który  we recive two words kt , ry
without polish cut out character.

Grettings, SODEGO
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on November 23, 2011, 11:28:30 am
i updated my site at 1.1.9 and got the Meta tab lost!
 Is the last version of AutoGen metadata compatible with 1.1.9? :o :( :o :-\ :-X

edit: i uploaded all the meta hack code in the files that is needed. But the Category hack doesnt seem to work! i get he following error :

Quote
No valid database connection Unknown column 'id' in 'field list' SQL=SELECT id, banned, remove_less_than, number_of_keywords, append_category, general_append_end,general_append_end_title, general_append_keys, general_append_keys_phrase, append_subcategory_title, append_subcategory_description, prepend_cat_name_phrase,prepend_par_cat_name_phrase, turn_on_edit, add_abstract, generator, subject, classification, author, organization, copyright, country, content_language, language, designer, comments, no_email_collection FROM jos_vm_category_metakeys
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on November 23, 2011, 14:22:49 pm
mbit, is your table prefix "jos"?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on November 23, 2011, 14:23:37 pm
mbit, is your table prefix "jos"?
yes, using the default. I managed to hide this error by changing the shop.browse.php with and older versions one. Categorys Meta seems to work fine but products meta doesnt work :/
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on November 23, 2011, 15:24:43 pm
mbit, the best way to update is to take new 1.1.9 files.

THEN, take your hacked files.

OPEN: both

In the hacked files ALL the hacks are noted  "Hack".

SO, you can search where the hack starts. Then copy the code, and place in the NEW file.

The  category uses

product.product_category_form  (thats the category from with the "tab"
ps_product_category
shop.browse

THE product uses.
product.product_form    (that is the backend where you enter the keywords etc. and gives you the tab)
shop.product_details
ps_product

THE 2 form files will NEVER change, so you can always use the older versions.


The other 4 files should be copied and pasted from.
YOU just need to make sure you are pasting in the right place.

SOME of the original vmart code is commented out, and some is added to.

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on November 23, 2011, 16:02:02 pm
this is how i started installing the theme.. first updated to 1.1.9 then checked each one site to copy code and paste it in right place.. have you worked on 1.1.9 and meta hack?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on November 23, 2011, 16:14:20 pm
this is how i started installing the theme.. first updated to 1.1.9 then checked each one site to copy code and paste it in right place.. have you worked on 1.1.9 and meta hack?

I technically have a different version of this hack. Mine does not use meta tags. I only use it for canonical urls, and page titles.

WHAT: I do, is have an xampp installation.

THEN, I download the version patch when vmart releases one.

I test it locally. THEN, I modify the files in the patch that the hack uses.
Test, and THEN FTP the modified patch to the live site.

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on November 23, 2011, 19:30:44 pm
this is how i started installing the theme.. first updated to 1.1.9 then checked each one site to copy code and paste it in right place.. have you worked on 1.1.9 and meta hack?

I technically have a different version of this hack. Mine does not use meta tags. I only use it for canonical urls, and page titles.

WHAT: I do, is have an xampp installation.

THEN, I download the version patch when vmart releases one.

I test it locally. THEN, I modify the files in the patch that the hack uses.
Test, and THEN FTP the modified patch to the live site.


I reinstalled all the 1.1.9 files, add the meta code at each file and everything seems to work now. Probably i lost a part of the code last time. Thanks  for help :)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on November 29, 2011, 19:43:53 pm
need some help again :?
i am trying to enable the joomfish meta hack. i downloaded aricak's files http://forum.virtuemart.net/index.php?topic=65697.msg297783#msg297783, replaced them with mine + added joomfish contentelements files. when i tried to run sql #__vm_category_metakeys.sql & #__vm_product_metakeys.sql i got errors :
Quote
SQL query:

INSERT INTO `jos_vm_product_metakeys` (`id`, `banned`, `remove_less_than`, `number_of_keywords`, `append_category`, `general_append_end`, `general_append_end_title`, `general_append_keys`, `general_append_keys_phrase`, `append_prod_name_phrase`, `append_par_cat_name_phrase`, `turn_on_edit`, `add_abstract`, `generator`, `subject`, `classification`, `author`, `organization`, `copyright`, `country`, `content_language`, `language`, `designer`, `comments`, `no_email_collection`) VALUES (1, 'na, u, about, above, across, after, afterwards, again, against, all, almost, alone, along, already, also, although, always, am, among, amongst, amoungst, amount, an, and, another, any, anyhow, anyone, anything, anyway, anywhere, are, around, as, at, back, be, became, because, become, becomes, becoming, been, before, beforehand, behind, being, below, beside, besides, between, beyond, bill, both, bottom, bull, but, by, call, can, cannot, cant, co, computer, con, could, couldnt, cry, de, describe, detail[...]

MySQL said:

#1054 - Unknown column 'id' in 'field list'
Also at joomfish when i choose content element :vm category metakeys or vm product metakeys i get the following error :
Quote
DB function failed with error number 1054
Unknown column 'c.id' in 'field list' SQL=SELECT c.id, c.banned, c.remove_less_than, c.number_of_keywords, c.append_category, c.general_append_end, c.general_append_end_title, c.general_append_keys, c.general_append_keys_phrase, c.append_prod_name_phrase, c.append_par_cat_name_phrase, c.turn_on_edit, c.add_abstract, c.generator, c.subject, c.classification, c.author, c.organization, c.copyright, c.country, c.content_language, c.language, c.designer, c.comments, c.no_email_collection, jfc.id as jfc_id, jfc.value as titleTranslation, jfc.modified as lastchanged, jfc.published as published, jfc.language_id, jfl.name as language, jfc.reference_id as jfc_refid FROM jos_vm_product_metakeys as c LEFT JOIN jos_jf_content as jfc ON c.id=jfc.reference_id AND jfc.reference_table='vm_product_metakeys' AND jfc.language_id=2 LEFT JOIN jos_languages as jfl ON jfc.language_id=jfl.id LIMIT 0, 10

any ideas whats goes wrong?

edit: "..jos_vm_product_metakeys` (`id`, ..."  in my db, at jos_vm_product_metakeys there is no 'id' field, but 'mid'.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: sodego on December 02, 2011, 00:43:46 am
Can anybody help with encoding problem?

Quote
But I confirm that there is a problem with language settings
semewhere in script , I use polish UTF-8 language charset
and script shred words metatags when the polish special character is
used (for one word we receive 2 words divided).
For exapmle instead of one word który  we recive two words kt , ry
without polish cut out character.

Grettings, SODEGO
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: cerhio on December 05, 2011, 21:01:30 pm
i hacked vm 1.1.4 (j 1.5.23)

now i have two description meta-tags: one from joomla core, one generated by hack. and title is always from joomla core.

i have joomla sef on and... hm. what else to say? i don't know, where the problem could be
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on December 05, 2011, 21:21:06 pm
cerhio, how did you hack?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: cerhio on December 05, 2011, 21:30:48 pm
shit!

i found, previous webmaster hacked joomla core with no comments in code on the site. brrrr.

so that's not a vm hack problem.

i repeared head.php in joomla libraries and now i see all meta data on vm pages as it should be. the only thing is there are still two descriptions. are there any other files in joomla core or in vm, that create description tag?

i rewrite vm files when applying this hack, so problem is somewhere else
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on December 05, 2011, 21:39:19 pm
IS is product and category meta?

OR is the Joomla global meta doing it?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: cerhio on December 05, 2011, 21:56:24 pm
now it looks this way



<meta name="keywords" content="..." />  from vm hack
  <meta name="description" content="..." /> from vm hack
  <meta name="description" content="..." /> from joomla global meta

  <title>...</title> from hack
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: cerhio on December 11, 2011, 10:00:34 am
any ideas?

this happens both in vm categories and produst pages, on other site pages  global joomla metadata is displayd ok
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on December 11, 2011, 16:32:01 pm
I dont understand the problem

whats the problem?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: cerhio on December 11, 2011, 18:09:51 pm
meta tag DESCRIPTION displays two times on one page. that's the problem
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: cerhio on December 11, 2011, 18:12:38 pm
solved

i comment in shop.browse.php

Quote
$mainframe->prependMetaTag( "description", substr(strip_tags($desc ), 0, 255) );
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: cam92 on January 06, 2012, 13:09:06 pm
Just want to say Thank you !
This is exactly what I was looking for and it works just fine ! (and easy to install and very flexible to use...which is key with my low level of knowledge in this area !).

And Happy New Year !
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: radicalfightershop on January 07, 2012, 13:24:27 pm
Does anyone know if this Meta Hack is compatible with SH404SEF ie does cause any ill effects if installed with SH404SEF also in use?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: davishuang on January 12, 2012, 08:29:44 am
It's a great hack,i installed it ,it works well in back-end,but when brwose the "product details" ,there is problem :Not Found

The requested URL /www.kiying.com was not found on this server.  Please help!! Thanks
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Stonedfury on January 13, 2012, 21:53:37 pm
Is this compatible with the J1.5.25 & VM1.1.9? I would love to try this out.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: sodego on January 15, 2012, 18:59:56 pm
Will this hack support VM 2.0?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: PRO on January 17, 2012, 15:37:52 pm
no
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: benji201 on January 19, 2012, 18:55:50 pm
Are there any more detailed instructions on the install process for this?

Sorry if I am missing something really obvious...  I am not sure how to run the sql file or anything.

Help would be awesome.
Title: Re: HACK: AutoGen Metadata Metatag. Product,Description, Keywords
Post by: alexsei on January 22, 2012, 05:14:38 am
ALL GLOBAL ERROR // MENY ERROR //

http://bai.int.ru/images/2012-01-22_0811.png (http://bai.int.ru/images/2012-01-22_0811.png)
I have been replaced by the variables w your single-byte NON-WORKING!

 BAD-byte

 MY DECISION BELOW did not help!

mb_strtolower.
mb_eregi_replace.
mb_SUBSTR

HELP to finish and I will make COPY HERE FOR ALL LANGUAGES OF MACHINES double-byte !!!!!!!!!!!!!!!!!!!!!!!

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on January 23, 2012, 16:01:50 pm
Any instructions how to make this hack work with joomfish? have a tab or some meta fields in joomfish product translation?

edit:
Hi, so me and this was no hack, I modified for multilingual website. There are small changes in the SELECT database. I attach the complete package with a version and files for joomfish. It still needs to be changed in the database table, also attached. It works great. Thanks for this hack.

This version works with multilingual website!

Ver.: 1.1.4_v1.7_multilanguage for joomfish
i downloaded your files and while i try to run the sql files (although the tables already exists, i get the following error at phpmyadmin : #1054 - Unknown column 'id' in 'field list' .
Also after i changed the files in administrator/components/com_virtuemart & administrator/components/com_joomfish ,i get the following/same error at the Joomfish backend when i choose  virtuemart product metakeys as content element.
"500 - An error has occurred.

JDatabaseMySQL::query: 1054 - Unknown column 'c.id' in 'field list' SQL=SELECT COUNT(distinct c.id) FROM jos_vm_product_metakeys as c LEFT JOIN jos_jf_content as jfc ON c.id=jfc.reference_id AND jfc.reference_table='vm_product_metakeys' AND jfc.language_id=2"
 
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on February 06, 2012, 12:33:50 pm
No answer on how to use this hack with joomfish?  :-X
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: peetee on February 15, 2012, 14:15:50 pm
Hello guys, first of all - thank You Forest for that hack.
I am trying to make it work with joomfish (J1.5.25, VM1.1.9). My default language is Czech and I have English and French. In the original language all works like a charm but if I translate a product and published it I click on the English flag for translation I am getting strange error I do not understand .. actually I am not a programmer just trying to built a shop ... I have attached a picture becouse I even do not know how to describe it. I would be realy happy if there is someone who could help me with that. Thank You in advance. Petr the image: http://postimage.org/image/cqj0wgjrp/
I tried to install this version: autogen_metatags_vm1.1.5_v1.7m
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Mike_Griffiths on February 16, 2012, 15:09:18 pm
Hi there guys

I am running J1.5.18 & VM1.1.4 and I want to know if any of you have succesfully installed this hack to work with the CAE9 (Custom Attributes Extended) Hack by Webgobe. I had this hack working perfectly as per the instructions provided. Many thanks to Forrest btw for this wonderful hack.

Every time i try and get this hack to work with CAE9 I have a corrupt back end in VM, by corrupt I mean nothing displays when you select the component Virtuemart. If someone has managed to get the functionality of the Meta hack and also the Custom attributes to work together I would love to hear from you, and of course your solution to the problem.

Whether it makes a difference, I am not using the Joomla default VM theme, I am using the Mynxx theme for VM. Im just wondering now whether I am updating the wrong theme files? Any help would be appreciated as I am just a beginner. I can only assume that because both the Meta Hack and CAE9 utilise 2 of the same files that this is what is causing problems, when I insert the Meta hack code into the same files that have been hacked for CAE9, this is when I get problems. If you understand that?

Any help would be fantastic.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: enzoibanez on February 17, 2012, 13:04:44 pm
hi guys..i've a problem..this is a gooooood hack..t i've a problem..i can't write on category description..the description don't save.
i have virtuemart sef,acesef 1.1.9 virtuemart
can i resolve it?
the description product can save but category description don't save
hi at all from italy
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: naoky on February 20, 2012, 19:37:25 pm
Hello. Can anybody help me?
I have installed this hack. Now I am trying to change meta. It saves but changes don't appear. What can be wrong?

VirtueMart 1.1.9
Joomla 1.5.22
autogen_metatags_vm1.1.4_v1.7
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on February 21, 2012, 05:47:41 am
You're using a custom VM template. You need to apply the hacks from the standard VM template to your custom VM template.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: naoky on February 21, 2012, 12:10:37 pm
Thank you!
May be you can tell me where I  can do it?  :-[
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: vladast on March 08, 2012, 15:01:05 pm
I have one question, and it si about UTF-8 encoding.
I'm from Serbia, and products on my shop have characters like č,ć,ž,đ.
When I turn on your hack, that characters show like �.

Use VM 1.1.9
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: vladast on March 08, 2012, 19:42:26 pm
HM... maybe I have figured how you can set all UTF encoding.
I'm from Serbia, and here we have characters: č,ć,š,đ,ž.
I need instead that this characters: c,c,s,dj,z.

How you can made this.
Open files:
product.product_category_form.php
product.product_form.php
shop.browse.php
shop.product_details.php

find the line in all files above:
Quote
$input_text = str_replace('_', '-', $input_text);

after that you can put every character to replace:
etc:
Quote
$input_text = str_replace('character to replace', 'character to replace with', $input_text);

you must repeat this in above 4 files.
all that files MUST be saved in UTF-8 encoding!

I think that I help!

this can be next step for Forest and coding...
add some extra field with character to replace, with some coma separator or |
etc: č | c, š | s, ....

Title: Re: HACK: AutoGen Metadata Metatags. Product, Category. Title, Description, Keywords
Post by: stonebug on March 09, 2012, 15:29:01 pm
for some reason (that i need to find out :P) when I remove the string to lower in the line below it works ok :S

$end_result = $trimmed_title.', '.$trimmed_words;

You should nt delete the line. In order for this hack to work with greek characters you should replace on shop.product.details.php the function
strtolower with mb_strtolower. The problem is with the multibyte greek characters that the codes try to convert to lowercase and it turns it to "?".
I tried it and it works.
Well there is another bug with the stopwords, dont use greek stopwords because it deletes characters from words, because of the multibyte utf8 greek characters.
If the code was written again with full support for utf8 characters then it would be perfect for worldwide websites in any language.
Until then .... it works great anyway!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: stonebug on March 09, 2012, 15:31:19 pm
As I understood I think there was an issue with local Apache & PHP.
I tried this addon locally in Xampp and I had an issue with Greek.
I tried it online and Greek worked!!! maybe something with ereg (php).

In order for this hack to work with greek characters you should replace on shop.product.details.php the function
strtolower with mb_strtolower. The problem is with the multibyte greek characters that the codes try to convert to lowercase and it turns it to "?".
I tried it and it works.
Well there is another bug with the stopwords, dont use greek stopwords because it deletes characters from words, because of the multibyte utf8 greek characters.
If the code was written again with full support for utf8 characters then it would be perfect for worldwide websites in any language.
Until then .... it works great anyway!
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: enzoibanez on March 11, 2012, 22:09:44 pm
hi guys..i've a problem..this is a gooooood hack..t i've a problem..i can't write on category description..the description don't save.
i have virtuemart sef,acesef 1.1.9 virtuemart
can i resolve it?
the description product can save but category description don't save
hi at all from italy
i have the problem that i can't create no new category and no new proudutct..sorry!!!can anyone hal me??
joomla 1.5.23
wm 1.9
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: dl_2011 on March 14, 2012, 11:04:50 am
Hi There,

I am a first time user for this hack, can any help with how i can install this hack to work. Dont know where to start.

Is there an instruction manual in how to set this up. If there is where could i find it?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: vladast on March 14, 2012, 12:01:20 pm
@stonebug
that's work for me... for any case I have saved files under UTF-8
if someone have to replace some characters with other characters there is my post here:
http://forum.virtuemart.net/index.php?topic=65697.msg327910#msg327910  ;)

@enzoibanez
I have j 1.5.23, and updated 1.5.25 and VM 1.1.9 and evertything works fine... adding categories, products...

@dl_2011
you just have to replace files from install folder in zip archive from first page of this topic to your joomla folder
after that you need to import SQL file also from install folder to your SQL database...
and that's it :)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: mbit on March 20, 2012, 08:44:32 am
hello, i am working on this hack with Joomfish and i stacked at the last part before my update :/
i managed to get the category page meta & the product page meta work but i miss the parent pategory translation at the title. What i mean is..
My subcategory title looks like :
Cat_title - Parent_Cat_title - Sitename .
So when i choose to translate, everything seems to change well except the parent_cat_title that stays the same at the default lang.  I search the code, and i end up on shop.browse.php file, line 202:
Code: [Select]
$document->setTitle(str_replace('"', '', strip_tags( $db->f('category_title').' - '.$category_has_parent_name.' - '.$general_append_end_title)));
$category_has_parent_name doesnt seem to communicate with joomfish :/
I tried to make a custom hack here.. 
Code: [Select]
if( $category_has_parent_name ) {
$dbbc = new ps_DB;
$dbbc->query( "SELECT category_parent_id FROM #__{vm}_category_xref WHERE category_child_id='$category_id'");
$dbbc->next_record();
$get_category = ucwords(strip_tags( $dbbc->f('category_parent_id')));
}
so if i replace $get_category with $category_has_parent_name at line 202, now i get the parent_category_id at the title.

Its easy to find the category_title of that category_id but how will i check which language title should be called ?? Can i set an if of url parameters somehow?

Any help welcome :)
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on March 22, 2012, 01:44:07 am
Well this is more of a Joomfish specific question.

I would search their forums for a snippet of code to query the active language, if it is not pass in the url parameters. Maybe there is a setting as well in Joomfish to place the language in the url... but likely this is not necessary, the the fore-mentioned otpion is the way to go.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: sodego on March 29, 2012, 23:23:17 pm
There is still a problem with language settings
semewhere in script , I use polish UTF-8 language charset
and script shred words metatags when the polish special character is
used (for one word we receive 2 words divided).
For exapmle instead of one word który we recive two words kt , ry
without polish cut out character.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: vladast on March 31, 2012, 14:49:45 pm
me again...
on my another site, which is with cell phones and equipment, where is a phone models, like Nokia 6680, or Nokia 5560, or something with numbers,
my meta keywords won't show up with that numbers...

I need to be... keywords example... battery,compatible, with, nokia, 5510, 5600, 5500...

how to do that?
thnx
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 01, 2012, 05:40:24 am
You can turn on manual edit and add as you need for each product/category.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: servlet on April 01, 2012, 10:33:16 am
Which pack must I use?
I am with VM 1.1.9 and J1.5.25
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 01, 2012, 18:23:03 pm
This one:
http://forum.virtuemart.net/index.php?action=dlattach;topic=65697.0;attach=18128

However, it is not updated to the latest VM, so you will need to manually copy the code (which is well commented) into your later version files, rather than just overwriting.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: vladast on April 03, 2012, 00:11:17 am
@Forrest?

I know for manual turning on, but I need to write words, or in my case numbers... It's not automatically process like for other words!
Is it possible to do it automatically??

This is my print screen?
(http://www.profystudio.com/test.jpg)

thnx
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 03, 2012, 01:07:23 am
Frankly I don't remember off top of head what I am stripping and what I am not. You can look thu my code to see find where numbers are being stripped is shop.product_details.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: vladast on April 03, 2012, 23:21:10 pm
I have looked, and only line where numbers are show up is
Quote
$numbers = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "0");
     $string_words = str_replace($numbers, '', $end_keywords);

what to do, what to replace, erase or something? I don'n know, I have tried everything, but nothing works...

please...
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 04, 2012, 00:06:41 am
erase that if you want to keep numbers.

then put below in it's place.

$string_words = $end_keywords;
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: vladast on April 06, 2012, 18:33:46 pm
@Forrest
this doesn't work
Quote
erase that if you want to keep numbers.
then put below in it's place.
$string_words = $end_keywords;

if I NOTreplace
Quote
$numbers = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "0");
     $string_words = str_replace($numbers, '', $end_keywords);

with
Quote
$string_words = $end_keywords;

my meta tags show up like this
Quote
   <meta name="description" content="Baterija 03 - Baterije - Kompatibilna sa: 3220, 3230, 5070, 5140, 5140i, 5200, 5300, 5320 XpressMusic, 5500, 6020, 6021, 6060, 6061, 6062, 6070, 6080, 6120 classic, 6121 classic, 6122c, 7260, 7360, N80, N80ie, N90"/>
  <meta name="keywords" content="baterija, 03, baterije, classic, xpressmusic, kompatibilna, last, last, baterija 03, baterije" />

if I replace above code meta tags looks like this
Quote
  <meta name="description" content="Baterija 03 - Baterije - Kompatibilna sa: 3220, 3230, 5070, 5140, 5140i, 5200, 5300, 5320 XpressMusic, 5500, 6020, 6021, 6060, 6061, 6062, 6070, 6080, 6120 classic, 6121 classic, 6122c, 7260, 7360, N80, N80ie, N90"/>
  <meta name="keywords" content="baterija, 03, baterije, 4, classic, 2, xpressmusic, kompatibilna, last, last, baterija 03, baterije" />

as you can see, in meta keywords of replaced code, there is numbers 4 and 2 more than in not replaced code.
but this numbers are totally undefined to me, and there is no other numbers from description text of products?

also I have noticied that if I put
Quote
      $input_text = str_replace('1', 'one ', $input_text);
      $input_text = str_replace('2', 'two', $input_text);
      $input_text = str_replace('3', 'three', $input_text);
keyword shown up with for model Nokia 5523 like this...  twothree...
it's only some line in code that erase numbers in description, and I have tried to erase all and nothing...
i just don't know...

please help if you can, is it very important to work with numbers...
thnx
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 06, 2012, 23:15:22 pm
Understand this code is in two places:
1. /administrator/components/com_virtuemart/html/shop.product_details.php
2. /administrator/components/com_virtuemart/classes/product.product_form.php

(same goes for category pages as well fyi)

You will want to follow instructions on clearing and rewriting your metadata, once you apply the fix I suggested. If you do not put "$string_words = $end_keywords" in replacement of the code, your output should end up blank for keywords.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: vladast on April 07, 2012, 14:02:43 pm
@Forrest
Sorry but obviously I'm very stupid!

I have replace code in above two files.
I have clear data, erase all meta title/desc/words...
then save and nothing again???

When I check on MANUAL option for meta tags, and puts some numbers in meta keywords, in frontend they shown up.
but when MANUAL is checked off, erase all tags, numbers just wont show up...

I use autogen_metatags_vm1.1.5_v1.7m.zip

really don't know what to do?

p.s.
I think that you maybe made little mistake in your last post
Quote
2. /administrator/components/com_virtuemart/classes/product.product_form.php
should be
Quote
2. /administrator/components/com_virtuemart/HTML/product.product_form.php
folder is HTML instead CLASSES...
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on April 07, 2012, 19:47:18 pm
Yep, your right on that correction.

How about a PM to me with admin login info. I need to look at your settings.
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: vladast on April 08, 2012, 22:33:44 pm
Is there anyone who can resolve problem with numbers in meta keywords...
Forrest try, but can't figure out where is the problem...

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: vladast on May 04, 2012, 15:39:54 pm
My shop grow, and I have noticed that numbers will appear if is with no space of some alfabetical.
Etc: Nokia5500, but if there is any space like Nokia 5500, numbers won't show.

Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: marcellodj on June 01, 2012, 16:04:38 pm
Good afternoon, i have J1.5+VM1.1.4,
i have also goodrelations module for semantic web; anyone i saw in an old post here that there is some problems with goodrelations;
anyone have some tips or info, i would try the hack, but wan t mess my installation.thanks in advance.

[Update 02.06.2012]

Mod installed and 100% working fine, great piece of code, no issue to performance related, goodrelations module working as usual.
Here for your reference my setup:

J 1.5.10
VM 1.1.4 Stable
Goodrelations mod_goodrelations_v2_22-05-2012

Best regrds
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: dbrownies on July 01, 2012, 10:48:20 am
no
are there subtitute for this hack ? share me the link
thanks
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: snowball77 on August 21, 2012, 19:59:36 pm
Hi I was wondering, it seems this hack will do the trick but I a simply looking to to a tiny hack where I append something like "promotional products" to the beginning of all my shop items.

Is there a small hack someone can help me to do this?
I am using Joomla 1.5. 23 and VirtueMart 1.1.5
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: wooyadeen on November 15, 2012, 10:06:56 am
I'm new to VM and I have troubles installing autogen metadata, is it possible to write a simple step by step "How to"?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: marcellodj on November 26, 2012, 23:00:09 pm
Hello,
updated my Joomla installation from 1.5.10 to 1.5.26, hack seems to be stopped to worked.
It keywords and abstract are not shown in source page.
Any help???
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: dawidt on March 12, 2014, 13:47:25 pm
Hi guys,

Nice and needful hack. Problem is I've already modified some of hacks files (for other functionality) and copying files "as is" not working for me. Do you have some instruction which lines exactly should I change to make that hack works?
Title: Re: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Post by: Forrest on March 12, 2014, 17:39:23 pm
Hi guys,
Nice and needful hack. Problem is I've already modified some of hacks files (for other functionality) and copying files "as is" not working for me. Do you have some instruction which lines exactly should I change to make that hack works?

Are you on VM 1.1? This component is for 1.1 only.
If so, my code is commented in each file you'd need to overwrite. Just search for metadata in the attached files, and copy down to the end of the hack. Paste in the same place on your files. Make sure to still run the sql file if you haven't already.