Announcement

Collapse
No announcement yet.

Manually editing template

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

  • Manually editing template

    So I added a static html object on my main page and for some reason I can't use any buttons on the page. I need to remove this module from the page, but since I can't use the edit page button I'm not sure how to go about editing the page. I tried to view the source to get a page name to edit, but that's the extent of my knowledge. I tried to look through a few php files doing a grep module name, but haven't been able to find the source yet.

    So I guess what I'm asking for is how can I find the source of my template so I can edit it?

  • #2
    In your AdminCP go to Settings -> Options -> General Settings. Set Disable PHP and Static HTML rendering to No.

    Then you should be able to edit the page in Site Builder. When done, change the option back to Yes.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment


    • #3
      I tried to do a search on all the forums with the following on the server: find . -name "*.*" -exec grep -l module_name {} \;

      Still nothing lol

      - - - Updated - - -

      Originally posted by Wayne Luke View Post
      In your AdminCP go to Settings -> Options -> General Settings. Set Disable PHP and Static HTML rendering to No.

      Then you should be able to edit the page in Site Builder. When done, change the option back to Yes.
      Thank you sir!

      I'll try not to mess up again... still a bit lost why I can't call this php code.

      Comment


      • #4
        Originally posted by 2Luke2 View Post
        I tried to do a search on all the forums with the following on the server: find . -name "*.*" -exec grep -l module_name {} \;
        With default settings, templates are stored in the database. However the contents of static html and PHP modules are stored in the widgetconfig table, not templates. It is a fairly complicated system behind the scenes to allow the customization in place.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment


        • #5
          Originally posted by Wayne Luke View Post
          With default settings, templates are stored in the database. However the contents of static html and PHP modules are stored in the widgetconfig table, not templates. It is a fairly complicated system behind the scenes to allow the customization in place.
          Well that explains why I couldn't find what I was looking for... That brings up another issue though. For some reason I have like 5-6 copies of the same template with the same name. Is there anyway to prune the templates?

          Comment


          • #6
            Do you have 5 or 6 styles with the template edited in them?

            The system works like this... A default copy of all templates are stored in the system. When you create a new style and edit a template within that style, a copy of the template is made with that style id. This copy overrides the default when viewed by the user. It is fairly streamlined.

            If you're still talking about Widget/Module configuration those aren't templates and if you have multiple widgets of the same time, you'll have multiple configurations.
            Last edited by Wayne Luke; Wed 13 Feb '13, 12:44pm.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment


            • #7
              Nope, I'm talking about when I click on edit page and then click select template. I only have two styles so far. One is the default and the other I'm working on.

              - - - Updated - - -

              I thought I was just overwriting the same page over and over because it kept telling me it was going to do just that haha.

              Comment

              Related Topics

              Collapse

              Working...
              X