Support » Plugins » Hacks » Dashboard menu

  • Resolved team-ac-realty

    (@team-ac-realty)


    Hello World
    The theme author is missing in action for months now…
    I have an issue with my admin menu
    I had an incompetent designer who hid the agent function in my sites dashboard because it was interfering with the plugin I have which also has an agent function. Now I need to bring it back but it appears to be disabled. Does anyone know how to re enable it?
    Please see attached photo for more details in this link!
    Any help would be amazing.
    Thanks in advance!
    Chris

Viewing 9 replies - 1 through 9 (of 9 total)
  • John Parris

    (@mindctrl)

    Member

    Hi Chris,

    Unfortunately the wordpress.org forum policy doesn’t allow the support of commercial products here, and it appears you’re using the commercial theme from ThemeForest. You’ll need to ask there again.

    That guy hasn’t answered any-ones questions in many months Unfortunately. Its more of an dash board question than his theme product. Do you have any clues as to where to begin?

    Moderator bcworkz

    (@bcworkz)

    Sorry, despite appearances, it’s not a dashboard issue, it’s either a theme or plugin issue. Unfortunately, code to hide a menu item can reside almost anywhere, especially if the dev did not follow the usual protocols for placing custom code.

    First be sure it’s not just hidden with CSS. Check the page source HTML in your browser to see if a link exists. Since it caused a plugin conflict, it probably isn’t there, but it’s an easy first check.

    If you can get terminal access, try using grep to locate “remove_menu_page”. Or download the themes and plugins folders and use any full text search utility. Existence of that text is not necessarily the offending code, but it could be. Complete lack of this text doesn’t mean anything either, there are “hackier” ways to hide menus, such as commenting out the code that added it in the first place.

    You could try re-installing the plugins and theme from the original downloads, but this would also eliminate any “dirty hacks” that may have been added. Proper “clean hacks” should be safe, it’s difficult to know which way it was done until it’s too late — so backup everything before making more changes!

    My site is teamac.ca
    The issue I need to fix is that these agent buttons go nowhere when I click on them

    I found a file called block-agentlistings it contained this code

    Contained in: public_html/wp-content/themes/shandora/templates/blocks

    <?php 
    
    $args = array(
    	'posts_per_page'	=> 48,
    	'post_type'			=> 'listing',
    	'post_status'		=> 'publish',
    	'paged'				=> $paged,
    	'meta_query'		=> array(
    		array(
    			'key' => bon_get_prefix() . 'listing_agentpointed',
                'value' => serialize(array(strval($post->ID))),
                'compare' => '=',
    		)
    	)
    );
    
    $agent_query = new WP_Query($args);
    
    if($agent_query->have_posts()) : $compare_page = bon_get_option('compare_page'); ?>
    
    <ul class="listings <?php shandora_block_grid_column_class(); ?>" data-compareurl="<?php echo get_permalink($compare_page); ?>">
    
    <?php
    	while($agent_query->have_posts()) : $agent_query->the_post();
    
    		$status = shandora_get_meta($post->ID, 'listing_status');
    	    $bed = shandora_get_meta($post->ID, 'listing_bed');
    	    $bath = shandora_get_meta($post->ID, 'listing_bath');
    	    $lotsize = shandora_get_meta($post->ID, 'listing_lotsize');
    	 	$sizemeasurement = bon_get_option('measurement');
    
    	 	$view = isset( $_GET['view'] ) ? $_GET['view'] : 'grid';
    
    		$li_class = '';
    	    if( ($agent_query->current_post + 1) == ($agent_query->post_count) ) {

    Its slightly different than the code found in the original files when you download the theme found here:

    <?php 
    
    $args = array(
    	'posts_per_page'	=> 48,
    	'post_type'			=> 'listing',
    	'post_status'		=> 'publish',
    	'paged'				=> $paged,
    	'meta_query'		=> array(
    		array(
    			'key' => bon_get_prefix() . 'listing_agentpointed',
                'value' => serialize(array(strval($post->ID))),
                'compare' => '=',
    		)
    	)
    );
    
    $agent_query = new WP_Query($args);
    
    if($agent_query->have_posts()) : $compare_page = bon_get_option('compare_page'); ?>
    
    <ul class="listings <?php shandora_block_grid_column_class(); ?>" data-compareurl="<?php echo get_permalink($compare_page); ?>">
    
    <?php
    	while($agent_query->have_posts()) : $agent_query->the_post();
    
    		$status = shandora_get_meta($post->ID, 'listing_status');
    	    $bed = shandora_get_meta($post->ID, 'listing_bed');
    	    $bath = shandora_get_meta($post->ID, 'listing_bath');
    	    $lotsize = shandora_get_meta($post->ID, 'listing_lotsize');
    	 	$sizemeasurement = bon_get_option('measurement');
    
    ?>
    <li>
    <article id="post-<?php the_ID(); ?>" <?php post_class( $status ); ?> itemscope itemtype="http://schema.org/RealEstateAgent">
    	<header class="entry-header">
    		<div class="listing-hover">
    			<span class="mask"></span>
    			<?php echo shandora_get_listing_hover_action($post->ID); ?>
    		</div>
    
    		<?php
    			$terms = get_the_terms( $post->ID,"property-type" );
    
    			if ( $terms && ! is_wp_error( $terms ) )
    			{
    				   foreach ( $terms as $term )
    				   {
    						echo '<a class="property-type" href="' . get_term_link($term->slug, "property-type" ) .'">'.$term->name.'</a>';
    						break; // to display only one property type
    				   }
    			}
    
    			?>
    			<?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'post_id' => $post->ID, 'size' => 'listing_small' ) ); ?>
    			<?php $status_opt = shandora_get_search_option('status'); ?>
    			<div class="badge <?php echo $status; ?>"><span><?php if($status != 'none') { if(array_key_exists($status, $status_opt)) { echo $status_opt[$status]; } } ?></span></div>
    
    		</header><!-- .entry-header -->
    
    		<div class="entry-summary">
    
    			<?php echo apply_atomic_shortcode( 'entry_title', '<h1 class="entry-title" itemprop="name">'.$post->post_title.'</h1>' ); ?>
    			<div class="entry-meta">
    
    				<div class="icon bed">
    					<i class="sha-bed"></i>
    					<span><?php if(empty($bed)) { echo '-'; } else { printf( _n('%s Bed','%s Beds', $bed , 'bon'), $bed ); }?></span>
    				</div>
    
    				<div class="icon bath">
    					<i class="sha-bath"></i>
    					<span><?php if(empty($bath)) { echo '-'; } else { printf(_n('%s Bath','%s Baths', $bath , 'bon'), $bath ); } ?></span>
    				</div>
    				<div class="icon size">
    					<i class="sha-ruler"></i>
    					<span><?php if($lotsize) { echo $lotsize . ' ' . $sizemeasurement; } else { echo '-'; } ?></span>
    				</div>
    
    			</div>
    		</div><!-- .entry-summary -->
    
    		<?php bon_get_template_part( 'block', 'listing-footer' ); ?>
    
    </article>
    </li>
    <?php
    endwhile;
    ?>
    	</ul>
    <?php
    endif; wp_reset_query();
    ?>

    Is this code relevant to my issues you think?
    I couldnt find remove_menu_page
    If I cancel and re install it will take away a few thing that this designer put though

    Thanks for your help
    Chris

    Moderator bcworkz

    (@bcworkz)

    That code appears to be for displaying listings related to a particular agent. It might be for where you want the links to go, but not for the initial links themselves.

    You need to find the template that outputs the agent images and the subsequent social links. It should be in your active theme’s folder. The images need to be wrapped in anchor tags where the href attribute leads to where ever the link should take you. I can’t be more specific without seeing the template code for these images.

    Thanks for all your help bcworkz
    Your too kind
    Due to my lack of knowledge, my previous designer willing to help(without a fee, and I would let her in to touch it either) and the theme author not answering his forum questions for months. I decided to use the few skills I do have, photoshop and basic html 🙂
    I did a code with a simple text widget and came up with a solution
    however if you see it the social icons here are vertical and I tried a series of codes to force them to the same line with no luck
    Do you know how I can rectify this issue?
    Sorry to change directions but I just gotta solve it to the best of my abilities 😉
    Thanks again
    Chris

    The code I have used is this:

    <center><img src="http://teamac.ca/wp-content/uploads/2015/09/agent-chris.jpg"><br>
    <a href="https://www.facebook.com/agentChrisCraddock" target="_blank">
    <img src="http://teamac.ca/wp-content/uploads/2015/09/facebook-logo.jpg"></a>
    
    <a href="https://twitter.com/Team_AC_Realty/media" target="_blank">
    <img src="http://teamac.ca/wp-content/uploads/2015/09/twitter-logo.jpg"></a>
    
    <a href="https://www.linkedin.com/in/TeamAC"target="_blank">
    <img src="http://teamac.ca/wp-content/uploads/2015/09/linkedin-logo.jpg"></a>
    
    <a href="https://www.youtube.com/channel/UCUmuEXFuYNRS73cpwHZ3SYQ"target="_blank">
    <img src="http://teamac.ca/wp-content/uploads/2015/09/youtube-logo.jpg"></a>

    I tried <oi><li> with addition css and html that I was successful with before in cf7 forms, Ive tried <p> and a few other things

    Moderator bcworkz

    (@bcworkz)

    I’m sorry you’re in such a predicament. I do understand how it happens and the need for any workable solution at all. Your approach is sound – use the tools you know and make it work somehow. Improvements can come later.

    Unfortunately, I’ve never been able to easily get CSS to conform to my will. I’ve resorted to simply trying things until something works. I’d suggest putting the links and images all in a single container. <ul><li> with the list style removed is quite common. A simple <div> could work too. Assign a class so you can apply CSS with the dot selector, maybe .social a {position: relative; float: left;} for starters.

    I think float left is key to getting things to stack horizontally. Then locate the outer container relative to the agent images. If you haven’t done so already, take advantage of your browser’s developer tools to help you examine and test out various CSS rules, it’s much faster than the typical edit/save/reload cycle.

    If you can post a working link to your test page I might be able to help more — or not, no promises! In the mean time, good luck.

    Thanks for all your help Im going to get cracking on it
    I ll let you know how it goes
    Thanks so much bc works Your Awesome!

    Funny enough I tried a few codes and putting everything on the same line without spaces is what did it?!?!?!?
    Thanks so much for all your help!
    Your a good person
    Happy coding!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Dashboard menu’ is closed to new replies.