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

wogopoulos

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

wogopoulos

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

Forrest

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

Stefanos

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

apexfreelance

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

Forrest

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

apexfreelance

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



apexfreelance

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

Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer
Looks good!

bardius

  • Beginner
  • *
  • Posts: 16
    • George Bardis :: Team Leader / Senior Web Developer
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!

 
George Bardis
Team Leader / Senior Web Developer
http://www.bardis.info

bardius

  • Beginner
  • *
  • Posts: 16
    • George Bardis :: Team Leader / Senior Web Developer
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;

George Bardis
Team Leader / Senior Web Developer
http://www.bardis.info

Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer
very odd?

Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer
Please keep me posted on what you discover bardius.

mdlhale

  • Beginner
  • *
  • Posts: 11
Nevermind, fixed it in the shop.browse. Thanks!!!!