Announcement

Collapse
No announcement yet.

New PCI Net Toolbelt

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    New PCI Net Toolbelt

    The latest version of PCI Net Toolbelt is now available on Miva Central and MvtRocks. This is a major update and adds lots of new features.

    New Items
    SeoLinks and SeoLink: These tools provide the simplest way possible to convert your site to short, SEO friendly links. By directly reading the current SEO settings, these tools create correctly formatted URLs for every page. If your change your SEO settings later or even the domain name, all your links will be instantly update.

    Breadcrumbs: Now uses the current SEO settings to determine the format of the link URLs.

    Category_Children: Loads the subcategories of the category specified.

    Category_Images: Loads the title and tree images of the category specified.

    Category_Meta: Loads the Meta keywords and description of the category specified.

    Category_Parents:
    Loads the top level categories.

    Category_Siblings: Loads the categorues on the same level as of the category specified.

    Cattree_Expanded: Outputs the entire category tree structure at once as a multi level unordered list i.e. <ul>, allowing you to use your own CSS and JavaScript to create dynamic drop-down and fly-out menus. Also uses the current SEO settings to determine the format of the link URLs. Many optional parameters are provided giving you maximum control over the output.

    SearchText: This powerful search command allows you to quickly search any or all fields in delimited text file, and return the matching data record. It is used in the new template NTFD_with301_redirects (included with the module) to lookup an old and new category codes.

    New Templates
    SeoLinks_Demo: Demonstrates the use of the new SeoLinks and SeoLink items.

    NTFD_with301_redirects: This advanced. template demonstrates how to do 301 Redirect directly inside the Merchant NTFD page template. If you rename your category codes for SEO purposes, this template will help you preserver your page rankings. By creating and uploading a simple text file, you can redirect inbound links using the old category code to the new page and issue a 301 status message to the search engines.

    New Functions
    isAlphaNumPlus(): The same as isalnum() except it allows you to pass additional special character like a space, period or other punctuation.

    GettokenCount(): Given a delimited text string, return the number of fields in the string. You could even use it to count the number of words in a string. Normally used to determine how many items are in a list so that the Toolbelt FOR command can be used to loop through and parce each item in the list.
    Ray Yates
    "If I have seen further, it is by standing on the shoulders of giants."
    --- Sir Isaac Newton

    #2
    Re: New PCI Net Toolbelt

    will this tool belt help on the short link problem I have had with Mivas not working on my site ,no matter what my setting are ,I can not get shhort links for anything ,just a few catagories and the store front page is all that wouls ever change for some reason ,been that way since day one
    Quality and Affordable Surveillance Equipment for Home and Business


    Comment


      #3
      Re: New PCI Net Toolbelt

      Originally posted by surveillanceguy View Post
      will this tool belt help on the short link problem I have had with Mivas not working on my site ,no matter what my setting are ,I can not get shhort links for anything ,just a few catagories and the store front page is all that wouls ever change for some reason ,been that way since day one
      Absolutely. The great thing is that if you change your SEO settings later, all you links are instantly updated.

      One thing you must understand, using the SEO Settings will not automaticlly update your links. Each template must be manually edited. ToolBelt SEOLinks and SEOLink makes that a lot easier.

      You add a single command to the HEAD Tag Content/CSS and then you start changing your links.

      Code:
      <mvt:item name="ry_toolbelt" param="seolinks" />
      
      Your checkout link might be coded like this
      The Old Way
      href="http://www.yoursite.com/mm5/merchant.mvc?Screen=OINF&Order=1"
      
      New Way
      href="&mvt:href:checkout;"
      Standard Merchant Links
      Code:
      <a href="&mvt:href:storefront;">Storefront</a>
      <a href="&mvt:href:product_list;">Product list</a>
      <a href="&mvt:href:search;">Search</a>
      <a href="&mvt:href:sitemap;">Sitemap</a>
       
      <a href="&mvt:href:customer_login;">Customer login</a>
      <a href="&mvt:href:customer_account;">Customer account</a>
      <a href="&mvt:href:order_history_login;">Order History Login</a>
      <a href="&mvt:href:affiliate_account;">Affiliate account</a>
      <a href="&mvt:href:affiliate_login;">Affiliate login</a> 
      <br>
      <a href="&mvt:href:basket;">Basket</a>
      <a href="&mvt:href:checkout;">Checkout</a>
      <a href="&mvt:href:checkout_noaccount;">Checkout without an Account</a>
      Changing links produced inside a loop is only slightly more complex.

      Category Tree Example:
      Code:
      <mvt:foreach iterator="cattree_category" array="categories">
      <mvt:item name="ry_toolbelt" param="seolink|category|l.all_settings:cattree_category:code" />
      
        <!-- Locate every <a> tag in the foreach loop and replace it with this. -->
      <a href="&mvt:href:category;">
      Complete examples are provided in the documentation and a demo template with instructions is included for testing before you start making changes.

      To get a quick view of all the variables made available by the module You can temporarily add the varlist item any page footer.
      Code:
      <mvt:item name="ry_toolbelt" param="eval|varlist('l', 'href', l.all_settings)" />
      Last edited by RayYates; 04-30-10, 05:50 AM.
      Ray Yates
      "If I have seen further, it is by standing on the shoulders of giants."
      --- Sir Isaac Newton

      Comment


        #4
        Re: New PCI Net Toolbelt

        Thank You your right ,not sure why right from the start it did that but know its never worked right for some reason , about the only problem it has ever had ,doesn't matter if short links were checked or not alway had the same link from the start ,and that was a huge reason I liked that part ,,thanks again and maybe something can help the site works great but having the long links is iratating
        Quality and Affordable Surveillance Equipment for Home and Business


        Comment


          #5
          Re: New PCI Net Toolbelt

          I looked at your site. If you edit the templates, e.g. the category tree, and change them to short links they will work. I entered a short category link and it worked fine. But you have to edit the templates to actually get the shorter links. It takes about 5 minutes to change the whole store to the shorter links.
          Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
          Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
          Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
          Facebook http://www.facebook.com/EmporiumPlus
          Twitter http://twitter.com/emporiumplus

          Comment


            #6
            Re: New PCI Net Toolbelt

            Thank You
            I will give it a shot ,if I am unable to get it done anyone interested in some work,I did have Chuck L work on it some but didn't get it all workinng but ,I try first then may want to loook for some one if interested ,Thanks a lot ,This is why I have posted nefore on twitter the miva community is great help and thanks a lot again
            Quality and Affordable Surveillance Equipment for Home and Business


            Comment


              #7
              Re: New PCI Net Toolbelt

              Start a new thread in the MM5 section. Start by posting the .htaccess file so we can see what you have.
              Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
              Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
              Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
              Facebook http://www.facebook.com/EmporiumPlus
              Twitter http://twitter.com/emporiumplus

              Comment


                #8
                Re: New PCI Net Toolbelt

                OK Thanks I will give a try , got some shippments to get out then I will be working on sight trying to make sure all your modules I have gotten are to date ,been trying to get ready for wombat (making sure all my modules I got from you are to date) and been more busy than expected since we opened the Miva store
                Quality and Affordable Surveillance Equipment for Home and Business


                Comment


                  #9
                  Re: New PCI Net Toolbelt

                  hate to ask or sound like a real dummy but can't find it the (.htaccess file) was going to do that real quick but cannot find the file ,may be a memory block but where would I find it
                  Quality and Affordable Surveillance Equipment for Home and Business


                  Comment


                    #10
                    Re: New PCI Net Toolbelt

                    Ok started a new post in miva 5.5 on short link problem ,thought would try real quick before going to warehouse believe i got the file loaded there
                    Quality and Affordable Surveillance Equipment for Home and Business


                    Comment


                      #11
                      Re: New PCI Net Toolbelt

                      I have a question about the
                      isAlphaNumPlus in toolbelt?

                      I see the documentation says:
                      Code:
                      isAlphaNumPlus(string_expr, string_extrachars)
                      
                       Returns true (1) if all characters in string are either
                      alphabetic, digits, or one of the extra characters. This is useful if you must validate a string
                      that may also contain specific characters e.g. spaces, periods, commas or other punctuation.
                      
                      
                      <mvt:item name="ry_toolbelt" param="assign|g.IsValid|isAlphaNumPlus(g.List, ' .')" />
                      Return 1 if the string contains letters, number spaces and periods.
                      I need to know how to check the string for a single apostrophe. How do I put that into the string_extrachars ? ''' doesn't work.

                      Comment


                        #12
                        Re: New PCI Net Toolbelt

                        <mvt:item name="ry_toolbelt" param="assign|g.IsValid|isAlphaNumPlus(g.List, asciichar(39))" />

                        If you just need to know if the apostrophe (aka single quote) character is in the string use this.

                        <mvt:item name="ry_toolbelt" param="assign|g.posn|asciichar(39) IN g.mystring" />

                        These characters have to be handled with the asciichar() function in Storemorph or Toolbelt. Unfortunately you can't "escape" them like some languages

                        double quotes: asciichar(34)
                        single quotes: asciichar(39)
                        ampersand: asciichar(38)
                        Ray Yates
                        "If I have seen further, it is by standing on the shoulders of giants."
                        --- Sir Isaac Newton

                        Comment


                          #13
                          Re: New PCI Net Toolbelt

                          Thanks Ray.

                          What I'm attempting to do is use your preaction in toolbelt to clean up and to validate data submitted via the customer account edit and the checkout customer information screens, and also text fields from addendem in checkout.

                          this function that checks for alphanumeric plus some extra characters seems like the ticket to make quite a few less if-then statements.

                          Comment

                          Working...
                          X