Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 01-21-2007 10:14:36

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19899
Website

Links to Issued UK Version Updates: Last Update 30/09/2008

This topic serves as a reference point for all CCP and KHXC updates.  If you have installed or updated the program since the last update, your installation is to be considered fully up to date.  Updates issued:

21/01/2007: GBW01212006A https://forum.kryptronic.com/viewtopic.php?id=15304
02/02/2007: GBW01212006A https://forum.kryptronic.com/viewtopic.php?id=15569
31/05/2007: GBU31052007A https://forum.kryptronic.com/viewtopic.php?id=17101
12/10/2007: GBU12102007A http://www.clickcartpro.co.uk/docs/upda … 2007A.html
02/11/2007: GBU02112007A http://www.clickcartpro.co.uk/docs/upda … 2007A.html
14/12/2007: GBU14122007A http://www.clickcartpro.co.uk/docs/upda … 2007A.html
30/09/2008: GBU30092008A http://www.clickcartpro.co.uk/docs/main-release-3.html
Next Update:

Date TBD: ID TBD None Scheduled


Nick Hendler

Offline

 

#2 12-04-2007 18:17:18

lewaff
Member
From: Nuneaton England
Registered: 03-21-2005
Posts: 298
Website

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Has there been a UK update Release yet,
Have I missed this its usally about a week after the US but not seen anything posted


Thanks In advance
Lewis Afford 

wwwqualitechnic.co.uk   (CCP6 UK/EU Version)

Offline

 

#3 12-18-2007 15:23:03

lewaff
Member
From: Nuneaton England
Registered: 03-21-2005
Posts: 298
Website

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

I have done the update earlier  to 6.6.5 and GBU 6.0.6
all went fine and no problems
and thought it was a great idea of have proper invoice numbers
and set the invoice numbers to the new incremental order numbers sad
BUT
These Start at 1, even though the is a place for the 'Prefix'
I have tried putting letters or numbers but no prefix appears
so I am now up to invoice number 4
is this a bug and can it be fixed as it look dreadful

Order Number

4
Order Status

Pending Shipment

lewis


Thanks In advance
Lewis Afford 

wwwqualitechnic.co.uk   (CCP6 UK/EU Version)

Offline

 

#4 12-19-2007 03:44:51

lewaff
Member
From: Nuneaton England
Registered: 03-21-2005
Posts: 298
Website

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

sorted by dave
thanks again

Last edited by lewaff (12-20-2007 00:17:41)


Thanks In advance
Lewis Afford 

wwwqualitechnic.co.uk   (CCP6 UK/EU Version)

Offline

 

#5 12-20-2007 04:20:38

GreenbarnWeb
Member
Registered: 09-23-2003
Posts: 2743
Website

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Hi
What was the problem?

Offline

 

#6 12-20-2007 08:23:56

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

It wasn't really a problem Howard.  I offered a suggestion of using either prefixed incremental or manually updating an existing order to some larger number so that future orders would start going up from that larger number.

BTW, if someone does use incremental and starts off with a large number they will likely run into a problem when the number of digits in the order number exceeds 10.

I'm also curious what the motivation behind offering a simple incremental number was.

Offline

 

#7 12-20-2007 08:56:31

GreenbarnWeb
Member
Registered: 09-23-2003
Posts: 2743
Website

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Hi Dave,

I get a lot of requests for this in the UK/EU.

In this market to provide an official printable downloadable EU Tax invoice it is recommend that you use incremental order number.

I have coded around to 10 increment problem.

Offline

 

#8 09-15-2008 06:33:21

Steveb9990
Member
From: UK
Registered: 03-21-2008
Posts: 121

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Is there a timescale on when the UK CCP/KHXC updates are to be released? It appears that the US are receving updates on a regular basis, but nothing is happening on this side of the pond.

BTW, I'm still on GBU 6.0.6 and KHXC 6.6.5


Cheers,

Steve

Offline

 

#9 09-15-2008 09:06:53

GreenbarnWeb
Member
Registered: 09-23-2003
Posts: 2743
Website

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Hi

