Welcome, Guest. Please login or register.
Login with username, password and session length


VirtueMart 1.1.8 - [SECURITY RELEASE] is available! Read more....

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
VirtueMart ForumVirtueMart Dev/Coding CentralDevelopment Projects, Modifications, Hacks & Tweaks (Moderator: MikeUK)HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords
Pages: 1 ... 25 26 [27]   Go Down
Print
Author Topic: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords  (Read 71988 times)
Rookie232
Newbie
*
Posts: 46


« Reply #390 on: May 12, 2011, 16: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
Logged
Rookie232
Newbie
*
Posts: 46


« Reply #391 on: May 12, 2011, 16: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
Logged
flahsfinder
Newbie
*
Posts: 6


« Reply #392 on: June 01, 2011, 08:36:02 AM »

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.
Logged
BanquetTables.pro
Global Moderator
Hero Member
*
Posts: 4741



« Reply #393 on: June 01, 2011, 11:47:39 AM »

flash, are you saying it does NOT save to database?
Logged

"Banquet Tables Pro"
flahsfinder
Newbie
*
Posts: 6


« Reply #394 on: June 01, 2011, 12:32:08 PM »

BanquetTables.pro
HACK For the Products - does NOT save to database!
(For Categories - save to database)
Logged
BanquetTables.pro
Global Moderator
Hero Member
*
Posts: 4741



« Reply #395 on: June 02, 2011, 06:57:29 AM »

did you run the sql file?
Logged

"Banquet Tables Pro"
Margaret
Newbie
*
Posts: 26


« Reply #396 on: June 02, 2011, 07:44:42 AM »

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?
« Last Edit: June 02, 2011, 09:21:05 AM by Margaret » Logged
flahsfinder
Newbie
*
Posts: 6


« Reply #397 on: June 02, 2011, 12: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'
« Last Edit: June 02, 2011, 12:44:47 PM by flahsfinder » Logged
BanquetTables.pro
Global Moderator
Hero Member
*
Posts: 4741



« Reply #398 on: June 02, 2011, 13:36:10 PM »

i have no idea what that means
Logged

"Banquet Tables Pro"
Forrest
Global Moderator
Hero Member
*
Posts: 1907


Me and my bitch


WWW
« Reply #399 on: June 02, 2011, 16: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.
Logged

flahsfinder
Newbie
*
Posts: 6


« Reply #400 on: June 03, 2011, 06:35:53 AM »

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.
Logged
Forrest
Global Moderator
Hero Member
*
Posts: 1907


Me and my bitch


WWW
« Reply #401 on: June 03, 2011, 14: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.
Logged

hancro
Newbie
*
Posts: 1


« Reply #402 on: June 10, 2011, 18:01:47 PM »

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:
/* 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 :-)
Logged
Pages: 1 ... 25 26 [27]   Go Up
Print
Jump to: