Jump to content

sfoust

Members
  • Content count

    62
  • Joined

  • Last visited

1 Follower

About sfoust

  • Birthday 11/17/1964

Profile Information

  1. sfoust

    NEW - Tab Page Unlimited v1.0

    Qwiz, sorry for not getting back to you. I am not getting email alerts when messages are posted in this topic any more. Any how, to respond to your problem, you can't simply point the Tab system at most OSC php files and expect it to work. Most have many references to other parts of OSC that have already been called when the Tab page started up. To use your example of conditions.php, all the header and footer stuff needs to be removed. All you want is the code that strickly deals with the conditions.php tasks. I created a new file that I called conditions2.php with all necessary edits. Here it is: <?php /* $Id: conditions.php,v 1.22 2003/06/05 23:26:22 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS); ?> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_INFORMATION; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //--> Basicly remove everthing above <!-- body_text //--> and below <!-- body_text_eof //-->. And in the case of this example, you need to keep, require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS); so that it can load it's language spicific defines. Hope this helps.
  2. No, if you want the info to display in both Tab Pages and Info Pages, you need to enter it twice. They are not connected.
  3. azer, Yes, if you deactivate (or delete) all the pages from 'Tab Pages Unlimited', no tab's will be displayed. It will appear as thought the contribution was never installed. 'Tab Pages Unlimited' and 'Information Pages Unlimited' are two totally separate contributions. What you do with one will not effect the other. Scott.
  4. azer, If by 'pages unlimted' you are refering to 'Information Pages Unlimited' then 'Tab Pages Unlimited' and 'Information Pages Unlimited' are basicly the same contribution. I reworked Information Pages Unlimted so that it would work from a tab menu type system rather than from a column box. I have both installed on my test site: http://www.sfoust.net/catalog/ Tab Pages Unlimted is... well... the tab bar at the top and Information Pages Unlimited is the column box in the lower left corner labeled 'Information'. You may notice that the 'Classes' tab has links to several internal pages. This is showing unfinished code that allows links to disabled pages. I'll post it as an update when it is ready. Here is a screen shot of Tab Page's edit screen in admin with the optional WYSIWYG system in stalled.
  5. sfoust

    NEW - Tab Page Unlimited v1.0

    noppie, Humm, it WAS working but now it's not. That forces me to ask "What did you change ?!" :? This error means that the tab_html_output.php file is being 'required' twice some how. You could solve the problem by replacing the contents of that file with this code: <?php /* Module: Tab Pages Unlimited File date: 2003/03/02 Based on the FAQ script of adgrafics Adjusted by Joeri Stegeman (joeri210 at yahoo.com), The Netherlands osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Released under the GNU General Public License */ // Output a function button in the selected language if (!function_exists(tep_tab_image_button)){ function tep_tab_image_button($image, $alt = '', $params = '') { global $language; return tep_image(DIR_WS_LANGUAGES . $language . '/images/' . $image, $alt, '', '', $params); } } ?> But that is really fixing the symptom and not the cause. So if you changed something (and I know you did ;) ) then it would be best to find out where tab_html_output.php is being 'required' a second time. Maybe you pasted two of those lines into application_top.php. Scott.
  6. sfoust

    NEW - Tab Page Unlimited v1.0

    Salvo: (and anyone else interested in multi languages) I think I figured out now multi languages are supported to work for Information Pages Unlimited (and there for Tab Pages Unlimited). From the very first admin page (the blue box screen) you will see a language pull-down in the upper right corner. Choose the language there first, before you continue on to Tab Manager. Let me know if this actually works for you (I didn't install the other language support files so I get an error). Scott.
  7. sfoust

    NEW - Tab Page Unlimited v1.0

    Salvo: The internal workings are still 'Information Pages Unlimited 1.1e'. I have seen that there is allot of infrastructure in the code for multi languages. When testing with the default site I notice that the tab system disappears when ever I change to one of the other languages (presumably because I haven't created a set of pages for that language). But, I really don't know how to switch languages on the admin side. You could try asking on this thread: http://forums.oscommerce.com/viewtopic.php?t=46434 Any info you get from that thread should work for Tab Pages.
  8. sfoust

    NEW - Tab Page Unlimited v1.0

    azer: If you use the standard version, no, not specifically. Changing the defaults would effect the text color I'm sure, but I haven't investigated it. If you use the WYSIWYG version, yes. There is a pull down in the editor that allows you to choose setting from the CSS (boxText, errorBox, stockWarnings, infoBox, infoBoxContents, etc.). I don't know if adding a new type to CSS is automatically added to the list or if it is something you need to add by hand. I haven't gotten that far in the development of my site.
  9. sfoust

    NEW - Tab Page Unlimited v1.0

    I just posted a version of Tab Pages Unlimited http://www.oscommerce.com/community/contributions,1448 that includes support for WYSIWYG. http://www.oscommerce.com/community/contributions,1347 The support files are not mine. They were created by MaxiDVD for use with the Information Pages Unlimted contribution.
  10. sfoust

    NEW - Tab Page Unlimited v1.0

    I dont use (or know about) the Copermine code you are refering to. However, I just put togeather a little hack that may (or may not) work for you. In the tab.php file, find: <?php echo $TAB_DESCRIPTION; ?> and replace it with: <?php if ( strlen($TAB_DESCRIPTION) - strpos($TAB_DESCRIPTION, '.php') == 4 ) require( $TAB_DESCRIPTION ); else echo $TAB_DESCRIPTION; ?> With this code in place, the tab system check to see if the last four characters of the discription is '.php'. If it is then the tab system will assume that it is a php file name and perform a require on it (try to load and execute that php file). Things to note: 1) if the file is found in the catalog folder, you wont need to enter a path. 2) if you do need a path, and the path is within the catalog path, dont use a leading slash (use gallery/index.php not /gallery/index.php). 3) no trailing white space or carage returns. 4) if you are using the WYSIWYG version, check the HTML and make sure it didn't automatily turn it in to a link. Hope this works for you.
  11. Yes, I need a hierarchy of pages also. The idea is to hack 'Information Pages Unlimted' again. That contribution allows pages to be disabled. I plan to add a feature that allows linking to these disabled pages (they wont show up in the menu but they could be jumped to from a link). No promises, but I hope to start on it next week.
  12. Check the bottom of 'application_top.php' to make sure there isn't any stray white space (spaces or returns) after the '?>' As for the SQL error, that is where I have give'n up for the time being. If I really need it, I'll get back to it. But I may just create my own by hacking 'Information Pages Unlimited'. I've already hacked that one to create 'Tab Page Unlimed'. Scott.
  13. Do a search for 'tep_get_local_path'. I found where someone posted code for it and 'tep_get_local_file'. I got that far but ran into an SQL problem on the catalog side after that and haven't got back to it.
  14. I was getting the SQL error also. I found if you are NOT installing the contribution by hand (i.e., using a tool like Beyond Compare), you'll run into a small syntax discrepancy between the install.txt instructions and the included index.php file. Follow the install.txt instructions (below), rather then using a compare tool, to properly install the contribution's sql code into the index.php file. Find: case 'PRODUCT_LIST_NAME': $select_column_list .= 'pd.products_name, '; break; Below add: // Products Description Hack begins case 'PRODUCT_LIST_DESCRIPTION': $select_column_list .= 'pd.products_description, '; break; // Products Description Hack ends The included index.php file omits the ',' (comma) after 'pd.products_description'.
  15. sfoust

    Purchase Without Account

    I'm having the same problem with no. Right-click save-as wont even work.
×