It is currently Fri Mar 29, 2024 5:16 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 28 posts ] 
Author Message
 Post subject: parse error, php link question, iframe question<html>
PostPosted: Thu Jun 29, 2006 5:26 am 
Noobie
Noobie

Joined: Wed Jun 28, 2006 6:38 pm
Posts: 34
my site gives parse errors all over the place and i don't know what i'm missing. help please

my site:http://league2.100webspace.net/
view -> page source will give you my source so you can check and i don't have to post whole code.

Also, i was wondering how to make a link that pulled from a session username, and went to http://gamercard.xbox.com/REPLACE-THIS- ... RNAME.card".

my third question, <HTML stuff not php>how do i make an iframe resize according to it's contents and not a specific size.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 29, 2006 5:51 am 
I have no life!
I have no life!

Joined: Sun Feb 13, 2005 6:12 pm
Posts: 1504
Location: My Office
Greetings,

  • Please post your source code for your index.php file so that I can find your parse error for you on line 89,90 and or 91.
  • About the username session thing, I need more details to fully help you on this one. So, if you could post them, that would be great!

_________________
Best Regards:
Aaron McGowan (aka: CyberGeek, =cipher=)

CyberGeek's Software Solutions
-- WWW: http://www.cybergeeksoftware.com
-- Tech Line: 1-519-860-4557
-- Email: cybergeek@cybergeeksoftware.com


Top
 Profile  
 
 Post subject: reply
PostPosted: Thu Jun 29, 2006 4:51 pm 
Noobie
Noobie

Joined: Wed Jun 28, 2006 6:38 pm
Posts: 34
my code:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<LINK REL="SHORTCUT ICON" HREF="Images/favicon.ico">
<title>LeagueOfAngels.com - Halo Hacking Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<base href="">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
a:link {
   color: #FFFF00;
}
a:hover {
   color: #FF0000;
}
a:visited {
   color: #FFFF00;
}
a:active {
   color: #FFFF00;
}
-->
</style>

<link rel="alternate" type="application/rss+xml"
    title="LeagueOfAngels.com RSS" href="/MusicVideos/Rss.xml">
<script type="text/javascript">

