The "Normal, Sticky and Announcement" buttons (and the rest of the "Post Topic As") functions are missing when creating a new post or editing an existing post for forum posts in 8.0 Patched 3.3 and 2.0.21. (loaded in that order)
It appears that there is something awry here beyond not recognizing the permission value of the poster, but it might all be tied in directly to the same issue.
The relivant section of code in the posting_body.tpl file would be:
Code:
<!-- BEGIN switch_type_toggle -->
<tr>
<td></td>
<td><span class="gen">{S_TYPE_TOGGLE}</span></td>
</tr>
<!-- END switch_type_toggle -->
When using the above, the entire span of that section is empty.
The below displays the function call from the posting.php
The worst case scenario for the query is that if all else fails, it would recognize you as only a regular user and thus only dislay the "Normal" button; however, it instead is not showing anything at all in those cases.
Like I said, if you are a user (not an admin or moderator), it should simply show the "normal" option and not the others. So far in all templates, it shows nothing (blank empty space) which is the problem.
It should always have "a value"... either normal, or normal and sticky, or normal, sticky and announce. At all times, one of those conditions should be met which would reveal "something" for that section.
I'm getting nothing as a moderator (not moderating that forum) nor as a regular user. Seems to be working okay for admin and moderator (is moderating that forum).
As far as I've seen, if you are a normal user or a moderator without permissions on that forum, you cannot make sticky or announcement posts. That has been standard in phpBB I believe
As far as I've seen, if you are a normal user or a moderator without permissions on that forum, you cannot make sticky or announcement posts. That has been standard in phpBB I believe
Correct..... and in that situation, the only "option" for your post that should show up is "normal", but that "normal" button should show up.
In other words, it should be like every other phpBB "presentation switch" item display.
If you can't see sticky or announce, that is fine, but "normal" should appear every time.
{S_TYPE_TOGGLE} needs a value so that:
Code:
<span class="gen">{S_TYPE_TOGGLE}</span>
Always has a value to be compliant.
I believe the problem rests in the posting.php file. Specifically, the last section I'm thinking is basically saying, If you are not an admin or moderator, then just show the "Normal" button. I discovered that this problem also exists in phpBB itself starting at around version 2.0.16. I'd have to go back through my old code and find how they used to do it.
Specifically, here's the section of code in question:
Notice the last section "if ( $topic_type_toggle != '' )"?
I'm thinking this is where the problem is.
In the meantime; since there seems to be no easy way to have the code simply default to the normal value, I have instead changed the theme's "posting_body.tpl" to create presentation compliance as follows:
themes/YOURTHEME/forums/posting_body.tpl
Find:
Code:
<!-- BEGIN switch_type_toggle -->
<tr>
<td></td>
<td><span class="gen">{S_TYPE_TOGGLE}</span></td>
</tr>
<!-- END switch_type_toggle -->
Repace with:
Code:
<!-- BEGIN switch_type_toggle -->
<tr>
<td></td>
<td><span class="gen"> {S_TYPE_TOGGLE}</span></td>
</tr>
<!-- END switch_type_toggle -->
Please note that this site(nukeresources.com)does not handle the forum "code"function properly. That " " space in the above fix should be displayed on this screen as "ampersand nbsp semicolon" (the html equivilant to a space) AND NOT a spacebar space! This is critical to compliance!
The forced "space" (using ampersand/nbsp;) before the value makes pages compliant where the value of the toggle type is not a moderator or administrator (and leaves it compliant on those pages as well).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum