Item1525: Old User profiles need to be updated to appear in PersonalInfoAddOn-Facebook-Page
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Web Site
Component:
Branches:
Open Tasks for conversion of old users:
- Change form from System.UserForm to Main.UserForm
- Change
VIEW_TEMPLATE
to PersonalInfoUserView
- Change
TopicParent
from TWikiUsers
to WikiUsers
- Add
VIEW_TEMPLATE
to PersonalInfoUserView
for topics that are missing it (thanks OlivierRaginel for the script)
perl -i -ple 's/^(%META:TOPICPARENT{name=")T(WikiUsers"}%)$/$1$2/' *.txt
perl -i -ple 's/^%META:FORM{name="%25SYSTEMWEB%25.UserForm"}%/%META:FORM{name="%25USERSWEB%25.UserForm"}%/' *.txt
perl -i -ple 's/^%META:FORM{name="Main.UserForm"}%/%META:FORM{name="%25USERSWEB%25.UserForm"}%/' *.txt
perl -i -ple 's/^(%META:PREFERENCE{name="VIEW_TEMPLATE" title="VIEW_TEMPLATE" type="Local" value=")(UserView"}%)/$1PersonalInfo$2/'
for i in $((ls -1 /usr/home/foswiki.org/trunk/core/data/Main/*.txt;grep -l VIEW_TEMPLATE /usr/home/foswiki.org/trunk/core/data/Main/*.txt)|sort|uniq -u);do echo '%META:PREFERENCE{name="VIEW_TEMPLATE" title="VIEW_TEMPLATE" type="Local" value="PersonalInfoUserView"}%' >> $i;done
also, i sent out an email telling "old" users that their user topic has been upgraded
--
WillNorris - 25 Apr 2009