/***********************************************
* IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["_body", "_gamercard"]

//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="no"

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller

</script>
</head>
<body>
<?php include(iplog/iplog.php); ?>
<?
if($session->logged_in){
   echo "<img javascript:loadintoIframe('_gamercard', 'http://gamercard.xbox.com/' + $session->username + '.card')'>";
   }
else{
   echo "<img javascript:loadintoIframe('_body', 'http://gamercard.xbox.com/NA%20Webmaster.card')'>";
   }
?>
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#CCCCCC">
  <tr>
    <td rowspan="2"><img src="Images/logo.jpg" width="600" height="143"></td>
    <td valign="bottom"><iframe id="_gamercard" src="" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" align="middle" allowtransparency="yes" style="overflow:visible; width:100%; display:none"></iframe><div align="right">
    </div></td>
  </tr>
  <tr>
    <td valign="bottom" rowspan="1"><div align="right"><?/**
* User has already logged in, so display relevant links, including
* a link to the admin center if the user is an administrator.
*/
if($session->logged_in){
   echo "<h1>Logged In</h1>";
   echo "Welcome <b>$session->username</b>, you are logged in. <br><br>"
       ."[<a href=\"userinfo.php?user=$session->username\">My Account</a>]   "
       ."[<a href=\"useredit.php\">Edit Account</a>]   ";
   if($session->isAdmin()){
      echo "[<a href=\"admin/admin.php\">Admin Center</a>]   ";
   }
   echo "[<a href=\"process.php\">Logout</a>]";
}
else{?>
      </div>
      <div align="right"></div></td>
  </tr>
  <tr align="center" valign="middle" background="Images/table.jpg">
    <td colspan="2"><div align="left" class="style1"><a href="SubMenu/Home.php" target="_submenu">Home</a> | <a href="forum/index.php" target="_blank">Forum</a> | <a href="SubMenu/Modding.php" target="_submenu">Mods</a> | <a href="SubMenu/Bridging.php" target="_submenu">Bridging</a> | <a href="SubMenu/Xbox360.php" target="_submenu">XBox 360</a> | <a href="SubMenu/WhatYouNeed.php" target="_submenu">What You Need</a> | <a href="http://www.cafepress.com" target="_blank">Merchandise</a> | <a href="http://www.frappr.com/leagueofangelscom1" target="_blank">FrapprMap</a> | <a href="SubMenu/MusicVideos.php" target="_submenu">Music Videos</a> | </div></td>
  </tr>
  <tr>
    <td height="24" colspan="2" rowspan="1" align="center" valign="top" background="Images/table.jpg"><iframe src="" name="_submenu" width="100%" height="100%" align="top" scrolling="no" frameborder="0" vspace="0" hspace="0"></iframe></td>
  </tr>
</table>
<table width="95%"  border="0"align="center" cellpadding="1" cellspacing="0">
  <tr>
        <td width="15%" rowspan="2" valign="top"><div align="center"><br>
          <table width="85%"  border=".5" cellspacing="0" cellpadding="1">
          <tr>
            <th height="45" background="Images/table.jpg" scope="col">Table Of Contents </th>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          </table>
          <br>
          <table width="85%"  border=".5" cellspacing="0" cellpadding="1">
            <tr>
              <th height="12" background="Images/table.jpg" scope="col">RSS Feeds </th>
            </tr>
            <tr>
              <td><div align="center"><a href="MusicVideos/Rss.xml"><img src="Images/xml.gif" width="36" height="14" border="0"><img src="Images/rss.gif" width="36" height="14" border="0"></a> <a href="http://blog.contentious.com/archives/2003/10/18/what-are-webfeeds-rss-and-why-should-you-care" target="_blank"><br>
    What Is RSS? </a></div></td>
            </tr>
          </table>
          <br>
          <table width="85%"  border=".5" cellspacing="0" cellpadding="1">
            <tr>
              <th height="12" background="Images/table.jpg" scope="col"><div align="center">External Links </div></th>
            </tr>
            <tr>
              <td><div align="center"><a href="http://www.phpbb.com/" target="_blank"><img src="Images/phpBB_88a.gif" width="88" height="31" alt="Powered by phpBB2" title="Powered by phpBB2" border="0" /></a><a href="http://www.realdealstubblefield.com/"><img border="0" alt="Get Firefox!" title="Get Firefox!" src="Images/safer.gif" width="88" height="31"><br>
                <img src="Images/realdeal_badge.gif" width="88" height="31" border="0"><br>
              </a></div></td>
            </tr>
          </table>
    </div></td>
        <td width="74%" height="100%" valign="top" bgcolor="#CCCCCC"><iframe id="_body" frameborder="0" scrolling="no" width="100%" height="100%" src="body.php"></iframe></td>
  </tr>
  <tr>
    <td height="24" bgcolor="#CCCCCC"><div align="center"><a href="javascript:loadintoIframe('_body', 'about.php')">About <em>LeagueOfAngels.com</em></a> | <a href="javascript:loadintoIframe('_body', 'TermsOfUse.php')">Terms of Use</a> | <a href="javascript:loadintoIframe('_body', 'PrivacyPolicy.php')">Privacy Policy</a> | <a href="javascript:loadintoIframe('_body', 'ContactUs.php')">Contact Us</a> | <a href="javascript:loadintoIframe('_body', 'Help.php')">Help</a><br>
    Copyright &copy; 2006 <em>LeagueofAngels.com</em>. All rights reserved.</div></td>
  </tr>
</table>
</body>
</html>


and for the session name image i had wanted the logged in user, whose username is his xbox live gamertag, to have their own gamercard to load. the source would see if they were logged in. if true, it would load their gamercard, if not, mine. also, it loads into an iframe in the upper corner of the page with target="_gamercard".
Code:
<?
if($session->logged_in){
   echo "[<img src=\"http://gamercard.xbox.com/" + $session->username + ".card" target="_gamercard>] ";
   }
else{
   echo "[<img src=\"http://gamercard.xbox.com/NA%20Webmaster.card" target="_gamercard">] ";
   }
?>


sorry it's such a mess but i started with php a month ago and am a n0ob. :?


Last edited by snb828 on Sat Jul 01, 2006 1:34 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 29, 2006 8:55 pm 
I have no life!
I have no life!

Joined: Sun Feb 13, 2005 6:12 pm
Posts: 1504
Location: My Office
Greetings,

Okay. Well, I have went through the code after looking at your website once more. But now, I see that the parse error on line 90 is gone and now I see the following error:

