Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Honest to pete, why does everything have to be so difficult? I wanted to install this contrib....after using the basic design and setting up my store the way I want it, I installed this in the right hand column and boom, the bottom part of my site was gone....can somebody look at this package and see what is wrong with it or let me know if I did something wrong?? I followed this exactly, but maybe I put something somewhere wrong??? Look through the code, I have added what mine is, and the errors I am having....Please help?

 

anthony added: LoginBox Best
Copmatible with osC V2.2 MS2

Added features:
tep_greeting_top() : gives personal greeting when logged in or not. (fixed)
BOX_LOGINBOX_NEW : gives link for new users to create account.
BOX_LOGINBOX_FORGOT_PASSWORD: password renewal page link.


WebMakers.com Added: LoginBox v5.2
Linda McGrath [email protected]
Can be viewed at: http://www.thewebmakerscorner.com/freecall


LoginBox v5.0 was originally designed by Aubrey Kilian <[email protected]>

This has been modified to be both a Login Box and My Account Box.

When Logged in, the box changes to a My Account Box. When logged out, 
the box changes to a Login Box.

On Login and Create Account Pages the box disappears.

================================================================================
=============


CODE CHANGE TO ADD BOX TO COLUMN:
Add to /catalog/includes/column_left.php 
or /catalog/includes/column_right.php

 

 

**** every time I add this to my right column...the bottom of my page disappears and I see no box, just the log in sign across the top???*****

 

// BOF: WebMakers Added: Login Box My Account
require(DIR_WS_BOXES . 'loginbox.php');
// EOF: WebMakers Added: Login Box My Account

 

***This is my current right column without the above added***

 

<?php
/*
 $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $

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

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require(DIR_WS_BOXES . 'shopping_cart.php');

 if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

 if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');

 if (isset($HTTP_GET_VARS['products_id'])) {
if (tep_session_is_registered('customer_id')) {
  $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");
  $check = tep_db_fetch_array($check_query);
  if ($check['count'] > 0) {
	include(DIR_WS_BOXES . 'best_sellers.php');
  } else {
	include(DIR_WS_BOXES . 'product_notifications.php');
  }
} else {
  include(DIR_WS_BOXES . 'product_notifications.php');
}
 } else {
include(DIR_WS_BOXES . 'best_sellers.php');
 }

 if (isset($HTTP_GET_VARS['products_id'])) {
if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');
 } else {
include(DIR_WS_BOXES . 'specials.php');
 }

 require(DIR_WS_BOXES . 'reviews.php');

 if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
include(DIR_WS_BOXES . 'languages.php');
include(DIR_WS_BOXES . 'currencies.php');
} 
?>

 

***if I do this, I get a parse error****

 

LANGUAGE FILES:
Add to the bottom of /catalog/includes/languages/english.php

// LoginBox Text
require(DIR_WS_LANGUAGES . $language . '/' . 'loginbox.php');

 

 

**** this is what it says to do Here*****

 

ADD GREETING FUNCTION:
Search for "greeting_string" in /catalog/includes/functions/general.php

add following code beneath that function

// Return a loginbox infobox customer greeting top
 function tep_box_greeting_top() {
global $customer_id, $customer_first_name;

if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {
  $greeting_box_top_string = sprintf(BOX_GREETING_TOP_PERSONAL, $customer_first_name, tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL'));
} else {
  $greeting_box_top_string = sprintf(BOX_GREETING_TOP_GUEST, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
}

return $greeting_box_top_string;
 }

////
// Return a loginbox infobox customer greeting bottom
 function tep_box_greeting_bottom() {
global $customer_id, $customer_first_name;

if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {
  $greeting_box_bottom_string = sprintf(BOX_GREETING_BOTTOM_PERSONAL, $customer_first_name, tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL'));
} else {
  $greeting_box_bottom_string = sprintf(BOX_GREETING_BOTTOM_GUEST, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
}

return $greeting_box_bottom_string;
 }

 

******here is a snipit of what mine looks like with the greeting string added****

 

	return $greeting_string;
// Return a loginbox infobox customer greeting top
 function tep_box_greeting_top() {
global $customer_id, $customer_first_name;

if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {
  $greeting_box_top_string = sprintf(BOX_GREETING_TOP_PERSONAL, $customer_first_name, tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL'));
} else {
  $greeting_box_top_string = sprintf(BOX_GREETING_TOP_GUEST, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
}

return $greeting_box_top_string;
}
// Return a loginbox infobox customer greeting top
 function tep_box_greeting_top() {
global $customer_id, $customer_first_name;

if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {
  $greeting_box_top_string = sprintf(BOX_GREETING_TOP_PERSONAL, $customer_first_name, tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL'));
} else {
  $greeting_box_top_string = sprintf(BOX_GREETING_TOP_GUEST, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
}

return $greeting_box_top_string;
 }

////
// Return a loginbox infobox customer greeting bottom
 function tep_box_greeting_bottom() {
global $customer_id, $customer_first_name;

if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {
  $greeting_box_bottom_string = sprintf(BOX_GREETING_BOTTOM_PERSONAL, $customer_first_name, tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL'));
} else {
  $greeting_box_bottom_string = sprintf(BOX_GREETING_BOTTOM_GUEST, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
}

return $greeting_box_bottom_string;
 }

}

 

 

 

 

*****this is the end of the instructions....so can anybody see what I did wrong???****

 

INSTALL NEW FILES:

/catalog/includes/boxes/loginbox.php
/catalog/includes/languages/english/loginbox.php
/catalog/includes/languages/english/buttons/button_login.gif (optional)

NOTE: there are two buttons. Pick the one you wish to use, make your own
  or use the default.

Posted

its been three days, does anybody know the answer to this question? If not, I can for go using this mod, no problem. Im guessing it is a problem with the basic design package....must be a glitch somewhere Im missing...

  • 6 months later...
Posted (edited)

I had the same problem when doing the modifications ! I can't use the modern_blue template because it requires the LoginBox Best contrib to be installed first . Anyone could help ??? PLEASE !!!!!!!!! :( :( :(

 

Thanks

Edited by Zaher

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...