We where asked to wait for the US to do their final release for CCP6, which was released last Thursday. We have just finish merging and testing these last changes. The UK release has been sent to the US. It should be live in the next couple of days.

Offline

 

#10 09-15-2008 11:25:07

Steveb9990
Member
From: UK
Registered: 03-21-2008
Posts: 121

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Thanks Howard.

Once released, will there be the option of the updates being applied by you/others to  carts? Alternatively, and my particular case, will you be able to say exactly which files you modified (aside of the css and skin files) hence require backing up prior to the update(s) being applied?

Will the updates affect any addon modules which have already been installed?

Regards,

Steve


Cheers,

Steve

Offline

 

#11 09-16-2008 04:00:34

GreenbarnWeb
Member
Registered: 09-23-2003
Posts: 2743
Website

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Hi

Will there be the option of the updates being applied by you/others to modified carts?

Yes we will provide a service to apply the update to your website, with the option to merge in your changes.

Alternatively, and my particular case, will you be able to say exactly which files you modified (aside of the css and skin files) hence require backing up prior to the update(s) being applied?

We will provide a list of files that have changed.

Will the updates affect any addon modules which have already been installed?

NO

Offline

 

#12 09-25-2008 17:47:29

Steveb9990
Member
From: UK
Registered: 03-21-2008
Posts: 121

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Hi Howard,

Any news on the release date?

Cheers,

Steve


Cheers,

Steve

Offline

 

#13 09-30-2008 17:45:36

Steveb9990
Member
From: UK
Registered: 03-21-2008
Posts: 121

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

I guess that the answer is a resounding 'NO' to the above question?

Cheers,

Steve


Cheers,

Steve

Offline

 

#14 10-01-2008 04:44:07

GreenbarnWeb
Member
Registered: 09-23-2003
Posts: 2743
Website

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Hi Steve,

Yes it has been released, see the top of the post.

Offline

 

#15 10-01-2008 10:27:24

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1716

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Dave or Howard

Is it possible to post details of what files have been changed in the UK update - similar to the list Dave does for the US updates.

Thanks
Ro


Rob

Offline

 

#16 10-01-2008 10:57:43

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

I'm working on it.  I just found it that it had been released.

Offline

 

#17 10-01-2008 11:20:26

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

The diff files are available  and the list of files changed may be found .  The file list includes files which are "new" with this release.

Offline

 

#18 10-01-2008 13:30:23

Steveb9990
Member
From: UK
Registered: 03-21-2008
Posts: 121

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Woohoo!

Thanks Howard. Thanks Dave.

I guess it's time for me to bug*er up CCP6! big_smile

But not tonight.

Cheers,

Steve


Cheers,

Steve

Offline

 

#19 10-06-2008 11:45:24

Conor Maxwell
Member
Registered: 06-19-2007
Posts: 5

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Could you please confirm that where it says 30/09/2007 it means 30/09/2008 in both cases in the top two sentences of the main-release-3.html page at the top of this topic ?

Or if it does mean 30/09/2007 in either or both places could you please explain why, as I'm a bit confused - and nervous.

Thanks,
Conor

Offline

 

#20 10-06-2008 12:04:48

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

The 30/09/2007 is correct in both instances.  That is the overview page which has links for each update since the initial release.  You choose which updates to apply based on your current version that is installed.

Offline

 

#21 10-11-2008 14:37:51

lewaff
Member
From: Nuneaton England
Registered: 03-21-2005
Posts: 298
Website

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Since the last UK update I have noticed noticed that if i click on any of the Recently visited pages links, all i get is a blankpage
with the title heading Goggle Analytics Output
any ideas
Thanks Lewis
wwwqualitechnic.co.uk


Thanks In advance
Lewis Afford 

wwwqualitechnic.co.uk   (CCP6 UK/EU Version)

Offline

 

#22 10-12-2008 02:29:41

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1716

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Have you installed/reinstalled this mod:

https://forum.kryptronic.com/viewtopic.php?id=19121

After the update I reinstalled this mod and my recently visited pages work fine - I  didn't notice if they didn't work before reinstalling mod.

Rob


Rob

Offline

 

