Announcement

Collapse
No announcement yet.

how do I pass a template in the url

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

  • how do I pass a template in the url

    Things like the search page uses the default template. I want to be able to pass the template to use in the url of a search form.

    What is the code for this?

    thanks

  • #2
    Sorry but I don't understand the question.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment


    • #3
      I want to have a certain template to be shown based on what the URL states:

      i.e. mysite.com/search.php?templateid=blue

      Comment


      • #4
        You can't do that. You can use the styleid though. Add this to the end of the URL

        &styleid=x

        ...with 'x' being the styleid.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment


        • #5
          Is the styleid a value other then the name for the style that shows up in the control panel?

          For my search box I have:
          <input type="hidden" name="styleid" value="Blue Look">

          Blue Look = my style name

          btw: I'm using version 2.30

          Comment


          • #6
            The styleid is the style's ID number, not name. You can learn this by placing your cursor over this style in the Admin CP.
            Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
            Change CKEditor Colors to Match Style (for 4.1.4 and above)

            Steve Machol Photography


            Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


            Comment


            • #7
              Cool. It works.

              Thanks alot Steve!

              Comment


              • #8
                No problem!
                Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                Change CKEditor Colors to Match Style (for 4.1.4 and above)

                Steve Machol Photography


                Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...
                X