Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


Save Button handler for Edit My Thumbnail

edited June 2012 in Questions

how to find where it is?

the found url redirects in files

forum\js\library\jquery.popup.js and forum\applications\dashboard\controllers\class.profilecontroller.php

seems not connected to this dialog.

Best Answers

  • peregrineperegrine MVP
    edited June 2012 Answer ✓

    it is probably take care of in profile.js around line 55

    $('.Popup :submit').click(function() {
    $('.Popup .Body').children().hide().end().append('<div class="Loading">&nbsp;</div>');
    }); 
    

    and then reverts back to the file that made the call to it - profile/index.php or profile/thumbnailphp. maybe? you might have look digging around in those three files.

    Monetary Donations will be appreciated if you use my plugins. Thanks in Advance.
    As a waiter gets a tip for a good meal, tips for successful solutions appreciated as well. Peregrine

    johansonlocker
  • 422422 Developer MVP
    Answer ✓

    is removepicturelink defined ?

    422 Real Estate Australia , now open Check it out

    johansonlocker

Answers

  • edited June 2012

    Yes, thanx. I've found this line already.

    Now i think of implementing remove picture approval.

    There's a popup linked to RemovePictureLink in the same profile.js

       // Remove Profile Picture
       $('a.RemovePictureLink').popup({
          confirm: true,
          followConfirm: false
       });
    

    but it doesnt work.

  • well, if you ask a question and you solved it - save us some time from having to respond by saying solved - seems like the courteous thing to do.

    suggestion: how to find where it is?

    should say

    how do I find where it is?

    then I will know you are asking a question, instead of providing an answer.

    Monetary Donations will be appreciated if you use my plugins. Thanks in Advance.
    As a waiter gets a tip for a good meal, tips for successful solutions appreciated as well. Peregrine

  • 422422 Developer MVP

    Please keep one discussion to ONE question.

    It gets ever so complicated when you mix and match @johansonlocker

    Plus users searching the forums, will find a title to one thing and context within it to something else.

    422 Real Estate Australia , now open Check it out

    johansonlocker
  • edited June 2012

    @peregrine Oh my apologies, i've seen your answer by the moment when I had been going to say that the question had been solved :)

    And what about remove confirmation - could you help me ? :)

  • 422 said: Please keep one discussion to ONE question.

    Ok, I will next time :)

    422
  • johansonlocker said: @peregrine Oh my apologies, i've seen your answer by the moment when I had been going to say that the question had been solved :)

    And what about remove confirmation - could you help me ? :)

    can you explain again what you want to do or add more details - its not clear to me.

    Monetary Donations will be appreciated if you use my plugins. Thanks in Advance.
    As a waiter gets a tip for a good meal, tips for successful solutions appreciated as well. Peregrine

  • edited June 2012

    peregrine said: can you explain again what you want to do or add more details - its not clear to me.

    well, in the file profile.js there's a code which should call a confirmation popup $('a.RemovePictureLink').popup({

    But it doesn't popup - it redirects to RemovPicture in class.profilecontroller.php

    How to correct the code that it shows a confirmation dialog?

    I corrected the code to

               // Remove Profile Picture
               $('a.RemovePictureLink').live('click',function(){
                  alert(123);
               });
    

    but it does not work too.

  • edited June 2012

    422 said: is removepicturelink defined ?

    oh thanx a lot - this class has really parent tag < li > :)

    Now the remove confirmation works :)

    422
Sign In or Register to comment.