Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorFyorl
    • CommentTimeJan 21st 2008 edited
     # 1
    A short extension that uses the Mootools javascript framework to add tooltips to usernames which will display their first and last names as well as their role.

    As of version 1.3, this extension now uses the Mootools extension. It's good for your forum so go get that too!

    Credits
    Mootools

    And special thanks to fysicsluvr for coming up with the idea.
    • CommentAuthorfysicsluvr
    • CommentTimeJan 21st 2008
     # 2
    oh snap...
  1.  # 3
    Uploaded version 1.1 of User Info.
    •  
      CommentAuthorFyorl
    • CommentTimeJan 21st 2008
     # 4
    Fixed a javascript error occurring when a 'Whisper Back' link was present.
  2.  # 5
    Uploaded version 1.2 of User Info.
    •  
      CommentAuthorFyorl
    • CommentTimeJan 21st 2008
     # 6
    Now displays the username if first & last name can't be found.
    •  
      CommentAuthorHamed
    • CommentTimeJan 21st 2008
     # 7
    that is pretty cool
    good job
    •  
      CommentAuthordkodr
    • CommentTimeJan 22nd 2008
     # 8
    Will it work with the Delbat theme?
    •  
      CommentAuthorFyorl
    • CommentTimeJan 22nd 2008
     # 9
    Well I think the add-on says Vanilla Default theme only because it hasn't been tested with anything else. For another theme, it should only require some Javascript tweaking. Try it and see what happens. If it doesn't work then point me in the direction of a live site using that theme and I'll do some tweaking.
  3.  # 10
    Uploaded version 1.3 of User Info.
    • CommentAuthorAlty
    • CommentTimeFeb 17th 2008
     # 11
    I'm really confused as to why this won't work for me. I even booted into Parallels to run IE7 to see if it worked in that with no luck. I'd really love this addon especially if it could work with MultiRoles.

    http://yoshi.frogspawn.org/~marrow/vanilla/ is my site if you'd be kind enough to figure out why it isn't working.
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 17th 2008 edited
     # 12
    Hmm... I have no idea why it's not working for you. Could you go into the UserInfo folder and open up userinfo.js in a text editor. If you add 'console.log(ln)' after line 13 (without the quotes), that will help me debug the situation.

    And I didn't know it didn't work with MultiRoles?
    • CommentAuthorAlty
    • CommentTimeFeb 17th 2008
     # 13
    Line added, pre-emptive thanks for your help.

    I'm not a good person to ask if it works with MultiRoles since I can't get it working at all :P. It probably does work.
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 17th 2008
     # 14
    Well I just updated Mootools because it wasn't properly targeting the other JS scripts in the head. Now it should place the framework underneath ac.js. Go download the new version and tell me if it makes any difference.
    • CommentAuthorAlty
    • CommentTimeFeb 18th 2008
     # 15
    I've installed Mootools 1.4, disabled it and UserInfo and reinitialized them both (with Mootools first). Doesn't seem to have worked.
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 18th 2008
     # 16
    There are some known incompatibilities with Notify. Try disabling it temporarily and see if it removes prototype and scriptaculous from the head as prototype is incompatible with Mootools. I would have expected some javascript errors though which is why I'm dubious as to whether prototype is the problem.
    • CommentAuthorAlty
    • CommentTimeFeb 20th 2008
     # 17
    Yep, got Notify turned off, and it's still not working. I didn't think it could have been notify either, since I only got that working after UserInfo was already installed. I'm good at causing problems, I'm sorry.
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 20th 2008
     # 18
    Ha, don't worry, it's probably not your fault. I've always hated Javascript for this very reason (and others) - it's so difficult to debug sometimes.
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 20th 2008
     # 19
    Could you put:
    console.log(lns)
    after line 10 of userinfo.js please.

    If it still refuses to log anything then it would seem as though that code is not being run at all. For why, I do not know. It may require a re-write.
    • CommentAuthorAlty
    • CommentTimeFeb 21st 2008
     # 20
    OK, that's all sorted. This is what I've got now:

    var lns = $$('.CommentHeader ul li a');
    console.log(lns)
    for(var i = 0; i < lns.length; i++) {
    var ln = lns[i];
    if(ln.hasClass('WhisperBack')) continue;
    console.log(ln)
    var uname = ln.innerHTML;
    var tDat = assocDat[uname];
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 21st 2008
     # 21
    Ugh, the code's not being run at all and there are no error messages to speak of which makes it really difficult to debug. I'll re-write the javascript for it tonight and upload it. Hopefully that will give me some idea of what's going on.
  4.  # 22
    Uploaded version 2.0 of User Info.
    • CommentAuthorAlty
    • CommentTimeFeb 22nd 2008 edited
     # 23
    Hi Fyorl, I am incredibly grateful for all the hard work you're putting in to this. It still appears not to be working with v2.0.

    Not-so-funny story though, I uploaded the tar.gz to my server, untarred it and moved it to the extensions directory. I then refreshed my page and it still said UserInfo 1.3, I instantly assume you'd forgotten to change the version number in the default.php, so I change it to 2.0.

    It hadn't worked; a few hours later, I decided to have a look at UserInfo.js since I think the script is now being run, it's just not bringing up the intended pop-up box. My plan was to add the console.log lines somewhere (it's changed too much for me to do this anyway) but I notice that the lines are still there where I left them. Confused, I exit vi and then notice this in the scrollback:

    marrow@yoshi:~$ mv UserInfo ./public_html/vanilla/extensions/
    mv: cannot move `UserInfo' to a subdirectory of itself, `./public_html/vanilla/extensions/UserInfo'
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 23rd 2008
     # 24
    You could try this: First, download UserInfo.tar.gz somewhere then type the following,
    $ cd /public_html/vanilla/extensions/
    $ rm -rf UserInfo
    $ mv /path/to/UserInfo.tar.gz .
    $ tar xvf UserInfo.tar.gz
    $ rm UserInfo.tar.gz
  5.  # 25
    Uploaded version 2.1 of User Info.
    • CommentAuthorAlty
    • CommentTimeFeb 23rd 2008
     # 26
    Updated to Mootools 1.5 and UserInfo 2.1 and it works! What did you do? You're a genius. I'm actually willing to make a small donation for all your hard work, seriously.. this cannot go unrewarded!

    You are a credit to the Vanilla community Fyorl.
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 23rd 2008
     # 27
    Well, it's a bit silly really (but most bugs are caused by silly mistakes). UserInfo simply didn't have all the Mootools modules it needed. I had forgotten to add Window.DomReady and Fx.Style in both the fallback script and in the Mootools AddComponent call.

    I can't believe it managed to slip through. The problem was that on my test forum I have a bunch of other Mootools extensions which were including the necessary modules and so I didn't notice anything. Also, apparently other people who tried this had the same thing since Window.DomReady and Fx.Style are such common modules.

    Oh well I'm glad it works, I appreciate the comments but I don't feel a donation's necessary since it was such a ridiculous mistake >_<
    • CommentAuthorfysicsluvr
    • CommentTimeMar 7th 2008 edited
     # 28
    could this be updated to also work on the list of discussions (started by ___ ... last comment by ___) (medium-low priority)

    and when will the info that's displayed be customizable? (low-low-low priority)

    EDIT:

    and also for the preview post extension (medium-low priority)
    •  
      CommentAuthorFyorl
    • CommentTimeMar 10th 2008 edited
     # 29
    Yup, it's doable. What sort of customisation were you after? I might as well put all your requests in one release.
    • CommentAuthorfysicsluvr
    • CommentTimeMar 10th 2008
     # 30
    Basically, I want to be able to choose which user variables are displayed (Name and Role forced to be selected)

    You could make it a user preference, or a forum-wide preference (preferrably user, with forum-wide default settings used for unauthenticated)

    The bigger "problem" (not much of a problem, as I seem to have gotten by w/o this extension for so long) is that it isn't enabled on the main list of discussions, or the search page, etc.
    •  
      CommentAuthorFyorl
    • CommentTimeMar 10th 2008
     # 31
    Added to the todo list.
    • CommentAuthormiquel
    • CommentTimeMay 22nd 2008
     # 32
    anyone having problems with this and Vanilla Voting for working together?

    user info retrieves the data, but it seems to be unable to build the tool-tip (btw, the userinfo.js file is added to the head section)

    maybe there exists a conflict or whatever in the JS.. :(

    any help? thanks!
    • CommentAuthordubLeE
    • CommentTimeJul 30th 2008 edited
     # 33
    I cannot get this to work on my site:
    www.psusasa.org/hood

    No idea what to do at all!

    Found this using FireBug:

    Class is not a constructor http://psusasa.org/hood/extensions/UserInfo/userinfo.js Line 33
    • CommentAuthorIceBone
    • CommentTimeOct 9th 2008
     # 34
    Any idea how to get this to work with Notify or Notifi? :(
Add your comments
    Username Password
  • Format comments as