Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1

    Default Hello Anyone has a search tagcloud mod?

    I have seen this mod in oscommerce cart.
    But can not find it in zencart.

    Many cool website has these features..

    Maybe someone can change the code from Oscommerce to zencart .

    check the link of search tagcloud in OS.

    addons.oscommerce.com/info/5498

    Kind Regards,
    Adam
    Last edited by Kim; 21 Nov 2007 at 07:23 PM. Reason: hotlink to the other shopping cart removed

  2. #2
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

    Default Re: Hello Anyone has a search tagcloud mod?

    A zen beta version has been released. Go to http://www.madteckhead.com/blog/zentagcloud to download it.

    Matt

  3. #3

    Default Re: Hello Anyone has a search tagcloud mod?

    Hello Lankeeyankee,
    Thanks for your kind reply.

    I have tried this mod days ago.
    It works,
    But it can not limit the numbers of the tags to be shown.

    THe problem is Your webpage will be mass!

    I have been contact the author. It seems he dont follow this project currently.

    So hope , anyone can get it work.
    Thanks

  4. #4
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Hello Anyone has a search tagcloud mod?

    Should be an easy fix, you just need to use LIMIT in the sql query, if you know what I mean. Check the file includes/functions/extra_functions/zentagcloud_func.php, I suspect that you need to change
    PHP Code:
    function zen_get_metatags_keywords1($product_id$language_id) {
        global 
    $db;
        
    $product $db->Execute("select metatags_keywords
                                 from " 
    TABLE_META_TAGS_PRODUCTS_DESCRIPTION "
                                 where products_id = '" 
    . (int)$product_id "'
                                 and language_id = '" 
    . (int)$language_id "'");

        return 
    $product->fields['metatags_keywords'];
      } 
    to:
    PHP Code:
    function zen_get_metatags_keywords1($product_id$language_id) {
        global 
    $db;
        
    $product $db->Execute("select metatags_keywords
                                 from " 
    TABLE_META_TAGS_PRODUCTS_DESCRIPTION "
                                 where products_id = '" 
    . (int)$product_id "'
                                 and language_id = '" 
    . (int)$language_id "' LIMIT 50");

        return 
    $product->fields['metatags_keywords'];
      } 
    See the limit i put there? Change it to any number you want.
    Again, I dont use this mod, so I'm not 100% sure that it's the query to get the tags (I just think it's the one because of the function's name), but it's the way you do it: find the query that gets the tags, and put a limit there.
    yellow1912
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  5. #5

    Default Re: Hello Anyone has a search tagcloud mod?

    Hello Yellow1912,

    you are right. I got it work.

    Thanks for your help

    Regards,

  6. #6

    Default Re: Hello Anyone has a search tagcloud mod?

    Hello yellow1912 ,

    It is so weird, i test you method as you indicated above.

    I can only limit the category's number and the max is 4. If you Limit 5 above , the all category will be shown.

    And I have no method to limit numbers of the Meta keywords.
    Please check it back.
    Thanks very much

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,696
    Plugin Contributions
    123

    Default Re: Hello Anyone has a search tagcloud mod?

    Adam, if you give this feedback to the original author, perhaps he can build these things in.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #8
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Hello Anyone has a search tagcloud mod?

    Quote Originally Posted by adam9110 View Post
    Hello yellow1912 ,

    It is so weird, i test you method as you indicated above.

    I can only limit the category's number and the max is 4. If you Limit 5 above , the all category will be shown.

    And I have no method to limit numbers of the Meta keywords.
    Please check it back.
    Thanks very much
    Are you sure you modify the correct query? The one I show you to modify should not have anything to do with the number of categories.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  9. #9
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Hello Anyone has a search tagcloud mod?

    Try to change:
    PHP Code:
    $products_new_query_raw "SELECT products_id 
                                 FROM " 
    TABLE_PRODUCTS " p 
                                 WHERE products_status = 1 
    to
    PHP Code:
    $products_new_query_raw "SELECT products_id FROM zen_products p WHERE products_status = 1 ORDER BY RAND() LIMIT 50 
    You can remove the part ORDER BY RAND() if you want, that part helps you to get random products_ids each time it does a query

    Note: this will make the keywords' weight incorrect since it will consider only a limited number of products each time. You will need to dig deeper into the code to find a better way to fix this, I don't have time to do that now
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  10. #10
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default Re: Hello Anyone has a search tagcloud mod?

    Any url with a working example of this mod?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Has anyone used the Google + mod?
    By kevinmc3 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Feb 2012, 08:27 PM
  2. Replies: 5
    Last Post: 22 Feb 2008, 09:32 AM
  3. Does Anyone has the Custom 404 Error Mod.?
    By Stenrique in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 4 Jan 2007, 08:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR