Keyword

Popup window in a plugin

  • Christa Schulte
  • Christa Schulte's Avatar Topic Author
  • Offline
  • New Member
More
9 years 7 months ago #140496 by Christa Schulte
Popup window in a plugin was created by Christa Schulte
Hello,

i want to put a popup window above some words in the k2 plugin. So i found the correct plugin already, but now the problem is, i dont know, how to do that exactly.

So there is the string:
<div><?php echo JText::_('K2_LOGIN_TO_POST_COMMENTS'); ?></div>

and the javascript:
<a href="popupfenster.htm" target="_blank" onclick="return popup(this.href);">The words are here</a>

i found this solution, but it does not fit:
<div class="fett"><?php echo "<a href="popupfenster.htm" target="_blank" onclick="return popup(this.href);"> JText::_('K2_LOGIN_TO_POST_COMMENTS')</a>"; ?></div>

Maybe you can tell me, which is the right code for that and also where i put the javascript in the override.

Thanks a lot!

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 7 months ago #140499 by Krikor Boghossian
Replied by Krikor Boghossian on topic Popup window in a plugin
It depends on the lightbox engine you want to use.
You can use Joomla!'s squeezebox if your template supports it, or you can attach a new lightbox engine like Fancybox fancyapps.com/fancybox/

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Christa Schulte
  • Christa Schulte's Avatar Topic Author
  • Offline
  • New Member
More
9 years 7 months ago #140504 by Christa Schulte
Replied by Christa Schulte on topic Popup window in a plugin
And the code above is correct?

Please Log in or Create an account to join the conversation.

  • Christa Schulte
  • Christa Schulte's Avatar Topic Author
  • Offline
  • New Member
More
9 years 7 months ago #140524 by Christa Schulte
Replied by Christa Schulte on topic Popup window in a plugin
no, i want to use my own script.
But i am not shure yet, if the code above is right, because there is still
no hover effect by going over the text. maybe you can tell me, waht is wrong there.

Please Log in or Create an account to join the conversation.

  • Christa Schulte
  • Christa Schulte's Avatar Topic Author
  • Offline
  • New Member
More
9 years 7 months ago #140526 by Christa Schulte
Replied by Christa Schulte on topic Popup window in a plugin
So i tried it with this code, but it also doesnt work.

<?php echo "<a href="popupfenster.htm" target="_blank" onclick="return popup(this.href);">JText::_('K2_LOGIN_TO_POST_COMMENTS')</a>"; ?>

Do you have any idear?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 7 months ago #140541 by Krikor Boghossian
Replied by Krikor Boghossian on topic Popup window in a plugin
This is more of a template/development issue and it is not directly related to K2. I would suggest that you either used Joomla!'s default module (assign a modal class) or used an other lightbox engine.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum