Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Scoop Box Exchange - Show Box: hidebox_box 1.00

Author: hillct [Info]

Description:

This box creates those nifty box closer links like you see on my.yahoo.com. Be careful with this. In order for it to operate correctly, you will need to place the call to this box inside the box template called 'box' (or whatever you're using as your main - most commonly used - box template), but in order to avoid an infinate loop, you will need to be sure that you use the box template 'empty_box' (or something other than your main box template) as the template for this box itself. The call to this box will in itself contain a variable substitution. the 'bid' variable' exists only for box templates and only in versions of Scoop 0.9-dev newer than April 6 2002

Box Code:

# Requires an image name to be defined in the variable 'hidebox_icon'
# This box should be called from within the box template 'box'
# The call should be of the form:
# |BOX,hidebox_box,|bid||
# an example box closer icon can be seen at:
# http://beta.evilplans.net/images/x.gif

### Really Start Hidebox Box ###
# Display a Box CLoser 'X' in box templates
# Version 0.1 by hillct

my($content);
my $uri=$S->apache->uri;
my $arg = $S->apache->args();
$arg =~ s/hide-box=\w+//g;
$arg =~ s/;$//;
my $redirect=($arg)?"$uri?$arg":$uri;
$uri .= ($arg) ? "?$arg;hide-box=$ARGS[0]" : "?hide-box=$ARGS[0]";

if($S->{GID} ne 'Anonymous') { # If logged in
if($S->cgi->param('hide-box')=~/$ARGS[0]/){
# Change the user pref for display of this box
$S->pref(displayed_boxes=>$S->pref('displayed_boxes').','.$ARGS[0]);
# Redirect because we're actually running the box
$S->apache->header_out('location',$redirect);
$S->apache->header_out('connection','close');
$S->apache->status(301); $S->{HEADER_ONLY}=1;
} else {
# Display an 'X' with a link to 'URI' if allowed
if($S->{BOX_DATA}{$ARGS[0]} && $S->{BOX_DATA}{$ARGS[0]}{user_choose}){
$content.=qq{<a href="$uri"><img src="$S->{UI}->{VARS}->{'rootdir'}$S->{UI}->{VARS}->{'imagedir'}/$S->{UI}->{VARS}->{'hidebox_icon'}" border="0" align="right" alt="close"></a>};
}
}
return {content => $content};
}
Announcement and Discussion
Display: Sort:
Stephaine (none / 0) (#1)
by Stephaine H Marshall on Wed Aug 08, 2018 at 03:30:53 AM PST

Many thanks for the rush essay description. I will follow the above but in case of any confusion or question, I will revert back to you for sure. And I am sure you will not bother with my questions.



Great post! (none / 0) (#2)
by annetgrey on Sat Mar 16, 2019 at 08:27:06 AM PST

Great informative site. I'm really impressed after reading this blog post. I really same day essay review appreciate the time and effort you spend to share this with us! I do hope to read more updates from you.



FDSF (none / 0) (#3)
by jahangir khatri on Sun Jan 19, 2020 at 12:19:09 AM PST

i can set happening my subsidiary concept from this make known. It offers in intensity opinion. thank you for this necessary endorse for all,.. cbd oil for sale



FDSFFDSFSDF (none / 0) (#4)
by jahangir khatri on Sun Jan 19, 2020 at 12:19:14 AM PST

i can set happening my subsidiary concept from this make known. It offers in intensity opinion. thank you for this necessary endorse for all,.. cbd oil for sale



Letter writing (none / 0) (#5)
by katewilliamson on Wed Feb 19, 2020 at 01:58:54 AM PST

Traditional letter writing might be considered old fashion, but it nonetheless still serves a purpose. When it comes to writing letters, you should not leave anything to chance. With the help of this professional letter writer service you will do everything on time.



money (none / 0) (#6)
by DanielWellington on Thu Apr 09, 2020 at 05:46:40 AM PST

[url]www.bestmoneyappreview.com[/url] The origin of the casino is quite difficult to date. In almost every culture there are references to gambling establishments: gambling was played in Ancient Greece and Rome, in the English Republic and Napoleonic France. Long before our era there were gambling establishments in China.



money (none / 0) (#7)
by DanielWellington on Thu Apr 09, 2020 at 05:47:09 AM PST

www.bestmoneyappreview.com The origin of the casino is quite difficult to date. In almost every culture there are references to gambling establishments: gambling was played in Ancient Greece and Rome, in the English Republic and Napoleonic France. Long before our era there were gambling establishments in China.



  • Re: Casino by marialoon, 04/29/2020 10:16:20 AM PST (none / 0)
good (none / 0) (#9)
by AnaMattice on Thu Sep 10, 2020 at 07:59:25 AM PST

Wow, this article is so well written and super informative at the same time. It is called the how-many-ways-can-a-contract-be-signed and I think you guys should take some time out and check it out for once. It is really worth the reading for sure.



House Clearance (none / 0) (#10)
by JacksonS54 on Tue Feb 23, 2021 at 01:58:01 AM PST

It is this often overlooked aspect of doing business today that leaves most small business owners behind the curve struggling to make sales. https://www.summitdmedia.com/



lovely (none / 0) (#11)
by daniyal33 on Tue Feb 23, 2021 at 06:34:49 AM PST

To say the truth I am very impressed by what you told. You share tons of interesting info, neat and excellent design you've got here. It's certainly one of the most informative stuff on this topic I've ever read. https://caldwells.com/interior-doors/pre-finished



Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Scoop Site Scroller: Get one yourself!
The OpenNIC
Democratically operated Domain Name System; using Scoop since Jan. 2001.

Login
Make a new account
Username:
Password:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search