Zen Cart Logo
Forums / All Other Contributions/Addons / Tabbed Products Pro (TPP) Contrib - Official Thread

Tabbed Products Pro (TPP) Contrib - Official Thread

Views: 397,367

Results 1,361 to 1,380 of 2,224
11 Feb 2011, 3:54 PM
#1361
instrumentalist avatar

instrumentalist

New Zenner

Join Date:
Mar 2010
Posts:
3
Plugin Contributions:
0

Tabbed Products Pro (TPP) Contrib - Official Thread

Hi,

Does anyone have a link to show this mod in action? It sounds like what I need, but the only links I can find on here that work are the ones which show undesirable effects of the mod!

Thanks!

11 Feb 2011, 11:00 PM
#1362
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

You may take a look here at my site

16 Feb 2011, 5:20 PM
#1363
brooklynartist avatar

brooklynartist

New Zenner

Join Date:
Jan 2011
Location:
Brooklyn
Posts:
75
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

I know in the past I've seen posts in here somewhere about adding extra/custom tabs, but I can't seem to locate them.

I'd like to have a tab of additional info called "Attribute Details" that i can use to give a detailed description of attributes listed for a specific product.

Ideally I'd like to keep it separate from the Description entry by having it served up in a separate tab either from a html doc or php doc.

Can someone point me to documentation for this?

Thanks!

16 Feb 2011, 6:54 PM
#1364
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

BrooklynArtist:

I know in the past I've seen posts in here somewhere about adding extra/custom tabs, but I can't seem to locate them.

I'd like to have a tab of additional info called "Attribute Details" that i can use to give a detailed description of attributes listed for a specific product.

Ideally I'd like to keep it separate from the Description entry by having it served up in a separate tab either from a html doc or php doc.

Can someone point me to documentation for this?

Thanks!
The readme for this module has a section which covers the basics of custom tabs..

19 Feb 2011, 4:47 PM
#1365
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

Hi,

I have now spent a week reading, comparing and merging and besides the fact that the wife and kids want to kill me I have made no headway. :frusty:

Zen Cart V1.3.9h
TPP V1.0.7

Everything seems OK until I enable Minify. After this my CSS files are not loaded but this ONLY happens when viewing a product. On other screens the CSS is loaded.

If I replace /includes/templates/MY_TEMPLATE/common/html_header.php with the default version my CSS loads but I obviously don't have tabs.

