|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
rublind Smarty Rookie
Joined: 29 Jul 2003 Posts: 5 Location: U.S.A.
|
Posted: Tue Jul 29, 2003 6:05 am Post subject: Documentation |
|
|
I'm reading the manual, and I'm on chapter 8 at POPUP and it says to look at the smarty site for an example, but I can't find it, can anyone help? |
|
Back to top |
|
CirTap Smarty Pro
Joined: 04 Jun 2003 Posts: 106
|
Posted: Tue Aug 05, 2003 5:32 pm Post subject: |
|
|
http://smarty.php.net/manual/en/language.function.popup.init.php
http://smarty.php.net/manual/en/language.function.popup.php
at the very and of each page you find some snippets.
you have to call {popup_init} before using {popup}, this mainly creates a <div id="overlib"> and a <script> tag.
If you use overLib's popups on every page, you better put the script and div right into your page template, so you can skip {popup_init} at all:
somewhere in the <head>
Code: | <script language="JavaScript" type="text/javascript" src="js/overlib.js">
<!-- overLIB (c) Erik Bosrup -->
</script> |
or the "light version"
Code: | <script language="JavaScript" type="text/javascript" src="js/overlib_mini.js">
<!-- overLIB (c) Erik Bosrup -->
</script> |
and at the very beginning of <body>
Code: | <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div> |
I assume you have a current version of overlib.js.
Have fun,
CirTap |
|
Back to top |
|
dlst Smarty n00b
Joined: 16 Oct 2003 Posts: 3
|
Posted: Thu Oct 16, 2003 3:00 pm Post subject: |
|
|
Thanks CirTap, but those links do not have working examples, only snippets and the text "(See the Smarty official web site for working examples.)" at the bottom of the http://smarty.php.net/manual/en/language.function.popup.php page.
I also checked the example section of the site, but nothing on this is posted.
Any help would be greatly appreciated! |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Oct 16, 2003 4:03 pm Post subject: |
|
|
Those don't exist anymore. Go to the Overlib site to see some demonstrations of Overlib, currently there are no Smarty specific demos. I'll update the docs. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|