×

Notice

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

TOPIC: Style for Hotspots component

Style for Hotspots component 13 years 10 months ago #11513

  • xalu
  • xalu's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hello,

Was wondering if you could tell me where I can edit the template to add _hotspots to the component style so I can control global font colors and positions of the component?

I would greatly appreciate it. Thank you :)

Style for Hotspots component 13 years 10 months ago #11514

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hotspots follows the MVC pattern in joomla 1.5 and that is why things like template overrides are possible:
docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core

to add a _hotspots class you'll have to override the components/com_hotsptos/views/all/default.php file.

Style for Hotspots component 13 years 10 months ago #11517

  • xalu
  • xalu's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Ok thanks, I'll check it out.

I think I'll play with template instead.

I was wondering if there was a way to link the authors name to their jomsocial profile. It would be great for creating profiles for each of the hotspots. Another idea would be to use their avatar in the popup when you click on the hotspot. For now linking to the jomsocial profiles would be awesome. Would you mind pointing me in the right direction? Could I grab the link from a jomsocial source?

Thanks

Style for Hotspots component 13 years 10 months ago #11518

  • xalu
  • xalu's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
I did some research and this shows the avatar of the user on the page. Anyway I can adapt it to show the author's avatar?

$jspath = JPATH_ROOT.DS.'components'.DS.'com_community';
include_once($jspath.DS.'libraries'.DS.'core.php');
// Get CUser object
$user =& CFactory::getUser($userid);
$avatarUrl = $user->getThumbAvatar();
echo '<img src="'. $avatarUrl .'"/>';

Style for Hotspots component 13 years 10 months ago #11519

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Xalu,
I would recommend waiting for the next version. A lot of things on a code level will change and you will have to make modifications again once it is out. Wait a little bit, if I have the time I will add the user and avatar support already in it.

Daniel
  • Page:
  • 1
Time to create page: 0.095 seconds