wpengine

wpengine

Welcome, Guest
Username: Password: Remember me

TOPIC: "View Project on Behance" adds a "1"s on site

"View Project on Behance" adds a "1"s on site 5 years 11 months ago #1192

  • Matt
  • Matt's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: -1
No, I have done neither of those. I have only added in custom CSS via the settings.

Turning off the "View Project on Behance" option removes the 1. But I'd like it to be on.
The administrator has disabled public write access.

"View Project on Behance" adds a "1"s on site 5 years 11 months ago #1193

  • eLEOPARD
  • eLEOPARD's Avatar
  • Offline
  • Administrator
  • Posts: 409
  • Thank you received: 54
  • Karma: -28
Well, I think somebody has edited the files :)

Could you please open
wp-content/plugins/portfolio-manager-powered-by-behance/layouts/eds-bpm-multi-cat.php

And see if the line 109 with "<?php if($view_on_behance): ?>"
has the number 1 written anywhere.

Also, try updating the plugin to the latest version, in case it's not updated.
Last Edit: 5 years 11 months ago by eLEOPARD.
The administrator has disabled public write access.

"View Project on Behance" adds a "1"s on site 5 years 11 months ago #1194

  • Matt
  • Matt's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: -1
No such luck, unfortunately.

No 1s anywhere near that line, and the plugin is already the latest version.

Here's the code:
<?php   
 	if ( ! defined( 'WPINC' ) ) {
		die;
	}	   
	$customCSS = '	 
		eds-bpm-section {
			margin: 0;			    
		    text-align: center;
		}
		
		eds-bpm-section ul {	
			margin: 0;		    
		    padding: 20px 0;
		    border-bottom: 1px solid rgb(220,220,220);
		}     
		   
		eds-bpm-section li {
		    display: inline-block;
		    list-style: none outside none;
		    border: 0px none;
		    margin: 16px 4px;
		} 
		  
		
		eds-bpm-section li span { 
		 margin: 0 10px 10px 0;
		 line-height: 39px;
		 color: '.$attributes['tab_utc'].';
		 padding: 10px 20px;
		 text-decoration: none !important;
		 font-family: \'Open Sans\',sans-serif !important;
		 background:  '.$attributes['tab_ubc'].';
		
		}
		
		eds-bpm-section li span.selected {
		 top: 1px;
		 background: '.$attributes['tab_sbc'].';
		 color: '.$attributes['tab_stc'].';
		}
		
		eds-bpm-section li span:hover {
			background: '.$attributes['tab_hbc'].';
			color: '.$attributes['tab_htc'].';	
			cursor:pointer;
		}
		
		.eds-bpm-option-set{
		 	position: relative;
		 }
		 
		.eds-bpm-view-dynamic
		{
			margin: '.$attributes['tile_margin'].'px;
		}
		
		.isotope-item{
			position: relative;
		  	float: left;
		  	width: 220px;
	   		height: 158px;	  	
		}
		.isotope-item > * {
	  		margin: 0;
	  		padding: 0;
	} ';

		
	if (isset($config['eds_bpm_custom_css']) && trim($config['eds_bpm_custom_css'])!=''){	
		$customCSS .= trim($config['eds_bpm_custom_css']);
	}
	
	if($customCSS != null && $customCSS !="")
		$customCSS = EDS_BPM_Config::trim_all($customCSS);
		
	
	wp_localize_script( 'eds-bpm-site-js', 'eds_bpm_custom_css', $customCSS );	
	
?>
<eds-bpm-section id="options" class="clearfix">
	<ul id="filters" class="eds-bpm-option-set" data-option-key="filter">
		<?php if($show_all==1):?>			
			<li><span class="cat-tab" catname="be-all-cat"><?php _e('All','eds-bpm');?></span></li>			
		<?php endif;?>
		<?php foreach($categories as $category):?>
			<?php if($category!= null):?>
				<li><span class="cat-tab" catname="<?php echo $category->slug?>">
					<?php echo $category->name;?></span>
				</li>										
			<?php endif; ?>
		<?php endforeach;?>
	</ul>
