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

Show/Hide draggable Box?

 
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 -> Feature Requests
View previous topic :: View next topic  
Author Message
equ1nox
Smarty Rookie


Joined: 18 Apr 2005
Posts: 17

PostPosted: Fri May 13, 2005 8:46 pm    Post subject: Show/Hide draggable Box? Reply with quote

Is there a way to make a smarty add-on or plugin that creates a block of html that appears when something specified is clicked and is hidden by clicking a close link or something like the DHTML stuff in IPB 2.0?

The TPL code for the box would look like:

Code:

{drag_box name="box1"}
Blah, blah, box html goes here
{/drag_box}


and the tpl code for a link that can open the box when the box is hidden and close it when the box is open would be like:

Code:

{box_link name="box1"}
Open/close Box1
{/box}


And the box would be draggable. Is anyone willing to make something like this? I know absolutely no javascript whatsoever. Sad Or does something like this already exist? If there is I havent found it yet.
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Sat May 14, 2005 1:16 am    Post subject: Reply with quote

Hi.

I don't know of any available plugins that do specifically that, but I can recommend that you look at the {popup} and {popup_init} plugins that are included with Smarty. You can get the general behaviour you are after with them. They rely on a 3rd party Javascript library called overLib which is not included in the Smarty distribution but is available at the overLib homepage. There is additional documentation at that site as well. With a little bit of work you can probably meld it into precisely what you want though the out-of-the-box functionality may very well suit you.
Back to top
View user's profile Send private message
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 -> Feature Requests 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