Jump to content
Sign in to follow this  
VJ

[Contribution] Links Manager for osC v1.00

Recommended Posts

Hello,

 

The new version of Links Manager for osC (v1.00) is now available for download, here.

 

This new version is almost entirely written from scratch, to include newer features.

 

IMPORTANT: This contribution was developed for, and tested on OSC v2.2MS2. I haven't tested it on previous OSC releases, so please take care when you install it in pre-MS2 OSC versions. In any case, please BACKUP your programs!!!

 

 

Features include,

 

* multi-language support

* spider friendly links click count

* links/link category images support

* split page views for links

* link partners contact options

* integrated links checker (thanks to Greame Conkie)

* admin configuration options

* "semi-automated" install ;-)

* notification on link status change and more...

 

 

You can see this program in action in my demo store, here.

 

 

Thanks to the OSC team and all those wonderful helpful folks at the OSC forums!!!

 

VJ

Share this post


Link to post
Share on other sites

Oops, I just found a outrageously silly mistake in one of the files. I forgot to remove a line (which i used for debugging).

 

Please remove this line, (around 67)

 

          echo $language_id;

 

in file, /catalog/admin/link_categories.php.

 

Sorry!

 

VJ

Share this post


Link to post
Share on other sites
you just copy the product system??

 

True, parts of this script are based on the product/product category system. It's not "just a copy" of the product system, I would think. :P

 

VJ

Share this post


Link to post
Share on other sites

i just wanted to know before download the contribution if it was made as i tought...

 

ps: just to know, why you have that avatar?


patagonia, argentina

Share this post


Link to post
Share on other sites

Ah yes, you are right... it indeed works similar to the product/product category system.

 

I'd love to hear your comments and criticisms ;) .

 

VJ

 

P.S.: About my avatar... there's no real reason. I just liked that pic of Che. Thanks for asking! :)

Share this post


Link to post
Share on other sites
i just wanted to know before download the contribution if it was made as i tought...

 

Just installed it. Checking to see if anyone got problems.

Got this when running http://localhost/catalog/links_setup.php for first time.

 

:o

 

Parse error: parse error, unexpected T_STRING in /www/catalog/includes/database_tables.php on line 78
1146 - Table 'MS2_SSLv1.table_configuration' doesn't exist

select configuration_key as cfgKey, configuration_value as cfgValue from TABLE_CONFIGURATION

[TEP STOP]

 

Looking into it. Any ideas ?

Edited by ibandyop

ibandyop

Share this post


Link to post
Share on other sites

Great contribution! But I have one question.

 

The way I have it is so people can use their banners (large width) so the table often makes the horizontal scrollbar show up which I hate!!

 

How do you edit the results layout?

I would like something like:

 

 

Company name

____________________________________

IMAGE |

IMAGE |

IMAGE |

____________________________________|

DESCRIPTION TEST HERE

No: of clicks

 

 

NEXT RESULT....

 

 

Is that possible?

Share this post


Link to post
Share on other sites
How do you edit the results layout?

I would like something like:

 

 

Company name

____________________________________

IMAGE |

IMAGE |

IMAGE |

____________________________________|

DESCRIPTION TEST HERE

No: of clicks

 

 

NEXT RESULT....

 

 

Is that possible?

 

Of course, the display layout can be customized. I have a *similar* layout (to the one you're looking for, with space enough for a standard half-banner - 234x60), here.

 

You might find this code snippet (from /catalog/links.php) handy - look out for the commented lines,

 

<?php
 } elseif ($display_mode == 'links') {
// create column list
   $define_list = array('LINK_LIST_TITLE' => LINK_LIST_TITLE,
                        //'LINK_LIST_URL' => LINK_LIST_URL,
                        'LINK_LIST_IMAGE' => LINK_LIST_IMAGE,
                        //'LINK_LIST_DESCRIPTION' => LINK_LIST_DESCRIPTION,
                        'LINK_LIST_COUNT' => LINK_LIST_COUNT);

   asort($define_list);

   $column_list = array();
   reset($define_list);
   while (list($key, $value) = each($define_list)) {
     if ($value > 0) $column_list[] = $key;
   }

   $select_column_list = '';

   for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
     switch ($column_list[$i]) {
       case 'LINK_LIST_TITLE':
         $select_column_list .= 'ld.links_title, ld.links_description, l.links_url, ';
         break;
       /*case 'LINK_LIST_URL':
         $select_column_list .= 'l.links_url, ';
         break;*/
       case 'LINK_LIST_IMAGE':
         $select_column_list .= 'l.links_image_url, ';
         break;
       /*case 'LINK_LIST_DESCRIPTION':
         $select_column_list .= 'ld.links_description, ';
         break;*/
       case 'LINK_LIST_COUNT':
         $select_column_list .= 'l.links_clicked, ';
         break;
     }
   }

