Logo icon cloodo.com
Logo icon cloodo.com

Menu

Agency
  • Log in
  • Log out

dafnie

Member since 2022

Reviews Project

Works perfects

Rating Cloodo

Tried the plugin for 10 weeks and have never had any problems

2022-02-11 at 19:36:59

Simple and easy to use

Rating Cloodo

Easy and simple plugin.

But the image upload script loads on all pages, not just on topic and reply pages.
The function “hm_bbpui_enqueue_scripts()” should be modified to load on only the needed pagetypes.

The code

function hm_bbpui_enqueue_scripts() {
$get_post_type = get_post_type();
if (‘topic’ == $get_post_type || ‘forum’ == $get_post_type) {
wp_enqueue_script(‘hm_bbpui’, plugins_url(‘js/bbp-image-upload.js’, __FILE__), array(‘jquery’));
wp_enqueue_style(‘hm_bbpui’, plugins_url(‘css/bbp-image-upload.css’, __FILE__));
}
}

Should do the trick

  • This topic was modified 2 years ago by dafnie.

2022-03-24 at 02:01:09
Logo icon cloodo.com

Cloodo helps to accellerate Digital Transformation for any business with Know-How Agencies supported by Smart Project Management Apps and Secured Payment for Final Result

Cloodo is a trademark of Cloodo Inc, an Atlas company with registered address at Suite 206, 651 N Broad St , MiddleTown, NewsCattle, Delaware, US

Cloodo is also a sister company with Netbase JSC. whom Development Center at Suite 207, M3M4 Building, 91 Nguyen Chi Thanh, Hanoi, VN

CLOODO

Project

Services

Licenses And Terms

Privacy Policy

Browse All Directories Agency

Browse All Directories Project

Logo icon cloodo.com

Cloodo Inc. Copyright ©2011-2021 All Rights Reserved.

Developed by Netbase JSC