Jump to content

GLWalker

♥Ambassador
  • Content count

    842
  • Joined

  • Last visited

  • Days Won

    37

Posts posted by GLWalker


  1. Hi folks,

    I am thinking about adding music to my store, but i don't know how to do...

     

    I suceeded to embed it into the header using flash, but the problem is that the song starts whenever i refresh the page.. or browse towards another.. that's not good. I would like it to keep streaming while browsing the website..

    Thanks in advance.

    You should really think that out.Its a good way to loose customers. I close any webpage when ever I hear anything. And I know that multitudes of other people do as well.


  2. Hello all, im needing a drop down box on the product page, so the client can choose which color item they want. Im not sure which contributions or what not that would be.....

    Can some one please help.....lol

    Thats already a built in feature. Heres some info that can be found on this site:

    http://www.oscommerce.info/docs/english/e_...attributes.html

    the screenshot will look different, but you should get the hang of it. Look at that whole section of this site and get to know your store.


  3. New code for use with Article_Manager

     

    Simply add this to catalog/dynamic_sitemap.php where ever you want it to appear.

     

     

    <?php

    //ARTICLE MANAGER START

    echo '<ul class="sitemap">';

    echo '<li><a href="' . tep_href_link(FILENAME_ARTICLES, '',

     

    'NONSSL') . '">' . BOX_ALL_ARTICLES . '</a></li>' . "";

    $topics_query = tep_db_query("select t.topics_id, td.topics_name, t.parent_id from " .

     

    TABLE_TOPICS . " t, " . TABLE_TOPICS_DESCRIPTION . " td where t.parent_id = '" . (int)

     

    $topic_links[$i] . "' and t.topics_id = td.topics_id and td.language_id = '" . (int)

     

    $languages_id . "' order by sort_order, td.topics_name");

    if (tep_db_num_rows($topics_query) > 0) {

    $row = 0;

    while ($topics = tep_db_fetch_array($topics_query)) {

    $row++;

    echo '<li><a href="' . tep_href_link(FILENAME_ARTICLES, 'topics_id=' . $topics

     

    ['topics_id']) . '">' . $topics['topics_name'] . '</a></li>' . "";

    }

    }

    echo '</ul>';

    //ARTICLE MANAGER END

    ?>

    That was the wrong freaking code! Sorry guys. Heres the working code. Just replace that with this:

    <?php
    		 //ARTICLE MANAGER START
    		 echo '<ul class="sitemap">';
    		 echo '<li><a href="' . tep_href_link(FILENAME_ARTICLES, '', 'NONSSL') . '">' . BOX_ALL_ARTICLES . '</a></li>' . "";			
    $topics_query = tep_db_query("select t.topics_id, td.topics_name, t.parent_id from " . TABLE_TOPICS . " t, " . TABLE_TOPICS_DESCRIPTION . " td where t.parent_id = '" . (int)$topic_links[$i] . "' and t.topics_id = td.topics_id and td.language_id = '" . (int)$languages_id . "' order by sort_order, td.topics_name");
    if (tep_db_num_rows($topics_query) > 0) {
    $row = 0;
    while ($topics = tep_db_fetch_array($topics_query)) {
    $row++;
    echo '<li><a href="' . tep_href_link(FILENAME_ARTICLES, 'tPath=' . $topics['topics_id']) . '">' . $topics['topics_name'] . '</a></li>' . "";
    }
    }
    echo '</ul>';
    //ARTICLE MANAGER END
    ?>


  4. Is anyone else having issues with "the For those using dynamic_sitemap" add on (12 Sep 2007). It seams to be generating the wrong URL for article topics in my sitemap. For example the correct URL for topic 5 should be:

     

    /articles.php?tPath=5

     

    But this is the link thats being generated in the sitemap:

     

    articles.php?topics_id=5

     

    i.e "topics_id" instead of "tPath". Below is the code I added to the sitemap.php to included links to my articles topics, can you see the issue?:

    <?php
    //ARTICLE MANAGER START
    echo '<ul class="sitemap">';
    echo '<li><a href="' . tep_href_link(FILENAME_ARTICLES, '', 
    
    'NONSSL') . '">' . BOX_ALL_ARTICLES . '</a></li>' . ""; 
    $topics_query = tep_db_query("select t.topics_id, td.topics_name, t.parent_id from " . 
    
    TABLE_TOPICS . " t, " . TABLE_TOPICS_DESCRIPTION . " td where t.parent_id = '" . (int)
    
    $topic_links[$i] . "' and t.topics_id = td.topics_id and td.language_id = '" . (int)
    
    $languages_id . "' order by sort_order, td.topics_name");
    if (tep_db_num_rows($topics_query) > 0) {
    $row = 0;
    while ($topics = tep_db_fetch_array($topics_query)) {
    $row++;
    echo '<li><a href="' . tep_href_link(FILENAME_ARTICLES, 'topics_id=' . $topics
    
    ['topics_id']) . '">' . $topics['topics_name'] . '</a></li>' . "";
    }
    }
    echo '</ul>';
    //ARTICLE MANAGER END
    ?>

    My Bad Looks like I fudged that. I should have got this up sooner.

    heres the correct code:

    <?php
    		 //ARTICLE MANAGER START
    		 echo '<ul class="sitemap">';
    		 echo '<li><a href="' . tep_href_link(FILENAME_ARTICLES, '', 'NONSSL') . '">' . BOX_ALL_ARTICLES . '</a></li>' . "";			
    $topics_query = tep_db_query("select t.topics_id, td.topics_name, t.parent_id from " . TABLE_TOPICS . " t, " . TABLE_TOPICS_DESCRIPTION . " td where t.parent_id = '" . (int)$topic_links[$i] . "' and t.topics_id = td.topics_id and td.language_id = '" . (int)$languages_id . "' order by sort_order, td.topics_name");
    if (tep_db_num_rows($topics_query) > 0) {
    $row = 0;
    while ($topics = tep_db_fetch_array($topics_query)) {
    $row++;
    echo '<li><a href="' . tep_href_link(FILENAME_ARTICLES, 'tPath=' . $topics['topics_id']) . '">' . $topics['topics_name'] . '</a></li>' . "";
    }
    }
    echo '</ul>';
    //ARTICLE MANAGER END
    ?>


  5. Get a friend to help and add them in 2 at a time, get two friends to help and add them in 3 at a time.

     

    But seriously, if youve only got 100 products, easy populate isnt worth the time. I could manually add 100 products with descriptions and several images quicker than getting the file ready for easy populate.


  6. Two question:

     

    a) I don't want the right column so how can I remove it.

     

    in *most* your .php files directly under the catalog/ directory find this and remove it

    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
    <!-- right_navigation //-->
    <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
    <!-- right_navigation_eof //-->
    </table></td>

     

    b} The Shopping Cart box is in that column so I need to move it to the left column first but how do I do that??

     

    Look in catalog/includes/column_right.php Find and move where ever you want it into the catalog/includes/column_left.php

    require(DIR_WS_BOXES . 'shopping_cart.php');

     

    I am using the latest Basic design pack with the grey skin.

     

    You should use the yellow and pink one. :thumbsup:

     

    Please help


  7. Hi,

     

    I know that the code is not perfect but this was only fast mod to fit original ASN Forum for osc needs.

    Recently I've worked a little bit on the script and made some improvements:

    + added forum categories

    + clean up of admin scripts (replacement of the mysql_fetch_row - use of this function isn't comfortable >_< )

    + some register_globals fixes (now it should work with registers_globals off)

    + ultimate seo integration

    To do:

    + there are plenty places wher sql queries should be reduced

    + admin for forum categories

     

    I'll relase new version very soon... Stay tuned

     

     

    Great News. I had recently rearranged the code that looks in the database in the catalog files, and changed all the style definitions to use standard osc stylesheet. But then somehow it hit my delete folder and is now gone.

    I'll will wait for your next version and then redo the styles to match.

    Excellent work so far.


  8. I have tried to remove mail but does not work either by removing the function

    function check_email($email) {

    if(!ereg("([[:alnum:]\.\-]+)(\@[[:alnum:]\.\-]+\.+)", $email)) {

    error("Invalid email address!");

    }

    }

     

    in catalog/includes/asnf_lib.php

     

    I am going crazy please help :'( :'(

     

    I havent been able to look into it yet, but you would have to remove the code calling to the function in the asnf_viewtopic.php, asnf_index.php, asnf_newtopic.php. Otherwise it will just look for the function.


  9. Hello :'( wanted to ask something about this forum because if not written anything in the mail gives me the sieguiente error:

     

    Fatal error: Call to a member function on a non-object in C: \ Program Files \ Apache Group \ Apache2 \ htdocs \ jos \ includes \ header.php on line 51

     

    Greetings and good contribution this :-)

     

     

    That seems to happen when you try to add a reply or post without putting in your email.


  10. I also installed asnf_v7 which includes a search engine, but it does have a problem if a user has loaded the shopping cart and then direje forum and use the search button loses section was empty cart and but when I use the arrow back Browser retrieves the cart ...

    Not that happens maybe this evil the links or not if they can give me an idea ... Very useful to have a search in the forum but if we can not solve what losing sections I am with the previous version the only problem is that it gives me the error mistake to explain above ...

     

     

    I just checked on mine, and did not have a problem with loosing the cart. I added product to the cart, then went to the forum, did a forum search, went to the search results, then even did a new search from the results page. The cart never lost its content. What do you have your admin/configuration/sessions set as? I keep everything false except for prevent spider sessions.


  11. A few things Ive done that may help others out.

    Disable having to login to the forum admin when your already in your admin:

    Open admin/asnf_admin.php

    find and comment out on line 28:

    require_once("asnf_auth.php");

    You can then delete asnf_auth.php

    Thats it!

    In your catalog files find all instances of asnf_header.php and asnf_footer.php,

    Comment them out and then delete the asnf_header.php and asnf_footer.php files.

     

    Thats it for now. More to come..........


  12. ASN Forum for osCommerce is so far the best "simple" forum addon I have found. Many thanks to the MasterGiGi and all others who have worked on this mod . Hopefully we can advance this script little by little, as it looks to be a very promising piece of code. As time permits I shall be cleaning it up to better match osC code and style.

    My first step has been to create a customer moderator addon.

    The contribution may be found here:

    http://addons.oscommerce.com/info/4832


  13. now I got a problem login in my admin:

    Fatal error: Cannot redeclare tep_validate_password() (previously declared in /home/content//html/catalog/admin/includes/functions/password_funcs.php:16) in /home/content/html/catalog/admin/includes/functions/password_funcs.php on line 16

     

    now do I fix this problem?

     

    When installing on MS2.2RC1 look in admin/login.php

    find:

    require('includes/functions/password_funcs.php');

    and comment it out as it has been added to application top with the install of this contribution.

    If using an earlier version of osCommerce check the admin/index.php, or do an admin folder search, for the same line.


  14. Sorry if this has been addressed, but I recently installed this module and it's great!

     

    When a person is creating an account there was an error that line 462 had an extra } which I had to delete. Just wanted to see if anyone else had that problem.

     

     

    What file did you have the error in and what version of sCommerce? Ms2.2 orMs2.2 RC1?

    I was installing on MS2.2RC1 and needed to add a } in catalog\create_account.php after the block of code refered to in step 3-e of the latest install file.


  15. Hi,

     

    I'm having a problem similar to a lot of others here. I've looked all over and can't find a difinitive answer. Can someone PLEASE tell me how to correct this error? I've been searching for days.! Thanx, George

    Warning: mysql_insert_id(): supplied argument is not a valid MySQL-Link resource in xxxxxxxxxxxxxxxxx/catalog/admin/includes/functions/database.php on line 117

     

    1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' '', 0, 0, '1')' at line 1

     

    insert into phesis_poll_data (pollid,optiontext,optioncount,voteid, language_id) values (, '', 0, 0, '1')

     

    [TEP STOP]

    I had the same error.

    Open admin/polls.php on line 53 find: $pollid=tep_db_insert_id($poll_query);

    change to : $pollid = tep_db_insert_id();

     

    Worked for me.


  16. New code for use with Article_Manager

     

    Simply add this to catalog/dynamic_sitemap.php where ever you want it to appear.

     

     

     

     

     

     

    <?php

    //ARTICLE MANAGER START

    echo '<ul class="sitemap">';

    echo '<li><a href="' . tep_href_link(FILENAME_ARTICLES, '',

     

    'NONSSL') . '">' . BOX_ALL_ARTICLES . '</a></li>' . "";

    $topics_query = tep_db_query("select t.topics_id, td.topics_name, t.parent_id from " .

     

    TABLE_TOPICS . " t, " . TABLE_TOPICS_DESCRIPTION . " td where t.parent_id = '" . (int)

     

    $topic_links[$i] . "' and t.topics_id = td.topics_id and td.language_id = '" . (int)

     

    $languages_id . "' order by sort_order, td.topics_name");

    if (tep_db_num_rows($topics_query) > 0) {

    $row = 0;

    while ($topics = tep_db_fetch_array($topics_query)) {

    $row++;

    echo '<li><a href="' . tep_href_link(FILENAME_ARTICLES, 'topics_id=' . $topics

     

    ['topics_id']) . '">' . $topics['topics_name'] . '</a></li>' . "";

    }

    }

    echo '</ul>';

    //ARTICLE MANAGER END

    ?>


  17. New code for use with dynamic_sitemap.php

     

    Simply add this to catalog/dynamic_sitemap.php where ever you want it to appear.

     

     

    <?php

    //ARTICLE MANAGER START

    echo '<ul class="sitemap">';

    echo '<li><a href="' . tep_href_link(FILENAME_ARTICLES, '',

     

    'NONSSL') . '">' . BOX_ALL_ARTICLES . '</a></li>' . "";

    $topics_query = tep_db_query("select t.topics_id, td.topics_name, t.parent_id from " .

     

    TABLE_TOPICS . " t, " . TABLE_TOPICS_DESCRIPTION . " td where t.parent_id = '" . (int)

     

    $topic_links[$i] . "' and t.topics_id = td.topics_id and td.language_id = '" . (int)

     

    $languages_id . "' order by sort_order, td.topics_name");

    if (tep_db_num_rows($topics_query) > 0) {

    $row = 0;

    while ($topics = tep_db_fetch_array($topics_query)) {

    $row++;

    echo '<li><a href="' . tep_href_link(FILENAME_ARTICLES, 'topics_id=' . $topics

     

    ['topics_id']) . '">' . $topics['topics_name'] . '</a></li>' . "";

    }

    }

    echo '</ul>';

    //ARTICLE MANAGER END

    ?>


  18. Find in the v2.6 validation_png.php around line 72:
    if (ANTI_ROBOT_IMAGE_USE_TTF=='true') {

     

    Add after:

    putenv('GDFONTPATH=' . DIR_FS_CATALOG . 'images/fonts/');

     

    And then upload your fonts to catalog/images/fonts/ folder.

     

    In the admin settings, you need to put in the font filename with extension. e.g. arial.ttf (case sensitive).

     

     

    Excellent. Thanks for all your help here.

    For those that are using imagemagic just point the code to your existing fonts folder:

    putenv('GDFONTPATH=' . DIR_FS_CATALOG . 'includes/imagemagic/fonts/');

     

    Works like a champ.


  19. I tried it, but I'm getting this error where the spinner should be:

     

    Warning: main(includes/modules/Spinner.php): failed to open stream: No such file or directory in /home/rcepower/public_html/osCommerce1/catalog/index.php on line 313

     

    I made a typo

     

    define('FILENAME_SPINNER', 'Spinner.php'); // spinner Module

     

    should be:

     

    define('FILENAME_SPINNER', 'spinner.php'); // spinner Module

     

    with a small s letter.


  20. I feel terrible.

    We had an issue which caused us to restore our database, when i did so the cdynamic metas fields disappeared from my admin panel.

    I ran the meta tag SQL again and it was not accepted. Now my front page has SITE_DESC or whatever.

     

    Please help!

     

    Did you run the revised sql?

×