My version is as follows:```php

<?php /** * Common Template * * outputs the html header. i,e, everything that comes before the \</head\> tag <br /> * * @package templateSystem * @copyright Copyright 2003-2010 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: html_header.php 15761 2010-03-31 19:31:27Z drbyte $ */ /** * load the module for generating page meta-tags */ require(DIR_WS_MODULES . zen_get_module_directory('meta_tags.php')); /** * output main page HEAD tag and related headers/meta-tags, etc */ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>> <head> <title><?php echo META_TAG_TITLE; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" /> <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" /> <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" /> <meta http-equiv="imagetoolbar" content="no" /> <meta name="author" content="The Zen Cart™ Team and others" /> <meta name="generator" content="shopping cart program by Zen Cart™, http://www.zen-cart.com eCommerce" /> <?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?> <meta name="robots" content="noindex, nofollow" /> <?php } ?> <?php if (defined('FAVICON')) { ?> <link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" /> <link rel="shortcut icon" href="<?php echo FAVICON; ?>" type="image/x-icon" /> <?php } //endif FAVICON ?> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" /> <?php if (isset($canonicalLink) && $canonicalLink != '') { ?> <link rel="canonical" href="<?php echo $canonicalLink; ?>" /> <?php } ?> <?php $jscript_files_to_load = $css_files_to_load = array(); /** * load all template-specific stylesheets, named like "style*.css", alphabetically */ $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^style/', '.css'); $load_order = -300; while(list ($key, $value) = each($directory_array)) { $css_files_to_load[$value] = $load_order++; } /** * load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-category basis. Concept by Juxi Zoza. */ $manufacturers_id = (isset($_GET['manufacturers_id'])) ? $_GET['manufacturers_id'] : ''; $tmp_products_id = (isset($_GET['products_id'])) ? (int)$_GET['products_id'] : ''; $tmp_pagename = ($this_is_home_page) ? 'index_home' : $current_page_base; if ($current_page_base == 'page' && isset($ezpage_id)) $tmp_pagename = $current_page_base . (int)$ezpage_id; $sheets_array = array('/' . $_SESSION['language'] . '_stylesheet', '/' . $tmp_pagename, '/' . $_SESSION['language'] . '_' . $tmp_pagename, '/c_' . $cPath, '/' . $_SESSION['language'] . '_c_' . $cPath, '/m_' . $manufacturers_id, '/' . $_SESSION['language'] . '_m_' . (int)$manufacturers_id, '/p_' . $tmp_products_id, '/' . $_SESSION['language'] . '_p_' . $tmp_products_id ); $load_order = -200; while(list ($key, $value) = each($sheets_array)) { //echo "<!--looking for: $value-->\n"; $perpagefile = $template->get_template_dir('.css', DIR_WS_TEMPLATE, $current_page_base, 'css') . $value . '.css'; if (file_exists($perpagefile)) $css_files_to_load[trim($value, '/').'.css'] = $load_order++; } /** * load printer-friendly stylesheets -- named like "print*.css", alphabetically */ $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^print/', '.css'); sort($directory_array); while(list ($key, $value) = each($directory_array)) { echo '<link rel="stylesheet" type="text/css" media="print" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />'."\n"; } if (file_exists(DIR_WS_CLASSES . 'browser.php')) { include(DIR_WS_CLASSES . 'browser.php'); $browser = new _Browser(); $browser_name = preg_replace("/[^a-zA-Z0-9s]/", "-", strtolower($browser->getBrowser())); $browser_version = floor($browser->getVersion()); // this is to make it compatible with the other ie css hack if ($browser->getBrowser() == $browser->BROWSER_IE) { $browser_name = 'ie'; } // get the browser specific files $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), "/^{$browser_name}-/", '.css'); $js_directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'js'), "/^{$browser_name}-/", '.js'); $load_order = -100; while(list ($key, $value) = each($directory_array )) { $css_files_to_load[$value] = $load_order++; } $load_order = -500; while(list ($key, $value) = each($js_directory_array )) { $jscript_files_to_load[$value] = $load_order++; } // get the version specific files $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), "/^{$browser_name}{$browser_version}-/", '.css'); $js_directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'js'), "/^{$browser_name}{$browser_version}-/", '.js'); $load_order = -100; while(list ($key, $value) = each($directory_array )) { $css_files_to_load[$value] = $load_order++; } $load_order = -500; while(list ($key, $value) = each($js_directory_array )) { $jscript_files_to_load[$value] = $load_order++; } } /** * load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically */ $directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js'); $load_order = -400; while(list ($key, $value) = each($directory_array)) { $jscript_files_to_load[$value] = $load_order++; } /** * load all page-specific jscript_*.js files from includes/modules/pages/PAGENAME, alphabetically */ $directory_array = $template->get_template_part($page_directory, '/^jscript_/', '.js'); $load_order = -300; while(list ($key, $value) = each($directory_array)) { $jscript_files_to_load["$page_directory/$value"] = $load_order++; } /** * load all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically */ $directory_array = $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.php'); $load_order = -200; while(list ($key, $value) = each($directory_array)) { /** * include content from all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically. * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page */ $jscript_files_to_load[$value] = $load_order++; } /** * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically. */ $directory_array = $template->get_template_part($page_directory, '/^jscript_/'); $load_order = -100; while(list ($key, $value) = each($directory_array)) { /** * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically. * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page */ $jscript_files_to_load["$page_directory/$value"] = $load_order++; } $files = loadCssJsFiles($css_files_to_load, $jscript_files_to_load); foreach($files['css'] as $file) if($file['include']) include($file['string']); else echo $file['string']; foreach($files['js'] as $file) if($file['include']) include($file['string']); else echo $file['string']; //DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->'; ?> <!--bof Simple Google Analytics --> <?php if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") { require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); } ?> <!--eof Simple Google Analytics --> </head> <?php // NOTE: Blank line following is intended: ?> ```

Can anyone see any problems? There are no errors produced by the way in the cache directory.

Hopefully I can regain my sanity.

Kind regards,

Brent

19 Feb 2011, 9:57 PM
#1366
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

Minify is PHP version dependant...

19 Feb 2011, 11:19 PM
#1367
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

I think I should be OK as my host is running PHP Version 5.2.12?

Also surely if it was a version issue it wouldn't load CSS across the board? Seems strange that it loads in some places and not others.

24 Feb 2011, 3:00 PM
#1368
smoke133 avatar

smoke133

Zen Follower

Join Date:
Jul 2007
Location:
Roseville, Michigan
Posts:
188
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

