Author Topic: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords  (Read 446184 times)

tankist

  • Beginner
  • *
  • Posts: 6
У меня именно на хостинге не работает. Что самое печальное. Даже ума не приложу где копать...

tankist

  • Beginner
  • *
  • Posts: 6

diastasi

  • Jr. Member
  • **
  • Posts: 65
    • e-magazi the greek eshop
@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.

tankist

  • Beginner
  • *
  • Posts: 6
I have a problem on online server. What vertion of PHP you using online?

tankist

  • Beginner
  • *
  • Posts: 6
The problem in functions, thats separated strings. But i cant find it...

tankist

  • Beginner
  • *
  • Posts: 6
The problem in using function preg_split with UTF-8 characters...
Need to rebuild a code...

diastasi

  • Jr. Member
  • **
  • Posts: 65
    • e-magazi the greek eshop
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 :)

ashantycapre

  • Beginner
  • *
  • Posts: 1
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.



thod

  • Beginner
  • *
  • Posts: 1
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

bortx

  • Beginner
  • *
  • Posts: 1
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!

franzpeter

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 467
    • 2in1-online | Software, Mac, PC, Netzwerk, Drucker, Pad, Display
  • VirtueMart Version: Virtuemart 3.2.6
It works with Virtuemart 1.1.5 too.

Sunglasses-Joe

  • Beginner
  • *
  • Posts: 26
  • Me & My Boy !
    • The Glasses Center
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
The Glasses Center Group

http://www.sunglassescenter.co.uk/

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10440
  • VirtueMart Version: 3+
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


Sunglasses-Joe

  • Beginner
  • *
  • Posts: 26
  • Me & My Boy !
    • The Glasses Center
Thanks for the reply , do you mean in Virtuemart, Configuration, Security , ?  if so there is    http://www.thesunglasses4u.com/ in both ?
The Glasses Center Group

http://www.sunglassescenter.co.uk/

Joy

  • Beginner
  • *
  • Posts: 12
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?