PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
ToolBox
New Member
New Member


Joined: Mar 16, 2005
Posts: 24

PostPosted: Fri Nov 18, 2005 12:50 am Reply with quote Back to top

< this is a copy of the post in my dev. site forums >
Source Link:
Only registered users can see links on this board!
Get registered or login to the forums!


After upgrading BB2Nuke 2.0.17 by myself (without BB2Nuke 2.0.18 by chatserv), I compared the whole codes of mine with chatserv's great work of BB2Nuke 2.0.18 np.

Unfortunately, I found a critical bug. When you did not fix this bug, your forum topic can not move when you click on pagination numbers. Therefore, simply replace a fractional code block in viewtopic.php (phpBB2 stand-alone 2.0.18 has the exact same codes as below).

in MODification format:
Code:

#
# -------- [ OPEN ] -----------
#
<nuke-root>/modules/Forums/viewtopic.php

#
# -------- [ FIND ] -----------
#
//
// Decide how to order the post display
//
if ( !empty($HTTP_POST_VARS['postorder']) || !empty($HTTP_GET_VARS['postorder']) )
{
   $post_order = (!empty($HTTP_POST_VARS['postorder'])) ? htmlspecialchars($HTTP_POST_VARS['postorder']) : htmlspecialchars($HTTP_GET_VARS['postorder']);
if (!eregi("^((asc)|(desc))$",$post_order) )
{
        message_die(GENERAL_ERROR, 'Selected post order is not valid');
}
        $post_time_order = ($post_order == "asc") ? "ASC" : "DESC";
}
else
{
        $post_order = 'asc';
        $post_time_order = 'ASC';
}

#
# --------- [ REAPLCE WITH ] ---------------
#
//
// Decide how to order the post display
//
if ( !empty($HTTP_POST_VARS['postorder']) || !empty($HTTP_GET_VARS['postorder']) )
{
   $post_order = (!empty($HTTP_POST_VARS['postorder'])) ? htmlspecialchars($HTTP_POST_VARS['postorder']) : htmlspecialchars($HTTP_GET_VARS['postorder']);
   $post_time_order = ($post_order == "asc") ? "ASC" : "DESC";
}
else
{
   $post_order = 'asc';
   $post_time_order = 'ASC';
}

#
# ----- [ EoM ] ----------
#

Other minor bugs found but they are trivail enough and do not bother BB2Nuke.

Once again, I always appreciate chatserv's great contribution.

P.S. : Raven, this place is irrelevant, please move this topic to a appropriate forum slots. Thank you.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum