Jump to content
xisto Community

sonesay

Members
  • Content Count

    958
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by sonesay


  1. The page is was set to 100% and the problem still existed. I applied that to body{} style. setting it lower like 942px would get rid of the center alignemnt and make it stick to the left wall.I'm going to be using an image later for buttons but at the moment just basic default looking one will do as long as it works. I'm trying to get some experience in trying to make it work for IE 7 also. I know IE 7 sucks but I'd like to be able to say to a client one day "yeah I can make it work on lolIE7" you know. I'll keep working and if I find a fix I'll update.


  2. The reasons for button is they look consistent across different brosewrs. input types look more different. I remeber coming across somewhere on the web but cant remember the link or information. I will get back to you on this one.

    as for the UL list its been covered on http://forums.xisto.com/topic/53517-align-text-column-without-tables-using-css-is-it-possible-to-get-a-3-column-alignment-without-using-tables-with-c/ as to why I'm using it that way . The solution given there works for all broswers exectp IE. THat method gives you a table like spacing without tables.

    the margins and padding I'ved used and still smilar results. instead it makes it difficult to keep buttons consistent across brosewrs nd dosent help with the horzontal scrolling. I'ved kept my width to 942px yet it still gets horizontal scrolling. I've seen sites recommend withs of 950-960px. I'm not sure if it has anything to do with my CSS setting to align it in the middle of the page.


  3. I've been trying to use CSS to display most of my page content consistently across safari, firefox, and IE 7 but there is still number of elements that still display differently. I'm using only one style sheet and I am wondering if there is anyone whos fimilar with this problem that may be able to give me some advice. I know trying to use one style sheet is kinda difficult but I dont like the idea of having to build 1 style sheet for each broswer. It means more work that I really would rather not do.

    Some major issues I'm having is:

    -UL list are not displaying correctly on IE7 take a look at http://forums.xisto.com/no_longer_exists/ . This also dosent display correctly in firefox and safari sometimes. What wil happen is when it loads it displays elements on a new line instead of on the same line. There is enough width space but it still puts it in a new line.

    -horizontal scrolling - I've been trying to get rid of this problem for 1024x786 resolution by reducing my page structure size yet it still has scrolling and some kind of padding that I dont want. This is noticable when page content gets long and vertical scrolling is required.

    -*{padding and margins} affect things differently between broswers. in fire fox it doesnt affect buttons but in safari it does so applying an additional button{} will still not work.

    - IE buttons. I dunno why the code that works for other brower buttons just submits by default and IE dosent.

    Is the only way around this is to have different style sheets for different broswers? I'd really like to learn methods to code for all broswers so if I have to I will do it. Having your webpage display too differently btween broswers is not very cool.


  4. I've only been able to watch the highlights on TV but I think sharapova is going to win, Shes been playing very strongly from what I've seen shes beaten most of her opponents very easily including world no 1 henin. I dont think the game will air here sadly.while I'm posting this Roger Federer (SUI)[1] v. Novak Djokovic (SRB)[3]is in progress I dunno who is leading ; ;. Both are awsome players and that other guy too who already made it to the finals jo-Wilfried Tsonga. He looks pretty good too.Well my picks are:Womens - SharapovaMens - Federer


  5. Ninjas are the coolest thing in the world. Growing up I always pretended to be one lol. Its so much fun climbing stuff and jumping off from high places. Yeah a ninja chick would be sexy. Also ninja movies are kick *bottom*. There is even that new show / recently called ninja warrior where people test their abilities moving through obstacles that are extremely difficult. Its very funny watching them fail. Obviously to be a ninja you need serious training like any other form of fighting. While I was doing kyokushin with my mates we were talking about ninja training and they said its crazy. There are no rules they grab balls and do eye gulges. Any means to win as ninjas are ruthless and dirty fighters. I was kinda freaked out and didnt even want to think about training to that extreme lol. There was a book I read once where they talked abit about their training. Part of it was they had to live in the forest and hunt the animals there on their own. They would have to run insanely long distances in a short amount of time. The teacher training them would tell them when they hunt they must be silent as possible. Of course being new to it they would make alot of noise while moving in the woods and the master would punish them with more work. He said something along these lines.. "You will starve to death scaring away the animals your suppose to be hunting making that much noise if the enemy dont find and kill you first". yeah that was a good book I cant remember the title of it though ; ;. I should go back and find it again in the library.


  6. Like most that have said before me and I agree with the adds blend in too much with the actual content so It does annoy me when I read a section then continue on reading then bam! I hit the adds.I think the font in your header is abit too plain looking personally. The navigation is abit too small and dosent look like it fits in very well to the sites design.The sides seem to blend in with the background grey. maybe add drop shadow effect on both sides or a border might help the eyes abit.I think a drop down shadow effect under the navigation would look nice. maybe even a border or something.Good luck on your site.


  7. Dreamweaver because I'm used to the syntax highlighting. It works good for commenting /* , //. Dreamweaver dosent have bracket highlighting too so it can be hard to find nested brackets if there are many.I've treid komodo but it dosent pickup // comments as one line and ends up greying out all below. Abit bulky too for my liking but I've only tired it out on PHP scripts.BBedit is pretty nice and quick. seems to have good syntax highlighting for php but no support for expanding and collasping brackets.Operating system is Mac OS X.


  8. I'm not too sure how buying gold affects your game but on one other online role playing game that I play "Final Fantasy XI" Gold/Gil farmers who camp certain monsters everyday just to get the item drop to sell at the auction house then sell the Gold/Gil onto players who buy it is really annoying. It really did ruin the game experience for many legit people who play it and dont resort on buying Gold/Gil to have to compete with the Real Money Traders (RMT). I know you need currency in game to get the items you need or what ever and its difficult but dont buy game currency, you are supporting a very bad industry. Uou are cheating by buying currency what is the point of playing if you didnt not earn things in the game legitmately. I had very poor gear and I wasnt too ashame of it when I started but I earned all of my gear the right way and didnt buy online currency. I think its just lame to resort to buying online currency.


  9. Valid code on validator doesnt mean it will display poperly but it helps narrow down the possible problems. It just comes with knowledge and practice to be able to build a good CSS and HTML layout from scratch. Thats why most people use basic templates with the structure already put out.

    http://ww38.code-sucks.com/css%20layouts/

    go here to find a similar style layout you want and build it off there. take a look at the source code and thats how your surpose to structure the layout otherwise you get all sorts of problems when its not structured a certain way.


  10. I'm trying that right now I just changed all the false to 0 valuebut I got a whole bunch of new errors not sure what exactly but I'll try narrow it down.

    Warning: Cannot use a scalar value as an array in /Applications/xampp/xamppfiles/htdocs/nexus/includes/forms/add_character.php on line 12Warning: Cannot use a scalar value as an array in /Applications/xampp/xamppfiles/htdocs/nexus/includes/forms/add_character.php on line 14Warning: Cannot use a scalar value as an array in /Applications/xampp/xamppfiles/htdocs/nexus/includes/forms/add_character.php on line 14Warning: Cannot use a scalar value as an array in /Applications/xampp/xamppfiles/htdocs/nexus/includes/forms/add_character.php on line 14Warning: Cannot use a scalar value as an array in /Applications/xampp/xamppfiles/htdocs/nexus/includes/forms/add_character.php on line 14Warning: Cannot use a scalar value as an array in /Applications/xampp/xamppfiles/htdocs/nexus/includes/forms/add_character.php on line 14Warning: Cannot use a scalar value as an array in /Applications/xampp/xamppfiles/htdocs/nexus/includes/forms/add_character.php on line 14Warning: Cannot use a scalar value as an array in /Applications/xampp/xamppfiles/htdocs/nexus/includes/forms/add_character.php on line 14

    Update:I was able to get it to work. The problem was echoing the object inside double quotes didnt work.the fix was minor but man it took me a while to figure that out.

    <li>Bastok</li>											<li>";											echo	$character->mission_rank->bastok;										echo"</li>


  11. I've been using glasses for about 1 year now and I dont really mind it at all it helps my vision and does not look all that bad. Never had contacts and the thought of sticking something on my eye just dosent go well with me. mariecon555 can you tell us abit more about that eye correction you had done? I'm thinking about it and would like to know any possible side effects it could have.thanks


  12. If you want to find a good deal within your budget range you will have to do the hard work and start looking at laptops and comparing them with specifications and price. Since we dont know your budget we have no idea what kind of range your after.There are basically 3 ranges cheap poor mans laptops 1000 dollars nz newish.mid range laptop 2000 nz newish (what most people will get)high end laptops 3000+ nzwhen you know your budget go out and look, you'll want something you like in looks and features. I cant really recommend any laptops but thats a guide to finding one. The thing is you have to look at as many as you can if you want to find a good deal. You could end up buying a laptop tomorrow and find out a better one existed but you were too lazy to go do the research and find out yourself.good luck


  13. Yeah objects in PHP are fairly new. I think it was only brought in in php 4 and it has changed abit in version. I've read on php.net that a class can only have one inheritence. I'm fairly new to OOP style of PHP as well but I think it is much more suited to my current problem. When you say try assigning it zero do you mean my object fields when I create them? I will give it a go I just am not sure if thats what you mean.


  14. in php 4.4.7 my code seems to be ok but in later version 5.2.2 i get this error

    Catchable fatal error: Object of class mission_rank could not be converted to string in /Applications/xampp/xamppfiles/htdocs/nexus/includes/forms/cn_reload.php on line 41

    cn_reload.php

    <?phpinclude('../class/userClass.php');session_start();$app_user =& $_SESSION['app_user'];if ($app_user->character != false) {			$race_letter = array('H','E','T','M','G');			$cn_id = 0;			foreach ($app_user->character as $character) {								// div container				echo "<div class='char_node'>";				echo "<input type='hidden' name='char_node' value='$character->name'/>";					echo "<div class='char_col1'>";										//echo $app_user->character->name;					echo "$character->name <br />";					$img = "images/faces/80px-";										$race = $race_letter[$character->race];					if($character->hair == 1) {						$hair = 'a';					}					else {						$hair = 'b';						}					$str = $race.$character->gender.$character->face.$hair;						echo "<img src=\"$img$str.jpg\" class=\"char_thumb\"/>";					echo "<button type='button' onclick=\"cn_delete('$cn_id');\">Delete</button>";										echo "</div>";					echo "<div class='char_col2'>";						echo "<div class=\"charDetail\">									<ul class=\"tabs\">									<li><a class=\"selected\" onclick=\"doTabClass(this);\">Ranks</a></li>									<li><a onclick=\"doTabClass(this);\">Jobs</a></li>									<li><a onclick=\"doTabClass(this);\">Merits</a></li>									<li><a onclick=\"doTabClass(this);\">Items</a></li>									</ul>																											<div id='cn_merits_$cn_id'>										<ul>											<li>Bastok</li>											<li>												$character->mission_rank->bastok											</li>										</ul>									</div>																																																															<div id='cn_jobs_$cn_id'>Tab 2</div>									<div id='cn_merits_$cn_id'>Tab 3</div>									<div id='cn_items_$cn_id'>Tab 4</div>								</div>											";					echo "</div>";															echo "<div class=\"clear\"/></div>";							echo "</div>";			$cn_id++;			}								}?>

    userClass.php

    <?php/* A class to store user information. * * * * * * * **/class user {		var $username;	var $fname;	var $lname;	var $password;	var $dob;	var $gender;	var $email;	var $expansion;	var $character;		function user() {		$this->username = false;		$this->fname = false;		$this->lname = false;		$this->password = false;		$this->dob = false;		$this->gender = false;		$this->email = false;		$this->expansion = false;		$this->character = false;	}		}class expansion {	var $zm;	var $cop;	var $tau;	var $wog;		function expansion () {		$this->zm = false;		$this->cop = false;		$this->tau = false;		$this->wog = false;	}}class character {	var $name;	var $race;	var $gender;	var $face;	var $hair;	var $mission_rank;		function character() {		$this->name = false;		$this->race = false;		$this->gender = false;		$this->face = false;		$this->hair = false;		$this->mission_rank = false;	}}class mission_rank{	var $bastok;	var $sandy;	var $windurst;	var $zm;	var $cop;	var $tau;	var $wog;	var $assault;	var $campaign;		function mission_rank() {		$this->bastok = false;		$this->sandy = false;		$this->windurst = false;		$this->zm = false;		$this->cop = false;		$this->tau = false;		$this->wog = false;		$this->assault = false;		$this->campaign = false;	}}?>

    add_character.php

    <?phpinclude('../class/userClass.php');session_start();$app_user =& $_SESSION['app_user'];include('../db.php');// character details.$name = strtolower($p['name']);$name = ucfirst($name);$race = $p['race'];$gender = $p['gender'];$face = $p['face'];$hair = $p['hair'];if($race > 2) {	$gender = false;}//$app_suer->character = false;if($app_suer->character === false) {	$app_user->character = array();}$app_user->character[] = new character;$i = count($app_user->character)-1;$app_user->character[$i]->name = $name;$app_user->character[$i]->race = $race;$app_user->character[$i]->gender = $gender;$app_user->character[$i]->face = $face;$app_user->character[$i]->hair = $hair;$app_user->character[$i]->mission_rank = new mission_rank;$app_user->character[$i]->mission_rank->bastok = 10;?>

    The reason why I want to use objects and asign it to a session variable is because I can store more in an object. If I try and store all the users info in session vars I will end up with too many.so my user object holds character objects and then user object assigned to session var. Is there a better approach to this problem? I'm trying to store a user and their characters details when they are submitting an application to the site. I will then store it in a database once its finsihed and complete.

    post-45102-1200993750_thumb.png

    post-45102-1200993776_thumb.png

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.