Hey guy's here I am with another question 😀
How can I put a popup link on my form for users to read the terms of service without leaving the form?
Thanks,
How can I put a popup link on my form for users to read the terms of service without leaving the form?
Thanks,
Hi samoht,
Just did this
This uses the Squeezebox that comes with Joomla and is set up to load an external file. See the SqueezeBox (or ThickBox) docs for moe info.
Bob
Just did this
<?php
$doc =& JFactory::getDocument();
$doc->addScript(JURI::base().'media'.DS.'system'.DS.'js'.DS.'modal.js');
$doc->addStyleSheet(JURI::base().DS.'media'.DS.'system'.DS.'css'.DS.'modal.css');
$script = "window.addEvent('domready', function() {
SqueezeBox.initialize({});
$$('a.modal').each(function(el) {
el.addEvent('click', function(e) {
new Event(e).stop();
SqueezeBox.fromElement(el);
});
});
});";
?>
. . .
<div>Please read the <a rel="{handler: 'iframe', size: {x: 600, y: 400}}"
href="http://www.example.com/components/. . path to file . . ./tandc.php"
class="modal">Terms and Conditions</a> carefully, they tell you what you need
to do before and during your training.</div>This uses the Squeezebox that comes with Joomla and is set up to load an external file. See the SqueezeBox (or ThickBox) docs for moe info.
Bob
very cool!
Bob can you help me with this path a little more?
when you say /.. path to file .../
does this mean the whole relative path to the article?
Bob can you help me with this path a little more?
http://www.example.com/components/. . path to file . . ./tandc.phpwhen you say /.. path to file .../
does this mean the whole relative path to the article?
To be more specific,
I have my whole site showing up in my box instead of just the article.
I have my whole site showing up in my box instead of just the article.
Hey Bob,
Thanks again for the timely and awesome help!
I figured out away by just linking to an external file instead of a article inside the site. -
Thanks again!!
Also, just a note if any newbies read this thread - when you use the SqueezeBox - code found in the Doc's - make sure the code is Kosher! some of the tags may not be formatted exactly correct ( e.g. ? > instead of ?>).
Thanks again for the timely and awesome help!
I figured out away by just linking to an external file instead of a article inside the site. -
Thanks again!!
Also, just a note if any newbies read this thread - when you use the SqueezeBox - code found in the Doc's - make sure the code is Kosher! some of the tags may not be formatted exactly correct ( e.g. ? > instead of ?>).
Hi samoht,
Sorry, I missed a bit out. Yes that was a link to an external file. You can use a site page and get the content without the template framework by adding &tmpl=component to the url.
Bob
Sorry, I missed a bit out. Yes that was a link to an external file. You can use a site page and get the content without the template framework by adding &tmpl=component to the url.
Bob
This topic is locked and no more replies can be posted.
