No Thanks Just an idea...

Discussion in 'Feedback & Assistance' started by MadDoctorMaddie, Dec 9, 2009.

Thread Status:
Not open for further replies.
  1. MadDoctorMaddie I'm a doctor, not a custom title!

    Joined:
    Apr 19, 2008
    Gender:
    Female
    Location:
    Med Bay
    396
    I've got no idea if this is possible, but could the links you get in the User CP when you get a new VM go straight into the convo, in stead of going to your profile? It's a really small, unimportant thing, but for some reason it annoys me a lot xDx
     
  2. Arch Mana Knight

    Joined:
    Oct 5, 2007
    Gender:
    Male
    Location:
    Anywhere
    2,430
    It annoys me too. >< I end up viewing nearly all my conversations at once when I do it the normal way. I have to go to the other person's profile and find my last message to click "View Conversation". DX
     
  3. Hell Kaiser Ryo Kingdom Keeper

    Joined:
    Mar 28, 2007
    Location:
    Where the Simple Man lives.
    59
    835
    Well, as I see this idea, that would take the stress out of going into the Profile of yours, click the "View Conversation" link, and do that. But what you're asking is that you want to make it to where the conversation is made automatically, instead of being sent to your Profile. I believe that it is a good idea indeed. It's somewhat like that to a PM message as well. I would approve of such a thing myself, but that's up to the higher-ups above me, to choose whether to go with such a thing as this or not. It isn't so much a problem as doing it, it's the construction of such a thing.

    There will be a lot of flaws to it though, flaws that can take you to some other conversation that isn't yours really. So, it wouldn't take long for such a thing to go wrong.
     
  4. Cherry Berry Chaser

    Joined:
    Dec 4, 2006
    Location:
    Nudist Beach
    485
    Personally I think its a great idea as its quicker, more efficient and will be easier for everyone instead of just going through the longer process like looking through your profile.

    I guess it's down to the staff though if they want to approve or disapprove of the idea.
     
  5. Chevalier Crystal Princess

    Joined:
    Jan 8, 2008
    Location:
    Trapped on an Island
    552
    *Bumps super old thread*

    Can this be done somehow? It actually sounds really useful and efficient. Would like some Administrator input on this.
     
  6. Misty gimme kiss

    Joined:
    Sep 25, 2006
    Gender:
    Cisgender Female
    Location:
    alderaan
    6,590
    I played around with the template for... like an hour but didn't have much luck. ._. Couldn't find a way for it to fetch the User IDs, they kept coming up as 'array'. I'll keep looking for a way but I make no promises.
     
  7. Always Dance Chaser

    Joined:
    Feb 22, 2009
    220
    It sounds natural that they would be in an array. Is there any documentation on how it's sorted? If it's by date joined (which I'd assume) it should be member number one is a[0], member number two is a[1], etc.
     
  8. Misty gimme kiss

    Joined:
    Sep 25, 2006
    Gender:
    Cisgender Female
    Location:
    alderaan
    6,590
    That's it, yeah (though I don't believe there is a user #0, it starts with 1). I'm just going to try asking on the vB resource site, someone that knows how vB works would likely have an easier time with it all.
     
  9. Amaury Chaser

    Joined:
    Jan 15, 2007
    Gender:
    Male
    Location:
    Ellensburg, WA
    1,694
    This idea has my support, too.

    It also looks like it's already being looked into.
     
  10. Always Dance Chaser

    Joined:
    Feb 22, 2009
    220
    As far as I know ALL arrays start at 0, as in member number one would be stored in element 0. So if the array is called "Member" you should be able to call Member[0] to get the ID of the first member, etc.
    So you should be able to make a variable link like http://www.kh-vids.net/converse.php?u=Member[memberx]&u2=Member[membery]

    (Just guessing from my knowledge of Java and C++, I have no idea how vB works)
     
  11. Misty gimme kiss

    Joined:
    Sep 25, 2006
    Gender:
    Cisgender Female
    Location:
    alderaan
    6,590
    Just checked and DS is member no.1, so I guess vB is an exception? haha.

    But yeah, that's pretty much what I was doing. The problem is getting it to pull the user ID of the person who left the message, and (surprisingly) you. (not as in Slaughtermatic specifically, just as in whoever's UCP it is)
     
  12. Always Dance Chaser

    Joined:
    Feb 22, 2009
    220
    You seem to not be understanding me >.<
    I know DS is member 1, but in an array of members he should still be stored in element zero.
    As for pulling the User ID of who left the message...well there's a link to their profile in the user cp when you get a message from them, so you could probably parse it from that? For yourself, you'll have to check the documentation of vB. There should be a method/function like self.getUserId(), but you'd have to look at the documentation/API to see exactly what it's called.
     
  13. Misty gimme kiss

    Joined:
    Sep 25, 2006
    Gender:
    Cisgender Female
    Location:
    alderaan
    6,590
    Yeah, that's why I was just going to look/ask on the resource site, haha.
     
  14. Always Dance Chaser

    Joined:
    Feb 22, 2009
    220

    HEY GUESS WHAT?
    THE ADMINS CAN'T ADD THIS FEATURE?
    WELL I CAN, BITCHES.

    Temporary solution until someone actually adds this to the site:
    Create a new bookmark, name it whatever you want, in the URL field, paste the raw past data from this link:

    http://pastebin.com/wiKpKMVM

    When you're in your User CP and you have a new VM, click the bookmark, it should take you straight to your convo.
    Someone let me know if this works. I tested it and it seems to be working fine for me. Let me know.
     
  15. Boy Wonder Dark Phoenix in Training

    Joined:
    Aug 31, 2008
    Gender:
    Male
    Location:
    Genosha
    2,239
    It didn't work for me. Nothing at all happened.
     
  16. Always Dance Chaser

    Joined:
    Feb 22, 2009
    220
    Damn. Well I'll have to try and fix it later tonight.

    Wait.
    Try deleting that last ) before the the last ; and try again
     
  17. Boy Wonder Dark Phoenix in Training

    Joined:
    Aug 31, 2008
    Gender:
    Male
    Location:
    Genosha
    2,239
    Still didn't work, unless I'm doing it wrong.
    I put exactly what you said in the url field of the bookmark (both times), got a VM, clicked on Settings, and instead of clicking on the VM, I clicked on the bookmark...but nothing happened.
     
  18. Always Dance Chaser

    Joined:
    Feb 22, 2009
    220
    What browser are you using? Apparently getElementByClassName() may not be supported on some... I did it on firefox.

    Anyway someone send me a vm so I can try to fix it when I get home.

    EDIT-okay i think just found out what's wrong. Due to a formatting error in vbulletin, for some reason there's a space (or a %20) in the second "getElementByClassName" if you copy paste it from my post. After copy pasting it I had "getElementBy%20ClassName", it should be "getElementByClassName".

    Copy paste it from the original post again and remove that %20 and see if it works

    EDIT AGAIN- okay I just edited the post with a link to PasteBin that shouldn't give you the space problem if you copypaste from there. Someone test please!
     
  19. Boy Wonder Dark Phoenix in Training

    Joined:
    Aug 31, 2008
    Gender:
    Male
    Location:
    Genosha
    2,239
    OMG, THIS WORKED.
    a
     
  20. Always Dance Chaser

    Joined:
    Feb 22, 2009
    220
    Yay! C:

    Now, KHV must officially endorse this!
    /feelslikeahaxor

    (But seriously if you could somehow replace the link on the CP to the person's profile with this link, that'd be nice)

    If anyone's wondering how I made this, I used Chrome's "inspect element" feature to find the names (Well classes actually, they don't have names, which gave me a lot of gripe) of the links to your profile and your VMers profile. And I had enough knowledge of Javascript to write that little code. How I posted it is probably unreadable, but I wanted to make it as small as possible. Here's the bigger, readable version:
    Code:
    
    var x = (document.getElementsByClassName('username understate commalist')[0].href);
    var y = x.slice(34,39);
    x = document.getElementsByClassName('welcomelink')[0].href;
    var z = x.slice(36,39);
    window.location = ('kh-vids.net/converse.php?u='+y+'&u2='+z);
    
    Explanation:
    Okay, so document.getElementsByClassName('username understate commalist') returns an array of all elements on the page with the Class name "username understate commalist". I found that the link to the VMers profile has that class name, so that's why used it. Even though there's only one element on the page with this name, it still returns an array. What I want is the first element in the array, which is why I used [0]. The ".href" is at the end because the href is the URL of the user's profile. So after everything, the variable x contains the link to the user's profile
    The .slice(34,39) cuts out every part of the link except for the user ID. Slicing the link to my profile from the 34th to the 39th character leaves only "36122", for example. Keep in mind that this means it won't work for anyone with an ID of more than 5 digits. For some reason it does still work if you have less than 5 digits though. I don't know why.
    Then the rest of it should be pretty self explanatory.

     
Thread Status:
Not open for further replies.