> Forums > Active Forums > Themes and Templates > Hide ToolBar from Viewer module to stop out scope posting appearing
Last Post 16 Feb 2011 08:29 AM by Ben - DotNetNuke. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Ian Sampson
Customers
Ian Sampson
Post Count:62

--
15 Feb 2011 05:33 PM
    • DotNetNuke Version: 5.5.1
    • Active Forums Version: 4.2.2
    We are using the Viewer module to display a forum called New Members to those in the security role "New Memebers".  However when you click on any of the links for: Unanswered, Not Read, My Topics or Active Topics, posts from all other forums are displayed because they are set to registered users.

    The ToolBar seems to fall outside of the ForumView template so I can't just hide it. Any other ideas how I can stop this?

    Thanks
    Ian
    Frozen DNN
    Customers
    Frozen DNN
    Post Count:1330

    --
    15 Feb 2011 05:35 PM
    Place [NOTOOLBAR] in the template.
    I am using the latest AS/AF/DNN available.
    Thanks.
    Ian Sampson
    Customers
    Ian Sampson
    Post Count:62

    --
    16 Feb 2011 12:26 AM
    Thanks for the rapid response - unfortunately, it does not seem to work. I added the [NOTOOLBAR] token to the top of the ForumView template.

    I noticed that there was no [Toolbar] token - which I would have expected. Also - I can't see my changes in Desktopmodules/AF/config/templates when I updated through the Control Panel. Am I missing something very obvious here.


    The ForumView template starts like

    <%@ Register TagPrefix="af" Assembly="Active.Modules.Forums.40" Namespace="Active.Modules.Forums.Controls"%>
    [NOTOOLBAR] <!-- I inserted this tag - there was no toolbar tag in here before-->
    [BREADCRUMB]
    [GROUPSECTION]
    <table border="0" cellpadding="0" cellspacing="0" class="afgrid">
        <tr>
            <td class="afgrouprow" style="padding-left:10px;" width="100%">[GROUPNAME]td>
            <td class="afgrouprow" style="text-align:right;padding-right:10px;">[GROUPCOLLAPSE]td>
        tr>
        <tr>
            <td colspan="2">
                [GROUP]
                    <table cellpadding="4" cellspacing="0" border="0" class="afsubgrid">
                        <tr>
                            <td class="afheader">[SPACER:10:1]td>
                            <td class="afheader" width="100%" colspan="2">[TRESX:FORUMHEADER]td>
                            
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1644

    --
    16 Feb 2011 08:29 AM
    You can try adding the following css:

    <style type="text/css">
    .aftoolbarpanel {display:none;}
    <style>


    Although, you would only want it to affect this page, so you will need to add this to the Page Settings -> Advanced Settings -> Page Header Tags section, instead of adding it to a .css file.
    You are not authorized to post a reply.
    > Forums > Active Forums > Themes and Templates > Hide ToolBar from Viewer module to stop out scope posting appearing
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy