×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: waiting for reply...

waiting for reply... 11 years 9 months ago #19943

  • Viviane Oliveira
  • Viviane Oliveira's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
I started a topic a week ago and still no answer ...

I need:

1) folder path and line of code to hide the image displayed on the "read more" on the right side. (css)

2) to change the file path in javascript to change the photo tab and tab map. The code already sent in topic -

compojoom.com/forum/52-newbie-area/13053...ew-from-map-to-photo # 15318th

Now I need the path to the folder because I could not find...


Tanks

waiting for reply... 11 years 9 months ago #19948

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I've been linking to tutorials on youtube about how to use firebug for some time now:

Have a look -> then inspect the site and you'll find out which line in which file takes care of the styling. (it is in media/com_hotspots/css ...)

2. there are few changes that one need to make in the new version
the file: components/com_hotspots/views/hotspot/tmpl/default.php
line 73 change the code from this
$domready .= "
hotspots.addSandbox('map_canvas', hotspots.DefaultOptions);
hotspots.addModule('map',hotspots.DefaultOptions);
hotspots.addModule('hotspot', hotspot, hotspots.DefaultOptions);
hotspots.addModule('menu',hotspots.DefaultOptions);
hotspots.startAll();
var tabs = new compojoom.hotspots.tab('tab-details',{
			tabSelector: '.tab-details-tab',
			contentSelector: '.tab-details-tab-content'
		});;
";

to this:
$domready .= "
var tabs = new compojoom.hotspots.tab('tab-details',{
			tabSelector: '.tab-details-tab',
			contentSelector: '.tab-details-tab-content'
		});;
 
				var initialized = false;
		tabs.addEvent('change', function(el) {
 
			if(el == 'map') {
 
				if(initialized == false) {
					hotspots.addSandbox('map_canvas', hotspots.DefaultOptions);
hotspots.addModule('map',hotspots.DefaultOptions);
hotspots.addModule('hotspot', hotspot, hotspots.DefaultOptions);
hotspots.addModule('menu',hotspots.DefaultOptions);
hotspots.startAll();
 
initialized = true;
				}
			}
			});
";

then later in the code you'll have to change the positions of the tabs.
<ul class="tab-details-tabs">
			<?php if ($this->hotspot->picture) : ?>
				<li class="tab-details-tab" data-id="photo"><span><?php echo JText::_('COM_HOTSPOTS_PHOTO'); ?></span>
				</li><?php endif; ?>
			<li class="tab-details-tab" data-id="map">
				<span><?php echo JText::_('COM_HOTSPOTS_MAP_SINGLE_VIEW_TAB'); ?></span>
			</li>
		</ul>

and
<div id="hotspots-navigation" style="display:none"></div>
		<?php if ($this->hotspot->picture) : ?>
			<div class="tab-details-tab-content" data-id="photo">
				<div class="hotspots-image">
					<?php
					echo "<img src=\"" . $this->hotspot->picture . "\" title=\"" . $this->hotspot->name . "\" alt=\"" . $this->hotspot->name . "\" />";
					?>
				</div>
				<div class="clear-both"></div>
			</div>
		<?php endif; ?>
		<div class="tab-details-tab-content" data-id="map">
			<?php echo $this->loadTemplate('one_line_address'); ?>
			<div id="map_cont" class="single-view" style="width: 100%; height: 400px;position: relative;">
				<?php echo $this->loadTemplate('menu'); ?>
				<div id="map_canvas" class="map_canvas"
				     style="height: <?php echo HotspotsHelper::getSettings('map_height', 600); ?>px;"></div>
			</div>
		</div>

That is all you need to do.
Regards,
Daniel
The following user(s) said Thank You: Viviane Oliveira, jonmit

waiting for reply... 11 years 9 months ago #19950

  • Viviane Oliveira
  • Viviane Oliveira's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
thanks, now all working perfectly!

[SOLVED]

waiting for reply... 11 years 5 months ago #21449

  • Imtiaz Noor
  • Imtiaz Noor's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hi, this hack works well to swap the photo tab and map tab over. However, when CComment is installed, the map doesn't display in the map tab. Is there a fix for this? Thanks.
  • Page:
  • 1
Time to create page: 0.143 seconds