Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Documentation

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
rublind
Smarty Rookie


Joined: 29 Jul 2003
Posts: 5
Location: U.S.A.

PostPosted: Tue Jul 29, 2003 6:05 am    Post subject: Documentation Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CirTap
Smarty Pro


Joined: 04 Jun 2003
Posts: 106

PostPosted: Tue Aug 05, 2003 5:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
dlst
Smarty n00b


Joined: 16 Oct 2003
Posts: 3

PostPosted: Thu Oct 16, 2003 3:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Thu Oct 16, 2003 4:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP