Tags:
create new tag
, view all tags

Question

Is there a way to regenerate this view if it is lost?

Thanks

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: linux
Web server: Apache 1.3
Perl version: 5.6.1
Client OS: XP
Web Browser: IE6

-- MartinCleaver - 30 Sep 2004

Answer

Assuming you mean the TWikiUsers topic is lost, yes, of course, you can simply write a script to iterate over all the topics in the Main web, identify those that are users, and rebuild the list.

-- CrawfordCurrie - 01 Oct 2004

I guess I should have been clearer in specifying that I was seeking an already-written-script wink

-- MartinCleaver - 01 Oct 2004

There is no need for a script. SEARCH and CALC is all you need. Here we go:

  • Below SEARCH is just an example, searching for "BSD" in this web
  • You need to replace that with "* Name:" or something that identifies user topics
  • Copy the SEARCH to a topic in the Main web
  • Look at the HTML source and copy that (the rendered text looks messy)
  • The SEARCH and CALC regenerate the anchor lines, but not without some flaws:
    • Replace all occurances of "@" with a new line
    • Anchors for missing letters of the alphabet are missing; add them manually

%SEARCH{ "BSD" nosearch="on" format="$percntCALC{$SET(this, $REPLACE($topic,2,100))$IF($EXACT($GET(this), $GET(last)), , <nop>   * $GET(this) - <a name=\"$GET(this)\">- - - -</a>@)<nop>   * !$topic - $REPLACE($createdate,12,10)$SET(last, $GET(this))}$percnt" }%

