duncan_cowan
Members-
Posts
109 -
Joined
-
Last visited
About duncan_cowan
- Birthday 05/26/1993
Previous Fields
-
Languages
PHP, HTML, CSS, SQL, JAVASCRIPT, JQUERY
Contact Methods
-
Website URL
http://www.worldwarsix.com
-
ICQ
0
Profile Information
-
Location
Liverpool, England, UK
duncan_cowan's Achievements
Member (2/7)
0
Reputation
-
hi i recently started using the script "prototype window" from http://prototype-window.xilinus.com/ the window is working fine but when i try to include the javascript commands, such as minimize or close, in the script it comes up with an error " 'win' is undefined " the place where i run the command is a register form which is accessed from the login form and both are in prototype windows here is the code: <html><head><script type="text/javascript" src="http://www.worldwarsix.com/protected/prototype_win/javascript/prototype.js"> </script><script type="text/javascript" src="http://www.worldwarsix.com/protected/prototype_win/javascript/window.js"> </script><link href="http://www.worldwarsix.com/protected/prototype_win/themes/ww6.css" rel="stylesheet" type="text/css"/></head><script>win.setSize(400,500);</script><body bgcolor=#000000>... the code is expected to make the window bigger but this doesnt happen.please could someone help?thanks in advance.
-
no have tried these but the frame still displays within the pagethe prototype window is here
-
i have done this and now it displays the page in a box at the top of my page but it is embedded into the page not like a popup
-
hi i have used "prototype window" to have a popup window in my site but i do not know why it is not working:(main popup script in middle) <html><head><script type="text/javascript" src="/protected/prototype_win/javascripts/prototype.js"> </script><script type="text/javascript" src="/protected/prototype_win/javascripts/window.js"> </script> <link href="/protected/prototype_win/stylesheets/themes/default.css" rel="stylesheet" type="text/css"/></head> <tr> <td colspan="3" height="85" background="protected/images/WW6_16.gif" <--Main Popup Section-->onclick="window.location.href='var win = new Window({className: 'spread', title: 'Ruby on Rails',top:70, left:100, width:300, height:200,url: 'http://www.rubyonrails.org/', showEffectOptions: {duration:1.5}}); java script:win.show()'" style="cursor: pointer"><--end popup section--><div align="center"><p>Click Here To Enter Protected Area </div></td> </body></html> it does contain more script obviously but i think these are the only important parts.please could someone help?thanks
-
is there a way i could split the page up into three different tables :one at the top,the main part, and the side part,so then when one table gets bigger the other will stay the same?
-
hi on my website there is a template with a side bar and a main sectionwhen the main section is longer than the side bar the side bar is pulled down and the background images of the side bar are seperated this is a problemthe website address is www.worldwarsix.comand the problem is after you login username: test password: testthe side bar edge lines are separatedis there anyway to stop this from happing if you can see the problem?thanks duncan.
-
do not worry i have solved it was the other part of the script that was the problem.
-
hi i am using the "while" function to echo the contents of the rows in a mysql table. unfortunatley only one row is being echoed.here is the script: $result_armies = mysql_query("SELECT * FROM armiesWHERE username = '".$username."'");while($row = mysql_fetch_array($result_armies)) { echo " <table border='0' background='images/logged-in/box.gif' align='center'> <tr> <td colspan='2'> <img src='images/logged-in/blank-short.gif' width='280'></td> </tr> <tr> <td><font size='2' face='font1' color='#FFFFFF'> Name:</font></td> <td><font size='2' face='font1' color='#FFFFFF'>".$row['army_name']."</font></td> </tr> <tr> <td><font size='2' face='font1' color='#FFFFFF'> Rank:</font></td> <td><font size='2' face='font1' color='#FFFFFF'>".$row['army_rank']."</font></td> </tr> <tr> <td><font size='2' face='font1' color='#FFFFFF'> Strength:</font></td> <td><font size='2' face='font1' color='#FFFFFF'>".$row['strength']."</font></td> </tr> <tr> <td colspan='2'><img src='images/logged-in/boxend.gif' alt='' width='280'></td> </tr> </table> "; } what is wrongthanks
-
dont worry i have found out what was causing it the included file (logout.php) also included the file with this script in so it was going around in circles.
-
its something to do with "if($last_active<$time) {"
-
hi i am getting a strange error in some script.when i run it it comes up with a "500 internal server error" but when i delete "$time = time();" from it it shows the page.here is the script: <?php/* check login script, included in db_connect.php. */$time = time();$last_active = $_SESSION['last_active'];session_start();if (!isset($_SESSION['username']) || !isset($_SESSION['password'])) { $logged_in = 0; return;} else { if($last_active<$time) { $timeout = 1; require "logout.php"; } // remember, $_SESSION['password'] will be encrypted. if(!get_magic_quotes_gpc()) { $_SESSION['username'] = addslashes($_SESSION['username']); } // addslashes to session username before using in a query. $pass = $db_object->query("SELECT password FROM users WHERE username = '".$_SESSION['username']."'"); if(DB::isError($pass) || $pass->numRows() != 1) { $logged_in = 0; unset($_SESSION['username']); unset($_SESSION['password']); // kill incorrect session variables. } $db_pass = $pass->fetchRow(); // now we have encrypted pass from DB in //$db_pass['password'], stripslashes() just incase: $db_pass['password'] = stripslashes($db_pass['password']); $_SESSION['password'] = stripslashes($_SESSION['password']); //compare: if($_SESSION['password'] == $db_pass['password']) { // valid password for username $logged_in = 1; // they have correct info // in session variables. } else { $logged_in = 0; unset($_SESSION['username']); unset($_SESSION['password']); // kill incorrect session variables. }}// clean upunset($db_pass['password']);$_SESSION['username'] = stripslashes($_SESSION['username']);?> please could someone helpthanks.
-
there must be a problem with that script because even thougt it says that they are not set they are...
-
the cookies are not seti test them with this script: if (isset($_COOKIE["username"])){echo "set";echo $_COOKIE["username"];} else {echo "not set";}
-
hi i have made a script that is meant to process a login and it used to run with sessions but i wanted to use cookies to carry the loggin info so i set it to set some cookies but it doesnt work...please could someone help?script: $username = $_POST['uname']; $password = $_POST['passwd']; setcookie("username", "$username"); setcookie("password", "$password"); thanks in advance...