Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes
Author Message
picos
New Member
New Member


Joined: Sep 07, 2006
Posts: 3

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

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!

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
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

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

function is probably called twice..
could be conflict in the theme you using or the mod..
 
View user's profile Send private message
picos
PostPosted: Thu Sep 07, 2006 2:32 pm Reply with quote

ok so what can i do to sort the problem out... i'm a bit of a nOOb with scripting.
 
hitwalker
PostPosted: Thu Sep 07, 2006 2:36 pm Reply with quote

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..
 
izone
Involved
Involved


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

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

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
PostPosted: Fri Sep 08, 2006 12:35 pm Reply with quote

thank you gents, i changed all includes to include_once and that done the trick. Excellent... much appreciated.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©