NukeXchange Network

          

Nuke Sites Link Directory
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
·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
·Image display? - newbie
·php nuke help

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: qwertz
Today: 0
Yesterday: 1
Overall: 15102

Visitation:
Guests: 551
Members: 0
Total: 551


You are Anonymous user. You can register for free by clicking here
Sponsor Links
php-Nuke Themes and Templates
php-Nuke Themes and Templates

NukeResources :: View topic - BBtoNuke includes/sessions.php versus private messages
NukeResources Forum Index

NukeResources Forum Index -> Bug Reports -> BBtoNuke includes/sessions.php versus private messages
Post new topic  Reply to topic    View previous topic :: View next topic 
BBtoNuke includes/sessions.php versus private messages
PostPosted: Sat Sep 10, 2005 4:28 pm Reply with quote
64bitguy
Resource Newbie
Resource Newbie
 
Joined: Feb 19, 2004
Posts: 49
Location: Manchester, New Hampshire, USA




Hi Folks

In working on the new BBtoNuke port, I have almost everything working in reference to 100% W3C compliance.

I do have one small, annoying problem remaining.

To give a little background, one of the problems that faced this port was issues relative to rogue "&" symbols that should be followed by amp;

In working on this, I have fixed them all except ONE.

Here's the problem.

In the includes/sessions.php there is the following code:
Code:
   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


Now normally, to fix several compliance errors on FORUMS pages, I would have changed all of those to have the amp; function; however, in this particular case, I cannot due to the below:

Code:
        'U_PRIVATEMSGS_POPUP' => append_sid('privmsg.'.$phpEx.'?mode=newpm&popup=1'),
that exists in the includes/page_header.php

The issue is this, because of the append_sid function, it would convert the link used for the popup into having the amp; functions in the link properties for the popup screen itself, with the result looking something like:
http://yourdomain.com/modules.php?name=Private_Messages&file=index.ph, etc...

Meaning, it would put the amp; in there and thus, the window would not LOOK right in that it would bring up a full page window inside the dimensions of the popup window.

The only way to fix that issue, is to remove the amp; functions from the sessions.php.

So... the question becomes, can I change the properties of the page_header.php to remove the append sid function and give a physical hard coded value that wouldn't mess this whole deal up? This would allow me to adjust the sessions.php functions to include the amp; function which would fix dozens of screens in forums as well as Private_Messages.

Ideas?

P.S. This is the problem with this popup window here! Smile

Thanks
Steph

_________________
Steph Benoit
HTTP://64BIT.US - The IT Portal For IT People!
View user's profile Send private message Visit poster's website
PostPosted: Sat Sep 10, 2005 4:51 pm Reply with quote
64bitguy
Resource Newbie
Resource Newbie
 
Joined: Feb 19, 2004
Posts: 49
Location: Manchester, New Hampshire, USA




Before getting any feedback, I wanted to give a heads-up that I have changed the sessions.php to:
Code:
   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
   }


and the page_header.php to:
Code:
'U_PRIVATEMSGS_POPUP' => "modules.php?name=Private_Messages&file=index&mode=newpm&popup=1"


And everything seems to be working okay.

I'll test it for a while and see if anything weird happens.

Steph

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




Very cool, hope we can use this in the next patched files

_________________
- 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
BBtoNuke includes/sessions.php versus private messages
 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 140 unique hit(s) in the past 24 hours.
Forums ©
NukeZone Hosting - Fast, Affordable and Dependable


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

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