Hi,
Thanks for a great mod
For my ezpages, I'm getting 'page 2' for the title rather than the actual title. Normal product pages and define pages show the correct titles.
Best regards
Alan
[typo in title I can't change]
Hi,
Thanks for a great mod
For my ezpages, I'm getting 'page 2' for the title rather than the actual title. Normal product pages and define pages show the correct titles.
Best regards
Alan
[typo in title I can't change]
Last edited by firehorse; 8 Nov 2006 at 12:50 PM. Reason: typo notification
Hi,
Anyone used User Track Module with Admin Profiles Module ?
This, because I cannot set the admin-permissions for the user tracking module![]()
grmx
Zen 1.35
Hi,
Is it just me, or are other people also getting 'Page 2' for the title for EZPages, rather than the actual title.
Thanks
Alan
Hi,I tracked down this
\includes\functions\extra_functions\user_tracking.php
Line 90
The code 'looks' fine as HEADING_TITLE gets defined all the time but I'm no expertCode:else { $page_desc = addslashes(HEADING_TITLE); if ($page_desc == "HEADING_TITLE") $page_desc = addslashes(NAVBAR_TITLE); }![]()
I remember I used "Page 2" as an experiment and although there are no links to it anymore, it was still set on option 1, under Configuration/Define Page Status. I've changed it to option 3. I will report back if this make a difference.
Heavenlynights, is your Page 2 set to option 1?
Best regards
Alan
Hi,
Nope, that doesn't seem to work. Just had someone on my site and there was a Page 2. I believe this is the code that needs looking at
\includes\functions\extra_functions\user_tracking. php - Line 73
So PSEUDO CODECode:if (($_GET['products_id'] || $_GET['cPath'])) { if ($_GET['cPath']) { $cPath = $_GET['cPath']; $cPath_array = zen_parse_category_path($cPath); $cPath = implode('_', $cPath_array); $current_category_id = $cPath_array[(sizeof($cPath_array)-1)]; $page_desc_values = $db->Execute("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . $current_category_id . "'"); $page_desc = addslashes($page_desc_values->fields['categories_name']) . ' '; } if ($_GET['products_id']) { $page_desc_values = $db->Execute("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $_GET['products_id'] . "' and language_id = '" . $_SESSION['languages_id'] . "'"); $page_desc .= addslashes($page_desc_values->fields['products_name']); } } else { $page_desc = addslashes(HEADING_TITLE); if ($page_desc == "HEADING_TITLE") $page_desc = addslashes(NAVBAR_TITLE); }
Change
toCode:if (($_GET['products_id'] || $_GET['cPath']))
because ezpages use 'id'. I don't know if you need to check for chapter as well.Code:if (($_GET['products_id'] || $_GET['cPath'] || $_GET['id'] ))
then add
Or something like thatCode:if ($_GET['id']) { $page_desc_values = $db->Execute("GET EZPAGE TITLE"; $page_desc .= addslashes($page_desc_values); }![]()
Can anyone help?
Best regards
Alan
Beginning with Admin Profiles 1.04 Kuroi provided both a box file and a sql patch to workaround the User Tracking menu issues (a brief mention is in the Admin Profiles readme).
I just installed both Admin Profiles 1.06 and most recent User Tracking (08-30-06) on Zen Cart 1.36. The box file and sql patch seemed to fix it so 'User Tracking Config' shows up in the "Tools" menu. But now being a little more observant I see the 'User Tracking Config' menu entry disappears when I select another menu other than the "Tools" menu. However when I select another item from the "Tools" menu then 'User Tracking Config' reappears on the Tools menu. Now you see it. Now you don't.
I had the impression that 'User Tracking Config' was suppose to appear in the "Configuration" menu? On previous Zen Cart versions it did.
The mystery continues...
Woody
Last edited by Woodymon; 21 Nov 2006 at 02:07 PM.
Woody!
1. Run this sql-patch:
2. Remove user_tracking_config.php from user_tracking_tools_dhtml.php box (for admin_profile):Code:UPDATE configuration_group SET visible = '1' WHERE configuration_group_id =999 LIMIT 1 ;
3. Remove user_tracking_config.php file from admin directory.Code:$options = array( array('box' => BOX_TOOLS_USER_TRACKING, 'page' => FILENAME_USER_TRACKING), );
Firehorse:
The problem with user tracking not listing the correct page name for ez pages is due to a line missing in the ez pages support code.
To correct the problem, edit includes/modules/pages/page/header_php.php
Locate the line which says:
and directly under this line add:Code:define('NAVBAR_TITLE', $var_pageDetails->fields[pages_title]);
I believe you will find then that the correct page names are displayed.Code:define('HEADING_TITLE', $var_pageDetails->fields[pages_title]); // JTD:10/03/06 - for user tracking
Hope this helps!
Jeff
Bookmarks