Brent:

Hi,

Everything seems OK until I enable Minify. After this my CSS files are not loaded but this ONLY happens when viewing a product. On other screens the CSS is loaded.

If I replace /includes/templates/MY_TEMPLATE/common/html_header.php with the default version my CSS loads but I obviously don't have tabs.

Brent

What CSS loader and version are you using?

24 Feb 2011, 10:11 PM
#1369
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

smoke133:

What CSS loader and version are you using?
Many thanks for showing interest as I'd given up hope.

As it happens after many sleepless nights I finally cracked this nut today! I'll post the solution to save some other poor sod the same aggravation.

I was using TPP V1.07 with the bundled CJ Loader and installed on the Classic template I had no problems. Using my template I could not get it to work. I therefore took V1.06 and merged Zen V1.3.9h changes. This installed and ran without any problems.

I then installed the latest version of CJ Loader but as soon as I enabled Minify none of my CSS or Java loaded. To cut a very long troubleshooting process short it turns out the problem was caused by neither of these mods. I was running easySlider on my home page. Enabling Minify also broke that and searches found the following thread. Following that advice fixed easySlider and hey presto all my other CSS and Java started loading.

After all this though I'm not convinced I'm seeing a large increase in load speeds using Minify.

24 Feb 2011, 10:16 PM
#1370
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

Brent:

After all this though I'm not convinced I'm seeing a large increase in load speeds using Minify.nods in agreement I have similar questions with regards to various minify scripts I've used on WordPress.. In addition to the issues/conflicts that come up from using these minify scripts..

24 Feb 2011, 10:33 PM
#1371
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

DivaVocals:

nods in agreement I have similar questions with regards to various minify scripts I've used on WordPress.. In addition to the issues/conflicts that come up from using these minify scripts..
Glad it's not just me then. As I'm no coder and simply a merge merchant I assumed I must be missing something. What worried me is that they no longer appear to be running CJ Loader on eazyecommerce . com as all the style sheets are loaded individually.

Would your advice be to stick solely with V1.06 merged with Zen V1.3.9h changes and drop CJ Loader?

24 Feb 2011, 10:36 PM
#1372
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

Brent:

Glad it's not just me then. As I'm no coder and simply a merge merchant I assumed I must be missing something. What worried me is that they no longer appear to be running CJ Loader on eazyecommerce . com as all the style sheets are loaded individually.

Would your advice be to stick solely with V1.06 merged with Zen V1.3.9h changes and drop CJ Loader?v1.07 is 1.06 with the required v1.3.9h changes.. I just decided to throw in the latest CJ Loader too.. It's not REQUIRED to use the CJ Loader..

24 Feb 2011, 11:08 PM
#1373
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

DivaVocals:

v1.07 is 1.06 with the required v1.3.9h changes.. I just decided to throw in the latest CJ Loader too.. It's not REQUIRED to use the CJ Loader..
At first glance though it's not obvious to anyone who isn't a coder that the two are basically the same. Even when doing a file compare of the two versions. Partly because there have been name changes between the two versions.

/includes/templates/your_template/css/stylesheet_tpp.css become /includes/templates/your_template/css/tpp.css

/includes/templates/your_template/jscript/jscript_tpp.js became /includes/templates/your_template/jscript/tpp.js

What really creates the major headache though is the addition of /includes/templates/your_template/common/html_header.php as it is in no way clear if this is introduced by TPP or CJ Loader. On top of that the version shipped with TPP bears no resemblance to the version that ships with CJ Loader. Various discussions on that here.

By the way I had assumed the functionality that allows you to load the style sheet from Admin was a TPP update that had been slipped in between V1.06 and V1.07. Does this actually come from CJ Loader then?

Could you possibly post a copy of your V1.06 with 1.3.9h changes so that I can double check I haven't missed anything? Also in view of the fact that there is some doubt of Minify it would be good to give other users the choice between the two versions.

Many thanks for all your hard work supporting this add-on. I've read and re-read every post in this thread and many of your earlier answers helped me fit all the pieces together.

24 Feb 2011, 11:23 PM
#1374
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

I don't know what versions or files you are comparing.. v1.07 is simply v1.06 with the required changes to TWO files for Zen Cart 1.3.9h compatibility.

Updated to files to include 1.3.9 modifications.
~ includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php
~ includes/templates/YOUR_TEMPLATE/common/html_header.php
Author: C Jones
Version: 1.07
Zen Cart™ Version: v1.3.9
Update added on Aug 29 2010
PHP 5.3 Compatible?: Yes
Download Now!
File size: 390034 bytes