// show the links in a given category
// We show them all
   $listing_sql = "select " . $select_column_list . " l.links_id from " . TABLE_LINKS_DESCRIPTION . " ld, " . TABLE_LINKS . " l, " . TABLE_LINKS_TO_LINK_CATEGORIES . " l2lc where l.links_status = '2' and l.links_id = l2lc.links_id and ld.links_id = l2lc.links_id and ld.language_id = '" . (int)$languages_id . "' and l2lc.link_categories_id = '" . (int)$current_category_id . "'";

   if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {
     for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
       if ($column_list[$i] == 'LINK_LIST_TITLE') {
         $HTTP_GET_VARS['sort'] = $i+1 . 'a';
         $listing_sql .= " order by ld.links_title";
         break;
       }
     }
   } else {
     $sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1);
     $sort_order = substr($HTTP_GET_VARS['sort'], 1);
     $listing_sql .= ' order by ';
     switch ($column_list[$sort_col-1]) {
       case 'LINK_LIST_TITLE':
         $listing_sql .= "ld.links_title " . ($sort_order == 'd' ? 'desc' : '');
         break;
       /*case 'LINK_LIST_URL':
         $listing_sql .= "l.links_url " . ($sort_order == 'd' ? 'desc' : '') . ", ld.links_title";
         break;*/
       case 'LINK_LIST_IMAGE':
         $listing_sql .= "ld.links_title";
         break;
       /*case 'LINK_LIST_DESCRIPTION':
         $listing_sql .= "ld.links_description " . ($sort_order == 'd' ? 'desc' : '') . ", ld.links_title";
         break;*/
       case 'LINK_LIST_COUNT':
         $listing_sql .= "l.links_clicked " . ($sort_order == 'd' ? 'desc' : '') . ", ld.links_title";
         break;
     }
   }
?>

 

 

HTH,

VJ

Share this post


Link to post
Share on other sites

ok I will try that,

just a few questions...

 

If someone wants to exchange links and they submnit their details etc, how do they know what to put on their site?

e.g a list of optional banners.

Share this post


Link to post
Share on other sites

I tried the code you supplied and have been messing with it all day but I cant seem to get it to work.

 

Why does it create another columb if you enable something, isnt there any easier way to lay it out??

 

Im so baffled.

Share this post


Link to post
Share on other sites

ps - just incase it wasnt clear enough last time I'll do the diagrams again...

 

 

:: SITE NAME ::  No of Clicks: 7

__________________________________

.............................IMAGE............................

.............................IMAGE............................

.............................IMAGE............................

__________________________________

Description: bla bla bla bla bla bla bla

  bla bla bla bla bla bla bla bla bla bla bla bla

  bla bla bla bla bla bla bla bla bla bla bla bla

  bla bla bla bla bla bla bla bla bla bla bla bla

 

 

 

:: SITE NAME ::  No of Clicks: 7

__________________________________

.............................IMAGE............................

.............................IMAGE............................

.............................IMAGE............................

__________________________________

Description: bla bla bla bla bla bla bla

  bla bla bla bla bla bla bla bla bla bla bla bla

  bla bla bla bla bla bla bla bla bla bla bla bla

  bla bla bla bla bla bla bla bla bla bla bla bla

 

 

 

:: SITE NAME ::  No of Clicks: 7

__________________________________

.............................IMAGE............................

.............................IMAGE............................

.............................IMAGE............................

