• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Persona - teaser avatar not showing tooltip with name.

Scheduled Pinned Locked Moved Technical Support
11 Posts 5 Posters 2.7k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    whitts
    wrote on last edited by
    #1

    I am using the persona theme and realized that the avatar (in the teaser column) wont show the users name in the tooltip if the user has uploaded a picture.. If the users avatar is the default one (color with letter) then it shows the usersname on hover.

    Thanks,

    KowlinK 1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #2

    Which page? Does it work on this forum?

    W 1 Reply Last reply
    0
  • KowlinK Offline
    KowlinK Offline
    Robert Translator
    replied to whitts on last edited by
    #3

    @whitts check if NodeBB can access the uploaded image by checking your file permissions

    W 1 Reply Last reply
    0
  • W Offline
    W Offline
    whitts
    replied to <baris> on last edited by
    #4

    @baris - its on all of the pages. i just checked and it works on this forum 😞 - probably will be fixed when i next update. I will wait. Thanks

    1 Reply Last reply
    0
  • W Offline
    W Offline
    whitts
    replied to Robert on last edited by
    #5

    @Kowlin Hi. the picture shows in the avatar (just doesnt show the username in the tooltip (no tooltip whatsoever)) so wouldn't that mean it can access the image?

    1 Reply Last reply
    0
  • KowlinK Offline
    KowlinK Offline
    Robert Translator
    wrote on last edited by Kowlin
    #6

    @whitts hmm, this should be a long shot, but perhaps you can see a error in your console while running ./nodebb dev

    1 Reply Last reply
    0
  • frissdiegurkeF Offline
    frissdiegurkeF Offline
    frissdiegurke Plugin & Theme Dev
    wrote on last edited by
    #7

    https://github.com/NodeBB/nodebb-theme-lavender/issues/60 already fixed. will work when you update just like you assumed 😉
    @Kowlin I think you misunderstood the issue, it's just about the bootstrap popover.

    KowlinK W 2 Replies Last reply
    1
  • KowlinK Offline
    KowlinK Offline
    Robert Translator
    replied to frissdiegurke on last edited by
    #8

    @frissdiegurke that's what I get for posting when I just woke up 😕

    1 Reply Last reply
    0
  • W Offline
    W Offline
    whitts
    replied to frissdiegurke on last edited by
    #9

    @frissdiegurke I think i should start searching github issues prior to posting from now on. 👍

    1 Reply Last reply
    0
  • W Offline
    W Offline
    whitts
    wrote on last edited by
    #10

    I changed the createusertooltips code to:

    app.createUserTooltips = function(els) {
    	els = els || $('body');
      	els.find('.avatar,img[title].teaser-pic,img[title].user-img,div.user-icon,span.user-icon').each(function() {
    		if (!utils.isTouchDevice()) {
    			$(this).tooltip({
    				placement: 'top',
    				title: $(this).attr('title')
    			});
    		}
    	});
    };
    

    ..but it still doesn't work.

    The element looks like this in Chrome:

    <img class="user-img" alt="myusername" src="/uploads/profile/8-profileimg.jpg">

    Shouldnt the title have been injected?

    Thanks

    pichaliteP 1 Reply Last reply
    0
  • pichaliteP Offline
    pichaliteP Offline
    pichalite Plugin & Theme Dev
    replied to whitts on last edited by
    #11

    @whitts no... the title doesn't get injected. the code just takes the value of the title attribute from the <img> tag and displays it as a tool tip. you need to add the title attribute to the <img> tag with a value.

    like this line

    https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/partials/topics_list.tpl#L86

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development