
iGuest
Members-
Content Count
72,093 -
Joined
-
Last visited
-
Days Won
5
Everything posted by iGuest
-
This BBCode:Clicking on the title bar closes the message, clicking back on it, reopens it. Notice from mastercomputers: This one here Was developed with a similar method, except it does not rely on IDs, now this is probably not the latest script I created, I still think it is using my very first implementation of this script which evolved into a more accurate and cleaner way, however it still does what it was intended to do.Unfortunately this BBCode is for administrator/moderators use only, if caught using it could get you in trouble, though it's allowed in the test post forum.The code for this BBCode the javascript file and method to install it into IPB is also available freely, somewhere, if it can't be found, then I'll try and locate the files on my computer and put the site for it back up.Cheers,MC
-
I use XHTML 1.1 which only comes in STRICT. A simple yet valid document is: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://forums.xisto.com/no_longer_exists/ xmlns="http://forums.xisto.com/no_longer_exists/; xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Your Title</title> </head> <body> <h1>Simple XHTML</h1> <p>See it was simple</p> </body></html> XHTML should actually use the Content-Type application/xhtml+xml but since IE still refuses to fix up their browser to work correctly with it, they rather fix bugs instead (which is good, but will they ever get round to doing this?) it's better to serve it as text/html until all browsers support it, or you could use my PHP server-side script for sending application/xhtml+xml to browsers that do support it. I prefer XHTML 1.1 over HTML 4.01, not because there's much difference but due to XHTML being more stricter and resulting in cleaner code by deprecating elements and attributes that were either double-ups or could be done within CSS. Cheers, MC
-
It seems that not all packages can be installed due to "file(s) conflict", you really need to know which file(s) are actually conflicting and insure you don't install those package(s) together.Also installing all packages is not a good idea, you really only want to install what you will use, no point having everything if you're only going to use a small amount of the packages, it'd also make updating take much longer than needs be and introduces a lot of security risks that may not be apparent to you if you don't use the package that causes problems.I usually work the other way, install the most minimal and then install what packages I need afterwards, sometimes only installing on a needs basis. If you're not familiar with Fedora, then install the most standard desktop settings. That way you'll be able to install additional packages from the CD using GUI tools.Cheers,MC
-
Retrieving Data And Displaying In Boxes How do I make a grid of boxes?
iGuest replied to FirefoxRocks's topic in Programming
OK, I have looked at your code and here's my suggestion: <?php$row = array( 'user' => 'AbUser', 'victim' => 'Jack the Ripper', 'turns' => 2, 'side' => 'right', 'gold' => 120, 'lost' => 0, 'killed' => 0, 'mxp' => 48, 'points_b' => 1800, 'points_a' => 50, 'type' => 'melee', 'power' => 'average'); //remove this array//$con = mysql_connect('localhost', 'myDatabaseName', 'myDatabasePassword') or exit('Could not connect: '.mysql_error());//mysql_select_db('myTable', $con);//$result = mysql_query('SELECT * FROM `myField1` ORDER BY `myField2` DESC LIMIT 12;');$i = 0;$tmp_table = '';//while($row = mysql_fetch_array($result)) { if(empty($tmp_table)) { $tmp_table .= '<table summary="myTable summary">'."\n\t".'<tr>'."\n"; }for($k = 0; $k < 15; $k++) { //remove this for loop if($i != 0 && $i % 4 == 0) { $tmp_table .= "\t".'</tr>'."\n\t".'<tr>'."\n"; } $tmp_table .= "\t\t".'<td style="width: 25%; border: thin solid black;">XKingdom Member: '.$row['user']. '<br />Name of victim: '.$row['victim']. '<br />Attack turns: '.$row['turns']. '<br />Side of attack: '.$row['side']. '<br />Gold stolen: '.$row['gold']. '<br />Units lost: '.$row['lost']. '<br />Units killed: '.$row['killed']. '<br />MXP Gained: '.$row['mxp']. '<br />Victim\'s points: '.$row['points_b']. '<br />Your points: '.$row['points_a']. '<br />Type of battle: '.$row['type']. '<br />Battle power: '.$row['power']. '</td>'."\n"; $i++; if($i == 12) { break; }}//mysql_close($con);if(!empty($tmp_table)) { $tmp_table .= "\t".'</tr>'."\n".'</table>'; echo $tmp_table;}?> Now since I don't have your database or table, I commented those parts out and just wanted to show a working example. I'm using the same content from my array. To use it, just remove the array, all the comments at the beginning of a line and remove the for loop line and hopefully it's get the results you want. I also added a border around the cells, just to show seperation. Here's the source code view of HTML, just thought I would add that: <table summary="myTable summary"> <tr> <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td> <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td> <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td> <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td> </tr> <tr> <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td> <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td> <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td> <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td> </tr> <tr> <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td> <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td> <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td> <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td> </tr></table> Cheers, MC -
Retrieving Data And Displaying In Boxes How do I make a grid of boxes?
iGuest replied to FirefoxRocks's topic in Programming
In this code you're using the assignment operator '=', not the comparison operator '=='. You're also using constants instead of the required string, however if the constants don't exist the string is automatically guessed but this is poor programing. I'm not sure, but I think conditions always evaluate to true if it's assigned any value unless you assign an empty/null/0 value. You could use a switch statement like: switch($row['type']) { case 'off': $cdkgd = 'background-color: #f00'; break; case 'def': $cdkgd = 'background-color: #48d1cc'; break; default: $cdkgd = 'background-color: #fff'; break;} Or you could use an if-else statement: if($row['type'] == 'off') { $cdkgd = 'background-color: #f00';}elseif($row['type'] == 'def') { $cdkgd = 'background-color: #48d1cc';}else { $cdkgd = 'background-color: #fff';} I still haven't gotten round to looking at your code yet. Cheers, MC -
Retrieving Data And Displaying In Boxes How do I make a grid of boxes?
iGuest replied to FirefoxRocks's topic in Programming
The "\n" part is just formatting for the source code really. Since you're outputting the content as is, it doesn't take into account newline characters which is what "\n" is. e.g. If you did: <?php echo '<table>';echo '<tr>';echo '<td>some content</td>';echo '</tr>';echo '</table>';?> And viewed the source you'll get: <table><tr><td>some content</td></tr></table> Similar to doing: <?phpecho '<table><tr><td>some content</td></tr></table>';?> Now if you did: <?phpecho "<table>\n\t<tr>\n\t\t<td>some content</td>\n\t</tr>\n</table>";?> When you view the source it'd look like: <table> <tr> <td>some content</td> </tr></table> "\n" is newline characters and "\t" is tab characters. "\n" is not the HTML <br /> element. Also remember that using PHP, special characters like \n and \t must be in double quotes, not single quotes unless you want to output exactly those characters. Just test it out if you like: <?phpecho '\n'; // displays \necho "\n"; // wont display anything but viewing source would have a newline there (just like you pressed enter when typing it)?> Read up strings and interpolation in the PHP manual for more understanding and finding more special characters that can be used. I haven't gone over your code yet, but by the looks of things you'd be better off using HEREDOC strings, again you'll find more information by looking into the strings in the PHP manual. Cheers, MC -
When talking about javascript, most people should really refer to it as ECMAScript which is the official standard that combines Javascript (Netscape) and JScript (Microsoft). I think it also covers ActionScript but it's been a while since I read the specification (EMCAScript-262).I wouldn't say it's browser dependant but more like the scripting language used by certain browsers are proprietary methods, however all native objects should work, it's usually the functions/methods that aren't all supported.Cheers,MC
-
I don't really like using innerHTML and prefer using DOM methods to manipulate the documents. With innerHTML, you don't need to encode HTML entities, you can simply pass the complete string, e.g. <script type="text/javascript">... When using the DOM you must create the elements, and append the data on them. Although it requires more work, it gives better understanding to your document creation, also not all browsers support innerHTML.As with the automatic closing of each element, I can't explain that. Are you using a script you created yourself, or a script created by someone else?Cheers,MC
-
I now own a new laptop and the Retail 60 or 90 day trial of Norton anti-virus came per-installed. Piece of carp. And I want to install a different Software, probably the One M^E suggested in another topic, but anyway...Is the removal of Norton's Antivirus and Norton's Internet Security as simple as it sounds? Simply use the uninstallers and delete the folders from the system to free up space? Or are there other things which should be done? I'm thinking registry cleaning and all that. Are these extra steps required? or reccomended?
-
Well, I don't know the definition you are using for 'huge', but I'm sure your girlfiend would have another opinion on the one you use. j/k Yes, there were a few glitches in the last upgrade, but nothing Major, lost a few posts and such as what you might expect, but they were no bigger than any server upgrade or migration. Some of the users needed to upgrade their "Java", not javascript, in order for the full set of features to work properly. And some older Browsers don't handle the Ajax well, either, for the shoutbox and some of the other features, but it went smothly enough.
-
Nice reaction time. The Music lead-in was pretty much instant. No complaints about how that works.Cable / wireless
-
Hey nightfox, We really do need to see more of the HTML code, as I see nothing wrong with this line at all, except it uses deprecated attributes and seems to be following XHTML. So what made this the line in question? Here's how I would write this line though: <img src="nationalparks/images/email.gif" width="99" height="100" alt="Email" style="border:0" /> The width and height attributes are valid for the img element so I feel using styling on this is unnecessary, however the border attribute has been removed and must be used inside styling to follow strict rules. Cheers, MC
-
Need A Photo A Hand Holding 3 Of $1 Bills
iGuest replied to ginginca's topic in Graphics, Design & Animation
Weaponx, Canada doesn't have $1 bills anymore. We use a $1 coin called a 'loonie' because of the image of a 'Loon' on the back of it. and we also have a $2 coin called a 'toonie'. -
Okay... I get it. This seems to be a pretty exact explaination. I understand the ideas of being very exact when posting, and the whole "the more info, the better" thing. So, I'll try to do just that. Although I don't know about an introduction, a body, and then a conclusion. I guess that would be sensible if you were starting a new thread, but I think I'll just stick with a paragraph or two when I'm responding to one.
-
Hmm... your idea sounds interesting. But, I'm almost a total novice at programming. So, while this club is made for people who can program, can I still turn to you guys for troubleshooting ideas and advice?
-
Bush needs to go period.
-
You know what, HiddenKenshin? You seem like a pretty interesting person. It's pretty cool of you to thank the Admin people who run the site. Either that, or you really ARE sucking up...But now I can't wait to get my site. Now you're making me impatient!
-
Permission Problem With Mysql Database Creation Please Help
iGuest replied to DaEmOnFiRe's topic in Programming
Cpanel adds the user-name prefix. Are you allowing for that? -
World's Costliest Phone Earn A Guiness Record
iGuest replied to miCRoSCoPiC^eaRthLinG's topic in Websites and Web Designing
Oh, my god! That is like the Rolls Royce of cellphones! It's so... EXPENSIVE. Do people really have that much money these days? God, and I thought these JEANS were expensive...Yeesh, don't people have anything better to do with their money? IF YOU HAVE A MILLION AND A THIRD DOLLARS TO BURN, GIVE SOME TO CHARITY MAYBE! Don't people have any concience at all? How selfish, to spend SO much on a stupid phone. Now, to spend that much on a stupid phone and then give the phone to ME, well, that's a COMPLETELY different story! -
I don't get what some of these people are saying about cingular. I have a cingular phone, and I love it! It has cool screensavers, a picture-taker (you know what I mean! CAMERA!) and it plays music. I don't know about any dropped calls. Then again, I don't really call with it much. I'm too busy having fun with it's other features! Take it from me, cingular isn't as bad as some of these people are saying. Why don't you just test a couple of phones out yourself and see what works be for you?PS- brand names don't mean everything! It's not a BIG deal wheter your phone is a motorola or verizon, just as long as it works!
-
That sounds really cool. I would LOVE that (lord knows when I last remembered to floss), but I definately wouldn't want to be the guiney pig. I don't care WHAT you pay me, I am letting NO ONE test that sort of thing on ME. But that is a great idea. However, there is one problem you might want to consider- what happens if you sneeze?
-
I always kinda thought there was something going on behind the scenes... I don't think it's at THAT level yet, but there are some things I find intruiging. For exaple, every morning, five days a week, eight or nine months a year for twelve years, everybody has to say the Pledge of Alligence. I stopped saying that way back in sixth grade, when I first realized they were brainwashing us. Well, maybe not BRAINWASHING, but I still think there's something fishy about it.I would warn a lot more people about my suspisions than the few I've told, but I figured we're minors anyway, so we can't LEGALLY pledge ourselves to anything.And despite what the haters say, I am NOT paranoid. *Annoyed*
-
My science teacher rants about the horrors of global warming ALL the time. Well, she is whenever I actually happen to be listening, anyway. But the other day, my friend raised an interesting point. Global Warming isn't necasserily ALL bad. Like, global warming means longer summers, and longer summers means more time out on my boat! Whoo! I know, I know, it isn't fair to the polar bears. But maybe THEY should get a boat, that way they can apprectiate the summers, too!
-
Twiggy, you rock. I started this whole "make my own website" thing because my mom won't let me have a MySpace. I wasn't very pleased about missing out, but now I feel better. See, she freaks out every time there's another story on the news about how yet another girl has gotten raped through MySpace. But apparently, no one she's seen has gotten raped through their own website, so this is perfectly fine (no, I don't understand her reasoning, either). But, yeah, I was kinda bummed when she first denied me a MySpace, because a lot of my friends have them. But apparently, I'm not missing out, right?