Welcome, Guest
Username: Password: Remember me

TOPIC: One more question for OT T-shirt template

One more question for OT T-shirt template 4 months 5 days ago #8708

  • ibprint
  • ibprint's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
Hello Omegatheme,

I have a small but annoying problem. I cant locate the code to remove the following on my website (i added screenshots to show what parts i mean)
Below the product details there is text showing called Related products and products rating. I would like this to be gone, but i cant find anywhere to do that. Here is the link to see what i mean: Link: [url=http://https://www.funtshirts.nl/shop/fitness/lady-fit-performance-vest-detail/]Details page[/url]

Also i reinstalled the ot tshirt template a while ago and im not using google maps but it keeps loading google maps ( <script src="maps.googleapis.com/maps/api/js?language=nl-NL"></script> ) also added a screenshot of that.

Can anyone help me removing it or at least tell me where the file(s) are for me to edit??
Attachments:
  • Attachment This image is hidden for guests. Please log in or register to see it.
  • Attachment This image is hidden for guests. Please log in or register to see it.
The administrator has disabled public write access.

One more question for OT T-shirt template 4 months 4 days ago #8709

  • caselock
  • caselock's Avatar
  • OFFLINE
  • Administrator
  • Posts: 205
  • Thank you received: 21
  • Karma: 1
If you want disapear "Related " and "Reviews", please remove on code with file path:
root / templates/ ot_tshirt / html / com_virtuemart / productdetails / default.php line 255 and 256

The google map: I think it here: root / plugins / system / omgshortcodes / inc / shortcodes-handlers.php line 79
The administrator has disabled public write access.

One more question for OT T-shirt template 4 months 4 days ago #8710

  • ibprint
  • ibprint's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
Thank you very much!

The related products etc are gone.

The google maps thing, do you mean that peace of code? --V

.((trim($disabled) == 'true') ? ' disabled' : ''

What do i do with it, do i have to remove it?

This little line causes the google maps code to apear?
The administrator has disabled public write access.

One more question for OT T-shirt template 4 months 4 days ago #8711

  • ibprint
  • ibprint's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
Starting from line #556 there is google maps code. Is line 79 correct or should i do something in the code that starts from line 556??
The code starting from line 556 is this:
/* Google maps */
	public static function googlemap($atts, $content = null){
		extract(Shortcodes_Parser::instance()->atts(array(
			'title' => '',
			'iframe_src' => '',
			'addr' => '',
			'lat' => '',
			'lng' => '',
			'ratio' => '',
			'width' => '',
			'height' => ''
		), $atts));
		$googlemap = '';
		
		$map_id = self::randomString(10);
		if( $iframe_src==''){
			$address = str_replace(' ', '+', $addr);
			$jsonResponse = @file_get_contents('http://maps.googleapis.com/maps/api/geocode/json?address='.$address);
			if ($jsonResponse) {
				$jsonResponse = json_decode($jsonResponse);
				$lat = $lat==''?$jsonResponse->results[0]->geometry->location->lat:$lat;
				$lng = $lng==''?$jsonResponse->results[0]->geometry->location->lng:$lng;
			}
		}
		
		$ratio = explode(':', $ratio);
		$style = ' style="'.($width!=''?'width:'.$width.';':'').($height!=''?'height:'.$height.';':($ratio!=''?'padding-bottom:'.(($ratio[1]/$ratio[0])*100).'%;':'')).'"';
		
		// $googlemap .= '<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?language='.JFactory::getLanguage()->getTag().'"></script>';
		$googlemap .= '<div class="embed-responsive"'.$style.'>';
		if ($iframe_src!=''){
			$googlemap .= '<iframe  class="embed-responsive-item" src="'.$iframe_src.'" frameborder="0" style="border:0"></iframe>';
		} else {
			$googlemap .= '<div id="gmap_canvas'.$map_id.'" class="embed-responsive-item"></div>'
						. '<style>#gmap_canvas'.$map_id.' img{max-width:none!important;background:none!important}</style>';
		}
		$googlemap .= '</div>';
		if( $iframe_src==''){
			$googlemap .= '<script type="text/javascript">'
						. 'function init_map(){'
							. 'var myOptions = {'
								. 'zoom:16,'
								. 'center:new google.maps.LatLng(' . $lat . ',' . $lng . '),'
								. 'mapTypeId: google.maps.MapTypeId.ROADMAP'
							. '};'
							. 'map = new google.maps.Map(document.getElementById("gmap_canvas'.$map_id.'"), myOptions);'
							. 'marker = new google.maps.Marker({'
								. 'map: map,'
								. 'position: new google.maps.LatLng(' . $lat . ',' . $lng . ')'
							. '});'
							. 'infowindow = new google.maps.InfoWindow({'
								. 'content:"'. ($title!=''?'<b>'.$title.'</b><br/>':'').$addr.'"'
							. '});'
							. 'google.maps.event.addListener(marker, "click", function(){'
								. 'infowindow.open(map,marker);'
							. '});'
							. 'infowindow.open(map,marker);'
						. '}'
						. 'google.maps.event.addDomListener(window, \'load\', init_map);'
					. '</script>';
		}
		return $googlemap;
	}
The administrator has disabled public write access.

One more question for OT T-shirt template 4 months 4 days ago #8712

  • caselock
  • caselock's Avatar
  • OFFLINE
  • Administrator
  • Posts: 205
  • Thank you received: 21
  • Karma: 1
Sorry I don't understand what you mean.
The google map attached in our shortcode plugin, so if you do not use you can remove it.
The administrator has disabled public write access.

One more question for OT T-shirt template 4 months 4 days ago #8713

  • ibprint
  • ibprint's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
But what do i remove? This code i posted above? Or something else?
The administrator has disabled public write access.

One more question for OT T-shirt template 4 months 4 days ago #8714

  • caselock
  • caselock's Avatar
  • OFFLINE
  • Administrator
  • Posts: 205
  • Thank you received: 21
  • Karma: 1
The google map: I think it here: root / plugins / system / omgshortcodes / inc / shortcodes-handlers.php line 79
comment code line 79 with path above
The administrator has disabled public write access.

One more question for OT T-shirt template 4 months 3 days ago #8715

  • ibprint
  • ibprint's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
Like this? (screenshot), im a beginner at this as you probably can tell.

After this it isn't gone tho, im must be doing something very wrong..
Attachments:
  • Attachment This image is hidden for guests. Please log in or register to see it.
The administrator has disabled public write access.

One more question for OT T-shirt template 4 months 3 days ago #8718

  • caselock
  • caselock's Avatar
  • OFFLINE
  • Administrator
  • Posts: 205
  • Thank you received: 21
  • Karma: 1
Very sory, line 589
// $googlemap .= '<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?language='.JFactory::getLanguage()->getTag().'"></script>';
The administrator has disabled public write access.
The following user(s) said Thank You: ibprint

One more question for OT T-shirt template 4 months 2 days ago #8719

  • ibprint
  • ibprint's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
I commented it out. And i deleted that piece of code. i also tried to remove the whole google maps code, but i keeps showing it in the head of the page.

Or does it take a while to process or something?
The administrator has disabled public write access.

One more question for OT T-shirt template 4 months 1 day ago #8720

  • caselock
  • caselock's Avatar
  • OFFLINE
  • Administrator
  • Posts: 205
  • Thank you received: 21
  • Karma: 1
Is your site optimized using, please clear the cache
The administrator has disabled public write access.

One more question for OT T-shirt template 4 months 17 hours ago #8724

  • ibprint
  • ibprint's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
I did all that but its still loading the script :(
The administrator has disabled public write access.

One more question for OT T-shirt template 4 months 36 minutes ago #8727

  • caselock
  • caselock's Avatar
  • OFFLINE
  • Administrator
  • Posts: 205
  • Thank you received: 21
  • Karma: 1
Try again unpublish plugin shortcode for test.
The administrator has disabled public write access.
The following user(s) said Thank You: ibprint

One more question for OT T-shirt template 3 months 4 weeks ago #8729

  • ibprint
  • ibprint's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
That worked. thank you :) But why does it work now?
Last Edit: 3 months 4 weeks ago by ibprint.
The administrator has disabled public write access.
Time to create page: 0.171 seconds