Announcement

Collapse
No announcement yet.

lock icon on subforums

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • lock icon on subforums

    I am trying to figure out how to get the lock icons not to show on forums with level 2 subforums like so:

    --main
    ----forum 1 (closed) lock should not show
    ------sub
    ------sub
    ----forum 2 (closed) lock should not show
    ------sub

    Basically forum 1 and forum 2 are categories but since categories show up as the bar on the homepage and not like a normal forum I dont use them as categories.

    It's a bit confusing at first but basically I am trying to get it so guests see every forum as locked but registered users who can post to the sub forums but not forum 1 or forum 2 don't see any locks.
    Ted & the Giftery.me Team

    New features released for Product Review Forums 1.3 (4.0)
    Helpful Answers (3.8) (4.0) | Limited Guest Viewing (3.8) (4.0)

  • #2
    You can get this done using a conditional to check for sub forums and use the default icon instead of the dynamic locked/open icons.

    Just guessing here:

    open template: forumhome_level2_post

    find:
    <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>

    replace with:
    <td class="alt2">
    <if condition="$show['subforums']">
    <img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="" border="0" />
    <else />
    <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
    </if>
    </td>

    Comment


    • #3
      Originally posted by Ted S
      I am trying to figure out how to get the lock icons not to show on forums with level 2 subforums like so:

      --main
      ----forum 1 (closed) lock should not show
      ------sub
      ------sub
      ----forum 2 (closed) lock should not show
      ------sub

      Basically forum 1 and forum 2 are categories but since categories show up as the bar on the homepage and not like a normal forum I dont use them as categories.

      It's a bit confusing at first but basically I am trying to get it so guests see every forum as locked but registered users who can post to the sub forums but not forum 1 or forum 2 don't see any locks.
      Hi Ted,

      Had the same question. Visited your site, but could not see the boards. As Floris mentioned that it is just a guess, I was wondering if this was working for you. Would be happy to hear from you. Thanks.

      Comment


      • #4
        Originally posted by Hussain
        Hi Ted,

        Had the same question. Visited your site, but could not see the boards. As Floris mentioned that it is just a guess, I was wondering if this was working for you. Would be happy to hear from you. Thanks.
        Hussain,
        Different site with my forums hence why you can't see them

        As for the hack, what Floris suggested was about right but it still leaves an issue... instead of showing main forums with their proper status icon it always shows them as having new posts, even when they might not. I've got a few ideas building off Floris's suggestion... I'll update this post when I figure it out.
        Ted & the Giftery.me Team

        New features released for Product Review Forums 1.3 (4.0)
        Helpful Answers (3.8) (4.0) | Limited Guest Viewing (3.8) (4.0)

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X