Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to resize the Box Menu ?


Guest

Recommended Posts

Posted

Hello Guy,

 

i need help to edit the Box menu. Here is my website www.pre-us.com ( sorry somme menu wre written in thai )

 

Here is the problem.

1. If you look as the left box menu, you will see that the menu title is longer than the box, and that make the menu looklike 2 lines....T_T , with this, I feel that it is hard to read the menu.

 

Anyone, can help me how to edit the box size ?? I am understand that I might have to edit stylesheet or something with php thing...but I just don;t know how and where... Can anyone guide me ??

 

Thank you very much

Posted

Sunpetch,

 

The column box widths are defined in the includes/application_top.php file on this line:

 

// customization for the design layout

define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

 

 

If you increase this number, you will increase the width of both the left and right column widths. So, if you intend to just increase the left column you will have to add another definition and rename the column left in the files.

 

 

 

Chris

Posted

Hello Guy,

 

i need help to edit the Box menu. Here is my website www.pre-us.com ( sorry somme menu wre written in thai )

 

Here is the problem.

1. If you look as the left box menu, you will see that the menu title is longer than the box, and that make the menu looklike 2 lines....T_T , with this, I feel that it is hard to read the menu.

 

Anyone, can help me how to edit the box size ?? I am understand that I might have to edit stylesheet or something with php thing...but I just don;t know how and where... Can anyone guide me ??

 

Thank you very much

 

Hi Chris,

 

I had try as what you told me... but It doesn;t work...It look like there is something wrong..T_T

 

1. At the Left Menu, I am sure that I include " require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'search.php'); " , in the columleft.php ,but It didn;t show up

2. At the right Menu, i am sure that i remove " require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'search.php'); but it still showing ???

3. I have set the Box_width to 300 , I saw that the right menu is changed the size, but the left menu still not change..

4. If you checking any of my menu categories, and you will see that I have list quite product, but it seem that the website show all product in the page ( it should show 15 item as i set it per page ) ??

 

I paste my columleft.pho code to see if I am did something wrong

 

<?php

/*

$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

include(DIR_WS_BOXES . 'whats_new.php');

include(DIR_WS_BOXES . 'search.php');

}

 

require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'search.php');

 

/*** Begin Header Tags SEO ***/

if (HEADER_TAGS_DISPLAY_COLUMN_BOX == 'true' && basename($PHP_SELF) == FILENAME_PRODUCT_INFO)

include(DIR_WS_BOXES . 'header_tags.php');

/*** Begin Header Tags SEO ***/

 

?>

Posted

Also what is these ??

 

1. Cache : what if i enable Cache to True ?? what will happen and what is it ??

 

2. Session : what is this use for ??

Posted

Bad news.

:'(

 

Your site is hacked.

 

Hack files in the root folder:

 

goog1e7767953666cd8b.php

goog1e_analist_b86b5111afbe73.php

goog1eb86b5111afbe73.php

googlee7af36d2c1d9.php

 

There are probably similarly named hack files in the images folder.

 

Visit the link below:

 

How to Secure Your Site

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Also what is these ??

 

1. Cache : what if i enable Cache to True ?? what will happen and what is it ??

 

2. Session : what is this use for ??

 

 

I Should Delete this file right ??

Posted

There is another suspicious file: Thumbs.db.php

 

If all you do is delete the hack files and you don't apply any of the security fixes at the link I gave you'll be hacked again, and again, and again.... (ad infinitum)

:'(

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Sunpetch,

 

The column setting in application top SHOULD change both the left and right columns. However, it could be that the columns have already been assigned alternate classes and are now independent of eachother. Check the application top for another column with definition.

 

 

 

Chris

Posted

Sunpetch,

 

The column setting in application top SHOULD change both the left and right columns. However, it could be that the columns have already been assigned alternate classes and are now independent of eachother. Check the application top for another column with definition.

 

 

 

Chris

 

Thank you very much.... It has answered...I just know that my site was hacked ( my site is not fully finished yet ) that is why i upload the file and it is not working..T_T... Right now, I can change the size of boxes for both left and right..

 

Thanks

Posted

There is another suspicious file: Thumbs.db.php

 

If all you do is delete the hack files and you don't apply any of the security fixes at the link I gave you'll be hacked again, and again, and again.... (ad infinitum)

:'(

 

I will follow your instruction to protect the hacked.... It will take time for me...

Posted

There is another suspicious file: Thumbs.db.php

 

