MakarkinPRO (@makarkinpro)

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • @makarkinpro

    Participant

    Found another plugin

    <?php
    /*
    Plugin Name: .html in url
    Plugin URI: http://www.witsolution.in/
    Description: Adds .html to pages.
    Author: witsolution
    Version: 1.0
    Author URI: http://www.witsolution.in/
    */
    
    add_action('init', 'witsolution_page_permalink', -1);
    register_activation_hook(__FILE__, 'witsolution_active');
    register_deactivation_hook(__FILE__, 'witsolution_deactive');
    
    function witsolution_page_permalink() {
    	global $wp_rewrite;
     if ( !strpos($wp_rewrite->get_page_permastruct(), '.html')){
    		$wp_rewrite->page_structure = $wp_rewrite->page_structure . '.html';
     }
    }
    add_filter('user_trailingslashit', 'witsolution_page_slash',66,2);
    function witsolution_page_slash($string, $type){
       global $wp_rewrite;
    	if ($wp_rewrite->using_permalinks() && $wp_rewrite->use_trailing_slashes==true && $type == 'page'){
    		return untrailingslashit($string);
      }else{
       return $string;
      }
    }
    
    function witsolution_active() {
    	global $wp_rewrite;
    	if ( !strpos($wp_rewrite->get_page_permastruct(), '.html')){
    		$wp_rewrite->page_structure = $wp_rewrite->page_structure . '.html';
     }
      $wp_rewrite->flush_rules();
    }	
    	function witsolution_deactive() {
    		global $wp_rewrite;
    		$wp_rewrite->page_structure = str_replace(".html","",$wp_rewrite->page_structure);
    		$wp_rewrite->flush_rules();
    	}
    ?>

    for posts and pages its working fine. How to make it work for topic and forums for BbPRESS?

    @makarkinpro

    Participant

    Any ideas of how to make that:
    2017-09-26_1226

    ?

    In reply to: Free BBPress Theme

    @makarkinpro

    Participant

    thx. Yeah it’s working a bit what I want.

    Any idea of how to remove Name/Email registration fields from the ShortCode (which is generation login details on the page) ?

    2017-09-24_1652

    @makarkinpro

    Participant

    If I’m on the right way. Does anybody have help with the code in functions.php
    its should like:

    1) Change user role from Subcriber to PaidSubscriber if status is “Active” https://www.screencast.com/t/oAFwrSQVjMy for specific user.

    2) Change user role from PaidSubscriber to Subcriberif status is “Decline”, but if he have not any other orders which is “Active”. Becouse user may buy a 1 month subscription, and the continue it before 5 days before last one is end.

    Ok? anybody may help? )

    @makarkinpro

    Participant

    did you figure out how to make that?

Viewing 5 replies - 1 through 5 (of 5 total)