Bob
Forum Replies Created
-
Thank you so much!
I made the changes in my cpanel, and it worked perfectly!
Thanks again!:)
this is the sidebar.php;
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<?php if ( option::get('ad_side_select') == 'on' && option::get('ad_side_pos') == 'Before widgets' ) { ?><div class="banner"> <?php if ( option::get('ad_side_code') <> "" ) { echo stripslashes(option::get('ad_side_code')); } else { ?><a>"><img src="<?php echo option::get('ad_side_imgpath'); ?>" alt="<?php echo option::get('ad_side_imgalt'); ?>" /></a><?php } ?> </div><?php } if ( function_exists('dynamic_sidebar') ) dynamic_sidebar('Sidebar'); if ( option::get('ad_side_select') == 'on' && option::get('ad_side_pos') == 'After widgets' ) { ?><div class="banner"> <?php if ( option::get('ad_side_code') <> "" ) { echo stripslashes(option::get('ad_side_code')); } else { ?><a>"><img src="<?php echo option::get('ad_side_imgpath'); ?>" alt="<?php echo option::get('ad_side_imgalt'); ?>" /></a><?php } ?> </div><?php } ?> <div class="cleaner">?</div>
I added what you said at the start, so the beginning looked like this;
<?php if ( option::get('ad_side_select') == 'on' && option::get('ad_side_pos') == 'Before widgets' ) { ?><div id="%1$s" class="banner">
But nothing happened, it is still having the same problem
The post page slowly goes up when I activate the plugin
This is my functions.php;
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<?php /** * WPZOOM Theme Functions * * Don't edit this file until you know what you're doing. If you mind to add * functions and other hacks please use functions/user/ folder instead and * functions/user/functions.php file, those files are intend for that and * will never be overwritten in case of a framework update. */ /** * Paths to WPZOOM Theme Functions */ define("FUNC_INC", get_template_directory() . "/functions"); define("WPZOOM_INC", FUNC_INC . "/wpzoom"); define("THEME_INC", FUNC_INC . "/theme"); define("USER_INC", FUNC_INC . "/user"); /** WPZOOM Framework Core */ require_once WPZOOM_INC . "/init.php"; /** WPZOOM Theme */ require_once THEME_INC . "/functions.php"; require_once THEME_INC . "/sidebar.php"; require_once THEME_INC . "/post-options.php"; /* Theme widgets */ require_once THEME_INC . "/widgets/featuredposts.php"; require_once THEME_INC . "/widgets/flickrwidget.php"; require_once THEME_INC . "/widgets/social.php"; /** User functions */ require_once USER_INC . "/functions.php"; function search_by_title_only( $search, &$wp_query ) { global $wpdb; if ( empty( $search ) ) return $search; // skip processing - no search term in query $q = $wp_query->query_vars; $n = ! empty( $q['exact'] ) ? '' : '%'; $search = ''; $searchand = ''; foreach ( (array) $q['search_terms'] as $term ) { $term = esc_sql( like_escape( $term ) ); $search .= "{$searchand}($wpdb->posts.post_title LIKE '{$n}{$term}{$n}')"; $searchand = ' AND '; } if ( ! empty( $search ) ) { $search = " AND ({$search}) "; if ( ! is_user_logged_in() ) $search .= " AND ($wpdb->posts.post_password = '') "; } return $search; } add_filter( 'posts_search', 'search_by_title_only', 500, 2 );
I dont think what u said has it in there
Hi,
The theme that I’m using (Photoria) is not working with the plugin. Can you give me instructions to make it compatible to the photoria website. I do not know too much about php programmingHere is my site