__________________________________

Description: bla bla bla bla bla bla bla

  bla bla bla bla bla bla bla bla bla bla bla bla

  bla bla bla bla bla bla bla bla bla bla bla bla

  bla bla bla bla bla bla bla bla bla bla bla bla

 

This way the banners dont take up too much screen space because everything is placed underneath it.

 

I suppose its the name, except rather than making new columbs, it makes new rows? Well you get the idea anyway.

Share this post


Link to post
Share on other sites
I tried the code you supplied and have been messing with it all day but I cant seem to get it to work.

 

Why does it create another columb if you enable something, isnt there any easier way to lay it out??

 

Im so baffled.

 

Hello interbikes,

 

If you want a really simple layout, you can do away with the "link_listing" module (that I now use to display links). The link_listing module I have used, is based on the product_listing module. I understand it makes things a bit complicated... I just used it for the following reasons,

 

* it provides ability to sort links based on title, click count, description, etc.

* it has a built-in split page mechanism.

 

If these things are of little importance to you, I see no reason why you shouldn't disable the link_listing thing, and go for a simpler layout.

 

Here's a hint, if you like, on how I would go about this...

 

if ($display_mode == 'categories') {

/* CATEGORIES DISPLAY CODE HERE */

} elseif ($display_mode == 'links') {

/* LINKS DISPLAY CODE HERE */

/* HACK THIS CODE AND USE THE DISPLAY MECHANISM USED BY CATEGORIES DISPLAY */

}

 

Good luck!

VJ

Share this post


Link to post
Share on other sites
Oh I really have no idea where to even start with that.

Could you please please give me a small example??

 

Oops, sorry!

 

Here's some *real* code you might find handy...

 

In /catalog/links.php,

 

<?php
 } elseif ($display_mode == 'links') {	

/* REPLACE ALL THE CODE HERE, WITH THE FOLLOWING */

 }
?>

 

 

<?php
 } elseif ($display_mode == 'links') {
?>
   <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
<?php
   $links_query = tep_db_query("select l.links_id, l.links_url, l.links_image_url, l.links_clicked, ld.links_title, ld.links_description from " . TABLE_LINKS_DESCRIPTION . " ld, " . TABLE_LINKS . " l, " . TABLE_LINKS_TO_LINK_CATEGORIES . " l2lc where l.links_status = '2' and l.links_id = l2lc.links_id and ld.links_id = l2lc.links_id and ld.language_id = '" . (int)$languages_id . "' and l2lc.link_categories_id = '" . (int)$current_category_id . "' order by ld.links_title");

   $number_of_links = tep_db_num_rows($links_query);

   if ($number_of_links > 0) {
     $rows = 0;
     while ($links = tep_db_fetch_array($links_query)) {
       echo '                <td class="main">';

       echo '<b>' . $links['links_title'] . '</b> ';
       echo TEXT_NUMBER_OF_CLICKS . ': ' . $links['links_clicked'] . '<br>';
       
       if (tep_not_null($links['links_image_url'])) {
         echo '<a href="' . tep_get_links_url($links['links_id']) . '" target="_blank">' . tep_links_image($links['links_image_url'], $links['links_title'], LINKS_IMAGE_WIDTH, LINKS_IMAGE_HEIGHT) . '</a>';
       } else {
         echo '<a href="' . tep_get_links_url($links['links_id']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', $links['links_title'], LINKS_IMAGE_WIDTH, LINKS_IMAGE_HEIGHT, 'style="border: 3px double black"') . '</a>';
       }

       echo '<br>' . $links['links_description'] . '<br><br></td>' . "\n";

       echo '              </tr>' . "\n";
       echo '              <tr>' . "\n";
     }
   } else {
?>
               <td><?php new infoBox(array(array('text' => TEXT_NO_LINKS))); ?></td>
<?php
   }
?>
             </tr>
           </table></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 class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_LINKS_SUBMIT, tep_get_all_get_params()) . '">' . tep_image_button('button_submit_link.gif', IMAGE_BUTTON_SUBMIT_LINK) . '</a>'; ?></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>
       </table></td>
     </tr>
   </table></td>
<?php
 }
