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
·right blocks appear only to admins
·Special characters
·Header not working....
·No banner - Sunset-Theme (but $banner exists)
·Banners not showing on Sunset
·Installation Issues
·Looking for content warning/age verification system.
·Babebox Module Block Image Script
·Upload-Download
·Download Module error

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: Blizz
Today: 0
Yesterday: 1
Overall: 15008

Visitation:
Guests: 560
Members: 1
Total: 561


You are Anonymous user. You can register for free by clicking here
Sponsor Links
Need to find your IP fast?
Need to find your IP fast?

NukeResources :: View topic - Compilation of Fixes AFTER BBtoNuke2.0.21 for Nuke 8.0
NukeResources Forum Index

NukeResources Forum Index -> Bug Fixes -> Compilation of Fixes AFTER BBtoNuke2.0.21 for Nuke 8.0
Post new topic  Reply to topic    View previous topic :: View next topic 
Compilation of Fixes AFTER BBtoNuke2.0.21 for Nuke 8.0
PostPosted: Fri Nov 03, 2006 7:56 am Reply with quote
64bitguy
Resource Newbie
Resource Newbie
 
Joined: Feb 19, 2004
Posts: 49
Location: Manchester, New Hampshire, USA




Please find the below list of fixes for various BBtoNuke 2.0.21 files. These changes are for the PHP-Nuke 8.0 Version only; however, may also affect other 2.0.21 versions.

Please note that this fixes all W3C Compliance bugs except one bug in posting.php identified at: http://www.nukeresources.com/ftopict-3714.html#12517


In modules/Forums/search.php - Compliance Bugs
On lines 874 thu 876 find:
Code:
         $forum_url = "modules.php?name=Forums&file=viewforum&" . POST_FORUM_URL . "=" . $searchset[$i]['forum_id'] . "";
         $topic_url = "modules.php?name=Forums&file=viewtopic&" . POST_TOPIC_URL . "=" . $searchset[$i]['topic_id'] . "&highlight=$highlight_active";
         $post_url = "modules.php?name=Forums&file=viewtopic&" . POST_POST_URL . "=" . $searchset[$i]['post_id'] . "&highlight=$highlight_active#" . $searchset[$i]['post_id'] . "";


Replace with:
Code:
         $forum_url = "modules.php?name=Forums&file=viewforum&" . POST_FORUM_URL . "=" . $searchset[$i]['forum_id'] . "";
         $topic_url = "modules.php?name=Forums&file=viewtopic&" . POST_TOPIC_URL . "=" . $searchset[$i]['topic_id'] . "&highlight=$highlight_active";
         $post_url = "modules.php?name=Forums&file=viewtopic&" . POST_POST_URL . "=" . $searchset[$i]['post_id'] . "&highlight=$highlight_active#" . $searchset[$i]['post_id'] . "";



In modules/Forums/posting.php - Compliance Bugs
On line 999 Find:
Code:
   'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="' . append_sid("faq.$phpEx?mode=bbcode") . '" target="_phpbbcode">', '</a>'),


Replace with:
Code:
   'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="' . append_sid("faq.$phpEx?mode=bbcode") . '" target="_blank">', '</a>'),


On line 1059 find:
Code:
   'U_REVIEW_TOPIC' => ( $mode == 'reply' ) ? append_sid("posting.$phpEx?mode=topicreview&amp;" . POST_TOPIC_URL . "=$topic_id&popup=1") : '',

Replace with:
Code:
   'U_REVIEW_TOPIC' => ( $mode == 'reply' ) ? append_sid("posting.$phpEx?mode=topicreview&amp;" . POST_TOPIC_URL . "=$topic_id&amp;popup=1") : '',



In modules/Forums/viewonline.php - File Bug
Find the blank line on line 295 after:
Code:
?>

Delete this blank line so that the ?> is the last line.


