Announcement

Collapse
No announcement yet.

Custom icon next to name

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

  • Custom icon next to name

    I have a NASCAR forum and we run a weekly fantasy racing league.

    At the end of the race, a winner is picked and I would like to be able to place a custom icon next to their name, not their avatar.

    Is this possible?

  • #2
    I suppose you could do it in a custom title specifying an <img> tag in it via the CP. But aside from that, I think you'd have to hack it in.

    Comment


    • #3
      Wow, thanks for the quick response, it's appreciated.

      You'll have to pardon my naivete as I have just started using vB. When I attempt to add a new user title, there are only 2 field, "title" and "number of posts". I'm not too sure where to add the image tag.

      Comment


      • #4
        You don't need a new custom title for this, you can just edit it per-user when the race it over.
        You go to the Edit User (http://www.yourforum.com/admin/user....=edit&userid=1 for example) and add something like this in their user title:
        Code:
        Winner! <img src="{image[b][/b]sfolder}/winner.gif">
        (if {imagesfolder} isn't parsed just write the folder manually)
        And don't forget to select Yes for "Use Custom Title" right under that.
        Chen Avinadav
        Better to remain silent and be thought a fool than to speak out and remove all doubt.

        גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

        Comment


        • #5
          That worked great, thanks for the tip.

          Also, would there be a way to do it so that the user cannot do it him or herself?

          Comment


          • #6
            Unless you give all your users permission to use custom titles (can be set in the Change Options page) they can't do this themselves.
            Chen Avinadav
            Better to remain silent and be thought a fool than to speak out and remove all doubt.

            גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

            Comment


            • #7
              They do have custom title access.

              Comment


              • #8
                Wait, you can't use vBcode or HTML in the user title, no way they can do that themselves.
                Chen Avinadav
                Better to remain silent and be thought a fool than to speak out and remove all doubt.

                גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

                Comment


                • #9
                  So only the admin can use HTML in the titles?

                  Comment


                  • #10
                    Basically user titles are not unhtmlspecialchars'ed in the admin cp, so yes.
                    Chen Avinadav
                    Better to remain silent and be thought a fool than to speak out and remove all doubt.

                    גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

                    Comment


                    • #11
                      Thanks a lot man, appreciate the help.

                      Comment


                      • #12
                        Why not use <if> ?

                        Comment


                        • #13
                          Conditionals aint Supported in 2.xx series
                          @[email protected]

                          Comment


                          • #14
                            I thought of an alternative method....

                            Upload all the car images to images/cars, and rename them so they start with "car". Don't put a space between car and the rest of the name, like carredcar.gif.

                            Now make an image that's 1 x 1 and make it transparent, so that it's completly invisible. Call it car.gif Upload this in the same folder as the cars.

                            Now create a profile field that only you can edit. In it for each user you want to give a car to enter the name of the car graphic excluding the car and the .gif (like "redcar").

                            Now in the postbit template, wherever you want the cars to appear, put this code:

                            <img src="images/cars/car$post[fieldx].gif">

                            Where x is the id number of the profile field. Now if the field is left blank, it will show the car.gif, while if you put something like "redcar", it will load carredcar.gif.

                            Comment


                            • #15
                              Originally posted by Orfejs
                              Why not use <if> ?
                              Guys please note the date and time of the original post and what section were in

                              a response to this really wasnt nessary

                              Comment

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