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
picos
New Member
New Member


Joined: Sep 07, 2006
Posts: 3

PostPosted: Thu Sep 07, 2006 2:02 pm Reply with quote Back to top

Hi guys, i really need help with something on my site... it's doing my head in something else. I have changed all the scripts i can think of to have INCLUDE_ONCE infront of the headers etc but still getting errors... can you check this page out and tell me whay you think is wrong. CLick on one of the clan member names... the error appears in the pop up box. MANY THANKS!
Only registered users can see links on this board!
Get registered or login to the forums!


here is the script that is showing the error....

Code:
<?php
/************************************************************/
/* OpenTable Functions                                      */
/************************************************************/
function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">
  <tr>
    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
        <tr>
          <td bgcolor=\"#363636\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
              <tr>
                <td bgcolor=\"#D1D7DC\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
                    <tr>
                      <td bgcolor=\"#363636\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">
                          <tr>
                            <td>";
}

function CloseTable() {
    echo "</td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>";
}

function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable2() {
    echo "</td></tr></table></td></tr></table>\n";
}

?>
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Thu Sep 07, 2006 2:26 pm Reply with quote Back to top

function is probably called twice..
could be conflict in the theme you using or the mod..
View user's profile Send private message
picos
New Member
New Member


Joined: Sep 07, 2006
Posts: 3

PostPosted: Thu Sep 07, 2006 2:32 pm Reply with quote Back to top

ok so what can i do to sort the problem out... i'm a bit of a nOOb with scripting.
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Thu Sep 07, 2006 2:36 pm Reply with quote Back to top

well openup your clan mod and look for the link that opens the popup window.
then go after the code that creates the popup,in there it will pull some design from sowhere...
start there..
View user's profile Send private message
izone
Involved
Involved


Joined: Sep 07, 2004
Posts: 354
Location: Sweden

PostPosted: Thu Sep 07, 2006 3:00 pm Reply with quote Back to top

I would chech the codes which call the popup and see if there is a include() on it and change it to include_once()

that will stoping redeclare of same function twice!
View user's profile Send private message
picos
New Member
New Member


Joined: Sep 07, 2006
Posts: 3

PostPosted: Fri Sep 08, 2006 12:35 pm Reply with quote Back to top

thank you gents, i changed all includes to include_once and that done the trick. Excellent... much appreciated.
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