Jump to content

allru111

Members
  • Content count

    16
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    alex
  1. allru111

    [contribution] Simple Template System (sts)

    There is many questions about this contribution and problems, but not many answers. Maybe people who find this contribution usefull should make a donation for Brian's time here. Why don't you put up your paypal donation link man....
  2. allru111

    [contribution] Simple Template System (sts)

    As somebody allready mentioned in this thread website made with the help of STS becomes very slow. But I guess one has to choose btw oscommerce original plain look and sts's flexibility. I have no idea why it hapens, probably cause of the time it takes to parse php. Brian, what's your word on it? The question I want to ask people who tried both sts2 and sts3 is if the previous version is also this slow, maybe it's worth downgrading......
  3. allru111

    [contribution] Simple Template System (sts)

    I can't make work background tag in product_info.php.html Is there any solution to it?
  4. allru111

    [contribution] Simple Template System (sts)

    Hey guys, recently installed sts and trying to accomodate it to my needs. I changed boxes.php and each box file (categories.php, wats_new.php etc) in a way so that script puts a different top for each infobox depending on the type of the box. Here is what I have so far boxes.php (changes are in red) class infoBoxHeading extends tableBox { function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { $this->table_cellpadding = '0'; if ($box_head == small_side) { $box_head = tep_image(DIR_WS_IMAGES . 'infobox/leftBox_lbl_top.gif') ; } if ($box_head == 'small_mid') { $box_head = tep_image(DIR_WS_IMAGES . 'infobox/rightBox_lbl_top.gif') ; } else { $box_head = tep_image(DIR_WS_IMAGES . 'infobox/centBox_lbl_top.gif') ; } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="21" background="<?php echo $box_head; ?>" class="infoBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } and I put something like $box_head = small_side; in categories.php It doesn't work for some reason I would appreciate if somebody could point to my error
  5. Hey guys, recently installed sts and trying to accomodate it to my needs. I changed boxes.php and each box file (categories.php, wats_new.php etc) in a way so that script puts a different top for each infobox depending on the type of the box. Here is what I have so far boxes.php (changes are in red) class infoBoxHeading extends tableBox { function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { $this->table_cellpadding = '0'; if ($box_head == small_side) { $box_head = tep_image(DIR_WS_IMAGES . 'infobox/leftBox_lbl_top.gif') ; } if ($box_head == 'small_mid') { $box_head = tep_image(DIR_WS_IMAGES . 'infobox/rightBox_lbl_top.gif') ; } else { $box_head = tep_image(DIR_WS_IMAGES . 'infobox/centBox_lbl_top.gif') ; } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="21" background="<?php echo $box_head; ?>" class="infoBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } and I put something like $box_head = small_side; in categories.php It doesn't work for some reason I would appreciate if somebody could point to my error
  6. allru111

    Infobox Wrapper

    Joker can you post a link to a working example of this contribution. I want to have a look at it before trying. thanks
  7. allru111

    Newsletter module v02

    After changing a lot of code I have a tiny problem - customers don't receive newsletter :( . When pushing "Send" button in the newsletter admin everything looks like the newsletter was sent but emails don't reach destination. Did anyone have the same problem or I did something wrong
  8. allru111

    Newsletter module v02

    I noticed that when when a customer wants to resubscribe after unsubscribing (i.e. his email address is allready in the newsletter table) his newsletter status doesn't change from 0 to 1. Here is what you gotta add to the code newsletters_subscribe.php line 29 after word set insert customers_newsletter = 1 ,
  9. allru111

    Newsletter module v02

    Spent 2 days editing code, then looked into the forums to find a lot of answers here. Here is something that might be usefull: in 'subscribers admin' menu to select the row by clicking on the row and not on the 'i' icon in newsletter_subscribers_view.php find line (477) echo ' <tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'hand\'" onmouseout="this.className=\'dataTableRow\'" onclick="document.location.href=\'' . tep_href_link(FILENAME_NEWSLETTERS_SUBSCRIBERS_VIEW, tep_get_all_get_params(array('cID')) . 'cID=' . $cInfo->subscribers_id) . '\'">' . "\n"; and change into <tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'hand\'" onmouseout="this.className=\'dataTableRow\'" onclick="document.location.href=\'' . tep_href_link(FILENAME_NEWSLETTERS_SUBSCRIBERS_VIEW, tep_get_all_get_params(array('cID')) . 'cID=' . $subscribers['subscribers_id']) . '\'">' . "\n"; Happy New Year Everybody
×