If all you do is delete the hack files and you don't apply any of the security fixes at the link I gave you'll be hacked again, and again, and again.... (ad infinitum)

:'(

 

I also wondering how you know which file on my website that appear add by hacked ??

 

Also I still have problem with showing the item. I am sure that I set item show 15 items per page...but as i check it show all items..T_T...and still seeing a page 1 2 3 ....

 

thanks

Posted

As far as I can tell this hack is a result of the admin vulnerability in v2.2 RC2a "unmodified".

 

If you remove all the hack, then secure the admin (rename it and/or protect it with a .htaccess file - preferrably BOTH, and remove the file_manager.php and define_language.php files), and make sure the images folder has permissions no higher than 755 you won't be bothered by this hack again. And you'll be immune to countless others as well.

 

The hack files weren't hard to spot. I've seen this way too many times.

 

Most osC sites have the same files in them.

 

When you see one with a different name it becomes obvious quickly.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

  • 2 weeks later...
Posted

As far as I can tell this hack is a result of the admin vulnerability in v2.2 RC2a "unmodified".

 

If you remove all the hack, then secure the admin (rename it and/or protect it with a .htaccess file - preferrably BOTH, and remove the file_manager.php and define_language.php files), and make sure the images folder has permissions no higher than 755 you won't be bothered by this hack again. And you'll be immune to countless others as well.

 

The hack files weren't hard to spot. I've seen this way too many times.

 

Most osC sites have the same files in them.

 

When you see one with a different name it becomes obvious quickly.

 

Hello, I try to follow your step, but it seem that i rename the admin folder , i remove file_manager.php and define_languae.php ... But it show that page not found..T_T.... So I will try to make the .htaccess for the admin folder then..

 

I also facing more problem ( this problem was occur at the same time that I ask all about this , but I just know )

 

1. when I hit the search button, It lead me to a login page

2. when I click the Tag description , It lead me to a login page

3. When I login to user account ( at first time that load the page ) It can login, but when i browse other categories or any product, it lead me to a log in page again ???

4. Once the problem happen ( lead to the login page), I try to refresh the page It doesn;t work, I have to close the IE or firefox and then it will show the first page...but if I do the search or login..It will keep lead back to login page ..

 

 

You can try my website.. www.pre-us.com

 

Also is this happen with session or cache ???

 

I am so crazy with this...T_T

 

thank you

Posted

My anti-virus says your admin is hacked with an "iframe" virus.

 

I believe it - I've seen it in the HTML.

 

:'(

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

My anti-virus says your admin is hacked with an "iframe" virus.

 

I believe it - I've seen it in the HTML.

 

:'(

 

Oh boy...What should I do or clean the Ifram virus ???... This is getting worser and worser...TT

 

Please let me know

 

thank you

Posted

My anti-virus says your admin is hacked with an "iframe" virus.

 

I believe it - I've seen it in the HTML.

 

:'(

 

 

Also If I delete all file and reinstall them again, this will help ( after install will making the .htaccess to protect admin )

 

And how about My product that I already post ??? What should I do about that , I backup the database and then upload at the admin when I am done witn reinstall ??

 

Please let me know

thank you

Posted

My anti-virus says your admin is hacked with an "iframe" virus.

 

I believe it - I've seen it in the HTML.

 

:'(

 

 

Hello,

 

I also ask this problem with my hosting techinic specialist, He told me that it is because of the .htacess code . so I don;t which one is it..since there are .htacess in main root and .htacess in folder admin

 

1. .htacess in htdocs/

# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $

#

# This is used with Apache WebServers

#

# For this to work, you must include the parameter 'Options' to

# the AllowOverride configuration

#

# Example:

#

# <Directory "/usr/local/apache/htdocs">

# AllowOverride Options

# </Directory>

#

# 'All' with also work. (This configuration is in the

# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet

# Explorer browsers

<IfModule mod_setenvif.c>

<IfDefine SSL>

SetEnvIf User-Agent ".*MSIE.*" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

</IfDefine>

</IfModule>

# If Search Engine Friendly URLs do not work, try enabling the

# following Apache configuration parameter

#

# AcceptPathInfo On

# Fix certain PHP values

# (commented out by default to prevent errors occuring on certain

# servers)

#

#<IfModule mod_php4.c>

# php_value session.use_trans_sid 0

# php_value register_globals 1

#</IfModule>

 

# Ultimate SEO URLs BEGIN

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

 

