Jump to content

GLWalker

♥Ambassador
  • Content count

    842
  • Joined

  • Last visited

  • Days Won

    37

Posts posted by GLWalker


  1. @@Julien324

     

    The install files yu may have found in some contributions, do as you imply, they either create or modify database tables, making it a step or 2 shorter for the one installing.

     

    Depending what you have made, there are a few ways to go about it, you could create a mod that links into the oscTemplate class, and then create a module file for it. Again, depending what you made, it could hook into a template block and function, or simply hook to nothing, yet the module file controls adding or removing its functioanility where ever it may be.

     

    Other than that, carefully write out instructions of what to find, and what to replace with, and a set of sql commands to run. You may find it more work than you wish to deal with writing out documentation, and in that case, simply write a thorough description of what your modification will do, and include the editied files with notes to use a file comparision program for instlling + any sql commands.

     

    If anyone else finds good use for the contribution, they may addon/edit/modify it (including istructions) for the use of others.

     

    I hope that did not confuse you, but in time it "may" become clear.

     

    So what do you have in mind to release? Letting the community know my be the first step in the right direction.


  2. I have installed STS on a fresh installation of OSC 2.2 ...

     

    It is strongly advised to move away from the 2.2 platform, especially when doing a fresh instalation. 2.3.X is structured in such a way that STS is no longer needed for ease of theming.

     

    With the time you may very well spend working on STS and building out a theme you are satisfied with, the same could be accompished using the most up to date and secure version of osCommerce.

     

    Another factor to think of is any future addons or updates.


  3. This is probably the simplest way to do it:

     

    open index.php

    find:

    <h1><?php echo HEADING_TITLE; ?></h1>
    

    Under add:

    <?php
     if ($banner = tep_banner_exists('dynamic', 'cat_' . $cPath)) {
      echo tep_display_banner('static', $banner);
     }
    ?>
    

    Next find:

    <h1><?php echo $catname; ?></h1>
    

    And again, under add:

    <?php
     if ($banner = tep_banner_exists('dynamic', 'cat_' . $cPath)) {
      echo tep_display_banner('static', $banner);
     }
    ?>
    

     

    Now in the addmin banner manager, when adding your banner, asign a group name:

    cat_#

    If you have subcategories, then you'll need to create group names as:

    cat_#_#

     

    where # is replaced by the category id.


  4. I suppose Jesse was correct in his/her statement... SPPC is apparently the way to go..

     

    On a final note, thank you for all the time I wasted on this contrib when it could have been better spent trying someone else's contrib -at least I learned a little more about php!

     

    Are you a help VAMPIRE... Gee lets think... nah, just a victim of arrogance... :P

    Apparently you did not learn too much. You cant even figure out how to make a new field show up in the customers account? It doesn't matter if it's in the install instructions or not. You have several examples in the existing customers.php file, and, after going through the new files several times, you couldn't figure out what to code a new field as? Go ahead and install a huge contribution with your bad self then. Just make sure when you CANT do it, yougo blame it on the people that FREELY work hard creating the code for you to FREELY use. You truly are a victim, all arrogance aside, total ignorance abounding.


  5. Looking for an add on module to allow me to have the customer write what they want for custom imprinting on items like postcards, baby shower invitations, etc.

     

    Does this exist? What would allow me to do this?

    This contribution has the option to put in a text box or textfield, your customer can then fill it out and you will get the details in the admin orders page.

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


  6. If anyone besides me still uses newsdesk here is a simple code add on that will work automatically with newsdesk. It will use the newsdesk article and category name for meta title and keyword and logo text. It will use the newsdesk articles Summary as meta description, so you cannot use HTML in the summary, but give and take right? Its about as automatic as I could make it.

     

    Just place it in catalog/includes/header_tags.php above the line that reads : // ALL OTHER PAGES NOT DEFINED ABOVE

     

    //NEWSDESK_INDEX
    case (basename($PHP_SELF)==FILENAME_NEWSDESK_INDEX):
    $pageTags_query = tep_db_query("select * from " . TABLE_HEADERTAGS . " where page_name like '" . FILENAME_NEWSDESK_INDEX . "' and language_id = '" . (int)$languages_id . "'");
    $pageTags = tep_db_fetch_array($pageTags_query);
    
    $catStr = "select categories_name as htc_title_tag, categories_name as htc_desc_tag, categories_name as htc_keywords_tag from " . TABLE_NEWSDESK_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$current_category_id . "' and language_id = '" . (int)$languages_id . "'";
    
    
    $sortOrder['title'][0] = $pageTags['page_title']; 
    $sortOrder['description'][0] = $pageTags['page_description']; 
    $sortOrder['keywords'][0] = $pageTags['page_keywords']; 
    $sortOrder['logo'][0] = $pageTags['page_logo']; 
    $sortOrder = GetCategoryAndManufacturer($sortOrder, $pageTags, $defaultTags, $catStr);
    
    if ($pageTags['append_default_title'] && tep_not_null($tmpTags['def_title'])) $sortOrder['title'][$pageTags['sortorder_title']] = $tmpTags['def_title'];
    if ($pageTags['append_default_description'] && tep_not_null($tmpTags['def_desc'])) $sortOrder['description'][$pageTags['sortorder_description']] = $tmpTags['def_desc'];
    if ($pageTags['append_default_keywords'] && tep_not_null($tmpTags['def_keywords'])) $sortOrder['keywords'][$pageTags['sortorder_keywords']] = $tmpTags['def_keywords'];
    if ($pageTags['append_default_logo'] && tep_not_null($tmpTags['def_logo_text']))  $sortOrder['logo'][$pageTags['sortorder_logo']] = $tmpTags['def_logo_text'];
    
    FillHeaderTagsArray($header_tags_array, $sortOrder);  
    
    break;	
    
    // NEWSDESK_INDEX.PHP etc
     case (basename($PHP_SELF)==FILENAME_NEWSDESK_INFO):
     case (basename($PHP_SELF)==FILENAME_NEWSDESK_REVIEWS_ARTICLE):
     case (basename($PHP_SELF)==FILENAME_NEWSDESK_REVIEWS_WRITE):
    switch (true)
    {
     case (basename($PHP_SELF)==FILENAME_NEWSDESK_INFO):		  $filename = FILENAME_NEWSDESK_INFO;	break;
     case (basename($PHP_SELF)==FILENAME_NEWSDESK_REVIEWS_ARTICLE):	   $filename = FILENAME_NEWSDESK_REVIEWS_ARTICLE; break;
     //case (basename($PHP_SELF)==FILENAME_PRODUCT_REVIEWS_INFO):  $filename = FILENAME_PRODUCT_REVIEWS; break; 
     case (basename($PHP_SELF)==FILENAME_NEWSDESK_REVIEWS_WRITE): $filename = FILENAME_NEWSDESK_REVIEWS_WRITE;   break;
     default: $filename = FILENAME_NEWSDESK_INFO;
    } 
    
     $pageTags_query = tep_db_query("select * from " . TABLE_HEADERTAGS . " where page_name like '" . $filename . "' and language_id = '" . (int)$languages_id . "'");
    $pageTags = tep_db_fetch_array($pageTags_query);
    
    $the_newsdesk_info_query = tep_db_query("select p.newsdesk_id, pd.newsdesk_article_name, pd.newsdesk_article_shorttext from " . TABLE_NEWSDESK . " p left join " . TABLE_NEWSDESK_DESCRIPTION . " pd on p.newsdesk_id = pd.newsdesk_id where p.newsdesk_id = '" . (int)$_GET['newsdesk_id'] . "' and pd.language_id ='" .  $languages_id . "'");
    $the_newsdesk_info = tep_db_fetch_array($the_newsdesk_info_query);
    $header_tags_array['news_article'] = $the_newsdesk_info['newsdesk_article_name'];  //save for use on the logo
    $tmpTags['news_title'] = (tep_not_null($the_newsdesk_info['newsdesk_article_name'])) ? $the_newsdesk_info['newsdesk_article_name'] : '';
    $tmpTags['news_desc'] = (tep_not_null($the_newsdesk_info['newsdesk_article_shorttext'])) ? $the_newsdesk_info['newsdesk_article_shorttext'] : '';
    $tmpTags['news_keywords'] = (tep_not_null($the_newsdesk_info['newsdesk_article_name'])) ? $the_newsdesk_info['newsdesk_article_name'] : '';
    
    $catStr = "select c.categories_name as htc_title_tag from " . TABLE_NEWSDESK_CATEGORIES_DESCRIPTION . " c, " . TABLE_NEWSDESK_TO_CATEGORIES . " p2c where c.categories_id = p2c.categories_id and p2c.newsdesk_id = '" . (int)$the_newsdesk_info['newsdesk_id'] . "' and language_id = '" . (int)$languages_id . "'";
    
    
    
    $sortOrder['title'][0] = $pageTags['page_title'];
    $sortOrder['title'][10] = $tmpTags['news_title'];  //places it at the end of the list
    $sortOrder['description'][10] = $pageTags['page_description']; 
    $sortOrder['description'][0] = $tmpTags['news_desc'];
    $sortOrder['keywords'][0] = $tmpTags['news_keywords'];
    $sortOrder['keywords'][10] = $pageTags['page_keywords']; 
    $sortOrder['logo'][0] = $pageTags['page_logo']; 
    $sortOrder['logo'][10] = $tmpTags['news_title'];
    $sortOrder = GetCategoryAndManufacturer($sortOrder, $pageTags, $defaultTags, $catStr, true);
    
    if ($pageTags['append_default_title'] && tep_not_null($tmpTags['def_title'])) $sortOrder['title'][$pageTags['sortorder_title']] = $tmpTags['def_title'];
    if ($pageTags['append_default_description'] && tep_not_null($tmpTags['def_desc'])) $sortOrder['description'][$pageTags['sortorder_description']] = $tmpTags['def_desc'];
    if ($pageTags['append_default_keywords'] && tep_not_null($tmpTags['def_keywords'])) $sortOrder['keywords'][$pageTags['sortorder_keywords']] = $tmpTags['def_keywords'];
    if ($pageTags['append_default_logo'] && tep_not_null($tmpTags['def_logo_text']))  $sortOrder['logo'][$pageTags['sortorder_logo']] = $tmpTags['def_logo_text'];
    
    FillHeaderTagsArray($header_tags_array, $sortOrder);  
    
    break;


  7. If using information pages unlimited here is a simple code that will echo your page title in the pages title meta description and keywords. I would love to use the Information pages description as metadescription but cannot figure out how to strip html out of that description, so everything uses the title for now.

     

    Just place it in catalog/includes/header_tags.php above the line that reads : // ALL OTHER PAGES NOT DEFINED ABOVE

     

    // INFORMATION.PHP
     case (basename($PHP_SELF)==FILENAME_INFORMATION): 
    $pageTags_query = tep_db_query("select * from " . TABLE_HEADERTAGS . " where page_name like '" . FILENAME_INFORMATION . "' and language_id = '" . (int)$languages_id . "'");
    $pageTags = tep_db_fetch_array($pageTags_query);  
    $information_query = tep_db_query("select information_title, information_description FROM " . TABLE_INFORMATION . " WHERE visible='1' AND information_id='" . (int)$info_id . "' AND language_id = '" . (int)$languages_id . "'");
    
    $information = tep_db_fetch_array($information_query);
    $header_tags_array['information'] = $information['information_title'];  //save for use on the logo
    $tmpTags['information_title'] = (tep_not_null($information['information_title'])) ? $information['information_title'] : '';
    $tmpTags['information_description'] = (tep_not_null($information['information_title'])) ? $information['information_title'] : '';
    $tmpTags['information_keywords'] = (tep_not_null($information['information_title'])) ? $information['information_title'] : '';
    
    
    //$sortOrder['title'][0] = $pageTags['page_title'];
    $sortOrder['title'][0] = $tmpTags['information_title'];
    $sortOrder['description'][10] = $pageTags['page_description']; 
    $sortOrder['description'][0] = $tmpTags['information_description'];
    $sortOrder['keywords'][10] = $pageTags['page_keywords'];
    $sortOrder['keywords'][0] = $tmpTags['information_keywords']; 
    $sortOrder['logo'][0] = $pageTags['page_logo'];
    $sortOrder['logo'][10] = $tmpTags['information_title']; 
    
    if ($pageTags['append_default_title'] && tep_not_null($tmpTags['def_title'])) $sortOrder['title'][$pageTags['sortorder_title']] = $tmpTags['def_title'];
    if ($pageTags['append_default_description'] && tep_not_null($tmpTags['def_desc'])) $sortOrder['description'][$pageTags['sortorder_description']] = $tmpTags['def_desc'];
    if ($pageTags['append_default_keywords'] && tep_not_null($tmpTags['def_keywords'])) $sortOrder['keywords'][$pageTags['sortorder_keywords']] = $tmpTags['def_keywords'];
    if ($pageTags['append_default_logo'] && tep_not_null($tmpTags['def_logo_text']))  $sortOrder['logo'][$pageTags['sortorder_logo']] = $tmpTags['def_logo_text'];
    
    FillHeaderTagsArray($header_tags_array, $sortOrder);  
    
    break;


  8. what >??<

     

    plz give file plz me no serch

     

    EN low :((

    Dont know whattool tip is??

    ALT TEXT? Mouseover= ALT TEXT?

     

    What is your language?

    Try asking in your language, many from around the world post here.

    Maybe someone will understand.


  9. Hey Jack, I was wondering have you can across this little problem...on my index and product info pages in my store it only shows 6 of the social bookmark icons....is there a reason for this??? I have the social bookmark folder in my /images....but I uploaded the whole folder... I did not upload the images individually...could this be why?? although I dont see how it could be....

     

     

    Thanks in advance....

     

     

     

    Gloria

    For a few more tags you can open your header_tags_social_bookmarks.php and replace everything under line 5 with the following:

    <tr>
    <td><table border="0" align="right">
     <tr>
     <td><a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=<?php echo $URL . '&title=' . $TITLE; ?>">
     <img src="images/socialbookmark/google.png" alt="<?php echo 'Add ' . $NAME . ' to Google'; ?> " title="<?php echo 'Add ' . $NAME. ' to Google'; ?> " border="0"></a></td>
    
     <td><a rel="nofollow" target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url=<?php echo $URL . '&title=' . $TITLE; ?>">
     <img src="images/socialbookmark/live.png" alt="<?php echo 'Add ' . $NAME . ' to Windows Live'; ?> " title="<?php echo 'Add ' . $NAME. ' to Windows Live'; ?> " border="0"></a></td>
    
     <td><a rel="nofollow" target="_blank" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=<?php echo $TITLE . '&u=' . $URL; ?>">
     <img src="images/socialbookmark/yahoo.png" alt="<?php echo 'Add ' . $NAME . ' to Yahoo'; ?> " title="<?php echo 'Add ' . $NAME. ' to Yahoo'; ?> " border="0"></a></td>
    
     <td><a rel="nofollow" target="_blank" href="http://myjeeves.ask.com/mysearch/BookmarkIt?v=1.2&t=webpages&url=<?php echo $URL . '&title=' . $TITLE; ?>">
     <img src="images/socialbookmark/ask.png" alt="<?php echo 'Add ' . $NAME . ' to Ask'; ?> " title="<?php echo 'Add ' . $NAME. ' to Ask'; ?> " border="0"></a></td>
    
     <td><a rel="nofollow" target="_blank" href="http://www.netscape.com/submit/?U=<?php echo $URL . '&title=' . $TITLE; ?>">
     <img src="images/socialbookmark/netscape.png" alt="<?php echo 'Add ' . $NAME . ' to Netscape'; ?> " title="<?php echo 'Add ' . $NAME. ' to Netscape'; ?> " border="0"></a></td> 
    
     <td><a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=<?php echo $URL . '&title=' . $TITLE; ?>">
     <img src="images/socialbookmark/delicious.png" alt="<?php echo 'Add ' . $NAME . ' to del.icio'; ?> " title="<?php echo 'Add ' . $NAME. ' to del.icio'; ?> " border="0"></a></td>
    
     <td><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&url=<?php echo $URL . '&title=' . $TITLE; ?>">
     <img src="images/socialbookmark/digg.png" alt="<?php echo 'Add ' . $NAME . ' to Digg'; ?> " title="<?php echo 'Add ' . $NAME . ' to Digg'; ?> " border="0"></a></td>
    
     <td><a rel="nofollow" target="_blank" href="http://www.newsvine.com/_wine/save?popoff=1&u=<?php echo $URL . '&title=' . $TITLE; ?>">
     <img src="images/socialbookmark/newsvine.png" alt="<?php echo 'Add ' . $NAME . ' to Newsvine'; ?> " title="<?php echo 'Add ' . $NAME . ' to Newsvine'; ?> " border="0"></a></td>
    
     <td><a rel="nofollow" target="_blank" href="http://technorati.com/cosmos/search.html?url=<?php echo $URL . '&title=' . $TITLE; ?>">
     <img src="images/socialbookmark/technorati.png" alt="<?php echo 'Add ' . $NAME . ' to Technorati'; ?> " title="<?php echo 'Add ' . $NAME . ' to Technorati'; ?> " border="0"></a></td>
    
     <td><a rel="nofollow" target="_blank" href="http://furl.net/storeIt.jsp?t=<?php echo $URL . '&title=' . $TITLE; ?>">
     <img src="images/socialbookmark/furl.gif" alt="<?php echo 'Add ' . $NAME . ' to Furl'; ?> " title="<?php echo 'Add ' . $NAME . ' to Furl'; ?> " border="0"></a></td>
    
     <td><a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=<?php echo $URL . '&title=' . $TITLE; ?>">
     <img src="images/socialbookmark/reddit.gif" alt="<?php echo 'Add ' . $NAME . ' to Reddit'; ?> " title="<?php echo 'Add ' . $NAME . ' to Reddit'; ?> " border="0"></a></td>
    
     <td><a rel="nofollow" target="_blank" href="http://ekstreme.com/socializer/?url=<?php echo $URL . '&title=' . $TITLE; ?>">
     <img src="images/socialbookmark/Socializer16.png" alt="<?php echo 'Add ' . $NAME . ' to The Socializer'; ?> " title="<?php echo 'Add ' . $NAME . ' to The Socializer'; ?> " border="0"></a></td>
     </tr>
    </table></td>
    </tr>


  10. i know how to create a new table, but when i open CREATE NEW TABLE in phpmyadmin, it gives me a lot of options which are not explained in the instructions. How many fields should each table have? One each?? also what TYPE? Do i have to name the fields?

     

    i really hope someone can give me a hand> I am doing all the researching i can on different websites (including this one) and i am just STUCK.

    When inside phpMyadmin, use the tab that says SQL and then paste your code into there. Then hit the go or run button.


  11. Hi there

     

    I am just getting started with osCommerce and need help with installing a new payment module.

     

    I downloaded the module but have no idea how to install it so that it shows up in the list with the other available payment options.

     

     

     

    Please help!

     

    Thanks

    Well I have no idea what payment module you need help with. What one did you download? Does it have an install file? If not, are you sure you downloaded a full package and not an update? Most payment mods install very easy, just place in the catalog/includes/modules/payments/ directory plus your luanguage file as well, some take a bit of work.

    Please be more specific so you can be helped.


  12. It does'nt just do product description, it can work anywhere you choose, I use it for admin emails, Newsletters, NewsDesk Articals, reviews & Create / Edit Pages, it can be used anywhere you want to input html content.

     

    :D

    Hello Sam,

    Thanks for starting this thread and giving us a good starting point with this editor.

    Is there a chance you could post any code from the newsletter file? I have it working perfect, sending images and populating when going back with emails, and it sends images just fine when using the newsletter, but when I go to review or edit an existing newsletter the content is then deleted.

    Thanks


  13. I just need a little clarification first regarding Header Tags SEO. :blush:

    Does this contribution take the place of Ultimate SEO and Header Tags Controller?

    Or does it work in conjuction with them?

     

    I was just getting ready to install the below contributions and don't want to add something I don't need it this does the trick of a few contribs. ;)

    Also if it replaces say Header Tags Controller which is the best or easiest to install? :rolleyes:

    Ultimate SEO 2-2.2e

    Header Tags Controller v2.6.3 Complete

    Google Sitemap Generator for MS2

    Dynamic SiteMap V 1.0

    Updated spiders.txt

    All Products v3.0 MS 2.2 with Images

    It does not replace Ultimate SEO urls.

    It does replace header tags controller.

    It will work with Ultimate SEO urls

     

    Drop the header tags controller 2.6.3 from your list and use this header tags SEO mod instead. It is based off of 2.6.3

    If your using the dynamicsitemap with the option to create the xml sitemaps from the admin, then you can drop the google sitemap generator and submit your xml generated sitemaps to google via google webmaster tools account.

     

    Spiders.txt is a Spiders.txt, you should have one.

    All product is good to have, and there is also an all categories somewhere. I use them both.

     

    The header tags seo is really worth the install time. Its freaken great. I have it up on a demo here: http://demo.nxlcart.com/ Look at the page title, then hover over the logo and read the alt text, then look at the breadcrumb name, then the pages heading title, then the currently viewing text below everything else, PLUS the alt text echoed on every social bookmark icon, and the images alt text. That is a lot of keyword use in one page. A lot. I think it adds a lot of needed weight to a page.

    I went a lil overboard and added the currently veiwing: text to most pages including categories, topics, manufactures, authors, newsdesk categories and information pages. I couldnt help it. Its worth every bit of work and helps give every page importance.


  14. I have installed the following per a reference from GLCustoms here on oscommerce forums:

     

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

    It is called Gift Voucher (GV) and Discount Coupons (DC) for RC1, RC2, RC2a

     

    Luckily I had installed a brand new fresh copy of Ver 2.2 RC2 so all I had to do was overwrite files. I did so and loaded the sql tables that came with it. But when I follow the instructions to install a Discount coupon and it seems that this add on has alot less features then I would expect for a discount coupon feature. I can't even assign the coupon to a specific product or category or limit how long the coupon is good for. Furthermore, I do not see anything in the admin interface that pertains to Gift Voucher. This contrib refers to Gift Voucher and Discount Coupons. Where is the Gift Voucher config? Why does the discount coupon seem so limited?

    Youll have to see if Burt has a topic on what it does. I do believe he has some help section about it on his site. But as far as I have seen, that is the only version that will work with an RC version.

    The other gift voucher mods do not send the discount values thru the checkout process nor do they show the name of the coupon in admin after you create it (only on RC versions). They can be made to work though but it takes a fair knowledge of the checkout process. And the name not showing up is a simple array issue with sql 5.

    You may want search for the MS2.2 version on sourceforge if the contribution you installed doesnt offer enuff. I dont know what all it does, I just know it was created by a trusted source and he says it works with RC versions.


  15. What is the difference between the MS version of osCommerce and RC version of osCommerce? I just installed the RC version since that is what I found on the downloads section of this oscommerce.com site. So now I have a fresh install.

    MS is for mile stones. MS versions are the latest that are stable.

    RC is for release canidate. RC versions have a wrinkle or three to iron out.


  16. Well, you say you have respect but it sure appears you have none. :angry:

     

    How much did STS cost you? Maybe you can get a refund??

     

    STS is well documented with a very easy to follow installation instructions. Did you bother reading them? :blink:

     

    I hope your new template system has easier to understand instructions than your post above. :lol:

    LOL :lol: This is something else now!! It probally did cost him more than its worth in database queries! I would not call it a stinking turd, but it does amaze me how many people do use it though.

×