Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header Tags SEO


Jack_mcs

Recommended Posts

I found pseudo page added though but no description, title is all the same

 

I Changed my builder_product_info.php to this - similar to product info.php

 

<?php
/*
 $Id: builder_product_info.php v 1.1.0 2008/12/05 11:27:54 10c $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_BUILDER_PRODUCT_INFO);

// check if tables exist
if (mysql_num_rows(mysql_query("SHOW TABLES LIKE '" . TABLE_BUILDER_OPTIONS . "'"))==1) {
// get builder options
 $cbcomp_query = tep_db_query("select cpb_build_product_status_default, cpb_build_disable_after_carted, cpb_build_preview_single, cpb_use_software, cpb_build_unsort_components from " . TABLE_BUILDER_OPTIONS);
 while ($cbcomp = tep_db_fetch_array($cbcomp_query)){
   $cpb_use_software = $cbcomp['cpb_use_software'];
   $cpb_build_unsort_components= $cbcomp['cpb_build_unsort_components'];
   $cpb_build_disable_after_carted= $cbcomp['cpb_build_disable_after_carted'];
   $cpb_build_product_status_default= $cbcomp['cpb_build_product_status_default'];
 }
// check builder enabled
 if (!$cpb_use_software) {
   tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'));
 }
}

// if non-builder product then redirect to osC-product_info
 $product_check_query = tep_db_query("select p.builder_product_flag, count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' group by p.products_id");
 $product_check = tep_db_fetch_array($product_check_query);
 if ($product_check['builder_product_flag'] == '0') {
   tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $_GET['products_id']));
 }
?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<?php
/*** Begin Header Tags SEO ***/
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
 require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?>
 <title><?php echo TITLE; ?></title>
<?php
}
/*** End Header Tags SEO ***/
?>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script language="javascript"><!--
function popupWindow(url) {
 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}
//--></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<?php /*** Begin Header Tags SEO ***/ ?>
<a name="<?php echo $header_tags_array['title']; ?>"></a>
<?php /*** End Header Tags SEO ***/ ?>

<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
   </table></td>
<!-- body_text //-->
   <td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_SHOPPING_CART, 'action=add_build')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
<?php
 if ($product_check['total'] < 1) {
?>
     <tr>
       <td><?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
<?php
 } else {
   $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
   $product_info = tep_db_fetch_array($product_info_query);

   tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

   if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
     $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
   } else {
     $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
   }

   if (tep_not_null($product_info['products_model'])) {
     $products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>';
   } else {
     $products_name = $product_info['products_name'];
   }
?>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading" valign="top"><?php echo $products_name; ?></td>
           <td class="pageHeading" align="right" valign="top">
<?php
if ((int)$product_info['products_price'] > 0) {
       echo $products_price;
} else {
       $products_options_name_query = tep_db_query("select distinct sum(options_values_price) from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' group by products_id");
       $products_options_name = tep_db_fetch_array($products_options_name_query);
       echo $currencies->display_price($products_options_name['sum(options_values_price)'],  tep_get_tax_rate($product_info['products_tax_class_id']));
}
?>
           </td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td class="main">
<?php
   if (tep_not_null($product_info['products_image'])) {
?>
         <table border="0" cellspacing="0" cellpadding="2" align="right">
           <tr>
             <td align="center" class="smallText">
<script language="javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>
             </td>
           </tr>
         </table>
<?php
   }
?>
         <p><?php echo stripslashes($product_info['products_description']); ?></p>
<?php
   $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");
   $products_attributes = tep_db_fetch_array($products_attributes_query);
   if ($products_attributes['total'] > 0) {
?>
         <table border="0" cellspacing="0" cellpadding="2">
           <tr>
             <td class="main" colspan="2"><?php echo TEXT_PRODUCT_OPTIONS; ?></td>
           </tr>
<?php
     if ($cpb_build_unsort_components) {
       $products_options_name_query = tep_db_query("select distinct patrib.options_values_price, popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' group by popt.products_options_id");
     } else {
       $products_options_name_query = tep_db_query("select distinct sum(patrib.options_values_price), popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' group by popt.products_options_name");
     }
     while ($products_options_name = tep_db_fetch_array($products_options_name_query)) {
       $products_options_array = array();
         $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pov.catalog_products_id from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'");

       while ($products_options = tep_db_fetch_array($products_options_query)) {
         $component_name = $products_options['products_options_values_name'];
         $component_id = $products_options['products_options_values_id'];
         $componentcat_id = $products_options['catalog_products_id'];

       }
       echo tep_draw_hidden_field('id[' . $products_options_name['products_options_id'] . ']', $component_id);
?>
           <tr>
             <td class="main" align="right"><?php echo $products_options_name['products_options_name'] . ':'; ?></td>
             <td class="main"><a href="<?php echo tep_href_link(FILENAME_BUILDER_COMPONENT_INFO, 'products_id=' . $componentcat_id, 'NONSSL', true, false); ?>" onClick="javascript:window.open(this.href,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=600,screenX=150,screenY=150,top=150,left=150');return(false);"><?php echo $component_name; ?></a></td>
           </tr>
<?php
     }
?>
         </table>
<?php
   }