RewriteCond %{QUERY_STRING} ^options\=(.*)$

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2%1

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}

# Added polls and newsdesk

#RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}

RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}

# BOF: Faqdesk support added by faaliyet

RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING}

# EOF: Faqdesk support added by faaliyet

# Ultimate SEO URLs END

 

# Block Bad Bots

RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]

RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:[email protected] [OR]

RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]

RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]

RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]

RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]

RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]

RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]

RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]

RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]

RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]

RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]

RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]

RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]

RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]

RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]

RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]

RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]

RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]

RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]

RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]

RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]

RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]

RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]

RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]

RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]

RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]

RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]

RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]

RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]

RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]

RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]

RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]

RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]

RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]

RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]

RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]

RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]

RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]

RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]

RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]

RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]

RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]

RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]

RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]

RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]

RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]

RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]

RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]

RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]

RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]

RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]

RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]

RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]

RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]

RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]

RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]

RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]

RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]

RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]

RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]

RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]

RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]

RewriteCond %{HTTP_USER_AGENT} ^Zeus

RewriteRule .* - [F]

 

2. .htacess in /includes/.htacess

# $Id: .htaccess 1739 2007-12-20 00:52:16Z hpdl $

#

# This is used with Apache WebServers

# The following blocks direct HTTP requests in this directory recursively

#

# For this to work, you must include the parameter 'Limit' to the AllowOverride configuration

#

# Example:

#

#<Directory "/usr/local/apache/htdocs">

# AllowOverride Limit

#

# 'All' with also work. (This configuration is in your apache/conf/httpd.conf file)

#

# This does not affect PHP include/require functions

#

# Example: http://server/catalog/includes/application_top.php will not work

 

<Files *.php>

Order Deny,Allow

Deny from all

</Files>

 

3. .htacess in folder Admin at root

 

# $Id: .htaccess 1739 2007-12-20 00:52:16Z hpdl $

#

# This is used with Apache WebServers

#

# For this to work, you must include the parameter 'Options' to

# the AllowOverride configuration

#

# Example:

#

# <Directory "/usr/local/apache/htdocs">

# AllowOverride Options

# </Directory>

#

# 'All' with also work. (This configuration is in the

# apache/conf/httpd.conf file)

 

# The following makes adjustments to the SSL protocol for Internet

# Explorer browsers

 

#<IfModule mod_setenvif.c>

# <IfDefine SSL>

# SetEnvIf User-Agent ".*MSIE.*" \

# nokeepalive ssl-unclean-shutdown \

# downgrade-1.0 force-response-1.0

# </IfDefine>

#</IfModule>

 

# If Search Engine Friendly URLs do not work, try enabling the

# following Apache configuration parameter

 

# AcceptPathInfo On

 

# Fix certain PHP values

# (commented out by default to prevent errors occuring on certain

# servers)

 

# php_value session.use_trans_sid 0

# php_value register_globals 1

 

4. .htacess in admin/includes/.htacess

 

# $Id: .htaccess 1775 2008-01-09 19:26:55Z hpdl $

#

# This is used with Apache WebServers

# The following blocks direct HTTP requests in this directory recursively

#

# For this to work, you must include the parameter 'Limit' to the AllowOverride configuration

#

# Example:

#

#<Directory "/usr/local/apache/htdocs">

# AllowOverride Limit

#

# 'All' with also work. (This configuration is in your apache/conf/httpd.conf file)

#

# This does not affect PHP include/require functions

#

# Example: http://server/catalog/admin/includes/application_top.php will not work

 

<Files *.php>

Order Deny,Allow

Deny from all

</Files>

 

 

 

Please help me out..

Posted

Hi again,

 

I am test by delete this follow file..and it seem that it is working back ???

 

1. I went to Admin, and turn off the SEO URL function

2. I delete .htaccess in the main root

3. I delte .htaccess in .../includes/

4. I delete .htaccess in .../pub/

5. I delete . htacess in .../admin/includes

6. I have not delete .htacess in .../admin/

 

with this the problem that keep direct to login.php is gone, I can browse all the link and all the page with no problem of eing direct to login.php

 

So what next If I want to use the SEO URL function ?? I am not thinking that It is because of .htaccess ??? but which one in the folder ??? and how to fix it ??

 

By the way for the Virus in Admin, how I can clean those ??? asking the web hosting to clean the virus ??

 

Please kindly let me know

thank you

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...