NukeXchange Network

          

NukeZone Hosting - Fast, Affordable and Dependable
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·PHPNuke 8 security worries
·PHP-Nuke SQL Injection Vulnerability Fix
·decompressing EN-Book-Nuke.tar.tar
·How to allow spaces/gaps/"-" in allowed usernames
·How to Setup PHPNUKE on win2k
·cannot save changes
·voting?
·Nuke forum picture problem
·How to change smtp port on wampserver and windows
·yet another 301 redirect problem

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: tones
Today: 1
Yesterday: 2
Overall: 15105

Visitation:
Guests: 605
Members: 1
Total: 606


You are Anonymous user. You can register for free by clicking here
Sponsor Links
Nuke Sites Link Directory
Nuke Sites Link Directory

NukeResources :: View topic - Missing "Post Topic As" Functions in Message Posts
NukeResources Forum Index

NukeResources Forum Index -> Bug Reports -> Missing "Post Topic As" Functions in Message Posts
Post new topic  Reply to topic    View previous topic :: View next topic 
Missing "Post Topic As" Functions in Message Posts
PostPosted: Fri Nov 03, 2006 4:35 am Reply with quote
64bitguy
Resource Newbie
Resource Newbie
 
Joined: Feb 19, 2004
Posts: 49
Location: Manchester, New Hampshire, USA




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
Code:
//
// Set topic type
//
$topic_type = ( !empty($HTTP_POST_VARS['topictype']) ) ? intval($HTTP_POST_VARS['topictype']) : POST_NORMAL;
$topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE)) ) ? $topic_type : POST_NORMAL;


and the section starting with:
Code:
//
// Topic type selection
//


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.

_________________
Steph Benoit
HTTP://64BIT.US - The IT Portal For IT People!
View user's profile Send private message Visit poster's website
PostPosted: Fri Nov 03, 2006 10:06 am Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




Thanxs, I'm looking into it. I don't see a problem at this point.

Are your users an adminstrator or moderator? Also I am testing with subSilver.. using a different template?

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
PostPosted: Fri Nov 03, 2006 10:40 am Reply with quote
64bitguy
Resource Newbie
Resource Newbie
 
Joined: Feb 19, 2004
Posts: 49
Location: Manchester, New Hampshire, USA




Template doesn't matter.

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).

_________________
Steph Benoit
HTTP://64BIT.US - The IT Portal For IT People!
View user's profile Send private message Visit poster's website
PostPosted: Fri Nov 03, 2006 2:57 pm Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




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

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
Fix
PostPosted: Fri Nov 03, 2006 8:15 pm Reply with quote
64bitguy
Resource Newbie
Resource Newbie
 
Joined: Feb 19, 2004
Posts: 49
Location: Manchester, New Hampshire, USA




Evaders99 wrote:
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:

Code:
//
// Topic type selection
//
$topic_type_toggle = '';
if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) )
{
   $template->assign_block_vars('switch_type_toggle', array());

   if( $is_auth['auth_sticky'] )
   {
      $topic_type_toggle .= '<input type="radio" name="topictype" value="' . POST_STICKY . '"';
      if ( $post_data['topic_type'] == POST_STICKY || $topic_type == POST_STICKY )
      {
         $topic_type_toggle .= ' checked="checked"';
      }
      $topic_type_toggle .= ' /> ' . $lang['Post_Sticky'] . '  ';
   }

   if( $is_auth['auth_announce'] )
   {
      $topic_type_toggle .= '<input type="radio" name="topictype" value="' . POST_ANNOUNCE . '"';
      if ( $post_data['topic_type'] == POST_ANNOUNCE || $topic_type == POST_ANNOUNCE )
      {
         $topic_type_toggle .= ' checked="checked"';
      }
      $topic_type_toggle .= ' /> ' . $lang['Post_Announcement'] . '  ';
   }

   if ( $topic_type_toggle != '' )
   {
      $topic_type_toggle = $lang['Post_topic_as'] . ': <input type="radio" name="topictype" value="' . POST_NORMAL .'"' . ( ( $post_data['topic_type'] == POST_NORMAL || $topic_type == POST_NORMAL ) ? ' checked="checked"' : '' ) . ' /> ' . $lang['Post_Normal'] . '  ' . $topic_type_toggle;
   }
}


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).

_________________
Steph Benoit
HTTP://64BIT.US - The IT Portal For IT People!
View user's profile Send private message Visit poster's website
PostPosted: Sat Nov 04, 2006 1:39 am Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




Alright, you're saying this is a phpBB problem then Smile
That's what I wanted to confirm. Even phpBB's own boards do not show the normal option.

In phpBB changes.. for 2.0.17
[Sec] fixed validation of topic type when posting
http://www.phpbb.com/support/documents.php?mode=changelog

Could that be it?

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
Missing "Post Topic As" Functions in Message Posts
 NukeResources Forum Index -> Bug Reports
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
All times are GMT - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 178 unique hit(s) in the past 24 hours.
Forums ©
Need to find your IP fast?


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.31 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::