There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
PHP help needed please


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
marathon851's Avatar
Member with 63 posts.
 
Join Date: Aug 2004
Experience: Intermediate
20-Jun-2005, 03:11 AM #1
Exclamation PHP help needed please
Hi (sorry in advance for the long post)

I'm trying to help a friend out with her Web site and need to edit some PHP and am encountering some issues.
Firstoff, the site I'm dealing with is bethsproteinboutique.com
Problem #1:
On some of the pages of the site, there is a letter "n" near the top of the page - an example would be the "Protein " page, where you'll see an "n" just above the "Protein" heading. I have no idea why its there, but would like to know how to remove it from the pages.
Problem #2
I need to make an FAQ page & need a link to that page in the "Information" box which is located on the bottom of the left column on each page. I tried adding a link to the following code (copying the code from one of the links there), & I got the "FAQ" to show up in the Info box, however, when I have that extra link in the Information.php page, it displays a letter "n" on the page when viewing the pages that contain the Info box.
PHP Code:
<?php
/*
  $Id: information.php,v 1.9 2004/05/18 08:17:35 mahendrak Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com
*/
?>
<!-- information //-->
          <tr>
            <td>
<?php
  $info_box_contents 
= array();
  
$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

  new 
infoBoxHeading($info_box_contentsfalsefalse);

  
$info_box_contents = array();

//code changed on 11may 2004 for current_auctions and also for easy condition checking of showing/hiding a particular link.

$box_info="";

    
$box_info.='<a href="' tep_href_link(FILENAME_SHIPPING) . '">' BOX_INFORMATION_SHIPPING '</a><br>' ;
    
$box_info.='<a href="' tep_href_link(FILENAME_PRIVACY) . '">' BOX_INFORMATION_PRIVACY '</a><br>' ;
    
$box_info.='<a href="' tep_href_link(FILENAME_CONDITIONS) . '">' BOX_INFORMATION_CONDITIONS '</a><br>' ;
    
