[Support request] BuddyPress custom js code into GP?

Home Forums Support [Support request] BuddyPress custom js code into GP?

Home Forums Support BuddyPress custom js code into GP?

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #736275
    Carsten

    Hi there, I just purchased GP Pro to be able to put in som js code to auto fill the mandatory ‘subject’ field in BuddyPress private message. I created a Custom Hook and copied the code into here, but with no effect?

    ‘You may use the following js(in document ready block) to add the subject on your own’
    <script>
    jQuery(‘#send_message_form’).submit( function() {
    jQuery(‘#subject’).val(“Some message subject”);
    });
    </script>

    What am I doing wrong?

    Regards
    Carsten

    #736477
    David
    Staff
    Customer Support

    Hi there,

    Thanks for the custom!
    Can you check that you have jQuery enqueued. GP doesn’t add it, unless you are using the Sticky Navigation.

    #736609
    Carsten

    Hi David, I am not quite sure how i do that?

    ‘Can you check that you have jQuery enqueued.’

    Regards
    Carsten

    #737154
    David
    Staff
    Customer Support

    Can you provide a link to your Site?
    You can edit your original topic and use the Site URL field for privacy

    #737163
    Carsten

    Sure

    #737165
    David
    Staff
    Customer Support

    Got a password? 🙂

    #737167
    Carsten

    You need admin access?

    #737168
    Carsten

    Is there a private way to share this?

    #737176
    David
    Staff
    Customer Support

    Don’t need admin, its requesting a password to enter the Site.

    #737177
    Carsten

    Ohh yes sorry, I turn this of now

    #737184
    David
    Staff
    Customer Support

    OK, so good news is jQuery is loading but there is a 404 error on the buddyregistration.js. I assume this is the script thats required for the registration. Can you try reinstalling the buddyregistration plugin?

    #737186
    Carsten

    I think it was a third part registration plugin, which causes this error, it is deactivated now, would you please try again?

    #737212
    David
    Staff
    Customer Support

    I am still seeing the 404 error on buddyregistration.js also there is a script fpr count.logonike that is also failing on a time out.

    Need to really resolve those issues first.

    #737242
    Carsten

    I hope this is fixed now

    #737588
    David
    Staff
    Customer Support

    OK, so hook your Javascript wrapped like this:

    <script type="text/javascript">
      jQuery(document).ready(function() {
        Script in here
      });
    </script>
Viewing 15 posts - 1 through 15 (of 21 total)
  • You must be logged in to reply to this topic.