What have I done that's wrong

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fil Ben
    Member
    • Dec 2017
    • 30
    • 5.3.x

    What have I done that's wrong

    Setting up my VB5 5.4.1 I have added a description to the channels. I wish to colour those descriptions but it is only working on two of the channels
    on the ones I am now adding formatting to it shows that formatting on the front:

    Click image for larger version

Name:	format.jpg
Views:	28
Size:	45.5 KB
ID:	4391157

    Can anyone explain why this is happening please ?
    Attached Files
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74123

    #2
    That code should work as long as your browser supports the font tag. Make sure that the proper characters are there and that all tags are closed in previous descriptions.
    Translations provided by Google.

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

    Comment

    • Fil Ben
      Member
      • Dec 2017
      • 30
      • 5.3.x

      #3
      Thanks Luke. I've tried it on lots of different forums even copied the complete description from one of the ones that have worked and pasted
      it to another and it's not working there so no change in the code.

      I'm using Chrome and Edge

      Comment

      • Mark.B
        vBulletin Support
        • Feb 2004
        • 24287
        • 6.0.X

        #4
        What you've actually got for that description is this:
        Code:
        <b><font color="green">Go on, Have a go, you pay them.</font></b>
        That's why it's not working.
        MARK.B
        vBulletin Support
        ------------
        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

        Comment

        • Fil Ben
          Member
          • Dec 2017
          • 30
          • 5.3.x

          #5
          You're right, I've just had a look - Why is it changing, you can see what I have entered ?

          Comment

          • Mark.B
            vBulletin Support
            • Feb 2004
            • 24287
            • 6.0.X

            #6
            Should really do it like this anyway:
            Code:
            <span style="font-weight: bold; color: green;">Go on, Have a go, you pay them.</span>
            MARK.B
            vBulletin Support
            ------------
            My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
            My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

            Comment

            • Fil Ben
              Member
              • Dec 2017
              • 30
              • 5.3.x

              #7
              I've just copied and pasted what you said Mark but it is the same:

              Click image for larger version

Name:	font.jpg
Views:	36
Size:	14.9 KB
ID:	4391165

              Comment

              • Wayne Luke
                vBulletin Technical Support Lead
                • Aug 2000
                • 74123

                #8
                Originally posted by Fil Ben
                You're right, I've just had a look - Why is it changing, you can see what I have entered ?
                Do you have "Can Use HTML" permission for that section.

                However, if it were my site then I would use CSS to color these.

                Code:
                #forum31 .forum-desc {font-weight:bold;color:red;}
                
                #forum32 .forum-desc {font-weight:bold;color:green;}
                
                #forum33 .forum-desc {font-weight:bold;color:blue;}
                Etc...

                You can get the forumXX value by right-clicking on the name and choosing Inspect in Chrome or looking at the Channel Manager in the AdminCP. The XX is the node id. Then when you enter your text in the description, you don't have to worry about HTML.
                Translations provided by Google.

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

                Comment

                • Fil Ben
                  Member
                  • Dec 2017
                  • 30
                  • 5.3.x

                  #9
                  Thanks again Wayne can you tell me where I add that css ?

                  Out of interest, do you know why it is working in some descriptions and not in others ?

                  Comment

                  • Fil Ben
                    Member
                    • Dec 2017
                    • 30
                    • 5.3.x

                    #10
                    I've just added again what you suggested in post #6 but it changed that again and now shows:

                    &lt;span style=&quot;font-weight: bold; color: green,&quot;&gt;Go on, Have a go, you pay them.&lt;/span&gt;

                    Why is it changing it ?

                    Comment

                    • Wayne Luke
                      vBulletin Technical Support Lead
                      • Aug 2000
                      • 74123

                      #11
                      Originally posted by Fil Ben
                      I've just added again what you suggested in post #6 but it changed that again and now shows:

                      &lt;span style=&quot;font-weight: bold; color: green,&quot;&gt;Go on, Have a go, you pay them.&lt;/span&gt;

                      Why is it changing it ?
                      Because you don't have the permission to post HTML in that channel. This is a security feature and by design. You need to make sure that you have permission to use HTML by editing the channel permissions under Channel Management -> Channel Permissions. This is controlled on a per channel basis. Being an Administrator doesn't automatically give you all permissions.
                      Translations provided by Google.

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

                      Comment

                      • Wayne Luke
                        vBulletin Technical Support Lead
                        • Aug 2000
                        • 74123

                        #12
                        Originally posted by Fil Ben
                        Thanks again Wayne can you tell me where I add that css ?
                        CSS is always added to the css_additional.css template. This can be editing the template in the AdminCP or by clicking "Style" in Site Builder and clicking on the CSS Editor Tab.

                        Translations provided by Google.

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

                        Comment

                        • Fil Ben
                          Member
                          • Dec 2017
                          • 30
                          • 5.3.x

                          #13
                          Brilliant, thank you Wayne that worked, you're the man.

                          Funny how the other two worked though as I hadn't changed any permissions or added any css.
                          Last edited by Fil Ben; Thu 10 May '18, 9:24am.

                          Comment

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