Jump to content
Latest News: (loading..)

iankil

Members
  • Content count

    118
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    iankil got a reaction from lei_tx in AJAX Attribute Manager support   
    Hello,
    Open your admin/attributeManager/includes/attributeManagerGeneralFunctions.inc.php file and scroll down to row 38
     
    Change this:

    $attributeManager =& new attributeManagerAtomic(amGetSesssionVariable(AM_SESSION_VAR_NAME));
    to this:

    $attributeManager = new attributeManagerAtomic(amGetSesssionVariable(AM_SESSION_VAR_NAME));
     
    And
     

    $attributeManager =& new attributeManagerInstant($_GET['products_id']);
     
    To
     

    $attributeManager = new attributeManagerInstant($_GET['products_id']);
     
    Its the =& operator that that needs to be just =
    For some reason this operator is not supported anymore, and what the heck is it?
    i know that = & is a assignment by reference but when they are stuck togeteher i dont know... Please some one explain
     
    /Janne
  2. Like
    iankil got a reaction from kareem1987 in 10 free templates   
    Hello all
    The sun is shining and all is good
    But, its not easy to give away free templates over at the contribution page... everytime i do they are removed? I have about 10 free themes that is totaly free, no encoded files or nothing. The only thing i would like is my link in the footer, but maby that is to much to ask for... And yes i run a company but i cant shut it down to give away free stuff, dosnt make any sense.
     
    What am i doing wrong? I really like osCommerce and giving away stuff makes me happy ;)
     
    /Janne
  3. Like
    iankil got a reaction from danward in [Contribution] Mindsparx admin   
    Hello!
     
    When you install a new contribution and it needs a new box in the old column left it means that you need to create a complete new dropdown for it, there is a great guide written by Richard Cranium in the contribution page on how to do this, but I can explain quickly on what you need to do.
     
    If there is a new box in the admin/boxes/ folder that needs to go in to your store you need to strip down the <td><tr> tags and comment out some code and then add some, like the example below, (before and after), it looks difficult, but its pretty simple ones you know how to do this.
     
     
    Before:
     

    <!-- reports //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_BOXES, 'link' => tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('selected_box')) . 'selected_box=infobox')); if ($selected_box == 'infobox') { $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_INFOBOX_CONFIGURATION, 'gID=1', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADING_BOXES . '</a>'); } $box = new box; echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- reports_eof //-->
     
     
     
     
     
     
    After:

    <!-- reports //--> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_BOXES, 'link' => tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('selected_box')) . 'selected_box=infobox')); // if ($selected_box == 'infobox') { // Add your links here start $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_INFOBOX_CONFIGURATION, 'gID=1', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADING_BOXES . '</a>'); // } // Add your old links here end // $box = new box; // echo $box->menuBox($heading, $contents); foreach($contents as $value) { echo $value['text']; } ?> <!-- reports_eof //-->
     
     
    I have that contribution installed , but i didnt create a new drop for it, i just placed a link to it in my admin/boxes/tools.php file
     
    '<a href="' . tep_href_link(FILENAME_INFOBOX_CONFIGURATION, 'gID=1', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADING_BOXES . '</a>'.
     
    And it looks like this:

     
    Good luck
    Janne.K
×