Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
In reply to: Add .HTML in the URL structure
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?
In reply to: Need Forum Page Full WidthIn reply to: Free BBPress ThemeIn reply to: Paid Access to the BBpressIf 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? )
In reply to: Need Forum Page Full Widthdid you figure out how to make that?
Viewing 5 replies - 1 through 5 (of 5 total)