[Support request] BuddyPress custom js code into GP?

Home Forums Support BuddyPress custom js code into GP?

This topic contains 20 replies, has 3 voices, and was last updated by  Leo 1 week, 3 days ago.

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

    GP Premium 1.7.5
    #736477

    David 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 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 Customer Support
    #737167

    Carsten

    You need admin access?

    #737168

    Carsten

    Is there a private way to share this?

    #737176

    David 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 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 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 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.