Autogallery template question, php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mkx
    Confirmed User
    • Nov 2003
    • 4001

    #1

    Autogallery template question, php

    The <?echo $category;?> is working everywhere in the template except for here. Is there another way to write it in autogallery?

    <%GALLERIES
    TYPE Thumb
    CATEGORY <?echo $category;?>
    AMOUNT 30
    SORT Display_Date DESC, Display_Stamp DESC
    HTML Thumb

    INSERT
    {
    LOCATION +6
    HTML </tr><tr>
    }
    %>
  • mkx
    Confirmed User
    • Nov 2003
    • 4001

    #2
    bumpity bump

    Comment

    • Gothbox
      Confirmed User
      • May 2003
      • 140

      #3
      you don't need to put $echo category there. you put the name of the category you want displayed there. example: if you have a category named milf and that is what you wanted displayed then you would put milf there instead of $echo category. All that variable does is tell the script which category to pull galleries from and display it.

      Hope that helps
      Last edited by Gothbox; 08-14-2005, 11:21 AM.

      Comment

      • Gothbox
        Confirmed User
        • May 2003
        • 140

        #4
        If you are looking to display the category name alongside the gallery link or thumbnail you will need to add ##Category## in the link template that you set above your html code. Using ##Category## on any part of your template should make the current category name be displayed after being built, except in the directive like you have above.

        Comment

        • mkx
          Confirmed User
          • Nov 2003
          • 4001

          #5
          Thanks Gothbox but I have over 50 categories and am trying to make things easier to mass edit so each category template has to be identical.

          Comment

          • Gothbox
            Confirmed User
            • May 2003
            • 140

            #6
            I see what you are saying, however there probably is not going to be an easier way. Just use the same template for all of your categories and go in and change the name of the category on the directive to suit your needs. It is only 50 categories, it would probably take about 3 minutes to type the different categories into each template. You could also use search and replace and would not have to type out each one.

            Good luck

            Comment

            • mkx
              Confirmed User
              • Nov 2003
              • 4001

              #7
              I see what your saying but I set the template up in a way that all of them are identical except for this little part. It displays the correct title, correct archive links, meta tags, etc. I guess I could manually edit them as a temporary solution but if anyone knows how to add the php tag, that would make things easier.

              Comment

              Working...