Skip to content

LegacyTokenMapping

John Henley edited this page Oct 17, 2024 · 5 revisions

Legacy Token Mapping

Tokens are used in various templates to insert content from a forum, topic, reply, etc. into a page. However, in previous versions, HTML was injected from code for certain tokens, which made it impossible for a designer to tailor the HTML markup without customizing the code.

DNN Community Forums 08.02.00 introduces new token replacement features that inject only the data associated with the token, allowing the designer to create whatever HTML markup is desired.

The community-default and community-bootstrap themes and templates have been updated to include the legacy markup from what used to be generated in the module's code.

However, for installed sites that have other themes and templates, DNN Community Forums 08.02.00 will replace a legacy token with its modern replacement, including the previously-injected markup.

For Example, [GROUPNAME] will now be replaced by [FORUMGROUP:FORUMGROUPLINK|<a href="{0}" class="dcf-forumgroup-link">[FORUMGROUP:GROUPNAME]</a>]

Notice, that the HTML--that was previously hard-coded in the module--is now injected after the bar ("|") in the new token; the HTML for each of the legacy replacements comes from App_LocalResources\LegacyTokenResources.resx. Also,that the replacement token now supports embedded tokens.

The legacy token replacement feature will be supported through version 10.00.00, and will then be removed. If you use your own themes and templates, please use this table to see which legacy tokens are replaced by which updated tokens.

Lastly, each time a legacy token is replaced, an alert will be written to the DNN Admin Log: Legacy Token Replacement Admin Log

