Forum Replies Created

Viewing 15 replies - 1 through 15 (of 27 total)
  • Thread Starter edyzen

    (@edyzen)

    Hello

    Yes , the browser is re-loading the site after clicking “External Login” item , and in the right side still showing General Settings , the browser still loading for long time

    Thread Starter edyzen

    (@edyzen)

    I can add the user to the user list of mainsite.com ( ID 1).

    But this is consume many time if there are thousands users. I must add the users one by one.

    How to write code snippet for thousands of User ID to access blog ID 1 ?

    Can i write like below ?

    function my_threewp_broadcast_get_user_writable_blogs( $action )
    {
    	$users_and_blogs = [
    		// User ID			// Blog IDs
    		>=2				=> [ 1 ]
    		//6				=> [ 88, 89, 91 ],
    	];
    	if ( ! isset( $users_and_blogs[ $action->user_id ] ) )
    		return;
    	
    	foreach( $users_and_blogs[ $action->user_id ] as $blog_id )
    		$action->add_access( $blog_id );
    }
    // Broadcast fills the blog list at prio 100, so use a higher number.
    add_action( 'threewp_broadcast_get_user_writable_blogs', 'my_threewp_broadcast_get_user_writable_blogs', 200 );
    Thread Starter edyzen

    (@edyzen)

    function my_threewp_broadcast_get_user_writable_blogs( $action )
    {
    	$users_and_blogs = [
    		// User ID			// Blog IDs
    		38				=> [ 1 ]
    		//6				=> [ 88, 89, 91 ],
    	];
    	if ( ! isset( $users_and_blogs[ $action->user_id ] ) )
    		return;
    	
    	foreach( $users_and_blogs[ $action->user_id ] as $blog_id )
    		$action->add_access( $blog_id );
    }
    // Broadcast fills the blog list at prio 100, so use a higher number.
    add_action( 'threewp_broadcast_get_user_writable_blogs', 'my_threewp_broadcast_get_user_writable_blogs', 200 );
    

    User ID 38 got from phpmyadmin inside table wp_users.

    Thread Starter edyzen

    (@edyzen)

    First for add the user to the member list of the main site is success. Thanks .

    But for another user for code snippet to add blog access still no result, I put this code in the bottom of functions.php in running theme.

    Thread Starter edyzen

    (@edyzen)

    Hello Marcin

    In the single.php I found

    get_template_part(‘template-parts/content’, get_post_type());

    and I already put the shortcode https://kainex.pl/projects/wp-plugins/wise-chat-pro/faq/how-to-add-the-chat-to-all-posts/

    Thanks your idea . This is useful.

    Sir, inside dashboard channels settings I found thousand channel names such as :

    Post #50806 channel

    Post #50925 channel

    and so on

    My next question is how to directly go to specific channel name? The example go to Post #50928 channel without search one by one with scroll cursor up down. Whether wise chat pro have future search box for channel name ?

    Thread Starter edyzen

    (@edyzen)

    Thanks your plugin,
    Already post issues in :
    https://github.com/bassjobsen/wp-defer-loading/issues/7

    Thread Starter edyzen

    (@edyzen)

    Thread Starter edyzen

    (@edyzen)

    I try use such as below , but this is fail . Any idea ?

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    <script type="text/javascript">
    
    // Add a script element as a child of the body
    function downloadJSAtOnload() {
    var element = new array(document.createElement("script"););
    element[0].src="https://s.ytimg.com/yts/jsbin/www-embed-vflqDUnF8.js"; element[1].src="https://w.sharethis.com/share4x/js/st.dbe26be4459b4d0dd4547c53315a8e0a.js";
    element[2].src="https://www.propertypilihan.com/wp-includes/js/jquery/jquery.js?ver=1.8.3";
    element[3].src="https://w.sharethis.com/widget/?wp=5344";
    element[4].src="https://www.propertypilihan.com/wp-content/plugins/nextgen-gallery/js/jquery.cycle.all.min.js?ver=2.9995"; element[5].src="https://www.propertypilihan.com/wp-content/plugins/nextgen-gallery/shutter/shutter-reloaded.js?ver=1.3.3"; element[6].src="https://www.propertypilihan.com/wp-content/plugins/nextgen-gallery/js/ngg.slideshow.min.js?ver=1.06"; element[7].src="https://edge.sharethis.com/share4x/index.c2670ee4b52a2b88a02bd11172df6393.html"; element[8].src="https://seg.sharethis.com/getSegment.php?purl=http%3A%2F%2Fwww.propertypilihan.com%2F&jsref=&rnd=1365957623937";
    element[9].src="https://www.youtube.com/embed/Wzl37ULpBMA";
    element[10].src="https://www.youtube.com/embed/7HHHcRxwge4";
    element[11].src="https://www.youtube.com/embed/ulzAZeKf9Jw";
    element[12].src="https://www.youtube.com/embed/OWhMLJNy2ms";
    document.body.appendChild(element);
    }
    
    // Check for browser support of event handling capability
    if (window.addEventListener)
    window.addEventListener("load", downloadJSAtOnload, false);
    else if (window.attachEvent)
    window.attachEvent("onload", downloadJSAtOnload);
    else window.onload = downloadJSAtOnload;
    Thread Starter edyzen

    (@edyzen)

    Thanks your idea gabrielcastillo
    But I don’t understand about ” Here’s an example (where “deferredfunctions.js” contains the functions to be lazily loaded)”

    These is suggestion for my page :

    978.5KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page rendering.

    https://s.ytimg.com/yts/jsbin/html5player-vflR_cX32.js
    https://s.ytimg.com/yts/jsbin/html5player-vflR_cX32.js
    https://s.ytimg.com/yts/jsbin/html5player-vflR_cX32.js
    https://s.ytimg.com/yts/jsbin/html5player-vflR_cX32.js
    https://s.ytimg.com/yts/jsbin/www-embed-vflqDUnF8.js
    https://s.ytimg.com/yts/jsbin/www-embed-vflqDUnF8.js
    https://s.ytimg.com/yts/jsbin/www-embed-vflqDUnF8.js
    https://s.ytimg.com/yts/jsbin/www-embed-vflqDUnF8.js
    https://w.sharethis.com/share4x/js/st.dbe26be4459b4d0dd4547c53315a8e0a.js
    https://w.sharethis.com/widget/?wp=4959
    https://edge.sharethis.com/share4x/index.c2670ee4b52a2b88a02bd11172df6393.html
    https://seg.sharethis.com/getSegment.php?purl=http%3A%2F%2Fwww.propertypilihan.com%2F&jsref=&rnd=1365767887820
    
    
    
    https://www.youtube.com/embed/OWhMLJNy2ms

    Where I put these suggestion pages?

    Thread Starter edyzen

    (@edyzen)

    WPyogi
    Thanks for your suggestion, that is very useful

    Thread Starter edyzen

    (@edyzen)

    Thanks AITpro
    I already changed file permission to 644 and I can save wp-config.php.

    Thread Starter edyzen

    (@edyzen)

    very Thanks for your suggestion.
    But I still not understand about to lock down installation to close that door.

    The hacker already changed my database password.
    And I had to change it back.

    But I still worried the hacker will change it again , and I can not access my database

    Thread Starter edyzen

    (@edyzen)

    I think I do not need to remove (HEAD

    OK , thanks AITpro

    Thread Starter edyzen

    (@edyzen)

    My choice is not clear #request methods filtered …..

    Thanks for your explanation. I wait your next version

    Thread Starter edyzen

    (@edyzen)

    Your information very useful, I will learn first for to fix it. thanks Kmessinger

Viewing 15 replies - 1 through 15 (of 27 total)