Quote:
Parse error: parse error, expecting `','' or `';'' in /home/www/league2.100webspace.net/index.php on line 38


So, since you have fixed the parse error, I am sure you can figure that one out.

Although, I do have a couple of questions for you. They are:
  • Are you using phpBB? Because I see a lot of links to phpBB Groups website. And if so, why don't you stay with the phpBB Templating system throughout your whole site. It makes it a heck of a lot easier.
  • Secondly, why dont you use single quotes (ex: echo 'blah';) instead of double quotes (ex: echo "blah";) for your echo statements. Then if you do it that way, you do not have to always put a backslashes for every double quote within your echo statement (ex: echo "[<a href=\"admin/admin.php\">Admin Center</a>] &nbsp;&nbsp;";)

_________________
Best Regards:
Aaron McGowan (aka: CyberGeek, =cipher=)

CyberGeek's Software Solutions
-- WWW: http://www.cybergeeksoftware.com
-- Tech Line: 1-519-860-4557
-- Email: cybergeek@cybergeeksoftware.com


Top
 Profile  
 
 Post subject: thanks a million
PostPosted: Fri Jun 30, 2006 11:15 pm 
Noobie
Noobie

Joined: Wed Jun 28, 2006 6:38 pm
Posts: 34
i truly appreciate the help, keep up the good work

i actually got that particular script with " quotes from http://www.evolt.org/PHP-Login-System-with-Admin-Features

my parse error now takes place on the last line: </html>

and i can't find on google, how do i fix it?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 01, 2006 12:44 am 
I have no life!
I have no life!

Joined: Sun Feb 13, 2005 6:12 pm
Posts: 1504
Location: My Office
Greetings,

Well, you Parse error can not not be on that </html> line. Check in the 'PHP' code for the parse line now.

_________________
Best Regards:
Aaron McGowan (aka: CyberGeek, =cipher=)

CyberGeek's Software Solutions
-- WWW: http://www.cybergeeksoftware.com
-- Tech Line: 1-519-860-4557
-- Email: cybergeek@cybergeeksoftware.com


Top
 Profile  
 
 Post subject: :x
PostPosted: Sat Jul 01, 2006 1:34 am 
Noobie
Noobie

Joined: Wed Jun 28, 2006 6:38 pm
Posts: 34
it is on line 181, which falls under </html> and my other parse errors are gone.
if you want to check my code, it is above but has been edited.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 01, 2006 5:15 am 
I have no life!
I have no life!

Joined: Sun Feb 13, 2005 6:12 pm
Posts: 1504
Location: My Office
Greetings,

What I am going to do is re-code that file and fix all errors that I find. Therefore, your code will not be horrible and not sloppy. :D I will post it very shortly. :D

_________________
Best Regards:
Aaron McGowan (aka: CyberGeek, =cipher=)

CyberGeek's Software Solutions
-- WWW: http://www.cybergeeksoftware.com
-- Tech Line: 1-519-860-4557
-- Email: cybergeek@cybergeeksoftware.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 01, 2006 8:27 pm 
I have no life!
I have no life!

Joined: Sun Feb 13, 2005 6:12 pm
Posts: 1504
Location: My Office
Greetings,

Here is my adapted code:

Code:
<?php
/**
* File recoded by Aaron McGowan (aka: CyberGeek, =cipher=, codeJunkie)
* for snb828 at 100Webspace Support Forums.
* If you have any questions or concerns, please feel free to contact me
* at 1-780-872-8796, or cybergeek@cybergeeksoftware.com.
**/

/**
* My Notes to the Webmaster:
* -- Your code is horrible placed and invalid
* -- I have fixed it I believe. Not tested, as I am not running the same system as you
* -- Please note, I have not TOUCHED the Javascript part in the HTML header section as
*    I am sure you added it correctly from installation guides at DynamicDrive.
* -- Please contact me for any further questions or concerns.
*    WWW: www.cybergeeksoftware.com
*         www.100webspace.com
*    Email: cybergeek@cybergeeksoftware.com
*    Tech Line: 1-780-872-8796
*    -- Feel free to provide this information to anyone if you believe that it is needed.
*    -- Please recommend me to others if you found me helpful. Thanks!
**/

//
// File Code Start (HTML, and PHP - both integrated)
//

// Include Iplog file here
include(iplog/iplog.php);