Some of the files you mention sound like the old v1.05 files.. I suggested you download the 1.06, 1.06, and 1.07 versions again and do your file comparisons again.. You are mixing up files between three different versions..

Brent:

At first glance though it's not obvious to anyone who isn't a coder that the two are basically the same. Even when doing a file compare of the two versions. Partly because there have been name changes between the two versions.

/includes/templates/your_template/css/stylesheet_tpp.css become /includes/templates/your_template/css/tpp.css

/includes/templates/your_template/jscript/jscript_tpp.js became /includes/templates/your_template/jscript/tpp.js

What really creates the major headache though is the addition of /includes/templates/your_template/common/html_header.php as it is in no way clear if this is introduced by TPP or CJ Loader. On top of that the version shipped with TPP bears no resemblance to the version that ships with CJ Loader. Various discussions on that here.

By the way I had assumed the functionality that allows you to load the style sheet from Admin was a TPP update that had been slipped in between V1.06 and V1.07. Does this actually come from CJ Loader then?

I don't have any additional files to share.. I shared my "V1.06 with 1.3.9h changes" when I submitted the update to TPP (AKA v1.07 of TPP)..

Brent:

Could you possibly post a copy of your V1.06 with 1.3.9h changes so that I can double check I haven't missed anything? Also in view of the fact that there is some doubt of Minify it would be good to give other users the choice between the two versions.

Many thanks for all your hard work supporting this add-on. I've read and re-read every post in this thread and many of your earlier answers helped me fit all the pieces together.

25 Feb 2011, 12:04 AM
#1375
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

DivaVocals:

I don't know what versions or files you are comparing.. v1.07 is simply v1.06 with the required changes to TWO files for Zen Cart 1.3.9h compatibility.

Some of the files you mention sound like the old v1.05 files.. I suggested you download the 1.06, 1.06, and 1.07 versions again and do your file comparisons again.. You are mixing up files between three different versions..
Just downloaded V1.06 and V1.07 again to do another compare and the differences I mentioned above are indeed there. :dontgetit

25 Feb 2011, 8:09 AM
#1376
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

Brent:

Just downloaded V1.06 and V1.07 again to do another compare and the differences I mentioned above are indeed there. :dontgetitBecause v1.06 is v1.05 with some code added to support WP tabs..

Again v1.07 is v1.06c with to files modded for Zen Cart 1.3.9 compatibility..

You will need to look at ALL of the v1.06 releases to answer your question regarding what changes were introduced at what time..

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=924

25 Feb 2011, 1:45 PM
#1377
dkerfoot avatar

dkerfoot

New Zenner

Join Date:
Mar 2007
Posts:
72
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

Since I have posted a simple question six times about a conflict TPP seems to have with a very widely used payment module (Google Checkout) can I assume that this is a dead mod and is not supported in any way, shape or form?

Somebody please prove me wrong. Is ANYONE successfully using Google Checkout with TPP?

:frusty:

25 Feb 2011, 4:55 PM
#1378
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

dkerfoot:

Since I have posted a simple question six times about a conflict TPP seems to have with a very widely used payment module (Google Checkout) can I assume that this is a dead mod and is not supported in any way, shape or form?

Somebody please prove me wrong. Is ANYONE successfully using Google Checkout with TPP?

:frusty:Dead based on the fact that no has provided you an answer to your very specific issue??? Ummm no.. Given that there have been PLENTY of recent threads in this support thread and the fact that this mod still functions as intended, I can safely say that NO this mod is not DEAD..

Seems the issue is MORE of a Google Checkout issue than a TPP issue.. BTW, you do know that the Google checkout mod is still considered a BETA module.. It has been LOADED with issues from DAY ONE.. Did you try asking your question on the Google Checkout thread too??

25 Feb 2011, 5:01 PM
#1379
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

Sheesh!!! I GOTTA stop typing in the dark late at night!!!! (correction in red below..:laugh:)

DivaVocals:

Because v1.06 is v1.05 with some code added to support WP tabs..

Again v1.07 is v1.06c with*** TWO ***files modded for Zen Cart 1.3.9 compatibility..

You will need to look at ALL of the v1.06 releases to answer your question regarding what changes were introduced at what time..

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=924

6 Mar 2011, 4:32 AM
#1380
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

I would like to animate the Tabs by either sliding them open or fading in and out. Can anybody tell me what I would change it the jquery to do this, please?