Announcement

Collapse
No announcement yet.

How to add image to postbit vBulletin 5.x

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to add image to postbit vBulletin 5.x

    Hi.
    I've been looking for days, but I have not achieved my goal.
    Please help.
    I have vB5 installed on localhost for testing.
    I am trying to; In Postbit an image of a smartphone appears (which I uploaded to the image / misc / idevice / directory) with the name that the user has selected in the custom field 7.
    In vB4 it works like this:

    in template: postbit_legacy

    find:

    HTML Code:
    <dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd>
    Add after

    HTML Code:
    <!β€” aΓ±adir dispositivo-->
    
    <vb:if condition="$post['field7']">
    
                    <img src="{vb:stylevar imgdir_misc}/idevice/{vb:raw post.field7}.png" alt="{vb:raw post.field7}" align=β€œleft” />
    
    </vb:if>
    
    <!β€” final aΓ±adir dispositivo β€”>
    Does anyone know what has changed? Please.
    Thank you very much for your time.

    Sorry for my English. I used the Google translator

    Click image for larger version

Name:	Captura de pantalla 2017-08-26 a las 17.02.26.png
Views:	84
Size:	57.4 KB
ID:	5949
    Click image for larger version

Name:	Captura de pantalla 2017-08-26 a las 17.01.58.png
Views:	84
Size:	104.5 KB
ID:	5950
    Attached Files

    #2
    Take a look at this similar postbit mod.

    By default, vBulletin 5 only displays the Join Date and Post count in the postbit area (avatar and username section) in the thread view of a topic. There may be other tutorials out there to add custom fields in postbit but some require you to edit the existing postbit template. Editing existing templates is not good for


    Btw, your English is good.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      Thank you Glenn

      I got to do it

      Comment

      Users Viewing This Page

      Collapse

      There is 1 user viewing this forum topic.

      • Guest Guest

      Latest Posts

      Collapse

      Working...
      X
      Searching...Please wait.
      An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

      Please push the back button and reload the previous window.'
      An unexpected error was returned: 'Your submission could not be processed because the token has expired.

      Please push the back button and reload the previous window.'
      An internal error has occurred and the module cannot be displayed.
      There are no results that meet this criteria.
      Search Result for "|||"