?>

 

Again, this is just an example (with little or no aesthetics) of using a simpler layout (and doing away with the "link_listing" display module!). Hope you can take it from here, and come up with a really nice layout. :)

 

VJ

Share this post


Link to post
Share on other sites

Your a true star!

 

I'll have a go at getting it nice for people, then post up an alternative.

I'll try and integrate the infobox function, with the heading been the name etc.

Share this post


Link to post
Share on other sites

Well here is mine:

 

can be seen here:

www.alternateclothing.com

 

The best addition I think ive made is the back button!! This really should be implimented as standard. I posted it in tips and tricks for now...

 

anyway:

 

<?php
/*
 $Id: links.php,v 1.00 2003/10/03 Exp $

 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');

// define our link functions
 require(DIR_WS_FUNCTIONS . 'links.php');

// calculate link category path
 if (isset($HTTP_GET_VARS['lPath'])) {
   $lPath = $HTTP_GET_VARS['lPath'];
   $current_category_id = $lPath;
   $display_mode = 'links';
 } elseif (isset($HTTP_GET_VARS['links_id'])) {
   $lPath = tep_get_link_path($HTTP_GET_VARS['links_id']);
 } else {
   $lPath = '';
   $display_mode = 'categories';
 }

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

 // links breadcrumb
 $link_categories_query = tep_db_query("select link_categories_name from " . TABLE_LINK_CATEGORIES_DESCRIPTION . " where link_categories_id = '" . (int)$lPath . "' and language_id = '" . (int)$languages_id . "'");
 $link_categories_value = tep_db_fetch_array($link_categories_query);

 if ($display_mode == 'links') {
   $breadcrumb->add(NAVBAR_TITLE, FILENAME_LINKS);
   $breadcrumb->add($link_categories_value['link_categories_name'], FILENAME_LINKS . '?lPath=' . $lPath);
 } else {
   $breadcrumb->add(NAVBAR_TITLE, FILENAME_LINKS);
 }
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head><script LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> 
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<style type="text/css">
<!--
.style5 {color: #FFFFFF}
-->
</style>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- 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 //-->
<?php
 if ($display_mode == 'categories') {
?>
   <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
<?php
   $categories_query = tep_db_query("select lc.link_categories_id, lcd.link_categories_name, lcd.link_categories_description, lc.link_categories_image from " . TABLE_LINK_CATEGORIES . " lc, " . TABLE_LINK_CATEGORIES_DESCRIPTION . " lcd where lc.link_categories_id = lcd.link_categories_id and lc.link_categories_status = '1' and lcd.language_id = '" . (int)$languages_id . "' order by lcd.link_categories_name");

   $number_of_categories = tep_db_num_rows($categories_query);

   if ($number_of_categories > 0) {
     $rows = 0;
     while ($categories = tep_db_fetch_array($categories_query)) {
       $rows++;
       $lPath_new = 'lPath=' . $categories['link_categories_id'];
       $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';

       echo '                <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_LINKS, $lPath_new) . '">';
       
       

       echo '<br><b><u>' . $categories['link_categories_name'] . '</b></u></a><br><br>' . $categories['link_categories_description'] . '</td>' . "\n";
       if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {
         echo '              </tr>' . "\n";
         echo '              <tr>' . "\n";
       }
     }
   } else {
?>
               <td><?php new infoBox(array(array('text' => TEXT_NO_CATEGORIES))); ?></td>
<?php
   }
?>
             </tr>
           </table></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 class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_LINKS_SUBMIT, tep_get_all_get_params()) . '">' . tep_image_button('button_submit_link.gif', IMAGE_BUTTON_SUBMIT_LINK) . '</a>'; ?></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>
       </table></td>
     </tr>
   </table></td>
<?php
} elseif ($display_mode == 'links') {
?>
  <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
      <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
    </tr>
    <tr>
      <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
        <tr>
          <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
            <tr>
<?php
  $links_query = tep_db_query("select l.links_id, l.links_url, l.links_image_url, l.links_clicked, ld.links_title, ld.links_description from " . TABLE_LINKS_DESCRIPTION . " ld, " . TABLE_LINKS . " l, " . TABLE_LINKS_TO_LINK_CATEGORIES . " l2lc where l.links_status = '2' and l.links_id = l2lc.links_id and ld.links_id = l2lc.links_id and ld.language_id = '" . (int)$languages_id . "' and l2lc.link_categories_id = '" . (int)$current_category_id . "' order by ld.links_title");

  $number_of_links = tep_db_num_rows($links_query);

  if ($number_of_links > 0) {
    $rows = 0;
    while ($links = tep_db_fetch_array($links_query)) {
?>
<td>
<table width="100%"  border="0" cellpadding="1" cellspacing="0" bgcolor="#D21616">
 <tr>
   <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
     <tr class="boxText">
       <td align="left">
      <? echo '<a href="' . tep_get_links_url($links['links_id']) . '" target="_blank" class="style5">' . $links['links_title'] . '</a>';
?> 
- <?
      echo '<b><span class="style5">' . $links['links_url'] . '</span>';
?>
       <td align="right"><span class="headingstyle style5">
         <?
      echo 'N° of clicks' . ': ' . $links['links_clicked'];
?>
       </span></td>
     </tr>
     <tr class="boxText">
       <td colspan="2" bgcolor="feeded" class="errorBox"><table width="10" border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#000000">
         <tr>
           <td><?     
      if (tep_not_null($links['links_image_url'])) {
        echo '<a href="' . tep_get_links_url($links['links_id']) . '" target="_blank">' . tep_links_image($links['links_image_url'], $links['links_title'], LINKS_IMAGE_WIDTH, LINKS_IMAGE_HEIGHT) . '</a>';
      } else {
        echo '<a href="' . tep_get_links_url($links['links_id']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', $links['links_title'], LINKS_IMAGE_WIDTH, LINKS_IMAGE_HEIGHT, 'style="border: 3px double black"') . '</a>';
      }
?></td>
         </tr>
       </table>          
         <?
      echo '<br>' . $links['links_description'];
   ?>          </td>
     </tr>
   </table></td>
 </tr>
</table>
   </td>
</tr>
<tr>
<?
    }
  } else {
?>
              <td><?php new infoBox(array(array('text' => TEXT_NO_LINKS))); ?></td>
<?php
  }
?>
            </tr>
          </table></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 class="main" align="left"><?php echo '<a href="' . tep_href_link(FILENAME_LINKS) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>
              <td class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_LINKS_SUBMIT, tep_get_all_get_params()) . '">' . tep_image_button('button_submit_link.gif', IMAGE_BUTTON_SUBMIT_LINK) . '</a>'; ?></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>
      </table></td>
    </tr>
  </table></td>
<?php
}
?>
<!-- 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'); ?>

 

thets the whole links.php

Share this post


Link to post
Share on other sites

I have a BIG PROBLEM!!!!!

 

While following the Readme.txt instructions on file modifications, I come across a section about two files "which I don't seem to have in any of my folders"

 

Those being: FILENAMES.php & DATABASE_TABLES.php


"Bert" with an Ro in front - just sitting here "out of order"...

Share this post


Link to post
Share on other sites
I have a BIG PROBLEM!!!!!

 

While following the Readme.txt instructions on file modifications, I come across a section about two files "which I don't seem to have in any of my folders"

 

Those being: FILENAMES.php & DATABASE_TABLES.php

 

Are you sure you're using osC version 2.2MS2? This contrib was built and tested on MS2. And, I'm not sure if it would work on previous versions of osC (at least, not out-of-the-box).

 

VJ

Share this post


Link to post
Share on other sites

I assumed so. I just went thru some of the coding throughout the PHP files and they all seem to have different version #s ranging from v1.50 to v1.67

 

The copyright states 2002.

 

How do I figure out what version I am running?


"Bert" with an Ro in front - just sitting here "out of order"...

Share this post


Link to post
Share on other sites

Open /catalog/includes/application_top.php, and look for the lines,

 

// define the project version
 define('PROJECT_VERSION', 'osCommerce 2.2-MS2');

 

That should give you an idea of osC version you run.

 

VJ

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×