* A - - - - -@ * AccessControlAndPermissionIssues - 2004-10-19 * AddCommentToEachNewTopic - 2005-04-11 * ApacheErrorsDuringEdit - 2005-11-03 * ApachePasswordsUnix - 2002-03-19 * AssigningHtmlTagsToTables - 2007-01-22 * AttachingFilesFails - 2001-10-21 * B - - - - -@ * BaseClassPackageErrorMessage - 2008-04-28 * BestWayToEditContent - 2002-01-09 * BetaStatisticsErrorMessages - 2002-08-12 * BetterEditWidget - 2002-09-03 * BetterInstallationProcessPlease - 2004-03-07 * BinaryAttachmentsFailOnSecondRevision - 2003-07-31 * BinaryFileProblem - 2002-07-02 * BugsContribCustomization - 2006-07-05 * BulkRegisterFails - 2006-02-06 * C - - - - -@ * CanNotAddGroup - 2007-02-12 * CantConnectToMail - 2005-02-27 * CantEditTWikiWebsTable - 2001-11-30 * CantLocatePluginsInAtINC - 2006-05-09 * CantSeeTWikiGroups - 2006-08-23 * ChangeFormButtonText - 2003-07-20 * ChangePasswordFails - 2003-07-17 * ChangedAccessWithoutUserAuthorization - 2005-02-28 * ChangesNotSaved - 2002-06-26 * CiDatePrecedesDate - 2007-10-08 * ConditionalDisplayOnAttachment - 2007-01-11 * ConfigureErrorRequireFailed - 2007-11-20 * ConfigureNextError404 - 2007-01-25 * ConfigureScriptRequiresAuthentication - 2006-06-14 * CouldNotCreateTestFile - 2006-10-05 * CustomVariablesInTemplates - 2002-09-24 * D - - - - -@ * DifferentWikisOnTheSameServer - 2002-08-27 * E - - - - -@ * EditPageContainsNoData - 2003-06-03 * EditUrlStillLooksBad - 2008-09-19 * ExtraSpaceInFirstListItem - 2001-11-24 * F - - - - -@ * FatalInsecureDependencyErrorInConfig - 2006-08-03 * FormOnTop - 2002-07-17 * FormattingDateInSearch - 2006-07-20 * FormsConfusion - 2002-07-22 * FormsTextFieldDefaultData - 2005-07-23 * FreeBSD - 2003-04-07 * FreeBSDInstallProblem - 2008-07-21 * FreeBSDUploadedFilesZeroBytes - 2006-11-24 * G - - - - -@ * GettingFromBasicInstallToNextSteps - 2006-01-27 * GnuDiffAndGnuPatchOnFreeBSD - 2006-08-17 * GraphicDesign - 2004-09-15 * H - - - - -@ * HardwareRecommendations - 2008-05-02 * HeadlinesPluginFailure - 2003-05-06 * HideAttachmentTableByDefault - 2005-07-13 * HideControlsFromNonAuthenticatedUsers - 2004-10-14 * HowCanIAddFormsToNewWebs - 2002-04-24 * HowDoIDeleteUsers - 2003-06-03 * HowDoINotExpandPluginVariablesInTemplates - 2005-02-18 * HowToChangeOwnerToNobody - 2004-08-11 * HowToChangeRcsRevisionTimeLimit - 2005-06-27 * HowToCreateNewListType - 2003-03-03 * HowToCreateOldStatistics - 2003-10-10 * HowToDisableAuthentciation - 2002-07-24 * HowToFindOrphanedTopics - 2002-07-15 * HowToLogIn - 2003-06-03 * HowToNestMetasearch - 2006-03-14 * HowToRecursiveTOCListing - 2003-02-07 * HowToRenameSystemWebName - 2006-05-19 * HowToReplaceEgrepSearch - 2004-07-21 * HowToSelectFromMultipleTemplates - 2006-11-09 * HowToShortenTheUrl - 2007-02-08 * HowToSortFileAttachmentsByName - 2005-10-21 * HowToUpdateFromVeryOldVersionToNewestTWiki - 2004-11-29 * HowToUpgradeTo40 - 2006-02-03 * HowToUseWebBackgrounds - 2005-06-15 * HowtoBuildThoughtManager - 2003-11-12 * I - - - - -@ * ImportWebIntoTwiki - 2003-06-07 * IncludeDisorganizesHomePageFormatting - 2004-12-07 * IncludeWrapsWithHTML - 2006-09-19 * IncompleteInstall - 2002-04-22 * InstallationIssues - 2001-06-26 * InstallationNeedHelpwithConfigRCSlite - 2003-08-24 * K - - - - -@ * KoalaSkinGenerateScriptLooping - 2004-02-24 * L - - - - -@ * LocalTimePluginProblems - 2006-03-22 * LoginItemOnMainWebHome - 2006-03-11 * LoginPage - 2001-08-27 * M - - - - -@ * MacOSXAttachProblem - 2002-06-07 * MacrosNotExpanding - 2005-03-23 * MailNotifyOutOfMemory - 2002-07-17 * MailerContribOutOfMemoryError - 2005-10-07 * MailoutChangedText - 2002-07-07 * ManageMultipleAttachments - 2005-03-10 * ManyTopicFormsToSingleTable - 2006-12-08 * MissingDatabasePluginEditfile - 2007-07-17 * MissingFiles - 2003-03-28 * MissingTemplate - 2002-05-31 * ModPerlTWikiCGIpm - 2007-11-21 * MorePerlBetaGoodness - 2002-08-12 * MoreWebsMoreWebs - 2004-10-22 * MoveTWikiVM - 2007-06-06 * MoveTwikifromFreeBSDtoWindows - 2008-01-29 * N - - - - -@ * NatSearchListingBug - 2006-08-17 * NeedHelpWithTWikiConfiguration - 2006-11-05 * NestedSearch - 2008-07-11 * NewVersionInstall - 2006-08-01 * NonEnglishTopicName - 2003-04-07 * NonStandardPortInstall - 2004-07-27 * NotAllChineseCharactersDisplayNormally - 2006-11-17 * NotAuthorizedToRunConfigure - 2006-04-23 * O - - - - -@ * OwnershipIssues - 2004-04-15 * P - - - - -@ * PageModeRssEncodeBug - 2003-04-14 * PathVarForTWikiRegistration - 2001-12-01 * PatternInSearchNotWorking - 2007-01-08 * PerformanceWithManyPlugins - 2003-08-01 * PermissionIssuesWithComments - 2006-03-23 * PluginInstallationFailing - 2007-09-28 * PostUpgradeWoes - 2006-02-04 * PreconditionFailed412 - 2005-04-08 * ProblemRenderingLocalCityTime - 2001-10-06 * ProblemSavingTWikiPreferences - 2005-12-11 * ProjectPlannerBrokenInDakar - 2006-03-02 * ProposalForAClassDesignationForLinks - 2003-03-20 * Q - - - - -@ * QuerySearchDateNotWorking - 2008-01-28 * QuestionnaireToTwiki - 2002-08-11 * R - - - - -@ * RCSLockErrors - 2001-06-17 * RCSRelatedWarningOnXpforTestenv - 2003-07-04 * RCSSomtimesYesSometimesNo - 2001-09-03 * RCSStuckVersion - 2002-05-08 * RcsCiNotFound - 2002-01-14 * ReferencesPagesWithTwiki - 2002-06-30 * RegeneratingTWikiUsers - 2004-09-30 * RegistrationProblem - 2001-12-16 * RenameTopicAndPreserveChildren - 2007-03-04 * RenameTopicNotUpdatingParentMetadata - 2008-02-13 * RenameWebStep2 - 2006-06-13 * ReplaceJumpWithSearch - 2004-11-07 * ResetPasswordChangePasswordFails420 - 2008-01-31 * RestrictingWebUsageToGroup - 2001-11-21 * RevisionRevertsTo1 - 2003-07-29 * S - - - - -@ * SID-00020 - 2009-01-08 * SID-00200 - 2009-03-18 * SID-00229 - 2009-03-27 * SID-00274 - 2009-04-20 * SID-00342 - 2009-05-29 * SID-00385 - 2009-06-25 * SID-00480 - 2009-08-13 * SID-00514 - 2009-09-02 * SID-00524 - 2009-09-10 * SID-00680 - 2009-12-18 * SID-01043 - 2010-11-29 * SID-01127 - 2011-03-14 * SID-01135 - 2011-03-23 * SID-01163 - 2011-05-04 * SID-01166 - 2011-05-04 * SID-01172 - 2011-05-11 * SSLAndTWikiDrawDoesNotWork - 2002-01-13 * SafeAfterErrorsCompilationAborted - 2002-03-01 * SearchDoesntHonorSkin - 2001-06-13 * SearchFailingOnTWikiWeb - 2002-04-11 * SearchFails - 2006-03-22 * SearchFailsInHiddenWeb - 2002-07-11 * SearchForChildrenReturnsEmpty - 2007-02-03 * SearchNotWorkingInMainWeb - 2005-05-24 * SecureAccessToOutside - 2004-11-04 * SecurityLoop - 2002-01-24 * SelectForBookView - 2003-09-22 * SendEmailPluginWrongPathinBin - 2008-02-07 * SendMail - 2005-02-09 * SettingCorrectTimeZone - 2001-08-03 * SettingEditFont - 2003-06-07 * SettingMonospaceFontForEditing - 2003-09-01 * SharedNamedVirtualHostAndModPerl - 2007-04-02 * SiteMapIsEmpty - 2003-02-24 * SkinCssBroke - 2007-10-10 * SpacingOutParentsInBreadcrumbs - 2008-01-24 * StatisticsVariableWillNotStayShared - 2002-07-22 * StoringEmailMessages - 2004-04-07 * StrangeLookToSomePages - 2006-03-11 * SuSeEnterpriseDesktop10 - 2008-09-29 * SubWebsAndPermissions - 2006-03-24 * SymLinkedViewAuthError - 2003-09-15 * T - - - - -@ * TWikiCustomizationHowto - 2004-04-03 * TWikiDotOrgNotRenderingInFirefox - 2006-03-14 * TWikiOnOpenBSDvhost - 2001-11-04 * TWikiServerHardwareRecommendations - 2006-02-10 * TemplateListedInSearchResults - 2003-07-20 * TemplateLoginAuthFailureNoLogErrors - 2006-08-17 * TextIndentsWhenLinkIsSelected - 2008-04-22 * TopicAllegedNotToExist - 2004-11-04 * TopicUpdateDue - 2002-12-30 * TwikiFreeBsdPerformance - 2003-04-26 * TwistyExpandAllNotWorkingInIeSafari - 2007-06-28 * U - - - - -@ * UnfinishedCloseHTMLTagUnderModPerl - 2002-08-12 * UploadingAttachmentSometimesFails - 2005-10-11 * UseOfRemembranceAgentAsAlternateSearchEngine - 2002-03-06 * UseOfUninitializedValueInCGIdotPM - 2002-08-11 * UserAlwaysGoUnderAccessControl - 2006-08-24 * UserPrefsBeingIgnored - 2004-08-12 * UserRemainsTWikiGuest - 2005-11-30 * Utf8EditShowsHtmlNumbers - 2007-02-20 * V - - - - -@ * VerifyNewUserFails - 2006-08-07 * VersionHistoryDoesNotWork - 2006-05-31 * ViewauthRedirectionBroken - 2004-11-08 * W - - - - -@ * WebDoesNotExistInForms - 2003-10-17 * WebLeftBarPosition - 2006-06-05 * WysiwygEditorNotIncludingTemplateText - 2006-03-29

Number of topics: 201

-- PeterThoeny - 01 Oct 2004

Hmm, interesting bit of terminology. I would have called that a script, that just happens to have been written in TWikiScriptingLanguage

-- CrawfordCurrie - 02 Oct 2004

Hmm. I don't think I ever saw your answer before. Thanks Peter!

-- MartinCleaver - 21 Oct 2008

Topic revision: r7 - 2008-10-21 - MartinCleaver
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.