?>
       </td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
if ($product_info['products_quantity'] > 0) {
?>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

               <td class="main" align="right"><?php echo tep_draw_hidden_field('uncloaked_build', $cpb_build_product_status_default) . tep_draw_hidden_field('disable_build', $cpb_build_disable_after_carted) . tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
}
?>
     <tr>
       <td>
<?php
 }
?>
       </td>
     </tr>
<?php /*** Begin Header Tags SEO ***/ ?>
     <tr>
      <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
      <td class="smallText" align="center"><?php echo TEXT_VIEWING; ?> 
      <?php echo '<a title="' . $header_tags_array['title'] . '" href="' . tep_href_link(_BUILDER_COMPONENT_INFO, 'products_id=' . $product_info['products_id'], 'NONSSL') . '"/# ' . $header_tags_array['title'] . '">' . $header_tags_array['title']; ?></a></td>
     </tr>
     <?php /*** End Header Tags SEO ***/ ?>	  

   </table></form></td>
<!-- body_text_eof //-->
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
   </table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Getting the Phoenix off the ground

Link to comment
Share on other sites

Need some help with Header Tags SEO

 

In my page header some of the seo keywords is in capital letters

 

Is there a way getting letters to show in lowercase only?

 

 

Thanks

Getting the Phoenix off the ground

Link to comment
Share on other sites

Need some help with Header Tags SEO

 

In my page header some of the seo keywords is in capital letters

 

Is there a way getting letters to show in lowercase only?

 

 

Thanks

In includes/functions/header_tags.php, find this line

  if (! tep_not_null($header_tags_array['keywords'])) $header_tags_array['keywords'] = $pageName . (tep_not_null($tmpTags['def_keywords']) ? HEADER_TAGS_SEPARATOR_KEYWORD . ' ' . $tmpTags['def_keywords'] : '');

and change it to

  strtolower(if (! tep_not_null($header_tags_array['keywords'])) $header_tags_array['keywords'] = $pageName . (tep_not_null($tmpTags['def_keywords']) ? HEADER_TAGS_SEPARATOR_KEYWORD . ' ' . $tmpTags['def_keywords'] : ''));

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

In includes/functions/header_tags.php, find this line

  if (! tep_not_null($header_tags_array['keywords'])) $header_tags_array['keywords'] = $pageName . (tep_not_null($tmpTags['def_keywords']) ? HEADER_TAGS_SEPARATOR_KEYWORD . ' ' . $tmpTags['def_keywords'] : '');

and change it to

  strtolower(if (! tep_not_null($header_tags_array['keywords'])) $header_tags_array['keywords'] = $pageName . (tep_not_null($tmpTags['def_keywords']) ? HEADER_TAGS_SEPARATOR_KEYWORD . ' ' . $tmpTags['def_keywords'] : ''));

Code doesn't seem valid - blank page

Getting the Phoenix off the ground

Link to comment
Share on other sites

Thanks for reply

 

