|
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 |
gardenguy Smarty n00b
Joined: 27 Feb 2004 Posts: 2 Location: The Berkshires of Western Mass, USA
|
Posted: Fri Feb 27, 2004 5:10 pm Post subject: No Tooltip on newbie Install of 2.6.2 Using Safari 1.2 |
|
|
Hi,
Just downloaded and installed Smarty 2.6.2 and ran index.php in the demo folder. All is well except that in Safari 1.2 running Mac 10.3.2 there is no tooltip popup when I hover over the Help link.
Has Smarty been tested on Safari?
Thanks
David |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Feb 27, 2004 5:19 pm Post subject: |
|
|
You would have to see if overlib supports Safari. |
|
Back to top |
|
Duncan Smarty Pro
Joined: 16 Dec 2003 Posts: 166
|
Posted: Fri Feb 27, 2004 5:21 pm Post subject: |
|
|
From the smarty manual: http://smarty.php.net/manual/en/language.function.popup.init.php
Quote: | popup is an integration of overLib, a library used for popup windows. These are used for context sensitive information, such as help windows or tooltips. popup_init must be called once at the top of any page you plan on using the popup function. overLib was written by Erik Bosrup, and the homepage is located at http://www.bosrup.com/web/overlib/.
As of Smarty version 2.1.2, overLib does NOT come with the release. Download overLib, place the overlib.js file under your document root and supply the relative path to this file as the "src" parameter to popup_init. |
However, there is also a bug report about some issues, which have been fixed in CVS:
http://www.phpinsider.com/smarty-forum/viewtopic.php?t=2018 |
|
Back to top |
|
gardenguy Smarty n00b
Joined: 27 Feb 2004 Posts: 2 Location: The Berkshires of Western Mass, USA
|
Posted: Fri Feb 27, 2004 11:49 pm Post subject: Getting Close |
|
|
Hi Duncan,
Thanks for the info.
I am not quite sure where I will provide the relative path to this file as the "src" parameter to popup_init (in fact, what is popup_init)???
Thanks
David the gardenguy |
|
Back to top |
|
Duncan Smarty Pro
Joined: 16 Dec 2003 Posts: 166
|
Posted: Sat Feb 28, 2004 7:52 am Post subject: Re: Getting Close |
|
|
gardenguy wrote: | I am not quite sure where I will provide the relative path to this file as the "src" parameter to popup_init (in fact, what is popup_init)??? |
The path is relative to your php file.
Lets say you have the following structure:
/script/templates/ -> template files
/script/www/ -> php files (your actual script)
If you would call (as set in the example): Code: | {popup_init src="overlib.js"} | Then the overlib.js file would assumed to be located in the /script/www/ directory.
popup_init is needed to load the overlib.js file into the template, so that you can use the Smarty popup functions. |
|
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
|