Announcement

Collapse
No announcement yet.

Help Identifying Template

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

  • [CMS] Help Identifying Template

    So I need help identifying a template that controls this... I want to remove the part circled in red below from every article. I was thinking it might be vbcms_content_article_page, but I can't seem to find where it is being controlled in there...

    Click image for larger version

Name:	screen.jpg
Views:	1
Size:	75.8 KB
ID:	3718185

  • #2
    If I am looking at the limited snapshot correctly, you are referring to the postbit templates, specifically the postbit_attachment template which loads the attachment data within the post. You also have a string off attachment related templates associated depending on the exact type of attachment, ie. thumbnail, file, etc.

    Comment


    • #3
      So editing out one group of these lines in vbcms_content_article_page won't do the trick? It seems to me that, that is what it is looking at...

      PHP Code:
      <vb:if condition="$showattachments">
          <
      div class="attachments">
              <
      vb:if condition="$thumbnailattachments">
                  <
      fieldset class="postcontent">
                      <
      legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_thumbnails}" /> {vb:rawphrase attached_thumbnails}</legend>
                      {
      vb:raw thumbnailattachments}
                  </
      fieldset>
              </
      vb:if>
              <
      vb:if condition="$imageattachments">
                  <
      fieldset class="postcontent">
                      <
      legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_images}" /> {vb:rawphrase attached_images}</legend>
                      {
      vb:raw imageattachments}
                  </
      fieldset>
              </
      vb:if>
              <
      vb:if condition="$imageattachmentlinks">
                  <
      fieldset class="postcontent">
                      <
      legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_images}" /> {vb:rawphrase attached_images}</legend>
                      <
      ul>
                      {
      vb:raw imageattachmentlinks}
                      </
      ul>
                  </
      fieldset>
              </
      vb:if>
              <
      vb:if condition="$otherattachments">
                  <
      fieldset class="postcontent">
                      <
      legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_files}" /> {vb:rawphrase attached_files}</legend>
                      <
      ul>
                      {
      vb:raw otherattachments}
                      </
      ul>
                  </
      fieldset>
              </
      vb:if>
          </
      div>
          </
      vb:if> 

      Comment


      • #4
        What does taking out that whole block of code do?
        sigpic
        Nation of Blue - Kentucky Wildcats Sports


        Some CMS Goodness: Add Avatar to Article

        Comment


        • #5
          LOL nothing it seems...

          Comment


          • #6
            This is a question that would get a more useful answer at vbulletin.org - this forum is for basic help with the default vbulletin setup whereas vBulletin.org focus on third party modifications and customisations.

            However - my suggestion would be to do a phrase search for "Attached files" to find out its variable name. Then do a template/style search for that variable name to see which templates it is used in. You can then probably deduce where exactly it is.

            Another method would be to do a view source on an offending page, find the block of code responsible for that attachment div and do a template/style search for that. But be careful with trial and error deleting of template code. For example, if this turns out to be in the generic postbit template then deleting it from articles is going to delete it from forum posts to.

            Comment


            • #7
              Are you talking about article attachments? If that is the case, then above is correct. Did you clear the CMS cache after making the changes? If not, then you would delete the code refresh your browser and see no change.

              Comment

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