Frequently Asked Questions | Oct 10, 2024 - 05:03am |
|
|
Frequently Asked Questions Operational Questions
How can I edit a Folder's Settings Immediately Upon Creation?
Rate This FAQ
(Not yet rated)
|
Created On: 17 Dec 1999 12:52 pm Last Edited: 10 Jan 2000 6:39 pm |
Question |
|
|
I find it inconvenient to create a folder, then have to go back and click "Edit" just so I can change or add various settings. Is there a better way to do it? |
Answer |
Sure. With version 3.1+ you can slightly modify the addFolder macro to add a check box, then use the 3.1+ exclusive "folderAddFilterPost" to capture that value and then "takeAction" to the Edit form immediately. See below... |
Example |
Add this to your webx.tpl and reset the cache:
<!------------------- addFolder ---------------------------->
%% macro addFolder %%
%% if !userIsUnknown && !userCanAddFolders %%
<HTML><HEAD>
<!-- Page produced by %% programName %%(r)/%% platform %%-%% version %% (%% programPromo %%) for %% siteLicensee %%-->
<!-- User interface (c)Copyright 1995-1999 by Lundeen & Associates. All rights reserved.-->
<title>%% siteTitle %% - Adding a Folder</title></HEAD>
<body %% background %%>%% preparedFor %%%% banner %%
<h3>No access</h3>
%% footer %%</BODY></HTML>
%% return %%
%% endif %%
%% set needName 0 %%
%% if userIsUnknown && userCanAddFolders %%
%% set needName 1 %%
%% endif %%
<HTML><HEAD>
<!-- Page produced by %% programName %%(r)/%% platform %%-%% version %% (%% programPromo %%) for %% siteLicensee %%-->
<!-- User interface (c)Copyright 1995-1999 by Lundeen & Associates. All rights reserved.-->
<title>%% siteTitle %% - Adding a Folder</title></HEAD>
<body %% background %%>%% preparedFor %%%% banner %%
<h1>Adding a folder</h1>
Folders are similar to the directories or folders on your hard disk.
They arrange discussions into different subjects.
<p><form name=addFolderForm method="POST" action="%% urlBase %%4@%% certificate %%@%% location %%">%%nop%%
%% if error %%
<h3>%% error %%</h3>%%nop%%
%% endif %%
<table>
%% if needName %%
%% unknownUserHelp %%
<tr><td><b>Your name (first then last):
</b></td><td><input name=name type=text size=50 maxlength=50 value="%% editName %%"><br></td></tr>%%nop%%
<tr><td><b>Your e-mail address:
</b></td><td><input name=email type=text size=50 maxlength=100 value="%% editEmail %%"></td></tr>%%nop%%
<tr><td><b>New folder name: </b></td><td><input name=title type=text size=50 maxlength=250 value="%% editTitle %%"></td></tr>%%nop%%
<tr><td colspan=2><b>New folder description: </b><br>%% editHelp %%
<br><textarea name="header" rows=10 cols=75 maxlength=24000 wrap=physical>%% editHeading %%
</textarea></td></tr>%%nop%%
%% if (userIsSysop && !siteFolderShowSysop) || (!userIsSysop && !siteFolderShowAuthor) %%
<tr><td colspan=2><hr><input type=hidden name=showauthor value=false><input type=checkbox name=showauthor value=true>
Show your name %% if servePictures %%and picture %% endif %%in the folder heading</td></tr>%%nop%%
%% endif %%
</table><br>
%% if imgButton %%<input type=image NAME=" Create Folder " BORDER=0 align=middle src="%% siteImages %%/addcat.gif" %% pictSizeButton %%>%%nop%%
%% else %%<input type=submit value=" Create Folder "> %% endif %%
<a href="%% urlBase %%14@%% certificate %%@%% location %%"><img alt=" Cancel " border=0 align=middle src="%% siteImages %%/cancel.gif" %% pictSizeButton %%></a>
</form>
%% if browserCanUseLabels %%
<SCRIPT language="Javascript"><!--
if( document.forms.addFolderForm.name.focus != null ) document.forms.addFolderForm.name.focus();
//-->
</SCRIPT>
%% endif %%
%% else %%
<input name=name type=hidden value="%% editName %%">%%nop%%
<input name=email type=hidden value="%% editEmail %%">%%nop%%
<table>
<tr><td><b>New folder title: </b></td><td><input name=title type=text size=50 maxlength=250 value="%% editTitle %%"></td></tr>%%nop%%
%% if !siteIsFoldersOnly && userIsHostOrSysop && siteHasNews %%
<tr><td><b>Newsgroup name: </b></td><td><input type=text name=newsgroup size=50 maxlength=250 value="%% editNewsgroup %%"></td></tr>%%nop%%
%% endif %%
<tr><td colspan=2><b>New folder description: </b><br>%% editHelp %%
<br><textarea name="header" rows=10 cols=75 maxlength=24000 wrap=physical>%% editHeading %%
</textarea>%%nop%%
<input type=hidden name=listFolderItems value=true>%%nop%%
<input type=hidden name=allow_subtopics value=all>%%nop%%
<input type=hidden name=allow_conv value=true>%%nop%%
<input type=hidden name=allow_links value=true>%%nop%%
</td></tr>%%nop%%
%% if (userIsSysop && !siteFolderShowSysop) || (!userIsSysop && !siteFolderShowAuthor) %%
<tr><td colspan=2><input type=hidden name=showauthor value=false><input type=checkbox name=showauthor value=true>
Show your name %% if servePictures %%and picture %% endif %%in the folder heading</td></tr>
%% endif %%
%% if userIsHostOrSysop %%
<tr><td colspan=2><input type=checkbox name=editTheFolder>
Check here to Edit Other Folder Settings Immediately.</td></tr>
%% endif %%
</table>
<p>
%% if imgButton %%<input type=image NAME=" Create Folder " BORDER=0 align=middle src="%% siteImages %%/addcat.gif" %% pictSizeButton %%>%%nop%%
%% else %%<input type=submit value=" Create Folder "> %% endif %%
<a href="%% urlBase %%14@%% certificate %%@%% location %%"><img alt=" Cancel " border=0 align=middle src="%% siteImages %%/cancel.gif" %% pictSizeButton %%></a>
</form>
%% if browserCanUseLabels %%
<SCRIPT language="Javascript"><!--
if( document.forms.addFolderForm.title.focus != null ) document.forms.addFolderForm.title.focus();
//-->
</SCRIPT>
%% endif %%
%% endif %%
%% footer %%</BODY></HTML>
%% endmacro %%
<!------------------- folderAddFilterPost ---------------------------->
%% macro folderAddFilterPost %%
%% if form.editTheFolder.toLower == "on" %%
%% takeAction( "39@@" & location & "!showAll=1") %%
%% endif %%
%% endmacro %% |
|
|
|
|