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

vladast

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

Forrest

  • Hero Member
  • *****
  • Posts: 1972
  • Me and my baby
    • Web Developer
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.

vladast

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

Forrest

  • Hero Member
  • *****
  • Posts: 1972
  • Me and my baby
    • Web Developer
Yep, your right on that correction.

How about a PM to me with admin login info. I need to look at your settings.

vladast

  • Beginner
  • *
  • Posts: 36
Is there anyone who can resolve problem with numbers in meta keywords...
Forrest try, but can't figure out where is the problem...


vladast

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


marcellodj

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

dbrownies

  • Beginner
  • *
  • Posts: 7
no
are there subtitute for this hack ? share me the link
thanks

snowball77

  • Jr. Member
  • **
  • Posts: 76
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

wooyadeen

  • Beginner
  • *
  • Posts: 1
I'm new to VM and I have troubles installing autogen metadata, is it possible to write a simple step by step "How to"?

marcellodj

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

dawidt

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

Forrest

  • Hero Member
  • *****
  • Posts: 1972
  • Me and my baby
    • Web Developer
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.