Skip to content

Commit

Permalink
Item1434: correcting references to twiki
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/PersonalInfoAddOn@3435 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
ArthurClemens authored and ArthurClemens committed Apr 14, 2009
1 parent 862807e commit 259db3d
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 40 deletions.
15 changes: 8 additions & 7 deletions data/System/PersonalInfoAddOn.txt
Expand Up @@ -23,31 +23,31 @@ When installed, see [[%USERSWEB%.PersonalInfoHome]] for additional details.
---+++ User homepage
The user homepage with user picture and most common information 'lifted' from the extended !UserForm. The information that is shown is configurable.

<div class="twikiImage"><img src="%ATTACHURLPATH%/userpage.png" alt="Screenshot of personalInfo block" width='728' height='300' /></div>
<div class="foswikiImage"><img src="%ATTACHURLPATH%/userpage.png" alt="Screenshot of personalInfo block" width='728' height='300' /></div>

---+++ Edit mode of user information
Foolproof editing of most common user data.

<div class="twikiImage"><img src="%ATTACHURLPATH%/userpage_edit.png" alt="Screenshot of personalInfo: edit data" width='728' height='300' /></div>
<div class="foswikiImage"><img src="%ATTACHURLPATH%/userpage_edit.png" alt="Screenshot of personalInfo: edit data" width='728' height='300' /></div>

---+++ Choosing a personal picture
Each user can have multiple pictures and select one of them.

<div class="twikiImage"><img src="%ATTACHURLPATH%/userpage_select_picture.png" alt="Screenshot of personalInfo: set picture screen" width='879' height='534' /></div>
<div class="foswikiImage"><img src="%ATTACHURLPATH%/userpage_select_picture.png" alt="Screenshot of personalInfo: set picture screen" width='879' height='534' /></div>

If Foswiki:Extensions.ImagePlugin is installed, pictures are scaled on the server so camera pictures can be safely uploaded without fear of network congestion.

---+++ Quick search phone list
When installed at our homepage this quickly became the killer app of our intranet twiki.
When installed at our homepage this quickly became the killer app of our intranet Foswiki.

If Foswiki:Extensions/AttachContentPlugin is installed, data is read from a saved attachment file. Each time a user makes a change to the user topic this file is updated.

<div class="twikiImage"><img src="%ATTACHURLPATH%/phonelist.png" alt="Screenshot of phone list quick search" width='314' height='236' /></div>
<div class="foswikiImage"><img src="%ATTACHURLPATH%/phonelist.png" alt="Screenshot of phone list quick search" width='314' height='236' /></div>

---+++ Face book
Similar to the phone list but with pictures.

<div class="twikiImage"><img src="%ATTACHURLPATH%/facebook.png" alt="Screenshot of face book page" width='728' height='408' /></div>
<div class="foswikiImage"><img src="%ATTACHURLPATH%/facebook.png" alt="Screenshot of face book page" width='728' height='408' /></div>


