[Addon} Modular SEO Header Tags
#341
Posted 09 December 2012 - 03:12 PM
Ian
#342
Posted 28 December 2012 - 08:06 AM
thanks fo the add, it work perfectly.
But now I'd like to add MANUFACTURER META DESCRIPTION - INSERT which file i need to try to modify to create this?
I think to start to create a new file beginning from CATEGORY DESCRIPTION INSERT , I need to modify only this or other files?
Thanks
Marco
#343 ONLINE
Posted 28 December 2012 - 07:24 PM
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#344
Posted 05 January 2013 - 02:08 PM
I add a field HEAD_TITLE in TABLE_MANUFACTURERS_INFO, I create manufacturers_process.php and manufacturers_insert.php I can insert new manufacturer with title and display in my ecommerce, All works well except for case "Edit" I can't display and change the field head_title, I think the problem is in manufacturers_insert.php
This is the code where i think there's the problem, can you help me? For you is correct or there's something wrong??
Thanks in advance for your help
switch ($action) {
case 'edit':
if( $head_title_field == true ) {
$head_title = array();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$languages_id = ( int )$languages[$i]['id'];
$manufacturers_title_query_raw = "
select
head_title
from
" . TABLE_MANUFACTURERS_INFO . "
where
manufacturers_id = '" . ( int )$cInfo->manufacturers_id . "'
and languages_id = '" . $languages_id . "'
";
// print 'manufacturers Title Query: ' . $manufacturers_title_query_raw;
$manufacturers_title_query = tep_db_query( $manufacturers_title_query_raw );
$manufacturers_title = tep_db_fetch_array( $manufacturers_title_query );
$head_title[$languages_id] = $manufacturers_title['head_title'];
}
}
#345 ONLINE
Posted 05 January 2013 - 05:52 PM
1. Where is $head_title_field set? Is it being set to true?
2. Does the $cInfo array contain the manufacturers_id? What is it being set to?
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#346
Posted 05 January 2013 - 08:07 PM
not $cInfo but $mInfo
Marco
#347
Posted 06 January 2013 - 02:37 PM
Can you help me?? My php is not too good
Thanks in advance
// Input titles and meta descriptions from the MANUFACTURERS sidebar
switch( $action ) {
case 'insert' :
case 'save' :
if ($manufacturers_field_exists == true) {
if (isset ($_POST['manufacturers_id']))
$manufacturers_id = tep_db_prepare_input($_POST['manufacturers_id']);
if (isset ($_POST['head_title']) || isset ($_POST['head_description']) || isset ($_POST['head_keywords'])) {
if ($action == 'insert') {
$sql_data_array = array (
'manufacturers_id' => $manufacturers_id,
'date_added' => 'now()'
// 'languages_id' => $language_id
);
tep_db_perform(TABLE_MANUFACTURERS, $sql_data_array);
$manufacturers_id = tep_db_insert_id();
}
$languages = tep_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$language_id = ( int ) $languages[$i]['id'];
$sql_data_array = array ();
if (isset ($_POST['head_title'])) {
$sql_data_array['head_title'] = tep_db_prepare_input($_POST['head_title'][$language_id]);
}
if (isset ($_POST['head_description'])) {
$sql_data_array['head_description'] = tep_db_prepare_input($_POST['head_description'][$language_id]);
}
if (isset ($_POST['head_keywords'])) {
$sql_data_array['head_keywords'] = tep_db_prepare_input($_POST['head_keywords'][$language_id]);
}
if ($action == 'insert') {
$insert_sql_data = array (
'manufacturers_id' => $manufacturers_id,
'languages_id' => $language_id
);
$sql_data_array = array_merge($sql_data_array, $insert_sql_data);
tep_db_perform(TABLE_MANUFACTURERS_INFO, $sql_data_array);
} elseif ($action == 'save') {
tep_db_perform(TABLE_MANUFACTURERS_INFO, $sql_data_array, 'update', "manufacturers_id = '" . (int) $manufacturers_id . "' and languages_id = '" . $language_id . "'"); //mprocess
}
} // for ($i=0
$action = 'save';
} // if( isset( $_POST
} // if ($manufacturers_field_exists
break;
case 'move' :
// Nothing to do; the code just renumbers the row
break;
case 'delete' :
// Nothing to do; the row is deleted.
break;
} // switch( $action )
#348 ONLINE
Posted 06 January 2013 - 06:55 PM
} elseif ($action == 'save') {
tep_db_perform(TABLE_MANUFACTURERS_INFO, $sql_data_array, 'update', "manufacturers_id = '" . (int) $manufacturers_id . "' and languages_id = '" . $language_id . "'"); //mprocess
}
There's a block of code missing that defines $sql_data_array and steps through the languages, not to mention the whole section that updates TABLE_MANUFACTURERS.
You're going to have to debug this yourself. I can't do much by looking at the code here.
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#349 ONLINE
Posted 21 January 2013 - 06:30 PM
Hi Jim,
as I visit server logs often find apple-touch-icon-precomposed.png and apple-touch-icon.png file not find. These header tags would be nice to get less robot stress for websites.
If somebody would like it could do a very basic header tag module for it.
<LINK REL="apple-touch-icon" HREF="/apple-touch-icon.png" /> <LINK REL="apple-touch-icon-precomposed" HREF="/apple-touch-icon.png" />
By this way our sites wont be apple compatible, but pressing a change.
http://blog.karlribas.com/2012/05/how-to-create-apple-touch-icon-for-your.html
Regards
Gergely
Edited by Gergely, 21 January 2013 - 06:31 PM.
SCM
v3
and some rewrites :-)
#350 ONLINE
Posted 22 January 2013 - 09:31 PM
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#351
Posted 25 January 2013 - 05:25 PM
I was wondering if there was an optimum configuration for this? I mean as in what should be turned on or off to get teh best results, I understand the Keywords meta tag is pretty pointless as engines no longer use them so this would be turned off, could someone point me in the right direction as to what should be on or off?
Also, is there an optimum sort order? ie in which would be the best order to have the meta tags in?:
for example:
<title>HP B0F44ET#ABU HP DC8300 USDT PC/i5-3470S CPU/500GB/4GB GB) RAM/Microsoft Win 7 Edition 64bit</title>
<meta name="description" content="HP B0F44ET#ABU HP DC8300 USDT PC/i5-3470S CPU/500GB/4GB GB) RAM/Microsoft Win 7 Edition 64bit/>
Thanks for any replies..
#352 ONLINE
Posted 04 February 2013 - 03:55 PM
I put apple touch icon header tag module into addons. You can download it. My friends tested the view and told some important information to me.
Quote
114x114 (iPhone 4)
57x57 (older iPhones)
72x72 (iPad)
I dont know if 129x129pixel is a real size.
Important info is that safari web browser ask this web icons in i-phones.
Edited by Gergely, 04 February 2013 - 03:57 PM.
SCM
v3
and some rewrites :-)
#353
Posted 20 February 2013 - 05:05 AM
#354 ONLINE
Posted 20 February 2013 - 05:08 AM
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#355
Posted 07 April 2013 - 08:49 AM
From modules ht_front_description/keywords I made reflective modules for other filename. But in all filenames this way doesn't work. Like in specials, reviews it works, in products_new, products_reviews_info it doesnt. In html code on the page meta marks cant be seen. Whats the catch?
#356 ONLINE
Posted 07 April 2013 - 11:56 PM
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#357 ONLINE
Posted Today, 07:00 PM
I get errors when i click on a product or category.
http://pecuniahortus.nl/index.php?cPath=1
http://pecuniahortus.nl/product_info.php?products_id=28
They don't show, just the startpage
#358 ONLINE
Posted Today, 07:09 PM
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support