#23 10-12-2008 04:35:32

lewaff
Member
From: Nuneaton England
Registered: 03-21-2005
Posts: 298
Website

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Thank you for your assistance Rob But
I copied the above code
to khxc_private/apps/gbu0/GBU/ext/femenus.php
'Please note UK Version'
and this stopped it from showing the recent viewed menu

This line below was not in my femenus.php but in the mod

$sql .= " AND namespace=" .  $this->KHXC_DB->quote('prodshow');

and removing this line from the mod code

makes it show the resently viewed menus but the same problem

click on any of the Recently visited pages links, all i get is a blankpage
with the title heading Goggle Analytics Output


Thanks In advance
Lewis Afford 

wwwqualitechnic.co.uk   (CCP6 UK/EU Version)

Offline

 

#24 10-12-2008 07:55:00

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1716

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Heres my complete femenus.php file - I think the only mod in it is the one I spoke about. Try the whole file and see if that works.
Rob

Code:

<?php 

// +------------------------------------------------------------------+
// |                                                            [KHXC]|
// | This package is based on ClickCartPro 6 by Kryptronic.  The      |
// | following copyright information was delivied in the original     |
// | version of this file as delivered by Kryptronic:                 |
// |                                                                  |
// | Copyright 1999-2006 Kryptronic, Inc. All rights reserved.        |
// |                                                                  |
// | All Kryptronic software is copyrighted, trademarked, developed   |
// | and licensed by Kryptronic, Inc. All Kryptronic software is      |
// | distributed under license.                                       |
// |                                                                  |
// | View the license agreement for more information.  Installation   |
// | of this software package indicates acceptance of the license     |
// | agreement.                                                       |
// |                                                                  |
// | Author:            Nick Hendler, Webmaster, Kryptronic, Inc.     |
// | Author Email:      support@kryptronic.com                        |
// +------------------------------------------------------------------+

// +------------------------------------------------------------------+
// |                                                            [KHXC]|
// | This package is a modified version of the original code          |
// | which is distributed by Greenbarn Consultants, LTD.              |
// |                                                                  |
// | This distribution of Kryptronic Software product is trademarked, | 
// | distributed and supported by GreenBarnWeb (Greenbarn Consultants |
// | Ltd.).                                                           |
// +------------------------------------------------------------------+

// +------------------------------------------------------------------+
// | Class Definition                                           [KHXC]|
// +------------------------------------------------------------------+

