<pre>%STARTINCLUDE%<noautolink> userMenu = new QuickMenu.Menu("user","functions"); %IF{"context authenticated" then=' userMenu.Add("%SPACEOUT{%WIKINAME%}%","%SCRIPTURLPATH{view}%/%MAINWEB%/%WIKINAME%","%ICONURLPATH{"home"}%"); userMenu.Add("%MAKETEXT{"Log Out"}%","%IF{"defined LOGOUTURL" then="%LOGOUTURL%" else="?logout=1"}%","%ICONURLPATH{"logout"}%");userMenu.Add("My %BASEWEB% activities","%SCRIPTURL{search}%/%BASEWEB%/?search=%WIKINAME%;order=modified;limit=50;reverse=on","%PUBURLPATH%/%SYSTEMWEB%/NuSkin/FamFamFamSilkIcons/transmit_blue.png","Bask in the glory of you");%IF{"istopic '%MAINWEB%.%WIKINAME%Bookmarks'" then='userMenu.Add();userMenu.Add("My bookmarks (organise)...","%SCRIPTURLPATH{edit}%/%MAINWEB%/%WIKINAME%Bookmarks?t=%SERVERTIME{"$epoch"}%","%PUBURLPATH%/%SYSTEMWEB%/NuSkin/FamFamFamSilkIcons/book_next.png",""); %SEARCH{"^.* \*\s*.*?" topic="%WIKINAME%Bookmarks" web="%MAINWEB%" type="regex" multiple="on" casesensitive="on" nonoise="on" format="userMenu.Add(\"$pattern(.* \*\s*\[\[.*?\]\[(.*?)\]\].*)\",\"%SCRIPTURLPATH{view}%/$pattern(.* \*\s*\[\[(.*?)\]\[.*?\]\].*)\",\"\",\"\");"}%'}% ' else='userMenu.Add("%MAKETEXT{"Log In"}%","%LOGINURL%","%ICONURLPATH{"key"}%"); userMenu.Add("%MAKETEXT{"Register"}%","%SCRIPTURLPATH{view}%/%SYSTEMWEB%/UserRegistration","%ICONURLPATH{"pencil"}%"); '}% </noautolink>%STOPINCLUDE%</pre>
This topic: System
>
NuSkin
>
NuMenuBarUser
Topic revision:
03 Sep 2008, DavidPatterson
(raw view)
Copyright © CC-BY-SA by the contributing authors. All material on this collaboration platform is copyrighted under CC-BY-SA by the contributing authors unless otherwise noted.
Ideas, requests, problems regarding Foswiki?
Send feedback