</eds-bpm-section>
<div class="eds-bpm-main isotope <?php echo 'mosaic-view-'.$attributes['mosaic_style'];?>" id="eds-bpm-project-container">
	<?php foreach($projects as $project):?>		
		<div class= "isotope-item <?php echo $project->cat_slug;?>">	
			<div class="eds-bpm-view eds-bpm-view-first">
				<img src="<?php echo $project->b_project_thumb;?>" />
				<div class="eds-bpm-mask">
					<div class="eds-bpm-view-heading"><?php echo $project->b_project_name; ?></div>
					<div class="eds-bpm-view-para"><?php echo $project->b_creative_fields;?></div>
					<?php $new_tab_string = '';?>
					<?php if($open_in_different_tab): ?>
						<?php $new_tab_string = 'target="_blank"';?>
					<?php else: ?>
						<?php $new_tab_string = '';?>
					<?php endif; ?>
					<?php echo $view_on_behance;?>
					<?php if($view_on_behance): ?>						
						<a class="eds-bpm-info" href="<?php echo $project->b_project_url; ?>" <?php echo $new_tab_string; ?> ><?php _e('View Project','eds-bpm');?></a>								
					<?php else: ?>
						<?php if($enable_pretty_url):?>
							<?php if(is_front_page() && !is_home()):?>
								<a class="eds-bpm-info" href="<?php echo $siteUrl."?p=".$currentPost->ID."&ch_eds_bpid=".$project->id; ?>"  <?php echo $new_tab_string; ?> ><?php _e('View Project','eds-bpm');?></a>						
							<?php else: ?>
								<?php
									$tempLink = get_permalink($currentPost->ID);
									$finalUrl = '';
									if( substr($tempLink,-1) == '/' ) {
										$finalUrl = $tempLink . "bproject/".$project->slug;
									} else {
										$finalUrl = $tempLink . "/bproject/".$project->slug;
									}
								?>
								<a class="eds-bpm-info" href="<?php echo $finalUrl; ?>"  <?php echo $new_tab_string; ?> ><?php _e('View Project','eds-bpm');?></a>
							<?php endif;?>				
						<?php else: ?>
							<?php if(is_front_page() && !is_home()):?>
								<a class="eds-bpm-info" href="<?php echo $siteUrl."?p=".$currentPost->ID."&ch_eds_bpid=".$project->id; ?>"  <?php echo $new_tab_string; ?> ><?php _e('View Project','eds-bpm');?></a>						
							<?php else: ?>
								<a class="eds-bpm-info" href="<?php echo $siteUrl."?p=".$currentPost->ID."&eds_bpid=".$project->id; ?>"  <?php echo $new_tab_string; ?> ><?php _e('View Project','eds-bpm');?></a>
							<?php endif;?>					
						<?php endif;?>
					<?php endif; ?>										
				</div>
			</div>
		</div>			
		
	<?php endforeach;;?>	
</div>
The administrator has disabled public write access.

"View Project on Behance" adds a "1"s on site 5 years 11 months ago #1195

  • eLEOPARD
  • eLEOPARD's Avatar
  • Offline
  • Administrator
  • Posts: 409
  • Thank you received: 54
  • Karma: -28
Dear Matt,

Apologies for the delayed reply.
Could you please also post the Shortcode you have used?

Currently, I am baffled as to why this is happening :)
I have checked the code twice, and everything looks fine in it.
Last Edit: 5 years 11 months ago by eLEOPARD.
The administrator has disabled public write access.

"View Project on Behance" adds a "1"s on site 5 years 11 months ago #1197

  • Matt
  • Matt's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: -1
Thanks for all your effort so far! Currently, I'm using this one:
[edsbportman layout_type="multi_cat" id="-1" featured="y" mosaic_style="one" tile_margin="20" tab_ubc="#e1e1e1" tab_utc="#252c33" tab_sbc="#afafaf" tab_stc="#ffffff" tab_hbc="#c9c9c9" tab_htc="#252c33" order_by="id" ordering="asc" ]
The administrator has disabled public write access.

"View Project on Behance" adds a "1"s on site 5 years 11 months ago #1201

  • eLEOPARD
  • eLEOPARD's Avatar
  • Offline
  • Administrator
  • Posts: 409
  • Thank you received: 54
  • Karma: -28
Dear Matt,

We have made some changes in the plugin, could you please update to the latest version and check if the problem is resolved ?
The administrator has disabled public write access.
The following user(s) said Thank You: Matt
Time to create page: 0.280 seconds

Need Customization? Feel free to...

Contact Us

If you like these extensions, help us buy Yoga Mats :)