// Determine Sessions
if($session->logged_in)
{
   echo "<img javascript:loadintoIframe('_gamercard', 'http://gamercard.xbox.com/' + $session->username + '.card')'>";
}
else
{
   echo "<img javascript:loadintoIframe('_body', 'http://gamercard.xbox.com/NA%20Webmaster.card')'>";
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="alternate" type="application/rss+xml" title="LeagueOfAngels.com RSS" href="MusicVideos/Rss.xml">
<title>LeageOfAngels.com - Halo Hacking Site</title>
<style type="text/css">
<!--
.style1 { color: #FFFFFF; }
a:link { color: #FFFF00; }
a:hover { color: #FF0000; }
a:visited { color: #FFFF00; }
a:active { color: #FFFF00; }
-->
</style>
<script type="text/javascript">
/***********************************************
* IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["_body", "_gamercard"]

//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="no"

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller
</script>
</head>
<body>
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#CCCCCC">
<tr>
   <td rowspan="2"><img src="Images/logo.jpg" width="600px" height="143px"></td>
   <td valign="bottom"><iframe id="_gamercard" src="" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" align="middle" allowtransparency="yes" style="overflow: visible; width: 100%; display: none;"></iframe></td>
</tr>
<tr>
   <td valign="bottom" rowspan="1">
      <?php
      // User has already logged in, display relevant information.
      // Check and see if user == admin
      if($session->logged_in)
      {
      ?>
      <div align="right">
      <?php
         echo '<h1>Logged In</h1>'
         echo 'Welcome <b>$session->username</b>, you are logged in.<br /><br />';
         echo "[<a href=\"userinfo.php?user=$session->username\">My Account</a>] &nbsp;";
         echo '[<a href="useredit.php">Edit Account</a>] &nbsp;';
         // Check and see if user == admin
         if($session->isAdmin())
         {
            echo '[<a href="admin/admin.php">Admin Center</a>] &nbsp;';
         }
         echo '[<a href="process.php">Logout</a>]';
      }
      ?>
      </div>
      <?php
      else
      {
      ?>
      </div>
      <div align="right">&nbsp;</div>
   </td>
</tr>
<tr align="center" valign="middle" background="Images/table.jpg">
   <td colspan="2">
      <div align="left" class="style1">
         <a href="SubMenu/Home.php" target="_submenu">Home</a> |
         <a href="forum/index.php" target="_blank">Forum</a> |
         <a href="SubMenu/Modding.php" target="_submenu">Mods</a> |
         <a href="SubMenu/Bridging.php" target="_submenu">Bridging</a> |
         <a href="SubMenu/Xbox360.php" target="_submenu">XBox 360</a> |
         <a href="SubMenu/WhatYouNeed.php" target="_submenu">What You Need</a> |
         <a href="http://www.cafepress.com" target="_blank">Merchandise</a> |
         <a href="http://frappr.com/leagueofangelscom1/" target="_blank">FrapprMap</a> |
         <a href="SubMenu/MusicVideos.php" target="_submenu">Music Videos</a>
      </div>
   </td>
</tr>
<tr>
   <td height="24" colspan="2" rowspan="1" align="center" valign="top" background="Images/table.jpg">
      <iframe src="" name="_submenu" width="100%" height="100%" align="top" scrolling="no" frameborder="0" hspace="0"></iframe>
   </td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="0">
<tr>
   <td width="15%" rowspan="2" valign="top">
      <div align="center"><br />
         <table width="85%" border="1px" cellspacing="0" cellpadding="1">
         <tr>
            <th height="45px" background="Images/table.jpg" scope="col">Table of Contents</th>
         </tr>
         <tr>
            <td>&nbsp;</td>
         </tr>
         </table>
         <br />
         <table width="85%" border="1px" cellspacing="0" cellpadding="1">
         <tr>
            <th height="12px" background="Images/table.jpg" scope="col">RSS Feeds</th>
         </tr>
         <tr>
            <td>
               <div align="center"><a href="MusicVideos/Rss.xml"><img src="Images/xml.gif" width="30px" height="14px" border="0"><img src="Images/rss.gif" width="36px" height="14px" border="0"></a><a href="http://blog.contentious.com/archives/2003/10/18/what-are-webfeeds-rss-and-why-should-you-care/" target="_blank"><br /></div>
            </td>
         </tr>
         </table>
         <br />
         <table width="85%" border="1px" cellspacing="0" cellpadding="1">
         <tr>
            <th height="12px" background="Images/table.jpg" scope="col"><span align="center">External Links</span></th>
         </tr>
         <tr>
            <td><div align="center"><a href="http://www.phpbb.com/" target="_blank"><img src="Images/phpBB_88a.gif" width="88px" height="31px" alt="phpBB Group" border="0"></a><a href="http://www.realdealstubblefield.com/"><img border="0" alt="Get Firefox!" title="Get Firefox!" src="Images/safer.gif" width="88" height="31"></a><br />
                <img src="Images/realdeal_badge.gif" width="88" height="31" border="0"><br /></div></td>
         </tr>
         </table>
      </div>
   </td>
   <td width="74%" height="100%" valign="top" bgcolor="#CCCCCC"><iframe id="_body" frameborder="0" scrolling="no" width="100%" height="100%" src="body.php"></iframe></td>
</tr>
<tr>
   <td height="24px" bgcolor="#CCCCCC">
      <div align="center">
         <a href="javascript:loadintoIframe('_body', 'about.php')">About <em>LeagueOfAngels.com</em></a> | <a href="javascript:loadintoIframe('_body', 'TermsOfUse.php')">Terms of Use</a> | <a href="javascript:loadintoIframe('_body', 'PrivacyPolicy.php')">Privacy Policy</a> | <a href="javascript:loadintoIframe('_body', 'ContactUs.php')">Contact Us</a> | <a href="javascript:loadintoIframe('_body', 'Help.php')">Help</a><br />
         Copyright &copy; 2006 <em>LeagueofAngels.com</em>. All rights reserved.
      </div>
   </td>
</tr>
</table>
</body>
</html>

_________________
Best Regards:
Aaron McGowan (aka: CyberGeek, =cipher=)

CyberGeek's Software Solutions
-- WWW: http://www.cybergeeksoftware.com
-- Tech Line: 1-519-860-4557
-- Email: cybergeek@cybergeeksoftware.com


Top
 Profile  
 
 Post subject: thanks a million
PostPosted: Sat Jul 01, 2006 9:16 pm 
Noobie
Noobie

Joined: Wed Jun 28, 2006 6:38 pm
Posts: 34
i really really really appreciate all of your help and can't thank you enough. keep up the good work


except for the fact that it gives me a new error and none of my php echo tags work! this is getting a bit annoying AND IM STARTING TO TEXT YELL AT PHP! :evil:

Quote:
Warning: Division by zero in /home/www/league2.100webspace.net/index.php on line 29

Warning: main(php): failed to open stream: No such file or directory in /home/www/league2.100webspace.net/index.php on line 29

Warning: main(): Failed opening 'php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/league2.100webspace.net/index.php on line 29


ps - why did you put the following php in the page, i deleted it?

Code:
<?php
      else
      {
?>


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 01, 2006 11:47 pm 
I have no life!
I have no life!

Joined: Sun Feb 13, 2005 6:12 pm
Posts: 1504
Location: My Office
Greetings,

Sorry about the errors. It was extremely late last night when I was coding it. Like about 4:00 AM. :shock: Also, perhaps one or two small little things may not work because I do not know all of your PHP systems code. And now:

1. Find:
Code:
include(iplog/iplog.php);

2. Replace with: Please let me know if this change works.
Code:
include 'iplog/iplog.php';


3. I added that:
Code:
<?php
else
{
?>

part of code because your code was invalid, well somewhat. The DIV would have been marked as invalid HTML / XHTML if you dont properly exit it. In your first code you didnt properly exit it. Compare my code with your old code.

_________________
Best Regards:
Aaron McGowan (aka: CyberGeek, =cipher=)

CyberGeek's Software Solutions
-- WWW: http://www.cybergeeksoftware.com
-- Tech Line: 1-519-860-4557
-- Email: cybergeek@cybergeeksoftware.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 01, 2006 11:56 pm 
I have no life!
I have no life!

Joined: Sun Feb 13, 2005 6:12 pm
Posts: 1504
Location: My Office
Greetings,

Okay. I was just looking at your site live, and I see well, yes those couple of errors. But anywho, I wanted to suggest to you to recode your whole site, wont take long matter of fact and keep your whole site within the phpBB System. You can still have root/ and root/forums/ if you want to keep your forums in a seperate directory. It would be a lot more easier, you could easily keep all sessions, use SQL queries to show forum data and etc. on other pages also you wouldnt have to worry about creating a template. You could use that Xbox Xtreme Template for your whole site and forums template. This usually makes a website look more professional. Also, I suggest removing the 'iframes' as it doubles and or triples your ads produced by our servers causing the site to be even more nonattractive. These are just suggestions. :D

_________________
Best Regards:
Aaron McGowan (aka: CyberGeek, =cipher=)

CyberGeek's Software Solutions
-- WWW: http://www.cybergeeksoftware.com
-- Tech Line: 1-519-860-4557
-- Email: cybergeek@cybergeeksoftware.com


Top
 Profile  
 
 Post subject: thanks again
PostPosted: Sun Jul 02, 2006 3:04 am 
Noobie
Noobie

Joined: Wed Jun 28, 2006 6:38 pm
Posts: 34
Tell me about it, those iframes suck so either i pay the measly $12 bucks or find another way.

about the template, i was going to create my own when i got time and have it match my site.

ps - your change did work

again, thank you, thank you, thank you! :D

does your site have an image i could put on my site to promote yours?

and your suggestion, i want to connect the login on my site with my forum, but it says 'Hacking attempt' which sucks any suggestions. maybe i could create a page that could also edit my php forum code via mysql. it wouldn't link to php but could allow members to register, change profile, etc on both my site and the forum. kill 2 birds with one stone!

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: thanks again
PostPosted: Sun Jul 02, 2006 6:45 am 
I have no life!
I have no life!

Joined: Sun Feb 13, 2005 6:12 pm
Posts: 1504
Location: My Office
Greetings,

snb828 wrote:
Tell me about it, those iframes suck so either i pay the measly $12 bucks or find another way.


  • No. I would not use iframes at all. And, if you dont want to pay, then I have another solution.

snb828 wrote:
about the template, i was going to create my own when i got time and have it match my site.


  • If you are eventually going to create a template, then I suggest just going with that phpBB Xbox Xtreme template throughout your whole site. So much easier, and will look professional.

snb828 wrote:
ps - your change did work
again, thank you, thank you, thank you! :D


  • You are most welcome! I love to help others out!

snb828 wrote:
does your site have an image i could put on my site to promote yours?


  • Not at the moment. I can surely create one right away. I will post it and a link / html code to use to link back to my site.

snb828 wrote:
and your suggestion, i want to connect the login on my site with my forum, but it says 'Hacking attempt' which sucks any suggestions. maybe i could create a page that could also edit my php forum code via mysql. it wouldn't link to php but could allow members to register, change profile, etc on both my site and the forum. kill 2 birds with one stone!


  • This would be very easy. The best tihng I would recommend is ... get rid of all current root/ files except root/forums/. Then start learning and coding in the phpBB Template system which is extremely easy. If you need help, please ask. Im an excellent phpBB Developer.


Thanks! :D

_________________
Best Regards:
Aaron McGowan (aka: CyberGeek, =cipher=)

CyberGeek's Software Solutions
-- WWW: http://www.cybergeeksoftware.com
-- Tech Line: 1-519-860-4557
-- Email: cybergeek@cybergeeksoftware.com


Top
 Profile  
 
 Post subject: Re: thanks again
PostPosted: Sun Jul 02, 2006 3:12 pm 
Noobie
Noobie

Joined: Wed Jun 28, 2006 6:38 pm
Posts: 34
=cipher= wrote:
  • This would be very easy. The best tihng I would recommend is ... get rid of all current root/ files except root/forums/. Then start learning and coding in the phpBB Template system which is extremely easy. If you need help, please ask. Im an excellent phpBB Developer.


=cipher= wrote:
No. I would not use iframes at all. And, if you dont want to pay, then I have another solution.

your solution?

so you want me to move all files into my root folder, except the root/forum? svereal of my files link to root/login/include etc so i'd change it to root/include, correct?
the linking shouldn't be that hard, i was starting to get the hang of php while messing with it before your responses, which were appreciated. this stuff isnm't as easy as it looks, or as hard as some say. not with help from people like you

i was also thinking we should start a new topic relating to this because it has nothing to do with parse errors or anything else this topic pertains to. in this new topic, maybe we, meanng you because im a total n00b, could provide a login script that connected to a phpbb forum so the information is syncronized. just an idea.

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 02, 2006 8:26 pm 
I have no life!
I have no life!

Joined: Sun Feb 13, 2005 6:12 pm
Posts: 1504
Location: My Office
Greetings,

Doesnt matter. No new topic is necessary. Now, there forum. If you want to use phpBB, I have always done a full phpBB Integration using phpBB Pre-built MODs and also coded my own. So, here is my idea:

  • You could use the phpBB (well you already are but ...) Instead of having the phpBB in the root/forums/ directory, you could, move all the phpBB files that are in root/forums/ into just root/ (this is after deleting all root files except phpBB). Now, within that, you can do many of things. You could either just simply integrate your whole site into phpBB and using phpBB as your base system (IMO, this is the best way to go). After doing that, you could either change the current index.php file name to something else and create a homepage, OR you could simply use another name (ex: portal.php) as your home page then just use a .htaccess to automatically redirect the domain to portal.php instead of index.php. After doing that, then you can easily build other pages using phpBB's base system. For lots of help and documents on doing this see:
    • http://www.phpbb.com/kb/


If you have any questions or concerns, just let me know, and I can simply help you very easily.

Also, please note, if you do want it professionally done, CyberGeek's Software Solutions (my company) is available to you. Just remember that it will cost some money. Although, instead of charging a lot like usual developers do, We will not charge very much as this is a special occasion.

_________________
Best Regards:
Aaron McGowan (aka: CyberGeek, =cipher=)

CyberGeek's Software Solutions
-- WWW: http://www.cybergeeksoftware.com
-- Tech Line: 1-519-860-4557
-- Email: cybergeek@cybergeeksoftware.com


Top
 Profile  
 
 Post subject: reply
PostPosted: Sun Jul 02, 2006 10:27 pm 
Noobie
Noobie

Joined: Wed Jun 28, 2006 6:38 pm
Posts: 34
love the sales pitch but i'd rather learn it on my own, and promoting your site through an image is another idea. :D how's it going?

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 02, 2006 10:51 pm 
I have no life!
I have no life!

Joined: Sun Feb 13, 2005 6:12 pm
Posts: 1504
Location: My Office
Greetings,

I have not started the button for CyberGeek's Software Solutions yet. I have been extremely, extremely busy. I will have it done soon.

No problem. I fully understand that you want to learn it on your own. I like that in a future developer.

_________________
Best Regards:
Aaron McGowan (aka: CyberGeek, =cipher=)

CyberGeek's Software Solutions
-- WWW: http://www.cybergeeksoftware.com
-- Tech Line: 1-519-860-4557
-- Email: cybergeek@cybergeeksoftware.com


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 02, 2006 11:24 pm 
I have no life!
I have no life!

Joined: Sun Feb 13, 2005 6:12 pm
Posts: 1504
Location: My Office
Greetings,

Okay. I have created the button, well I actually just whipped it up really quick. Please use the following source code below when adding the link to another page or website.

Code:
<a href="http://www.cybergeeksoftware.com/" target="_blank"><img src="http://www.cybergeeksoftware.com/images/buttons/88x33_button1.gif" alt="CyberGeek's Software Solutions" border="0"></a>

_________________
Best Regards:
Aaron McGowan (aka: CyberGeek, =cipher=)

CyberGeek's Software Solutions
-- WWW: http://www.cybergeeksoftware.com
-- Tech Line: 1-519-860-4557
-- Email: cybergeek@cybergeeksoftware.com


Top
 Profile  
 
 Post subject: nice pic, QQ about .htaccess
PostPosted: Tue Jul 04, 2006 4:16 am 
Noobie
Noobie

Joined: Wed Jun 28, 2006 6:38 pm
Posts: 34
Quick Question

i'm using http://www.javascriptkit.com/howto/htaccess10.shtml for my .htaccess site and this particular page blocks hotlinked images, not that mine are great yet, but how do i let it block subdomains, since we don't have www.

also, php version information shows:
Quote:
Unable to open connection to phpBB Server, reported error is:
Connection refused
Why?

thx

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 04, 2006 4:25 am 
I have no life!
I have no life!

Joined: Sun Feb 13, 2005 6:12 pm
Posts: 1504
Location: My Office
Greetings,

Well... I do not understand your question fully, I do somewhat but not fully.

What the code below does is that it BLOCKS any websites attempting to hotlink images, although, when you enter your website (ex: see CyberGeek's Software Solutions URL below in code) it ALLOWS that website to use the images. :D Although, you can allow more then one domain / subdomain to hotlink images though.

Code:
RewriteCond %{HTTP_REFERER} !^http://cybergeeksoftware.com
RewriteCond %{HTTP_REFERER} !^http://www.cybergeeksoftware.com
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.cybergeeksoftware.com/empty.html [L]
#cybergeeksoftware.com/empty.html - your custom hotlinker page

_________________
Best Regards:
Aaron McGowan (aka: CyberGeek, =cipher=)

CyberGeek's Software Solutions
-- WWW: http://www.cybergeeksoftware.com
-- Tech Line: 1-519-860-4557
-- Email: cybergeek@cybergeeksoftware.com


Top
 Profile  
 
 Post subject: oh
PostPosted: Tue Jul 04, 2006 4:51 am 
Noobie
Noobie

Joined: Wed Jun 28, 2006 6:38 pm
Posts: 34
oh

i meant
phpBB version information shows:
Quote:
Unable to open connection to phpBB Server, reported error is:
Connection refused

Why?

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 04, 2006 5:12 pm 
I have no life!
I have no life!

Joined: Sun Feb 13, 2005 6:12 pm
Posts: 1504
Location: My Office
Greetings,

I am not 100 percent sure why that is, but I am guessing that phpBB's Database or files that reads this information is either down, or they are not allowing any connections to come in.

I recommend going to www.phpbb.com/phpBB/ and start a new topic in there phpBB's Help forum. They should be able to give you an accurate reason why there.

_________________
Best Regards:
Aaron McGowan (aka: CyberGeek, =cipher=)

CyberGeek's Software Solutions
-- WWW: http://www.cybergeeksoftware.com
-- Tech Line: 1-519-860-4557
-- Email: cybergeek@cybergeeksoftware.com


Top
 Profile  
 
 Post subject: freaked
PostPosted: Tue Jul 04, 2006 11:16 pm 
Noobie
Noobie

Joined: Wed Jun 28, 2006 6:38 pm
Posts: 34
i freaked out because i got that error after instralling that template and had just noticed it.

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 05, 2006 3:28 am 
I have no life!
I have no life!

Joined: Sun Feb 13, 2005 6:12 pm
Posts: 1504
Location: My Office
Oh Okay.

_________________
Best Regards:
Aaron McGowan (aka: CyberGeek, =cipher=)

CyberGeek's Software Solutions
-- WWW: http://www.cybergeeksoftware.com
-- Tech Line: 1-519-860-4557
-- Email: cybergeek@cybergeeksoftware.com


Top
 Profile  
 
 Post subject: new topic
PostPosted: Wed Jul 12, 2006 4:18 am 
Noobie
Noobie

Joined: Wed Jun 28, 2006 6:38 pm
Posts: 34
how would i put a news ticker on my site for new topics in the forum?

basically, i want my index.php to have a news ticker to scroll new topics and posts

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 12, 2006 8:21 am 
I have no life!
I have no life!

Joined: Sun Feb 13, 2005 6:12 pm
Posts: 1504
Location: My Office
Greetings,

Is your 'index.php' page in your phpBB root directory, or outside the root directory of your phpBB?

_________________
Best Regards:
Aaron McGowan (aka: CyberGeek, =cipher=)

CyberGeek's Software Solutions
-- WWW: http://www.cybergeeksoftware.com
-- Tech Line: 1-519-860-4557
-- Email: cybergeek@cybergeeksoftware.com


Top
 Profile  
 
 Post subject: sorry
PostPosted: Wed Jul 12, 2006 4:34 pm 
Noobie
Noobie

Joined: Wed Jun 28, 2006 6:38 pm
Posts: 34
sorry, i meant main.php, i had changed to your advice and used .htaccess te reroute to main.php. it is in the same root directory as my forum.

btw, got a new site cause i didn't like my old name:http://teampointblank.100webspace.net/

_________________
Image
Image


Last edited by snb828 on Sun Jul 16, 2006 11:29 pm, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Moderators: fhmagic, KJ, Moderators, Support Team

All times are UTC


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 post attachments in this forum

Search for:
Jump to:  
100WebSpace © 2011