In modules/Forums/nukebb.php - Compliance Bug and File Bug
On line 52 find:
Code:
$nuke_file_path = "modules.php?name=".$module_name."&file=";


Replace with:
Code:
$nuke_file_path = "modules.php?name=".$module_name."&amp;file=";


Next, go to the end of the file and delete the blank line 80 so that the ?> (on line 79) is the last line.


In modules/Forums/includes/usercp_viewprofile.php - Compliance Bugs
On lines 151 and 152 Find:
Code:
$www_img = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : ' ';
$www = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww">' . $profiledata['user_website'] . '</a>' : ' ';

Replace With:
Code:
$www_img = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_blank"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : ' ';
$www = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_blank">' . $profiledata['user_website'] . '</a>' : ' ';



In modules/Forums/includes/functions_post.php - Compliance Bug
On line 814 find:
Code:
                                       'U_MORE_SMILIES' => append_sid("posting.$phpEx?mode=smilies&popup=1"))

Replace with:
Code:
                                        'U_MORE_SMILIES' => append_sid("posting.$phpEx?mode=smilies&amp;popup=1"))



In modules/Forums/includes/sessions.php - Compliance Bugs
On lines 589 thr 612 find:
Code:
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace(".php", "", $url);       //  Strip the .php from all the files,
       $url = "../../../modules.php?name=Forums&file=$url";
   }
   else if ((ereg("privmsg", $url)) && (!ereg("highlight=privmsg", $url)))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("privmsg.php", "modules.php?name=Private_Messages&file=index", $url); //  and put it back for the modules.php
   }
   else if ((ereg("profile", $url)) && (!ereg("highlight", $url) && !ereg("profile", $url)))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("profile.php", "modules.php?name=Forums&file=profile", $url); //  and put it back for the modules.php
       $dummy = 1;
   }
   else if ((ereg("memberlist", $url)) && (!ereg("highlight=memberlist", $url)))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("memberlist.php", "modules.php?name=Members_List&file=index", $url); //  and put it back for the modules.php
   } else {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace(".php", "", $url);
           $url = "modules.php?name=Forums&file=".$url; //Change to Nuke format
   }


Replace with:
Code:
           $url = str_replace("?", "&amp;", $url); // As we are already in nuke, change the ? to &
           $url = str_replace(".php", "", $url);       //  Strip the .php from all the files,
       $url = "../../../modules.php?name=Forums&amp;file=$url";
   }
   else if ((ereg("privmsg", $url)) && (!ereg("highlight=privmsg", $url)))
   {
           $url = str_replace("?", "&amp;", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("privmsg.php", "modules.php?name=Private_Messages&amp;file=index", $url); //  and put it back for the modules.php
   }
   else if ((ereg("profile", $url)) && (!ereg("highlight", $url) && !ereg("profile", $url)))
   {
           $url = str_replace("?", "&amp;", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("profile.php", "modules.php?name=Forums&amp;file=profile", $url); //  and put it back for the modules.php
       $dummy = 1;
   }
   else if ((ereg("memberlist", $url)) && (!ereg("highlight=memberlist", $url)))
   {
           $url = str_replace("?", "&amp;", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("memberlist.php", "modules.php?name=Members_List&amp;file=index", $url); //  and put it back for the modules.php
   } else {
           $url = str_replace("?", "&amp;", $url); // As we are already in nuke, change the ? to &
           $url = str_replace(".php", "", $url);
           $url = "modules.php?name=Forums&amp;file=".$url; //Change to Nuke format
   }


Next, on line 627 find:
Code:
        $url = "../../../modules.php?name=Forums&file=$url";

Replace with:
Code:
        $url = "../../../modules.php?name=Forums&amp;file=$url";



In modules/Forums/includes/functions_search.php - Compliance Bug
On line 483 find:
Code:
                'S_SEARCH_ACTION' => append_sid("search.$phpEx?mode=searchuser&popup=1"))

Replace with:
Code:
                'S_SEARCH_ACTION' => append_sid("search.$phpEx?mode=searchuser&amp;popup=1"))



In modules/Forums/language/lang_english/lang_main.php - Compliance Bug
On line 561 find:
Code:
target=\'_other\'

Replace With:
Code:
target=\'_blank\'


Finally, an optional compliance fix for the FAQ function in forums:

Explanation: Please note the below is an optional fix that works and fixes compliance until a long-term solution may be identified to fix the fact that the value of each FAQ section is a number defined as an "ID/Name" field, which of course is not allowed. I am simply adding the letter "A" to the beginning of the FAQ link value to fix the problem; however, to work both the FAQ file and the corresponding theme file must both be addressed.

In modules/Forums/faq.php - FAQ Compliance ID Bug
On line 143 Find:
Code:
                                'U_FAQ_LINK' => '#' . $faq_block[$i][$j]['id'])


