Jump to content

dragondust

Members
  • Content count

    6
  • Joined

  • Last visited

Posts posted by dragondust


  1. Hi Burt

     

    Thank you for your help in enabling me to finish this.

     

    $row = 0;
       while ($index_fp = tep_db_fetch_array($index_fp_query)) {
               echo  '<li><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $index_fp['products_id']) . '">' . $index_fp['index_fp_title'] . ': Just ' . ($currencies->display_price($index_fp['products_price'], tep_get_tax_rate($index_fp['products_tax_class_id']))) . '</a></li>' . "\n";;
       }
    

     

    This is the final code. I'm just doing a couple of other modes on the site. So once I've finished. I shall make it available.

     

    Regards. Dragondust.


  2. Hi All

     

    I'm just playing with a feature I've found on the web which enables a BBC news type scrolling text.

     

    See it in action dragondust beta site

     

    I'm having some problems with it at the mo though.

     

    here some code I've borrowed from the new_products.php file to get it self populating.

     

      
     $row = 0;
     $col = 0;
    [color="#FFFF00"]//  $info_box_contents = array()  ;[/color]
     while ($new_products = tep_db_fetch_array($new_products_query)) {
       $scrollingtext[$row][$col] = array('text' => '<li><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['index_fp_title'] . ': Just ' . ($currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id']))) . '</a></li>');
    
       $col ++;
    [color="#FFFF00"]//    if ($col > 2) {
    //     $col = 0;
    //      $row ++;
    //   }[/color]
     }
    
     new contentBox($info_box_contents);
    
    

     

     

     

    The problem I seem to have is the removal of the tables in this file.

     

    At the moment the code reads

     

    <ul id="news">
    <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="4" class="infoBoxContents">
     <tr>
       <td><li><a href="http://www.rjavtest.com/lethal-weapon.html">Action Comedy: Lethal Weapon: Just £34.99</a></li></td>
       <td><li><a href="http://www.rjavtest.com/courage-under-fire.html">Drama: Courage Under Fire: Just £29.99</a></li></td>
       <td><li><a href="http://www.rjavtest.com/frantic.html">Thriller: Frantic: Just £35.00</a></li></td>
       <td><li><a href="http://www.rjavtest.com/fire-down-below.html">Action: Fire Down Below: Just £29.99</a></li></td>
       <td><li><a href="http://www.rjavtest.com/hewlett-packard-laserjet-1100xi.html">Printer: HP LaserJet 1100: Just £499.99</a></li></td>
       <td><li><a href="http://www.rjavtest.com/beloved.html">Beloved: Just £54.99</a></li></td>
       <td><li><a href="http://www.rjavtest.com/die-hard-with-a-vengeance.html">Action: Die Hard With A Vengeance: Just £39.99</a></li></td>
       <td><li><a href="http://www.rjavtest.com/blade-runner-director-s-cut.html">Science Fiction: Blade Runner: Just £30.00</a></li></td>
       <td><li><a href="http://www.rjavtest.com/a-bug-s-life.html">Animation: A Bug's Life: Just £35.99</a></li></td>
     </tr>
    </table>
    </td>
     </tr>
    </table>
    </ul>
    

     

    Yet it would be better reading.

     

    <ul id="news">
       <li><a href="http://www.rjavtest.com/lethal-weapon.html">Action Comedy: Lethal Weapon: Just £34.99</a></li>
       <li><a href="http://www.rjavtest.com/courage-under-fire.html">Drama: Courage Under Fire: Just £29.99</a></li>
       <li><a href="http://www.rjavtest.com/frantic.html">Thriller: Frantic: Just £35.00</a></li>
       <li><a href="http://www.rjavtest.com/fire-down-below.html">Action: Fire Down Below: Just £29.99</a></li>
       <li><a href="http://www.rjavtest.com/hewlett-packard-laserjet-1100xi.html">Printer: HP LaserJet 1100: Just £499.99</a></li>
       <li><a href="http://www.rjavtest.com/beloved.html">Beloved: Just £54.99</a></li>
       <li><a href="http://www.rjavtest.com/die-hard-with-a-vengeance.html">Action: Die Hard With A Vengeance: Just £39.99</a></li>
       <li><a href="http://www.rjavtest.com/blade-runner-director-s-cut.html">Science Fiction: Blade Runner: Just £30.00</a></li>
       <li><a href="http://www.rjavtest.com/a-bug-s-life.html">Animation: A Bug's Life: Just £35.99</a></li>
    </ul>

     

    Has anybody got an ideal on how to remove the tables whilst keeping the new_products.php self populating.

     

    Regards. Dragondust.


  3. Hi

     

    I've just found that my site was hacked over the weekend, So I installed the contribution, sitemoitor. When running the Manually Check for Hacked Files it includes two files from this contribution. Now I'm no expert, but I know many of you out there are. The files are

     

    includes/checkout/one page checkout/paypal_standard.php

    includes/modules/payment/paypal_standard.php

     

    I feel the hack has been caused by the host company as I'm able to sftp-download my configure.php file even though my page is set to 400 (read only). Just glade it's a test domain.

     

    But just in case are these's just normal files or is it something else to worry about? It does say in the Sitemonitor contribution that some files are needed.

     

    Regards. Dragondust

     

     

    Hi

     

    download what ever version of OPC you are using and replace them 2 files 2 be safe

     

    Steve

     

    Cheers Steve. Seems to be sorted now. I've seen that a few mods have been carried out on the 1.09. Was running 1.08, So that's cool.

     

    For people who have not seen it in action, you can see a basic verison with the extra delivery option removed as I don't require it. Be aware this is a beta site with quite a few mods, so if you see the warning signs. I't means I'm playing around.

     

    dragondust beta site

     

    Regards, Dragondust.


  4. Hi

     

    I've just found that my site was hacked over the weekend, So I installed the contribution, sitemoitor. When running the Manually Check for Hacked Files it includes two files from this contribution. Now I'm no expert, but I know many of you out there are. The files are

     

    includes/checkout/one page checkout/paypal_standard.php

    includes/modules/payment/paypal_standard.php

     

    I feel the hack has been caused by the host company as I'm able to sftp-download my configure.php file even though my page is set to 400 (read only). Just glade it's a test domain.

     

    But just in case are these's just normal files or is it something else to worry about? It does say in the Sitemonitor contribution that some files are needed.

     

    Regards. Dragondust

×