class GBU_femenus extends GBU {

var $class   = 'GBU_femenus';
var $version = '6.0.2';
var $cerror;

var $KHXC_DB;
var $KHXC_Display;

var $app;

// +------------------------------------------------------------------+
// | Constructor Function                                       [KHXC]|
// +------------------------------------------------------------------+

function GBU_femenus () {

// +--
// | This is the class constructor function.
// +--

if ($this->debug) {$this->debugger("constructor: Accessed.");}

// +--
// | Determine the application we're running under and set the $app
// | class var to that app.
// +--

$this->app = $this->app_id(__FILE__);

if ($this->debug) {$this->debugger("constructor: Determined application id as '{$this->app}'");}

// +--
// | Quick object load: KHXC_Display
// +--

$this->KHXC_Display =& $this->quick_object('KHXC_Display','khxc');

if ($this->IsError($this->KHXC_Display)) {$this->cerror = $this->KHXC_Display; return;}

// +--
// | Quick object load: KHXC_DB
// +--

$this->KHXC_DB =& $this->quick_object('KHXC_DB','khxc','KHXC_DB_1');

if ($this->IsError($this->KHXC_DB)) {$this->cerror = $this->KHXC_DB; return;}

// +--
// | Return $this.
// +--

return;

} // End of function.

// +------------------------------------------------------------------+
// | Function: femenusdo                                              |
// +------------------------------------------------------------------+

function femenusdo ($id = '') {

// +--
// | This function executes a frontend menus request.  We cache our
// | menu list here so as to reduce calls to the db.  We're be called
// | at least twice for most displays.
// +--

global $menus_cache;

// +--
// | Load info from the db if $menus_cache is empty.  Just return
// | on errors.  We don't want to blow everything up.
// +--

if (empty($menus_cache)) {

     // +--
     // | Load info from the database.
     // +--

     $table = $this->app . '_femenus';

     $sql  = "SELECT name, namespace, menugroup FROM {$table} WHERE ";
     $sql .= "menudisp=" . $this->KHXC_DB->quote(1);

     $result = $this->KHXC_DB->sql_do(array('table' => $table,
                                            'sql'   => $sql,
                                            'order' => array('menuorder' => 'ASC')));

     if ($this->IsError($result)) {return 1;}
     if (empty($result))          {return 1;}

     $menus_cache = $result;

     if ($this->debug) {$this->debugger("femenusdo: Loaded frontend menus into cache.");}

} // End of if statement.

// +--
// | Display the requested menu(s).
// +--

foreach ($menus_cache as $num => $row) {

     if ($row['menugroup'] == $id) {

          $this->globals('khxc_app.femenus_name',$row['name']);

          $result = $this->exec_namespace(array('app'       => $this->app,
                                                'namespace' => $row['namespace'],
                                                'type'      => '*'));

     } // End of if statement.

} // End of foreach statement.

if ($this->debug) {$this->debugger("femenusdo: Completed running frontend menus for the KHXC with id '{$id}'.");}

// +--
// | Return true.
// +--

return 1;

} // End of function.

// +------------------------------------------------------------------+
// | Function: femenupopular                                          |
// +------------------------------------------------------------------+

function femenupopular () {

// +--
// | This function prints the frontend popular pages menu.
// +--

$sql  = "SELECT namespace, reference, dispname FROM khxc_statsns WHERE";
$sql .= " interface=" . $this->KHXC_DB->quote('FrontEnd') . " AND app=";
$sql .= $this->KHXC_DB->quote($this->app);

$result = $this->KHXC_DB->sql_do(array('sql'    => $sql,
                                       'table'  => 'khxc_statsns',
                                       'order'  => array('hitcount' => 'DESC'),
                                       'count'  => 5,
                                       'offset' => 0));

if ($this->IsError($result)) {return 1;}
if (empty($result))          {return 1;}

// +--
// | Build the menu array.
// +--

$menu_array = array();

foreach ($result as $num => $row) {

     $params = array();

     if (!(empty($row['reference']))) {$params = array('ref' => $row['reference']);}

     $menu_array[] = array('text'      => $row['dispname'],
                           'app'       => $this->app,
                           'namespace' => $row['namespace'],
                           'params'    => $params);

} // End of foreach statement.

// +--
// | Globalize the menu array.
// +--

$this->globals('khxc_app.femenu_array',$menu_array);

// +--
// | Print the generic frontend menu includes and log that we were here.
// +--

$this->KHXC_Display->include_file($this->app,'femenuhead.php');

$this->KHXC_Display->include_file($this->app,'femenugeneric.php');

$this->KHXC_Display->include_file($this->app,'femenufoot.php');

if ($this->debug) {$this->debugger("menupages: Printed the application popular menu.");}

// +--
// | Return true.
// +--

return 1;

} // End of function.

// +------------------------------------------------------------------+
// | Function: femenurecent                                           |
// +------------------------------------------------------------------+

function femenurecent () {

// +--
// | This function prints the frontend recent pages menu.
// +--

///// RJZwebmaster spadedlady added DISTINCT to sql call below, added
////  sql call line for namespace, and increased count to 8 from 5.
$sql  = "SELECT DISTINCT namespace, reference, dispname FROM khxc_stats WHERE";

$sql .= " interface=" . $this->KHXC_DB->quote('FrontEnd');

$sql .= " AND namespace=" .  $this->KHXC_DB->quote('prodshow');

$sql .= " AND sessionid=" .  $this->KHXC_DB->quote($this->globals('khxc_session.sid'));

$sql .= " AND disprecback=" .  $this->KHXC_DB->quote(1) . " AND app=";

$sql .= $this->KHXC_DB->quote($this->app);



$result = $this->KHXC_DB->sql_do(array('sql'    => $sql,

                                       'table'  => 'khxc_stats',

                                       'order'  => array('time' => 'DESC'),

                                       'count'  => 5,

                                       'offset' => 0));

///// RJZ webmaster spadedlady added DISTINCT to sql call above, added
////  sql call line for namespace, and increased count to 8 from 5.

if ($this->IsError($result)) {return 1;}

if (empty($result))          {return 1;}

// +--
// | Build the menu array.
// +--

$menu_array = array();

foreach ($result as $num => $row) {

     $params = array();

     if (!(empty($row['reference']))) {$params = array('ref' => $row['reference']);}

     $menu_array[] = array('text'      => $row['dispname'],
                           'app'       => $this->app,
                           'namespace' => $row['namespace'],
                           'params'    => $params);

} // End of foreach statement.

// +--
// | Globalize the menu array.
// +--

$this->globals('khxc_app.femenu_array',$menu_array);

// +--
// | Print the generic frontend menu includes and log that we were here.
// +--

$this->KHXC_Display->include_file($this->app,'femenuhead.php');

$this->KHXC_Display->include_file($this->app,'femenugeneric.php');

$this->KHXC_Display->include_file($this->app,'femenufoot.php');

if ($this->debug) {$this->debugger("menupages: Printed the application recent menu.");}

// +--
// | Return true.
// +--

return 1;

} // End of function.

// +------------------------------------------------------------------+
// | Function: femenucurrency                                         |
// +------------------------------------------------------------------+

function femenucurrency () {

// +--
// | This function prints the frontend currency changer menu if there
// | is at least one active ecommerce application avaialble and we're
// | using the currency conversion system.
// +--

$curr_active = $this->globals('khxc_settings.khxc.curractive');

if (empty($curr_active)) {return 1;}

// +--
// | Load our currency selection items.
// +--

$sql  = "SELECT selectname, selectvalue FROM khxc_selectcustom WHERE";
$sql .= " selectid=" . $this->KHXC_DB->quote($this->app . '.currency');

$result = $this->KHXC_DB->sql_do(array('sql'    => $sql,
                                       'table'  => 'khxc_selectcustom',
                                       'order'  => array('selectname' => 'DESC')));

if ($this->IsError($result)) {return 1;}
if (empty($result))          {return 1;}

// +--
// | Build the currency array.
// +--

$menu_array = array();

foreach ($result as $num => $row) {

     $currency[$row['selectvalue']] = $row['selectname'];

} // End of foreach statement.

// +--
// | Globalize the currency array.
// +--

$this->globals('khxc_app.currency_array',$currency);

// +--
// | Print the currency selector menu include.
// +--

$this->KHXC_Display->include_file($this->app,'femenucurrency.php');

if ($this->debug) {$this->debugger("menupages: Printed the application currency menu.");}

// +--
// | Return true.
// +--

return 1;

} // End of function.

// +------------------------------------------------------------------+
// | Function: femenuaccount                                          |
// +------------------------------------------------------------------+

function femenuaccount () {

// +--
// | This function prints the frontend account menu.
// +--

$this->KHXC_Display->include_file($this->app,'femenuhead.php');

$result = $this->exec_namespace(array('app'       => $this->app,
                                      'namespace' => 'accountmenu',
                                      'type'      => '*'));

$this->KHXC_Display->include_file($this->app,'femenufoot.php');

if ($this->debug) {$this->debugger("menupages: Printed the application account menu.");}

// +--
// | Return true.
// +--

return 1;

} // End of function.

// +------------------------------------------------------------------+
// | Function: femenuinactive                                         |
// +------------------------------------------------------------------+

function femenuinactive () {

// +--
// | This function prints the frontend inactive apps menu.
// +--

// +--
// | Get display names for apps not equal to this app.
// +--

$all_apps     = $this->globals('khxc.app_all_cache');
$app_inactive = array();

foreach ($all_apps as $num => $row) {

     if (($row['id'] != 'khxc') && ($row['id'] != $this->app)) {

          $app_inactive[$row['id']] = $row['fedispname'];

     } // End of if statement.

} // End of foreach statement.

// +--
// | Return if we didn't find any.
// +--

if (empty($app_inactive)) {return 1;}

// +--
// | Build the menu array.
// +--

$menu_array = array();

foreach ($app_inactive as $id => $name) {

     $menu_array[] = array('text'      => $name,
                           'app'       => $id,
                           'namespace' => '',
                           'params'    => array());

} // End of foreach statement.

// +--
// | Globalize the menu array.
// +--

$this->globals('khxc_app.femenu_array',$menu_array);

// +--
// | Print the generic frontend menu includes and log that we were here.
// +--

$this->KHXC_Display->include_file($this->app,'femenuhead.php');

$this->KHXC_Display->include_file($this->app,'femenugeneric.php');

$this->KHXC_Display->include_file($this->app,'femenufoot.php');

if ($this->debug) {$this->debugger("menupages: Printed the KHXC inactive apps menu.");}

// +--
// | Return true.
// +--

return 1;

} // End of function.

// +------------------------------------------------------------------+
// | Function: menustore                                              |
// +------------------------------------------------------------------+

function menustore () {

// +--
// | This function prints the online store menu.
// +--

$table = $this->app . '_storemenu';

$sql  = "SELECT name, namespace FROM {$table} WHERE menudisp=";
$sql .= $this->KHXC_DB->quote(1);

$result = $this->KHXC_DB->sql_do(array('sql'    => $sql,
                                       'table'  => $table,
                                       'order'  => array('menuorder' => 'ASC')));

if ($this->IsError($result)) {return 1;}
if (empty($result))          {return 1;}

// +--
// | Build the menu array.
// +--

$menu_array = array();

foreach ($result as $num => $row) {

     $menu_array[] = array('text'      => $row['name'],
                           'app'       => $this->app,
                           'namespace' => $row['namespace'],
                           'params'    => array());

} // End of foreach statement.

// +--
// | Globalize the menu array.
// +--

$this->globals('khxc_app.femenu_array',$menu_array);

// +--
// | Print the generic frontend menu includes and log that we were here.
// +--

$this->KHXC_Display->include_file($this->app,'femenuhead.php');

$this->KHXC_Display->include_file($this->app,'femenugeneric.php');

$this->KHXC_Display->include_file($this->app,'femenufoot.php');

if ($this->debug) {$this->debugger("menupages: Printed the GBU store menu.  App: {$this->app}");}

// +--
// | Return true.
// +--

return 1;

} // End of function.

// +------------------------------------------------------------------+
// | Function: menucategories                                         |
// +------------------------------------------------------------------+

function menucategories () {

// +--
// | This function prints the categories menu.
// +--

$table = $this->app . '_cat';

$sql  = "SELECT id, name FROM {$table} WHERE splashdisp=";
$sql .= $this->KHXC_DB->quote(1) . " AND ";

// +--
// | Handle visibility.
// +--

$usergroup = $this->globals('khxc_user.usergroup');

if (empty($usergroup)) {
 
     $sql .= 'catview=' . $this->KHXC_DB->quote('A');

} else {

     $sql .= '((catview=' . $this->KHXC_DB->quote('A') . ') OR ';
     $sql .= '(catview=' . $this->KHXC_DB->quote('L') . ' AND ';
     $sql .= '(catviewg LIKE ' . $this->KHXC_DB->quote_like($usergroup . ',', 'SUFFIX') . ' OR ';
     $sql .= 'catviewg LIKE ' . $this->KHXC_DB->quote_like(','  . $usergroup, 'PREFIX') . ' OR ';
     $sql .= 'catviewg LIKE ' . $this->KHXC_DB->quote_like(', '  . $usergroup, 'PREFIX') . ' OR ';
     $sql .= 'catviewg LIKE ' . $this->KHXC_DB->quote_like(','  . $usergroup . ',', 'WRAP') . ' OR ';
     $sql .= 'catviewg LIKE ' . $this->KHXC_DB->quote_like(', '  . $usergroup . ',', 'WRAP') . ' OR ';
     $sql .= 'catviewg='       . $this->KHXC_DB->quote($usergroup) . ')))';

} // End of if statement.

// +--
// | Execute the query.
// +--

$result = $this->KHXC_DB->sql_do(array('sql'    => $sql,
                                       'table'  => $table,
                                       'order'  => array('sortorder' => 'ASC')));

if ($this->IsError($result)) {return 1;}
if (empty($result))          {return 1;}

// +--
// | Build the menu array.
// +--

$menu_array = array();

foreach ($result as $num => $row) {

     $menu_array[] = array('text'      => $row['name'],
                           'app'       => $this->app,
                           'namespace' => 'catshow',
                           'params'    => array('ref' => $row['id']));

} // End of foreach statement.

// +--
// | Globalize the menu array.
// +--

$this->globals('khxc_app.femenu_array',$menu_array);

// +--
// | Print the generic frontend menu includes and log that we were here.
// +--

$this->KHXC_Display->include_file($this->app,'femenuhead.php');

$this->KHXC_Display->include_file($this->app,'femenugeneric.php');

$this->KHXC_Display->include_file($this->app,'femenufoot.php');

if ($this->debug) {$this->debugger("menupages: Printed the GBU categories menu.  App: {$this->app}");}

// +--
// | Return true.
// +--

return 1;

} // End of function.

// +------------------------------------------------------------------+
// | Function: menucustom                                             |
// +------------------------------------------------------------------+

function menucustom () {

// +--
// | This function prints the custom menu.
// +--

$table = $this->app . '_custommenu';

$sql  = "SELECT name, namespace, reference FROM {$table} WHERE menudisp=";
$sql .= $this->KHXC_DB->quote(1);

$result = $this->KHXC_DB->sql_do(array('sql'    => $sql,
                                       'table'  => $table,
                                       'order'  => array('menuorder' => 'ASC')));

if ($this->IsError($result)) {return 1;}
if (empty($result))          {return 1;}

// +--
// | Build the menu array.
// +--

$menu_array = array();

foreach ($result as $num => $row) {

     $params = array();

     if ($row['reference'] != '') {$params = array('ref' => $row['reference']);}

     $menu_array[] = array('text'      => $row['name'],
                           'app'       => $this->app,
                           'namespace' => $row['namespace'],
                           'params'    => $params);

} // End of foreach statement.

// +--
// | Globalize the menu array.
// +--

$this->globals('khxc_app.femenu_array',$menu_array);

// +--
// | Print the generic frontend menu includes and log that we were here.
// +--

$this->KHXC_Display->include_file($this->app,'femenuhead.php');

$this->KHXC_Display->include_file($this->app,'femenugeneric.php');

$this->KHXC_Display->include_file($this->app,'femenufoot.php');

if ($this->debug) {$this->debugger("menupages: Printed the CCP store menu.  App: {$this->app}");}

// +--
// | Return true.
// +--

return 1;

} // End of function.

// +------------------------------------------------------------------+
// | End of Class                                               [KHXC]|
// +------------------------------------------------------------------+

} // End of class.

// +------------------------------------------------------------------+
// | End Of File                                                [KHXC]|
// +------------------------------------------------------------------+

?>

Rob

Offline

 

#25 10-12-2008 09:19:11

lewaff
Member
From: Nuneaton England
Registered: 03-21-2005
Posts: 298
Website

Re: Links to Issued UK Version Updates: Last Update 30/09/2008

Thank you for your assistance Rob But
I copied the above code
to khxc_private/apps/gbu0/GBU/ext/femenus.php
and this stopped showing the recent viewed menu at all
so no difference
Problem must be somewhere else

Now I have cleared my old stats in the data base
Both
Recently Visited Pages and
Popular Pages
try's to got to a page http://qualitechnic.co.uk/gbu0-googleanalytics/
Instead of the correct page http://qualitechnic.co.uk/gbu0-prodshow/

as if the namespace is "googleanalytics"

Any help on this
i have put the femenus.php as above but reduce the count to 2 while this gets sorted

Last edited by lewaff (10-12-2008 12:43:30)


Thanks In advance
Lewis Afford 

wwwqualitechnic.co.uk   (CCP6 UK/EU Version)

Offline

 

Board footer