---++ Using !PersonalInfo with !NatSkin
Expand Down Expand Up @@ -90,7 +90,8 @@ If you are upgrading from a previous version of this add-on, please note that an
| Copyright &copy;: | 2007, 2008, 2009 Arthur Clemens |
| License: | [[http://www.gnu.org/copyleft/gpl.html][GPL]] |
| Dependencies: | %$DEPENDENCIES% |
| Plugin Version: | 1.5 (25 Jan 2009) |
| Plugin Version: | 1.5.1 (14 Apr 2009) |
| 14 Apr 2009 | 1.5.1 Corrected numerous references to 'twiki'. |
| 25 Jan 2009 | 1.5 Foswiki version |
| 08 Nov 2008 | 1.4.1 Prevent "create new topic links" in edit fields with wikiword names. |
| 06 Apr 2008 | 1.4 Various formatting fixes (version TWiki 4.2 only). |
Expand Down
@@ -1,8 +1,8 @@
%META:TOPICINFO{author="ProjectContributor" date="1172605768" format="1.1" version="1.1"}%
---+!! Face Book

<div class="twikiPageForm"><table id="twikiSearchTable" border="0" cellspacing="0" cellpadding="0"><tr><td class="first">
*Search name:* <input type="text" class="twikiInputField" size="%IF{"'%inputfieldsize%'!=''" then="%inputfieldsize%" else="12"}%" id="personalInfoSearchBox" name="personalInfoSearchBox" />
<div class="foswikiPageForm"><table id="foswikiSearchTable" border="0" cellspacing="0" cellpadding="0"><tr><td class="first">
*Search name:* <input type="text" class="foswikiInputField" size="%IF{"'%inputfieldsize%'!=''" then="%inputfieldsize%" else="12"}%" id="personalInfoSearchBox" name="personalInfoSearchBox" />
</td></tr></table></div>

%INCLUDE{"PersonalInfo" section="pictures" gridWidth="130" gridHeight="120" imgHeight="85"}%
Expand Down
Expand Up @@ -22,7 +22,7 @@ Distribution files:
All these files need to reside in your user web (by default Main).

---+++ Diagram of main pages
<div class="twikiImage"><img src="%PUBURL%/%SYSTEMWEB%/PersonalInfoAddOn/template_diagram.png" alt="Diagram of main pages" width='800' height='409' /></div>
<div class="foswikiImage"><img src="%PUBURL%/%SYSTEMWEB%/PersonalInfoAddOn/template_diagram.png" alt="Diagram of main pages" width='800' height='409' /></div>

---++ Documentation of the INCLUDE sections in PersonalInfo.

Expand Down Expand Up @@ -65,7 +65,7 @@ This block is included on every user page when PersonalInfoUserViewTemplate is s
*Some more indepth information what happens when the user saves her data:*
* When =AllowRedirectUrl= is enabled in configure, topic PersonalInfo will be saved as well. This setting is not advisable for public installations, but is ok for intranets.
* If Foswiki:Extensions/AttachContentPlugin is enabled, on saving !PersonalInfo the javascript attachment for [[#directSearch][directSearch]] will be saved as well.
* The javascript file will make directSearch quite a bit faster. If !AttachContentPlugin is not installed, the search will fall back on TWiki's (slower) live search.
* The javascript file will make directSearch quite a bit faster. If !AttachContentPlugin is not installed, the search will fall back on Foswiki's (slower) live search.
* The same idea may be used to create an XML file, this is turned off for performance. See [[#phone_ListXML][phoneListXML]].
* %ICON{warning}% On large intranets this will have a performance hit. Possibly a different timing of updating the javascript will be needed.
</div>
Expand Down
Expand Up @@ -4,12 +4,12 @@
<verbatim>
%STARTSECTION{"paragraphWithImageLeft"}%<div class="pIparagraphWithImageLeft">
<div class="pIparagraphWithImageLeftImage">
<div class="twikiImage">%INCLUDE{"%TOPIC%" section="image"}%</div><!--/twikiImage-->
<div class="foswikiImage">%INCLUDE{"%TOPIC%" section="image"}%</div><!--/foswikiImage-->
</div><!--/pIparagraphWithImageLeftImage-->
<div class="pIparagraphWithImageLeftText">
%text%
</div><!--/pIparagraphWithImageLeftText-->
<br class="twikiClear" />
<br class="foswikiClear" />
</div><!--/pIparagraphWithImageLeft-->%ENDSECTION{"paragraphWithImageLeft"}%
</verbatim>

Expand All @@ -27,8 +27,6 @@

<verbatim>
%STARTSECTION{"paragraphWithImageLeftStyle"}%<style type="text/css" media="all">
.twikiImage {
}
.pIparagraphFrame {
}
.pIparagraphWithImageLeft {
Expand Down
Expand Up @@ -16,7 +16,7 @@ This topic holds a number of modules (INCLUDE sections) to display and search us

<verbatim>
%STARTSECTION{"personalInfoDataRow" fieldName=%FIELDNAME% label=%LABEL%}%<tr>
<th> %label% </th><td> %IF{"defined editUserData" then="<noautolink><input type='text' name='%fieldName%' id='%fieldName%' $percntIF{$quot\'%editable%\'=\'no\'$quot then=$quotdisabled=\'disabled\'$quot}$percnt $percntIF{$quot\'%editable%\'=\'no\'$quot then=$quotclass=\'twikiInputFieldDisabled\'$quot else=$quotclass=\'twikiInputField\'$quot}$percnt size='40' value='%FORMFIELD{"%fieldName%" topic="%BASETOPIC%" format="$value"}%' /></noautolink>" else="%FORMFIELD{"%fieldName%" topic="%BASETOPIC%" format="$percntIF{$quot\'%link%\'=\'yes\'$quot then=$quot[[$value]]$quot else=$quot$value$quot}$percnt"}%" }% </td>
<th> %label% </th><td> %IF{"defined editUserData" then="<noautolink><input type='text' name='%fieldName%' id='%fieldName%' $percntIF{$quot\'%editable%\'=\'no\'$quot then=$quotdisabled=\'disabled\'$quot}$percnt $percntIF{$quot\'%editable%\'=\'no\'$quot then=$quotclass=\'foswikiInputFieldDisabled\'$quot else=$quotclass=\'foswikiInputField\'$quot}$percnt size='40' value='%FORMFIELD{"%fieldName%" topic="%BASETOPIC%" format="$value"}%' /></noautolink>" else="%FORMFIELD{"%fieldName%" topic="%BASETOPIC%" format="$percntIF{$quot\'%link%\'=\'yes\'$quot then=$quot[[$value]]$quot else=$quot$value$quot}$percnt"}%" }% </td>
</tr>%ENDSECTION{"personalInfoDataRow"}%
</verbatim>

Expand Down Expand Up @@ -62,24 +62,24 @@ margin:.5em 0 2em 0;
padding:0 .8em; /* same as .pIparagraphWithImageLeftText td */
}
.personalInfoFormDataActions a {
font-size:86%; /* same as .twikiSmall */
font-size:86%; /* same as .foswikiSmall */
}
.personalInfoFormDataActions .twikiSeparator {
.personalInfoFormDataActions .foswikiSeparator {
color:#ccc;
}
</style>%ENDSECTION{"personalInfoStyle"}%
</verbatim>

<verbatim>
%STARTSECTION{"personalInfo"}%<div class="pIparagraphFrame personalInfo%IF{"$'FORMFIELD{WorkStatus}'!='Current'" then=" pIFormer"}%">
---+!! <nop>%FORMFIELD{"FirstName" topic="%BASETOPIC%"}% %FORMFIELD{"LastName" topic="%BASETOPIC%"}%
---+!! <noautolink>%FORMFIELD{"FirstName" topic="%BASETOPIC%"}% %FORMFIELD{"LastName" topic="%BASETOPIC%"}%</noautolink>
%INCLUDE{"PersonalInfoLayoutModules" section="paragraphWithImageLeftStyle"}%
<form name="main" action="%SCRIPTURLPATH{"save"}%/%BASEWEB%/%BASETOPIC%" method="post">
<input type="hidden" name="editaction" value="form" />
<!-- if !AllowRedirectUrl is enabled in configure, !PersonalInfo is updated to save the search data as javascript file -->
%IF{"context AttachContentPluginEnabled" then='<input type="hidden" name="redirectto" value="%SCRIPTURL{save}%/%WEB%/PersonalInfo?redirectto=%BASETOPIC%" />'}%
%INCLUDE{"PersonalInfoLayoutModules" section="paragraphWithImageLeft" imgName="%FORMFIELD{"Picture" topic="%BASEWEB%.%BASETOPIC%" format="$value" default="" alttext=""}%" imgWeb="%BASEWEB%" imgTopic="%BASETOPIC%" imgWidth="120" imgTitle="" text="%INCLUDE{"PersonalInfo" section="personalInfoFields"}%
%IF{"not defined editUserData" then="<div class='personalInfoFormDataActions twikiUnvisited'>[[%SCRIPTURL{view}%/%BASEWEB%/%BASETOPIC%?editUserData=on][Edit data]] <span class='twikiSeparator'>|</span> [[%SCRIPTURL{view}%/%BASEWEB%/%BASETOPIC%?template=PersonalInfoPictureView][Change picture]] <span class='twikiSeparator'>|</span> %IF{"$'FORMFIELD{WorkStatus}'!='Current'" then="<a href='%SCRIPTURL{save}%/%BASEWEB%/%BASETOPIC%?WorkStatus=Current'>Set active</a>" else="<a href='%SCRIPTURL{save}%/%BASEWEB%/%BASETOPIC%?WorkStatus=Former'>Set inactive</a>"}%</div>" }% %IF{"defined editUserData" then="<div class='personalInfoFormDataActions'><input type='submit' class='twikiSubmit' name='action_save' id='save' value='Save' /> <input type='submit' class='foswikiButton' name='action_cancel' id='cancel' value='Cancel' /></div>" }%" }% </form></div><!--/pIparagraphFrame-->%ENDSECTION{"personalInfo"}%
%IF{"not defined editUserData" then="<div class='personalInfoFormDataActions foswikiUnvisited'>[[%SCRIPTURL{view}%/%BASEWEB%/%BASETOPIC%?editUserData=on][Edit data]] <span class='foswikiSeparator'>|</span> [[%SCRIPTURL{view}%/%BASEWEB%/%BASETOPIC%?template=PersonalInfoPictureView][Change picture]] <span class='foswikiSeparator'>|</span> %IF{"$'FORMFIELD{WorkStatus}'!='Current'" then="<a href='%SCRIPTURL{save}%/%BASEWEB%/%BASETOPIC%?WorkStatus=Current'>Set active</a>" else="<a href='%SCRIPTURL{save}%/%BASEWEB%/%BASETOPIC%?WorkStatus=Former'>Set inactive</a>"}%</div>" }% %IF{"defined editUserData" then="<div class='personalInfoFormDataActions'><input type='submit' class='foswikiSubmit' name='action_save' id='save' value='Save' /> <input type='submit' class='foswikiButton' name='action_cancel' id='cancel' value='Cancel' /></div>" }%" }% </form></div><!--/pIparagraphFrame-->%ENDSECTION{"personalInfo"}%
</verbatim>


Expand Down Expand Up @@ -128,7 +128,7 @@ end:vcard"}%%ENDSECTION{"vCard"}%

<verbatim>
%STARTSECTION{"directSearch" title="%title%" maxresults="%maxresults%" layout="%layout%" showpictures="%showpictures%" inputfieldsize="%inputfieldsize%" pictureheight="%PICTUREHEIGHT%"}% <div> %title% </div>
<input type="text" class="twikiInputField" size="%IF{"defined inputfieldsize" then="%inputfieldsize%" else="12"}%" id="personalInfoSearchBox" name="personalInfoSearchBox" />
<input type="text" class="foswikiInputField" size="%IF{"defined inputfieldsize" then="%inputfieldsize%" else="12"}%" id="personalInfoSearchBox" name="personalInfoSearchBox" />
<div id="personalInfoSearchResults"><!-- search results will be displayed here --></div>
%IF{"context AttachContentPluginEnabled" then='%INCLUDE{"PersonalInfo" section="directSearchScriptFile"}%' else='%INCLUDE{"PersonalInfo" section="directSearchScript" raw="on" literal="on"}%'}%
%INCLUDE{"PersonalInfoModules" section="initSearchBox" raw="on" literal="on"}%
Expand Down Expand Up @@ -156,7 +156,7 @@ end:vcard"}%%ENDSECTION{"vCard"}%
pISearch.showResults(box.value);
}
}
twiki.Event.addLoadEvent(initSearchBox);
foswiki.Event.addLoadEvent(initSearchBox);
// ]]>
</script>%ENDSECTION{"initSearchBox"}%
</verbatim>
Expand Down Expand Up @@ -276,7 +276,7 @@ color:#fff;
#pISearchResultsGrid {
margin:1em 0;
}
#pISearchResultsGrid .twikiImage a img {
#pISearchResultsGrid .foswikiImage a img {
border:none;
margin:0 0 .35em 0;
padding:0;
Expand Down Expand Up @@ -308,7 +308,7 @@ overflow:hidden;
text-decoration:none;
color:#06c;
}
#pISearchResultsGrid .twikiImage a:hover {
#pISearchResultsGrid .foswikiImage a:hover {
border:1px solid #06c;
}
#pISearchResultsGrid a:hover .pISearchResultsGridInfo {
Expand All @@ -317,7 +317,7 @@ color:#06c;
background:none;
}
</style>
<div id="pISearchResultsGrid">%SEARCH{ "[W]orkStatus.*value=.*(Current)" web="%MAINWEB%" type="regex" nonoise="on" excludetopic="PresentationForm,UserForm,PersonalInfo,PersonalInfoDocumentation,PersonalInfoFaceBook,ProjectContributor,WikiGuest,UnknownUser%IF{'defined exclude' then=',%exclude%'}%" order="topic" format="<div class='twikiImage'><a href='%SCRIPTURL{view}%/$web/$topic' class='pISearchResultsGridItem' id='pISearch$topic' title='$formfield(FirstName) $formfield(LastName)'>$percntINCLUDE{$quotPersonalInfoLayoutModules$quot section=$quotimage$quot imgType=$quotnolink$quot imgWeb=$quot$web$quot imgTopic=$quot$topic$quot imgTitle=$quot$formfield(FirstName) $formfield(LastName)$quot imgName=$quot$percntFORMFIELD{$quotPicture$quot topic=$quot$web.$topic$quot format=$quot$value$quot default=$quot$quot alttext=$quot$quot}$percnt$quot}$percnt<span class='pISearchResultsGridInfo'>$formfield(FirstName) $formfield(LastName)</span></a></div>" "}%<br class="twikiClear" /></div>%ENDSECTION{"pictures"}%
<div id="pISearchResultsGrid">%SEARCH{ "[W]orkStatus.*value=.*(Current)" web="%MAINWEB%" type="regex" nonoise="on" excludetopic="PresentationForm,UserForm,PersonalInfo,PersonalInfoDocumentation,PersonalInfoFaceBook,ProjectContributor,WikiGuest,UnknownUser%IF{'defined exclude' then=',%exclude%'}%" order="topic" format="<div class='foswikiImage'><a href='%SCRIPTURL{view}%/$web/$topic' class='pISearchResultsGridItem' id='pISearch$topic' title='$formfield(FirstName) $formfield(LastName)'>$percntINCLUDE{$quotPersonalInfoLayoutModules$quot section=$quotimage$quot imgType=$quotnolink$quot imgWeb=$quot$web$quot imgTopic=$quot$topic$quot imgTitle=$quot$formfield(FirstName) $formfield(LastName)$quot imgName=$quot$percntFORMFIELD{$quotPicture$quot topic=$quot$web.$topic$quot format=$quot$value$quot default=$quot$quot alttext=$quot$quot}$percnt$quot}$percnt<span class='pISearchResultsGridInfo'>$formfield(FirstName) $formfield(LastName)</span></a></div>" "}%<br class="foswikiClear" /></div>%ENDSECTION{"pictures"}%
</verbatim>


Expand Down Expand Up @@ -365,7 +365,7 @@ pISearch.processResult = function(inName, inUserData) {
pISearch.pictureSet[topic].style.display = 'inline';
}
}
twiki.Event.addLoadEvent(pISearch.initSearch);
foswiki.Event.addLoadEvent(pISearch.initSearch);
// ]]>
</script>
%INCLUDE{"PersonalInfoModules" section="initSearchBox" raw="on" literal="on"}%%ENDSECTION{"pictureFilterSearch"}%
Expand Down
Expand Up @@ -9,7 +9,7 @@
%TMPL:DEF{"titleaction"}%%MAKETEXT{"(delete picture)"}% %TMPL:END%


%TMPL:DEF{"topicactionbuttons"}%<input type="submit" class="twikiSubmit" value=' %MAKETEXT{"Delete this picture"}% ' /> %MAKETEXT{"or"}% <a href="%SCRIPTURL{view}%/%WEB%/%TOPIC%?template=PersonalInfoPictureView">%MAKETEXT{"Cancel"}%</a>%TMPL:END%
%TMPL:DEF{"topicactionbuttons"}%<input type="submit" class="foswikiSubmit" value=' %MAKETEXT{"Delete this picture"}% ' /> %MAKETEXT{"or"}% <a href="%SCRIPTURL{view}%/%WEB%/%TOPIC%?template=PersonalInfoPictureView">%MAKETEXT{"Cancel"}%</a>%TMPL:END%


%TMPL:DEF{"formstart"}%<form method="post" name="rename" action="%SCRIPTURLPATH{"rename"}%/%WEB%/%TOPIC%">%TMPL:END%
Expand All @@ -21,9 +21,9 @@
</form>%TMPL:END%


%TMPL:DEF{"content"}%%TMPL:P{"formstart"}%<div class="twikiFormSteps">
<div class="twikiFormStep pIPictures">
<span class="twikiImage">%INCLUDE{"PersonalInfoLayoutModules" section="image" imgName="%FILENAME%" imgWeb="%BASEWEB%" imgTopic="%BASETOPIC%" imgWidth="120"}%</span><span class="twikiSmallish foswikiGrayText userPictureActions">%FILENAME%</span>
</div><!--/twikiFormStep--></div><!--/twikiFormSteps-->
%TMPL:DEF{"content"}%%TMPL:P{"formstart"}%<div class="foswikiFormSteps">
<div class="foswikiFormStep pIPictures">
<span class="foswikiImage">%INCLUDE{"PersonalInfoLayoutModules" section="image" imgName="%FILENAME%" imgWeb="%BASEWEB%" imgTopic="%BASETOPIC%" imgWidth="120"}%</span><span class="foswikiSmallish foswikiGrayText userPictureActions">%FILENAME%</span>
</div><!--/foswikiFormStep--></div><!--/foswikiFormSteps-->
%TMPL:P{"topicaction"}%
%TMPL:P{"formend"}%%TMPL:END%
Expand Up @@ -20,7 +20,7 @@
%TMPL:DEF{"previous"}%%{"overide FILENAME variable"}%<input type="hidden" name="filename" value="" />%TMPL:END%


%TMPL:DEF{"topicactionbuttons"}%<input type="submit" class="twikiSubmit" value='%MAKETEXT{"Upload file"}%' /> %MAKETEXT{"or"}% <a href="%SCRIPTURL{view}%/%WEB%/%TOPIC%?template=PersonalInfoPictureView">%MAKETEXT{"Cancel"}%</a>%TMPL:END%
%TMPL:DEF{"topicactionbuttons"}%<input type="submit" class="foswikiSubmit" value='%MAKETEXT{"Upload file"}%' /> %MAKETEXT{"or"}% <a href="%SCRIPTURL{view}%/%WEB%/%TOPIC%?template=PersonalInfoPictureView">%MAKETEXT{"Cancel"}%</a>%TMPL:END%


%TMPL:DEF{"hiddenfields"}%<input type="hidden" name="filecomment" value="" />
Expand Down

0 comments on commit 259db3d

Please sign in to comment.