Old New
[AF:CONTROL:FORUMGROUPID] [FORUM:FORUMGROUPID]
[AF:CONTROL:FORUMID] [FORUM:FORUMID]
[AF:CONTROL:STATUSICON] [FORUMTOPIC:STATUSID|<div><i class="fa fa-status{0} fa-red fa-2x"></i></div>]
[AF:ICONLINK:LASTREAD] [FORUMTOPIC:LASTREADURL|<a href="{0}" rel="nofollow"><img src="[FORUM:THEMELOCATION]/images/miniarrow_down.png" style="vertical-align:middle;" alt="[RESX:JumpToLastRead]" border="0" class="afminiarrow" /></a>]
[AF:ICONLINK:LASTREPLY] [FORUMTOPIC:LASTREPLYURL|<a href="{0}" rel="nofollow"><img src="[FORUM:THEMELOCATION]/images/miniarrow_right.png" style="vertical-align:middle;" alt="[RESX:JumpToLastReply]" border="0" class="afminiarrow" /></a>]
[AF:LABEL:LastPostAuthor] [FORUMTOPIC:LASTPOSTAUTHORDISPLAYNAMELINK|<a href="{0}" class="af-profile-link" rel="nofollow">[FORUMTOPIC:LASTPOSTAUTHORDISPLAYNAME]</a>|[FORUMTOPIC:LASTPOSTAUTHORDISPLAYNAME]]
[AF:LABEL:LastPostDate] [FORUMTOPIC:LASTPOSTDATE]
[AF:LABEL:ReplyCount] [FORUMTOPIC:REPLYCOUNT]
[AF:LABEL:TopicAuthor]] [FORUMTOPIC:AUTHORDISPLAYNAMELINK|<a href="{0}" class="af-profile-link" rel="nofollow">[FORUMTOPIC:AUTHORDISPLAYNAME]</a>|[FORUMTOPIC:AUTHORDISPLAYNAME]]
[AF:LABEL:TopicDateCreated] [FORUMTOPIC:DATECREATED]
[AF:POINTS:REPLYCOUNT] [FORUMUSER:REPLYCOUNT]
[AF:POINTS:TOPICCOUNT] [FORUMUSER:TOPICCOUNT]
[AF:PROFILE:ANSWERCOUNT] [FORUMUSER:ANSWERCOUNT]
[AF:PROFILE:AVATAR] [FORUMUSER:AVATAR]
[AF:PROFILE:DATECREATED] [FORUMUSER:DATECREATED]
[AF:PROFILE:DATELASTACTIVITY] [FORUMUSER:DATELASTACTIVITY]
[AF:PROFILE:DATELASTPOST] [FORUMUSER:DATELASTPOST]
[AF:PROFILE:DISPLAYNAME] [FORUMUSER:USERPROFILELINK|<a href="{0}" class="af-profile-link" rel="nofollow">[FORUMUSER:DISPLAYNAME]</a>|[FORUMUSER:DISPLAYNAME]
[AF:PROFILE:EMAIL] [USER:EMAIL]
[AF:PROFILE:FIRSTNAME] [USER:FIRSTNAME]
[AF:PROFILE:LASTACTIVE] [FORUMUSER:DATELASTACTIVITY]
[AF:PROFILE:LASTNAME] [USER:FIRSTNAME]
[AF:PROFILE:MEMBERSINCE] [FORUMUSER:DATECREATED]
[AF:PROFILE:POSTCOUNT] [FORUMUSER:POSTCOUNT]
[AF:PROFILE:POSTS] [FORUMUSER:POSTS]
[AF:PROFILE:RANKDISPLAY] [FORUMUSER:RANKDISPLAY]
[AF:PROFILE:RANKNAME] [FORUMUSER:RANKNAME]
[AF:PROFILE:REPLYCOUNT] [FORUMUSER:REPLYCOUNT]
[AF:PROFILE:REWARDPOINTS] [FORUMUSER:REWARDPOINTS]
[AF:PROFILE:SIGNATURE] [FORUMUSER:SIGNATURE]
[AF:PROFILE:TOPICCOUNT] [FORUMUSER:TOPICCOUNT]
[AF:PROFILE:TOTALPOINTS] [FORUMUSER:TOTALPOINTS]
[AF:PROFILE:USERCAPTION] [FORUMUSER:USERCAPTION]
[AF:PROFILE:USERID] [USER:USERID]
[AF:PROFILE:USERNAME] [USER:USERNAME]
[AF:PROFILE:USERSTATUS:CSS] [FORUMUSER:USERSTATUSCSS]
[AF:PROFILE:USERSTATUS] [FORUMUSER:USERSTATUS]
[AF:PROFILE:VIEWCOUNT] [FORUMUSER:VIEWCOUNT]
[AF:TB:Forums] [DCF:TOOLBAR-FORUMS-ONCLICK|<a href="{0}"><i class="fa fa-home fa-fw fa-blue"></i><span class="dcf-link-text">[RESX:FORUMS]</span></a>]
[AF:TB:MyTopics] [DCF:TOOLBAR-MYTOPICS-ONCLICK|<a href="{0}"><i class="fa fa-user fa-fw fa-grey"></i><span class="dcf-link-text">[RESX:MyTopics]</span></a>]
[AF:TB:NotRead] [DCF:TOOLBAR-NOTREAD-ONCLICK|<a href="{0}"><i class="fa fa-eye-slash fa-fw fa-grey"></i><span class="dcf-link-text">[RESX:NotRead]</span></a>]
[AF:TB:Unanswered] [DCF:TOOLBAR-UNANSWERED-ONCLICK|<a href="{0}"><i class="fa fa-comment-o fa-fw fa-blue"></i><span class="dcf-link-text">[RESX:Unanswered]</span></a>]
[AF:TB:Unresolved] [DCF:TOOLBAR-UNRESOLVED-ONCLICK|<a href="{0}"><i class="fa fa-question fa-fw fa-blue"></i><span class="dcf-link-text">[RESX:Unresolved]</span></a>]
[AF:TB:Announcements] [DCF:TOOLBAR-ANNOUNCEMENTS-ONCLICK|<a href="{0}"><i class="fa fa-bullhorn fa-fw fa-blue"></i><span class="dcf-link-text">[RESX:Announcements]</span></a>]
[AF:TB:ActiveTopics] [DCF:TOOLBAR-ACTIVETOPICS-ONCLICK|<a href="{0}"><i class="fa fa-fire fa-fw fa-grey"></i><span class="dcf-link-text">[RESX:ActiveTopics]</span></a>]
[AF:TB:MostLiked] [DCF:TOOLBAR-MOSTLIKED-ONCLICK|<a href="{0}"><i class="fa fa-thumbs-o-up fa-fw fa-grey"></i><span class="dcf-link-text">[RESX:MostLiked]</span></a>]
[AF:TB:MostReplies] [DCF:TOOLBAR-MOSTREPLIES-ONCLICK|<a href="{0}"><i class="fa fa-comments fa-fw fa-grey"></i><span class="dcf-link-text">[RESX:MostReplies]</span></a>]
[AF:TB:ModList] [DCF:TOOLBAR-MODERATE-ONCLICK|<a href="{0}"><i class="fa fa-wrench fa-fw fa-blue"></i><span class="dcf-link-text">[RESX:Moderate]</span></a>]
[AF:TB:MySettings] [DCF:TOOLBAR-MYSETTINGS-ONCLICK|<a href="{0}"><i class="fa fa-cog fa-fw fa-blue"></i><span class="dcf-link-text">[RESX:MySettings]</span></a>]
[AF:TB:MySubscriptions] [DCF:TOOLBAR-MYSUBSCRIPTIONS-ONCLICK|<a href="{0}"><i class="fa fa-envelope fa-fw fa-blue"></i><span class="dcf-link-text">[RESX:MySubscriptions]</span></a>]
[AF:TB:ControlPanel] [DCF:TOOLBAR-CONTROLPANEL-ONCLICK|<a href="{0}"><i class="fa fa-bars fa-fw fa-blue"></i><span class="dcf-link-text">[RESX:ControlPanel]</span></a>]
[AF:URL:LASTREAD] [FORUMTOPIC:LASTREADURL]
[AF:URL:LASTREPLY] [FORUMTOPIC:LASTREPLYURL]
[AVATAR] [FORUMUSER:AVATAR]
[BODY:nnn] [FORUMTOPIC:BODY:nnn]
[BODYTITLE] [FORUMTOPIC:BODYTITLE]
[DISPLAYNAME] [FORUMUSER:USERPROFILELINK|<a href="{0}" class="af-profile-link" rel="nofollow">[FORUMUSER:DISPLAYNAME]</a>|[FORUMUSER:DISPLAYNAME]]
[DISPLAYNAME] [FORUM:LASTPOSTAUTHORDISPLAYNAMELINK|<i class="fa fa-user fa-fw fa-blue"></i>&nbsp;<a href="{0}" class="af-profile-link" rel="nofollow">[FORUM:LASTPOSTAUTHORDISPLAYNAME]</a>|[FORUM:LASTPOSTDISPLAYNAME]]
[EMAIL] [USER:EMAIL]
[FIRSTNAME] [USER:FIRSTNAME]
[FORUMDESCRIPTION] [FORUM:FORUMDESCRIPTION|<i class="fa fa-file-o fa-grey"></i>&nbsp;{0}]
[FORUMGROUPID] [FORUMGROUP:FORUMGROUPID]
[FORUMGROUPLINK] [FORUMGROUP:FORUMGROUPLINK|<a href="{0}" class="dcf-forumgroup-link">[FORUMGROUP:GROUPNAME]</a>]
[FORUMGROUPLINK] [FORUMGROUP:FORUMGROUPLINK|<a href="{0}" class="dcf-forumgroup-link">[FORUMGROUP:GROUPNAME]</a>]
[FORUMICONCSS] [FORUM:FORUMICONCSS|<div class="dcf-forum-icon" style="height:30px;margin-right:10px;"><i class="fa {0} fa-2x"></i></div>]
[FORUMICONSM] [FORUM:FORUMICONCSS|<i class="fa {0} fa-fw"></i>&nbsp;&nbsp;]
[FORUMICON] [FORUM:FORUMICON|<img src="{0}" alt="[FORUM:FORUMNAME]" />]
[FORUMID] [FORUM:FORUMID]
[FORUMLINK] [FORUM:FORUMLINK|<a href="{0}" class="dcf-forum-link">[FORUM:FORUMNAME]</a>]
[FORUMMAINLINK] [FORUM:FORUMMAINLINK|<a href="{0}" class="dcf-forums-link">[RESX:ForumMain]</a>]
[FORUMNAMENOLINK] [FORUM:FORUMNAME]
[FORUMNAME] [FORUM:FORUMLINK|<a href="{0}" class="dcf-forum-link">[FORUM:FORUMNAME]</a>]
[FORUMSUBSCRIBERCOUNT] [FORUM:SUBSCRIBERCOUNT]
[GROUPCOLLAPSE] [FORUMGROUP:GROUPCOLLAPSE]
[GROUPNAME] [FORUMGROUP:FORUMGROUPLINK|<a href="{0}" class="dcf-forumgroup-link">[FORUMGROUP:GROUPNAME]</a>]
[ICONLOCK] [FORUMTOPIC:ICONLOCKED|&nbsp;&nbsp;<i id="af-topicsview-lock-{0}" class="fa fa-lock fa-fw fa-red"></i>][FORUMTOPIC:ICONUNLOCKED|&nbsp;&nbsp;<i id="af-topicsview-lock-{0}" class="fa fa-fw fa-red"></i>]
[ICONLOCK] [FORUMPOST:ICONLOCKED|&nbsp;&nbsp;<i id="af-topicsview-lock-{0}" class="fa fa-lock fa-fw fa-red"></i>][FORUMPOST:ICONUNLOCKED|&nbsp;&nbsp;<i id="af-topicsview-lock-{0}" class="fa fa-fw fa-red"></i>]
[ICONPIN] [FORUMTOPIC:ICONPINNED|&nbsp;&nbsp;<i id="af-topicsview-pin-{0}" class="fa fa-thumb-tack fa-fw fa-red"></i>][FORUMTOPIC:ICONUNPINNED|&nbsp;&nbsp;<i id="af-topicsview-pin-{0}" class="fa fa-fw fa-red"></i>]
[ICONPIN] [FORUMPOST:ICONPINNED|&nbsp;&nbsp;<i id="af-topicsview-pin-{0}" class="fa fa-thumb-tack fa-fw fa-red"></i>][FORUMPOST:ICONUNPINNED|&nbsp;&nbsp;<i id="af-topicsview-pin-{0}" class="fa fa-fw fa-red"></i>]
[LASTNAME] [USER:LASTNAME]
[LASTPOSTDATE] [FORUM:LASTPOSTDATE]
[LASTPOSTDISPLAYNAME] [FORUMTOPIC:LASTPOSTAUTHORDISPLAYNAMELINK|<a href="{0}" class="af-profile-link" rel="nofollow">[FORUMTOPIC:LASTPOSTAUTHORDISPLAYNAME]</a>|[FORUMTOPIC:LASTPOSTAUTHORDISPLAYNAME]]
[LASTPOSTSUBJECT:nnn] [FORUM:LASTPOSTSUBJECT:nnn]
[MEMBERSINCE] [FORUMUSER:DATECREATED]
[MODEDITDATE] [FORUMPOST:MODEDITDATE]
[MODIPADDRESS] [FORUMPOST:MODIPADDRESS]
[MODLINK] [FORUM:MODLINK|<a href="{0}" class="dcf-moderator-link">{0}</a>]
[MODULEID] [MODULE:MODULEID]
[NEXTTOPIC] [FORUMTOPIC:NEXTTOPICLINK|<a href="{0}" rel="nofollow" title="[RESX:NextTopic]"><span>[RESX:NextTopic]</span><i class="fa fa-chevron-right" aria-hidden="true"></i></a>]
[PAGENAME] [TAB:TITLE]
[PARENTFORUMID] [FORUM:PARENTFORUMID]
[PARENTFORUMLINK] [FORUM:PARENTFORUMLINK|<a href="{0}" class="dcf-parentforum-link">[FORUM:PARENTFORUMNAME]</a>]
[PARENTFORUMNAME] [FORUM:PARENTFORUMNAME]
[PORTALID] [PORTAL:PORTALID]
[PORTALNAME] [PORTAL:PORTALNAME]
[POSTCOUNT] [FORUMUSER:POSTCOUNT]
[POSTDATE] [FORUMPOST:DATECREATED]
[POSTICONCSS] [FORUMPOST:POSTICONCSS]
[POSTICON] [FORUMTOPIC:POSTICON|<div><i class="{0}"></i></div>]
[POSTICON] [FORUMPOST:POSTICON|<div><i class="{0}"></i></div>]
[POSTID] [FORUMPOST:POSTID]
[POSTRATINGDISPLAY] [FORUMTOPIC:RATING|<span class="fa-rater fa-rate{0}"><i class="fa fa-star1"></i><i class="fa fa-star2"></i><i class="fa fa-star3"></i><i class="fa fa-star4"></i><i class="fa fa-star5"></i></span>]
[POSTS] [FORUMUSER:POSTS]
[PREVTOPIC] [FORUMTOPIC:PREVIOUSTOPICLINK|<a href="{0}" rel="nofollow" title="[RESX:PrevTopic]"><i class="fa fa-chevron-left" aria-hidden="true"></i><span>[RESX:PrevTopic]</span></a>]
[RANKDISPLAY] [FORUMUSER:RANKDISPLAY]
[RANKNAME] [FORUMUSER:RANKNAME]
[REPLIES] [FORUMTOPIC:REPLYCOUNT]
[REPLYCOUNT] [FORUMTOPIC:REPLYCOUNT]
[REPLYID] [FORUMPOST:POSTID]
[RSSLINK] [FORUM:RSSLINK|<a href="{0}" target="_blank"><img src="[FORUM:THEMELOCATION]images/rss.png" border="0" alt="[RESX:RSS]" /></a>]
[SENDERDISPLAYNAME] [USER:DISPLAYNAME]
[SENDERFIRSTNAME [USER:FIRSTNAME]
[SENDERLASTNAME] [USER:LASTNAME]
[SENDERUSERNAME] [USER:USERNAME]
[SIGNATURE] [FORUMUSER:SIGNATURE]
[STARTEDBY] [FORUMTOPIC:AUTHORDISPLAYNAMELINK|<a href="{0}" class="af-profile-link" rel="nofollow">[FORUMTOPIC:AUTHORDISPLAYNAME]</a>|[FORUMTOPIC:AUTHORDISPLAYNAME]]
[STATUS] [FORUMTOPIC:STATUS|<div><i class="fa fa-status{0} fa-red fa-2x"></i></div>]
[SUBJECTLINK] [FORUMTOPIC:SUBJECTLINK]
[SUBJECT] [FORUMTOPIC:SUBJECT]
[SUMMARY:nnn] [FORUMTOPIC:SUMMARY:nnn]
[TABID] [TAB:TABID]
[TOPICAUTHORDISPLAYNAMELINK] [FORUMTOPIC:AUTHORDISPLAYNAME]|]
[TOPICID] [FORUMTOPIC:POSTID]
[TOPICSUBJECT:nnn] [FORUMTOPIC:SUBJECT:nnn]
[TOPICSUBSCRIBERCOUNT] [FORUMTOPIC:SUBSCRIBERCOUNT]
[TOPICURL] [FORUMTOPIC:URL]
[TOTALREPLIES] [FORUM:TOTALREPLIES]
[TOTALTOPICS] [FORUM:TOTALTOPICS]
[USERCAPTION] [FORUMUSER:USERCAPTION]
[USERID] [USER:USERID]
[USERNAME] [USER:USERNAME]
[USERSTATUS] [FORUMUSER:USERSTATUS]
[VIEWCOUNT] [FORUMTOPIC:VIEWCOUNT]
[VIEWS] [FORUMTOPIC:VIEWCOUNT]
Clone this wiki locally