1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 update your status in recent-activity

Discussion in 'XenForo Questions and Support' started by Mike Edge, Aug 25, 2013.

  1. Mike Edge

    Mike Edge Formerly Da Bookie Mon

    Getting unkown error when you post a update trying to add this into recent-activity

    PHP:
        <form action="recent-activity" method="post" class="statusPoster AutoValidator" data-optInOut="OptIn">
                   
        <
    xen:avatar user="$visitorsize="s" />
                    <
    textarea name="message" class="textCtrl StatusEditor Elastic" placeholder="{xen:phrase update_your_status}..." rows="1" cols="40" style="height:14px" data-statusEditorCounter="#visMenuSEdCount" data-nofocus="true"></textarea>
                    <
    div class="submitUnit">
                        <
    span id="visMenuSEdCount" title="{xen:phrase characters_remaining}"></span>
                        <
    input type="submit" class="button primary MenuCloser" value="{xen:phrase post_verb}" accesskey="s" />
                        <
    input type="hidden" name="_xfToken" value="CSRF_TOKEN_PAGE" /><xen:comment>This will be updated in WidgetFramework_WidgetRenderer_RecentStatus::extraPrepare()</xen:comment>
                        <
    input type="hidden" name="return" value="1" />
                    </
    div>
                </
    form>
     
  2. Mike

    Mike XenForo Developer Staff Member

    Are you sure the CSRF token it actually being updated as per the comment?
     
  3. Mike Edge

    Mike Edge Formerly Da Bookie Mon

    Not sure @Mike I just copied it from another area, made it as a template and called to it. It worked this way in 1.1.5
     
  4. Mike Edge

    Mike Edge Formerly Da Bookie Mon

    Ok got this to work other then you need to refresh your browser to see it after it posts.
     

Share This Page