Profile Field as link?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • giovanni40223
    Member
    • Jun 2008
    • 68

    #16
    Just tested it and it was close. If you did not have a signature at all it would not display the original code. Tricky one. I am in process of cleaning up with what i came up with. This has been a challenge. As soon as i took something out of the signature in the profile settings the code vanish and did not show the machine. Okay mate . Yes I appreciate everything. I am going to clean it up and try to see if i can shorten it down some.

    Not sitting right with you . I can understand. Trust me I am sure there is a shorter way and now I am going to try to find it. I learn by mistakes so here i go ...

    Thanks again mate.

    Comment

    • hellekim
      New Member
      • Jan 2006
      • 11
      • 3.5.x

      #17
      I hope I don't kidnapp this thread, but I feel this would fit to this topic.

      I'm trying to get a user profile field5 to show on my site. After the upgrade from 3.8.2 to 4.0.6 it didn't work anymore.

      My code:
      Code:
          <vb:if condition="$post['field5'] != ''"><br /><div>Minä kannatan: <img src="http://forum.domain.com/images/MyTeam/$post[field5].png" title="$post['field5']"></div></vb:if>
      At least the "<vb:if condition="$post['field5'] != ''">" works as the "Minä kannatan:" parts comes out, but the rest doesn't and the output is:

      <div>Minä kannatan: <img src="http://foorumi.domain.com/images/MyTeam/$post[field5].png" title="$post['field5']"></div>Can someone help me out?

      Comment

      • TheLastSuperman
        Senior Member
        • Sep 2008
        • 1799

        #18
        Originally posted by hellekim
        I hope I don't kidnapp this thread, but I feel this would fit to this topic.

        I'm trying to get a user profile field5 to show on my site. After the upgrade from 3.8.2 to 4.0.6 it didn't work anymore.

        My code:
        Code:
            <vb:if condition="$post['field5'] != ''"><br /><div>Minä kannatan: <img src="http://forum.domain.com/images/MyTeam/$post[field5].png" title="$post['field5']"></div></vb:if>
        At least the "<vb:if condition="$post['field5'] != ''">" works as the "Minä kannatan:" parts comes out, but the rest doesn't and the output is:

        <div>Minä kannatan: <img src="http://foorumi.domain.com/images/MyTeam/$post[field5].png" title="$post['field5']"></div>Can someone help me out?
        See if this helps: http://www.vbulletin.com/forum/showt...74#post2036374

        Use {vb:raw post.fieldx} instead of the userinfo we discussed there as your still using this to show in posts, if not and you want to show on their profile then follow the userinfo references in that thread.

        Post back here if it does, that way this thread has a link to what solved your question and no need to bump the other thread as we know here that it was useful info .


        Former vBulletin Support Staff
        Hacked recently? See my blog post "Recovering a Hacked vBulletin Site".
        Thinking outside the box? Need modification support? Visit www.vBulletin.org and have at it!

        Comment

        • hellekim
          New Member
          • Jan 2006
          • 11
          • 3.5.x

          #19
          Thank you! Got it working now!

          Comment

          • TheLastSuperman
            Senior Member
            • Sep 2008
            • 1799

            #20
            Originally posted by hellekim
            Thank you! Got it working now!
            Old expression:

            "Good, good, good"



            Former vBulletin Support Staff
            Hacked recently? See my blog post "Recovering a Hacked vBulletin Site".
            Thinking outside the box? Need modification support? Visit www.vBulletin.org and have at it!

            Comment

            • plutonash
              Senior Member
              • Sep 2009
              • 116
              • 4.0.0

              #21
              I don't get this - I have added a new User Profile Field (field8) but can't find it in the postbit template. I need to make it a hyperlink (as discussed at the start of this thread).

              Would appreciate any help, please.

              Many thanks
              Last edited by plutonash; Thu 17 Feb '11, 10:15am.

              Comment

              • zeroality
                Senior Member
                • Jun 2006
                • 168

                #22
                If I remember correctly, you'll have to manually edit the postbit templates to add in the custom profile fields.

                It's nasty, complicated business. I tried adding one to my forums as a badge system and got it working, mostly. But one thing I couldn't resolve led me to scrap the whole thing. Can't remember what it was though, been a while.

                Comment

                • plutonash
                  Senior Member
                  • Sep 2009
                  • 116
                  • 4.0.0

                  #23
                  Moved to new post
                  Last edited by plutonash; Fri 18 Feb '11, 5:03am.

                  Comment

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