Unstoppable Domains โ€” Expired Auctions

Looking for help with OS Script

Spaceship Spaceship
Watch

JayA

Established Member
Impact
13
Hi,

I'm trying to install the "all specials" info box code in which I just downloaded from the contributions section on the OS site.

So far I tossed in the all_specials php file into the boxes dir, now I'm trying to edit the right coloumn php properly, to call this new code.

Does this look correct to you, because the right column shows an error and nothing will show..

<?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 ยฉ 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');
}
include(DIR_WS_BOXES . 'all_specials.php');

}

?>



thanks
http://www.oscommerce.com/community/contributions,1632/category,11/search,specials

there's the link to the feature I am trying to get to work.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
I see this right before the closing tag:

}

But dont see an opening one. What error are you getting? Can you post the URL to the page?
 
Last edited:
0
•••
Sure

www.tunerguys.com/shop

"Parse error: parse error, unexpected '}' in /home/rivalry/public_html/tunerguys/shop/includes/column_right.php on line 20
"
 
0
•••
Yea, the "unexpected '}'" means that it is not expecting that to be there. Assuming you want that include file to show up all the times, use this code:

PHP:
<?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 ยฉ 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');
}

include(DIR_WS_BOXES . 'all_specials.php');

?>
 
0
•••
Unfortunately that still doesn't work, I'm getting the same error :(
 
0
•••
Are you sure you fixed it? make sure you copied the code gamex posted EXACTLY because i don't see any other problems with it. Also, it may have to do with "home/rivalry/public_html/tunerguys/shop/includes/column_right.php" because that's where the error is coming from...
 
0
•••
Yes I copied it exactly, and "home/rivalry/public_html/tunerguys/shop/includes/column_right.php"

that is the file being edited here.
 
0
•••
Can you please post the source of column_right.php. There is another error in that file as well.
 
0
•••
gamex said:
Can you please post the source of column_right.php. There is another error in that file as well.


Appears as if he got it fixed.

iNod.
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back