×

Notice

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

TOPIC: Detecting the type of "spot" which was added in code

Detecting the type of "spot" which was added in code 13 years 3 months ago #11314

  • Kate Fisher
  • Kate Fisher's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 82
  • Karma: 1
  • Thank you received: 0
Hi

just wondering if its possible to point me toward the code which handles "hotspot" type of points added to a hotspot map. Most of ours are of type "article" and redirect to an external website link (modified code in utils). Im trying to work out how I might adjust the way that "hotspot" type points are handled, (points which dont have weblinks related to them). E.g. This point californiaclassics.co.uk/index.php?optio...ut=addspot&Itemid=12

Hope this makes sense, please do prod me with a stick if its as clear as a muddy puddle and I'll try to explain more.

I need to be able to assign the information from hotspots to a particular type of joomla template. Or maybe just a popup window.

Kate

Detecting the type of "spot" which was added in code 13 years 3 months ago #11316

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
The link creating takes place in the util file right now. You want to enter links to goo.gl ?

Detecting the type of "spot" which was added in code 13 years 3 months ago #11317

  • Kate Fisher
  • Kate Fisher's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 82
  • Karma: 1
  • Thank you received: 0
Hi Daniel,

just wondering if you could point me to the piece of code (in utils) which would be executed in the following instance:

If you were on page: californiaclassics.co.uk/index.php?optio...ut=addspot&Itemid=12

and clicked point "Radio KAB, Antonio Bay" under "hotspots" category, if I can find the bit of code in utils.php I was hoping I might be able to adjust the behaviour.

For instance if I click on the spot in question I see:
californiaclassics.co.uk/index.php?optio...adio-kab-antonio-bay

How would I control for instance how the map appears / position etc. Ideally Im looking to detect the request and adjust the template (above and beyond hotspots). If I could work out which piece of code is firing in utils.php Im hoping I could possible redirect this call.

Something along the lins of adjusting the behaviour to show a lightbox of the image (larger) would be what Im looking to do, just cant find the right option in the code to change.

Any thoughts very much welcome

Kate

Detecting the type of "spot" which was added in code 13 years 3 months ago #11355

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I couldn't find the hotspot you are talking about, the code that generate the link is located in utils.php line 184 to 189:
		$cats = self::get_front_categories();
					if(isset($cats[$row->catid])) {
						$urlcat = $row->catid . ':' . JFilterOutput::stringURLSafe($cats[$row->catid]['text']);
					}
					$urlid =  $row->id.':'.JFilterOutput::stringURLSafe($row->name);
					$mlink = JRoute::_("index.php?option=com_hotspots&view=hotspot&lcatid=" . $urlcat . "&id=" . $urlid);

Detecting the type of "spot" which was added in code 13 years 3 months ago #11357

  • Kate Fisher
  • Kate Fisher's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 82
  • Karma: 1
  • Thank you received: 0
Hi Daniel, have found the pieces of code this drops into (assigning the actions to the morelink) Im trying to get a view=hotspot to open in a shadowbox as Id like the layout to look better than:

californiaclassics.co.uk/index.php?optio...nio-bay-from-the-fog

Kate

Detecting the type of "spot" which was added in code 13 years 3 months ago #11366

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081

Detecting the type of "spot" which was added in code 13 years 3 months ago #11371

  • Kate Fisher
  • Kate Fisher's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 82
  • Karma: 1
  • Thank you received: 0
Hi Daniel, thanks for the recommend. Ive got code along the lines of:

if ($hs_show_detailpage == "1" && $wo == "0") {
$morelink = "<div class='morelink'>Visit.California";
$morelink .= "</div>";

Which is definitly being picked up but doesnt seem to be picked up by the Modalizer plugin :/ Is there anyway I can tie in with the "lightbox" you use on the "hotspot thumbnails"?

Kate

Detecting the type of "spot" which was added in code 13 years 3 months ago #11372

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
What lightbox for the thumbnails?

Detecting the type of "spot" which was added in code 13 years 3 months ago #11373

  • Kate Fisher
  • Kate Fisher's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 82
  • Karma: 1
  • Thank you received: 0
Hi Daniel, I meant shadowbox (what executes when there is a thumbnail image) see code from utils.php below
.
if ($picture != "") {
// OUTPUT WITH PICTURE
if ($morelink == "") {
$htmlcode = "<strong>$name</strong>";
$htmlcode .= "<br /><br /><a href='$picturepath$picture' title='[click to maximize]' rel='shadowbox'>";
$htmlcode .= "<img src='$picturepath_thumb$picture_thumb' vspace='3' align='left' border='1' hspace='3' alt='$name' /></a>";
$htmlcode .= "$adress $htmltext <br />$autortxt";

CIve tried to add shadowbox as above to web links (URLS) but this doesnt seem to work. Is there something I can do to utilise shadowbox code used in hotspots to opeen up the hotspot pages.

Kate

Detecting the type of "spot" which was added in code 13 years 3 months ago #11374

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
As far as I remember there is no shadowbox effect. This rel='shadowbox' can be utilized to do so, but the component is not offering it. Actually you can PM eliecer. I saw that his webpage uses this effect. I hope that he will wish to point you to the right place.

BTW - the code that we are talking about in utils.php is going to change massively. It won't be located there in the next version...

Detecting the type of "spot" which was added in code 13 years 3 months ago #11375

  • Kate Fisher
  • Kate Fisher's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 82
  • Karma: 1
  • Thank you received: 0
Hi Daniel, I will message elisir, many thanks for the tip much appreciated. Am trying another modal window tool to see if that works okay with hotspots. Most I get is the start tag appearing on the screen rather than being recognized as a tag.

Very much looking forward to seeing the next version of your funky app.

Kate :)

Detecting the type of "spot" which was added in code 13 years 3 months ago #11378

  • Eliecer Marchante
  • Eliecer Marchante's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi Kate,

I bought the following joomla 1.5 extension:
http://extensions.joomla.org/extensions/multimedia/multimedia-display/11189

If you have any problem, just contact them after the purchase. They will implement the extension into your site.

Detecting the type of "spot" which was added in code 13 years 3 months ago #11380

  • Kate Fisher
  • Kate Fisher's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 82
  • Karma: 1
  • Thank you received: 0
Thank you for the plugin/module recommendation I will definitly check it out much appreciated.

Btw, mind if I look at the site you've used hotspot on, Id love to see what you've created with Daniels funky code.

Kate
  • Page:
  • 1
Time to create page: 0.146 seconds