$box_info.='<a href="' tep_href_link(FILENAME_TRACKING'''NONSSL') . '">' BOX_INFORMATION_TRACKING '</a><br>' ;
    
    if(
DISPLAY_VAT_LINK=='true')
        
$box_info.='<a href="' tep_href_link(FILENAME_VAT) . '">' BOX_INFORMATION_VAT '</a><br>' ;

        
$box_info.='<a href="' tep_href_link(FILENAME_CONTACT_US) . '">' BOX_INFORMATION_CONTACT '</a><br>';
        
$box_info.='<a href="' tep_href_link(FILENAME_GV_FAQ'''NONSSL') . '">' BOX_INFORMATION_GV '</a>';
                  

                                
$info_box_contents[] = array('text' =>$box_info);

/* original code commented on 10may for ebay auctions*/

// BOF : ADDED 1/29/2004
// COMMENTS : For Coupon/GiftVoucher module
// REASON : Added a new element at the end of the info_box_contents array for creating the gift voucher FAQ

// Added link for Order Tracking
// Added link for Amazon Store on 10may 2004

/*  if(DISPLAY_VAT_LINK=='true'){
  $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
                                         '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .
                                         '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
                                           '<a href="' . tep_href_link(FILENAME_TRACKING, '', 'NONSSL') . '">' . BOX_INFORMATION_TRACKING . '</a><br>' .
                                         '<a href="' . tep_href_link(FILENAME_AMAZON_STORE, '', 'NONSSL') . '">' . BOX_INFORMATION_AMAZON_STORE . '</a><br>' .
                                           '<a href="' . tep_href_link(FILENAME_VAT) . '">' . BOX_INFORMATION_VAT . '</a><br>' .
                                         '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>'.
                                         '<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a>');
  }else{

    $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
                                         '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .
                                         '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
                                           '<a href="' . tep_href_link(FILENAME_TRACKING, '', 'NONSSL') . '">' . BOX_INFORMATION_TRACKING . '</a><br>' .                                     
                                         '<a href="' . tep_href_link(FILENAME_AMAZON_STORE, '', 'NONSSL') . '">' . BOX_INFORMATION_AMAZON_STORE . '</a><br>' .
                                           '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>'.
                                         '<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a>');
    } */
// EOF : ADDED  1/29/2004 for gift voucher

/* original code commented on 10may for ebay auctions till here*/


  
new infoBox($info_box_contents);
?>
            </td>
          </tr>
<!-- information_eof //-->
*** please see the attached .pdf file for my full post, because I passed the limit of 30,000 characters***

THANK YOU!
Attached Files
File Type: pdf post.pdf (59.9 KB, 58 views)
Fyzbo's Avatar
Senior Member with 1,767 posts.
 
Join Date: Feb 2002
Location: North Carolina, USA
Experience: Programming-Advanced|EVER
20-Jun-2005, 09:20 PM #2
The n shows up because it is in your html code. From the source of one of the pages you linked too:

PHP Code:
<!-- body_text //-->

    
<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>
            <!-- 
original code commented on 26apr 2004 from here for categories desc -->

            <!-- <
td class="pageHeading"></td> -->
            <!-- 
original code commented on 26apr 2004 till here for categories desc -->

            <!-- new 
code added on 26apr 2004 from here for categories desc -->
             <
td class="pageHeading">
             
Protein            </td>
            <!-- new 
code added on 26apr 2004 till here for categories desc -->
            <
td align="center" class="main"><form name="filter" action="index.php" method="get"><b>Show:</b>&nbsp;<input type="hidden" name="cPath" value="22"><input type="hidden" name="sort" value="3a"><select name="filter_id" onchange="this.form.submit()"><option value="" SELECTED>All Manufacturers</option><option value="24">Bio-Engineered Supplements</option><option value="6">Champion</option><option value="72">Dymatize Nutrition</option><option value="18">Global Health ProductsInc</option><option value="5">HDT</option><option value="4">IDS</option><option value="1">Labrada</option><option value="16">Mission Nutrition</option><option value="7">Natures Best</option><option value="2">Next Proteins</option><option value="10">Optimum Nutrition</option><option value="8">PVL</option><option value="56">PVL Nutrients</option><option value="11">SciTec</option><option value="12">Syntrax</option></select></form></td>n            <td align="right"><img src="images/" border="0" alt="" width="57" height="40"></td>

          </
tr
notice at the end right before the image which isn't properly linked to there is an "n" where it doesn't belong.

Quote:
</td>n <td align="right"><img src="images/" border="0" alt="" width="57" height="40"></td>
It shows up before the table as it's not inbetween the tags properly. As for the php problems I can't really debug them from a pdf file. Could you attack or send the actual php files for me to look at?
marathon851's Avatar
Member with 63 posts.
 
Join Date: Aug 2004
Experience: Intermediate
02-Jul-2005, 12:46 AM #3
There's no html files on her server so I don't know how to get rid of the n's....since the .php files seem to just include the php code and not the html....
Soiled's Avatar
Senior Member with 208 posts.
 
Join Date: May 2004
Location: Kingston, Ontario
02-Jul-2005, 03:55 PM #4
youd need access to that file with the 'N' so you can remove it and update the server with the new file.
Fyzbo's Avatar
Senior Member with 1,767 posts.
 
Join Date: Feb 2002
Location: North Carolina, USA
Experience: Programming-Advanced|EVER
05-Jul-2005, 03:23 PM #5
I need the actual php files to go through it and find where it generates the 'n'. I'm having trouble using the pdf. Please post the full php files or send them over to me and I'll find the error.
marathon851's Avatar
Member with 63 posts.
 
Join Date: Aug 2004
Experience: Intermediate
05-Jul-2005, 09:07 PM #6
actually, I did figure out how to remove the n's.
But, I do have a new problem. I'm not sure why, but yesterday when I looked at the main page of the site, the right column and a table located under the paypal graphic in the center of the page is now missing. I must have deleted some code from a page...but I don't know which one.
www.bethsproteinboutique.com
-I have attached a .zip of .txt files with the php code from the pages pasted in.

Thank You! for your previous help and any other help you can provide with the new problem.

p.s.: OSCommerce is the e-commerce system used on the site
www.oscommerce.com
Attached Files
File Type: zip php.zip (12.2 KB, 11 views)
jthenerd's Avatar
Senior Member with 156 posts.
 
Join Date: Oct 2003
06-Jul-2005, 11:11 PM #7
looks like os commerce. I dont see any prob. please xplain
jcall's Avatar
Junior Member with 1 posts.
 
Join Date: Jul 2005
13-Jul-2005, 03:00 AM #8
It's probably in the language definition file catalog/includes/languages/english.php; in the line starting with: define('FOOTER_TEXT_BODY', . . . .

If not, it's possible that you've put it in catalog/includes/footer.php.

If anyone else is curious about the "n" problem, it's in the Common Problems area of forums.oscommerce.com .

-jared
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:38 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.