desatir7316
Forum Replies Created
-
Forum: Plugins
In reply to: download in woocommerce without paymentany help?
Forum: Fixing WordPress
In reply to: show sidebar in page templateyes it does, and this is the code:
<?php /** * The Sidebar containing the main widget areas. */ $sidebar_show = themerex_get_custom_option('show_sidebar_main'); $sidebar_parts = explode(' ', $sidebar_show); $sidebar_tint = !empty($sidebar_parts[0]) ? $sidebar_parts[0] : 'light'; $sidebar_style = !empty($sidebar_parts[1]) ? $sidebar_parts[1] : $sidebar_tint; // p!wvH $no_sidebar = (is_single() && get_post_type() == 'journals') || (is_tax('journal-category')); if (!themerex_sc_param_is_off($sidebar_show) && !$no_sidebar) { ?> <div class="sidebar widget_area bg_tint_<?php echo esc_attr($sidebar_tint); ?> sidebar_style_<?php echo esc_attr($sidebar_style); ?>" role="complementary"> <?php do_action( 'before_sidebar' ); global $THEMEREX_GLOBALS; if (!empty($THEMEREX_GLOBALS['reviews_markup'])) echo '<aside class="column-1_1 widget widget_reviews">' . ($THEMEREX_GLOBALS['reviews_markup']) . '</aside>'; $THEMEREX_GLOBALS['current_sidebar'] = 'main'; if ( ! dynamic_sidebar( themerex_get_custom_option('sidebar_main') ) ) { // Put here html if user no set widgets in sidebar } do_action( 'after_sidebar' ); ?> </div> <!-- /.sidebar --> <?php } ?>im using this theme: http://themeforest.net/item/bookshelf-books-media-online-store/11426523
yes, in default pages ( with out any template) it shows the sidebar.
Forum: Plugins
In reply to: Show a field by condition (Advance Custome Filed)Forum: Fixing WordPress
In reply to: show posts from blogs in main pagehi Calvin
thanks, im using that and helped me alot, but only does not show feautred images, what should i do? i also checked “Include Post Thumbnails” but didnt effectthanks in advanced
same problem
any help?Forum: Networking WordPress
In reply to: want to only weblog registration be enablei want to remove choices between “gimme a site” and ” just a user name”
Forum: Networking WordPress
In reply to: direct login to weblog from main sitethis helped but i dont know have a security problem or not :
<?php /* Plugin Name: Redirect Users to Primary Site Plugin URI: Description: Never see "you do not currently have privileges on this site" when logging in on your multisite ever again! Version: 2014.06.02 Author: khromov Author URI: https://profiles.wordpress.org/khromov License: GPL2 */ /* http://premium.wpmudev.org/forums/topic/redirect-users-to-their-blogs-homepage */ add_filter('login_redirect', function($redirect_to, $request_redirect_to, $user) { global $blog_id; if (!is_wp_error($user) && $user->ID != 0) { $user_info = get_userdata($user->ID); if ($user_info->primary_blog) { $primary_url = get_blogaddress_by_id($user_info->primary_blog) . 'wp-admin/'; $user_blogs = get_blogs_of_user($user->ID); //Loop and see if user has access $allowed = false; foreach($user_blogs as $user_blog) { if($user_blog->userblog_id == $blog_id) { $allowed = true; break; } } //Let users login to others blog IF we can get their primary blog URL and they are not allowed on this blog if ($primary_url && !$allowed) { wp_redirect($primary_url); die(); } } } return $redirect_to; }, 100, 3);Forum: Networking WordPress
In reply to: limiting user access to plugin settings in its weblogsolved by using admine-menu plugin
Forum: Networking WordPress
In reply to: same setting for all plugings in weblogsyes it is, thanks
but it is useful only when i want to create a blog
how can i have a setting center for change all blogs’ plugins setting at the same time?Forum: Fixing WordPress
In reply to: change wp-singup.php text and stylethanks
also i want to change the style of the wp-singup.php, so if i change it’s content, will my changes return after update wordpress?
is there a right way to change it’s content, for ex when we want to change a theme, the right way is to create a child-theme.Forum: Plugins
In reply to: [SyntaxHighlighter Evolved] i want to show it LTR in a RTL websiteAny suggestion?!!
Forum: Everything else WordPress
In reply to: error while restoring dbused this command for back up, solved my problem:
mysqldump -u root dbname > bkname.sql --hex-blobForum: Plugins
In reply to: use plugin result in a single postthanks for no advice 🙁
Forum: Plugins
In reply to: use plugin result in a single postthat problem solved
but how its shortcode can automaticalyy add to my wordpress shortcode while installin?
now i have to manually add it to funcitons.php fileForum: Fixing WordPress
In reply to: open links in new tabit works with this now B-)
window.moveTo(0, 0); window.resizeTo(screen.availWidth, screen.availHeight);