× Here you can get community support related to Tag Meta.

How to get rid of commas and dots in keywords

  • teubernet
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 9 months ago - 8 years 9 months ago #4691 by teubernet
Hello, I am using tag meta enterprise TagMeta1.7.8Enterprise_J3, Joomla 3.4.8.

When I generate keywords with the {autokeywords 4,10} makro I get words like "bikes," (including comma) as a keyword, so the meta keyword tag looks like this: bikes,,bike,interior,transport,bicycles,rack,road,triathlon,trekking,e-bikes

Please check: 3.x.bikeinside.de/en/interior-bike-rack/system-bikeinside/37-25-years-bicycle-transport-in-the-car.html

Same happens with dots meta tag (look at "werden."): keywords: gabelaufnahme,grundträger,fahrräder,steckachsenadapter,steckachsen,15mm,innenraum,werden.,niederholer,stehen
on this page: 3.x.bikeinside.de/innenraum-fahrradtraeger/system-bikeinside.html

I tried already to add "bikes," to the blacklist, tried: {str_replace ',,',','}{autokeywords 4,10}{/str_replace}, a={autokeywords 4,10} in the placeholders field and and {str_replace ',,',','}$a{/str_replace} in the keywords field. All this does not work.

How can I get rid of the double commas and the dots?

Best regards

Christian
Last edit: 8 years 9 months ago by teubernet. Reason: Something missing

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #4693 by admin
Hi Christian,
let me check and I will find a solution for you.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #4695 by admin
Hi Christian,
to fix the issue it is required to change the tagmeta.php plugin code (I will release this fix in the next version). Line 1393, change this line:
$content = JString::strtolower(trim(preg_replace('/[\s\r\n\t]{1,}/', ' ', $content)));

With this line:
$content = JString::strtolower(trim(preg_replace('/[\s\r\n\t\.,:;\?!]{1,}/', ' ', $content)));

In this way "word separators" (i.e. dot, comma, double colon, semi-comma, question mark, and exclamation mark) will be removed.

Kind regards,
Luigi
The following user(s) said Thank You: teubernet

Please Log in or Create an account to join the conversation.

  • teubernet
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 9 months ago #4697 by teubernet
Replied by teubernet on topic How to get rid of commas and dots in keywords
Worked like a charm, thank you for your fast and great support!

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #4700 by admin
U're welcome.

Please Log in or Create an account to join the conversation.

Time to create page: 0.158 seconds