Replace with:
Code:
                                'U_FAQ_LINK' => '#A' . $faq_block[$i][$j]['id'])


Next, in your theme, you must edit the corresponding relationship to fix the other half of this.

Open your theme files at: /themes/YOURTHEME/forums/faq_body.tpl and find:
Code:
{faq_block.faq_row.U_FAQ_ID}
as in id={faq_block.faq_row.U_FAQ_ID} or however your theme puts it there. Simply add an "A" before it to make the ID valid.
Thus:
Code:
id={faq_block.faq_row.U_FAQ_ID}
Should actually look like this:
Code:
id=A{faq_block.faq_row.U_FAQ_ID}


NOTE: Depending on your theme, it may be listed as "name={faq_block.faq_row.U_FAQ_ID}". If so, change "name" to "id".

Finally, also in the faq_body.tpl search for:
Code:
#Top
and replace with
Code:
#
Yes, ending your link with simply # will automatically return you to the top of the file.

If you have a compliant theme, after making these changes, your forums should be W3C compliant with the exception of the bug identified at the top of this post.

Hope this helps. (This post modified 11/04/06 @ 2:40am (EST) to add the line 1059 change in posting.php so you don't have to open it twice.)

Steph


Last edited by 64bitguy on Sat Nov 04, 2006 3:38 am; edited 1 time in total

_________________
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 9:58 am Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




Thanxs, good stuff!

_________________
- 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: Sat Nov 04, 2006 1:14 am Reply with quote
64bitguy
Resource Newbie
Resource Newbie
 
Joined: Feb 19, 2004
Posts: 49
Location: Manchester, New Hampshire, USA




Follow up additional Fix:

modules/Forums/includes/functions_post.php - (9 errors) Compliance Fix
On line 830 find:
Code:
      include('modules/Forums/includes/page_tail.'.$phpEx);


Comment this out. You do not want the page tail functions in a smilies popup window.

Replace with:
Code:
//      include('modules/Forums/includes/page_tail.'.$phpEx);

_________________
Steph Benoit
HTTP://64BIT.US - The IT Portal For IT People!
View user's profile Send private message Visit poster's website
PostPosted: Wed Jan 10, 2007 5:25 pm Reply with quote
Miles
Resource Seeker
Resource Seeker
 
Joined: Jan 10, 2007
Posts: 2




Does upgrading from 2.021 to 2.022 take care of all of these code changes listed above or do I still need to change the codes?
View user's profile Send private message
PostPosted: Wed Feb 14, 2007 4:33 am Reply with quote
LupinOne
Resource Newbie
Resource Newbie
 
Joined: Apr 11, 2005
Posts: 29




Still need to do them.
View user's profile Send private message
Compilation of Fixes AFTER BBtoNuke2.0.21 for Nuke 8.0
 NukeResources Forum Index -> Bug Fixes
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 253 unique hit(s) in the past 24 hours.
Forums ©
Nuke Sites Link Directory


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.54 Seconds

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