The page heading shows up for a keyword - but heading words contains capital letters and is bad for keywords (if I'm not mistaken)

 

I tried a few other ways to use strtolower and mb_strtolower(should change all capital letters) :'(

 

Any PHP programmers ??

Getting the Phoenix off the ground

Link to comment
Share on other sites

Thanks for reply

 

The page heading shows up for a keyword - but heading words contains capital letters and is bad for keywords (if I'm not mistaken)

 

I tried a few other ways to use strtolower and mb_strtolower(should change all capital letters) :'(

 

Any PHP programmers ??

 

if (! tep_not_null($header_tags_array['keywords'])) $header_tags_array['keywords'] = strtolower( $pageName . (tep_not_null($tmpTags['def_keywords']) ? HEADER_TAGS_SEPARATOR_KEYWORD . ' ' . $tmpTags['def_keywords'] : '') );

Link to comment
Share on other sites

Hi guys

 

I installed header tags a while ago and had 2 languages installed (dutch and english), now i installed a 3th language but apparently header tags wont work on this 3th language. Is there something i need to adjust (in the database) ?

 

Grz

Robin

Link to comment
Share on other sites

if (! tep_not_null($header_tags_array['keywords'])) $header_tags_array['keywords'] = strtolower( $pageName . (tep_not_null($tmpTags['def_keywords']) ? HEADER_TAGS_SEPARATOR_KEYWORD . ' ' . $tmpTags['def_keywords'] : '') );

 

 

Thanks everyone,

 

The above didn't work for me though got it sorted it out - all lower case keywords now :D

 

Changed in includes/header_tags.php

echo ' <meta name="Keywords" content="' . $header_tags_array['keywords'] . '" >' . "\n";

to

echo strtolower(' <meta name="Keywords" content="' . $header_tags_array['keywords'] . '" >' . "\n");

 

If anyone suspects that it is not the correct way - future problems - let me know

Getting the Phoenix off the ground

Link to comment
Share on other sites

The page heading shows up for a keyword - but heading words contains capital letters and is bad for keywords (if I'm not mistaken)

Your'e mistaken - it doesn't make any difference at all.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I think i managed to get everything on and almost working ok, but i keep getting the error

 

 Permissions settings for the /home/xxxxxxxx/public_html/catalog/includes/header_tags.php file appear to be incorrect. Change to 755. NOTE: Disregard if on Windows server.

 

I have change the permission back and forth from 755 to 777 , but i cant seem to get this sorted, on reading the notes there might have been a work around

 

  Around line 201 you find this code:

 if (!is_writable($filename))
 {
    if (!chmod($filename, 0666)) {
       echo "Cannot change the mode of file ($filename)";
       exit;
    }
 }

 Replace that with the following code:

 if (!is_writable($filename))
 {
   echo "The file isn't writable";
exit;
    /* if (!chmod($filename, 0666)) {
       echo "Cannot change the mode of file ($filename)";
       exit;
    } */
 }

 

but on checking on the file the code is different, any help please?

Link to comment
Share on other sites

I think i managed to get everything on and almost working ok, but i keep getting the error

 

 Permissions settings for the /home/xxxxxxxx/public_html/catalog/includes/header_tags.php file appear to be incorrect. Change to 755. NOTE: Disregard if on Windows server.

First, set them to whatever your images directory has. Second, try making a change to one of the meta tag options (just as a test). If it works, then there's not a problem and you can turn the warning off in the settings.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Thanks so much for the support so far, yes i checked and change the settings to my image directory 757 and that have sorted the problem, only to try Fill tags and i get the following error.

 

Fatal error: Maximum execution time of 30 seconds exceeded in /home/xxxxxxx/public_html/catalog/admin/includes/functions/header_tags.php on line 474

 

this kind of really baffles me as i have set this up on another testing cart on another domain name under same server and it works fine, and its the same file too without anything changed.

Link to comment
Share on other sites

Fatal error: Maximum execution time of 30 seconds exceeded

 

this kind of really baffles me as i have set this up on another testing cart on another domain name under same server and it works fine, and its the same file too without anything changed.

That is caused by the script not finishing before the timer on the server times out. That is generally caused by the number of products you have, a slow server or both. Although if you are using one of the overrides in Fill Tags, that can do it too. Try cutting down what you are trying to fill. For example, only select categories to fill and run that.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I installed Header Tags SEo and uninstalled it. But my breadcrumb is not showing the current product at the end anymore. Where must i look to fix it? plaease help me with this!

The only change Header Tags makes to the breadcrumb code is in includes/application_top.php.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi Jack i always thought that this contrib didnt work for me but now when im on a new computer i CAN se (when editing a product) the Meta Tag Information textarea fields where the text apears for:

Product Title Tag

Product Description Tag

and

Product Keywords Tag

 

So now i wonder why theese text doesnt show on some other computers??? (i can only see the editing field buttons but not write any text)

 

(hope you understand what i mean *lol*) :blush:

Edited by Solan
Link to comment
Share on other sites

So now i wonder why theese text doesnt show on some other computers??? (i can only see the editing field buttons but not write any text)

There's not any reason for that to happen that I can think of. The most likely is the admin/categories.php file is not edited correctly. That can be confirmed by using the included file.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hello all.

 

I have a visual glitch when i set on Display Column Box , the box itself has no title at all and the horizontal bar has a cut. You can see it www.hmsistemas.es/shop/catalog/product_info.php/regulador-phocos-cxn20-p-30 much better than an explanation.

 

Can´t search for it, i can barely explain the effect in english :-"

Link to comment
Share on other sites

I have a visual glitch when i set on Display Column Box , the box itself has no title at all and the horizontal bar has a cut.

The box is a standard oscommerce box. When boxes have been edited, as in your case, you have to edit the code so it matches them.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

LOL

 

I think i´ve brokeng something :lol:

 

 

 

while (strlen($header) < 2)

{

$header .= 'Viendo ' . $parts[$i++];

}

 

Writing something between de ' ... ' appears in the bar but doubled if was less than 12 characters, so I reduced the number.

Shoddy piece of work or can stay??? Any future corrupted code because of this?

Link to comment
Share on other sites

while (strlen($header) < 2)

{

$header .= 'Viendo ' . $parts[$i++];

}

Assuming you want it to read Viendo XX, where XX is the first two characters of the name, then it should be

$header = 'Viendo ';
while (strlen($header) < 9)
{
$header .= $parts[$i++];
}

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

The thing is that trying test and error, writing text in there fixed the bar, so why not set a new Currently Viewing alike, and works.

 

Viendo..=Viewing..

 

I just wanted to fill the gap and have a nice bar in that box. I am just a php copy&paster so if you tell me is code correct i´ll set it online.

 

I wonder how other people fixed their box bar...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...