View Full Version : [forum]Stupid Spacy Thingy!
Sixthcrusifix
24-09-2005, 21:07
Every 50 characters this stupid program puts a space in the middle of the word! Even if there wasn't one and even if the word fits! What the hell? That sucks. I realise there aren't many real words that have 50+ letters but there are other things that I might want to write (Like scripts) that do and that makes no sense! I feel like I'm being controled by this word limiting garble! And I don't even think Garble is a word! See this:
11111111111111111111111111111111111111111111111111 111111
it has 56 characters and the last 6 are seperated for some reason.
And I'f I'm posting some cool script for RMXP or PHP or something and one of the lines is realy long it wil giv eit a space, but if people do that they could screw something up.
Grace Saunders
24-09-2005, 21:23
I can't say I've noticed anything wrong.
No RMXP/PHP line should have 50 characters without a space.
I know because Ive dabbled in RMXP and am quite good at PHP.
No RMXP/PHP line should have 50 characters without a space.
I know because Ive dabbled in RMXP and am quite good at PHP.
I also know this because I work in RGSS, there is no word with no space longer then 50character
Sixthcrusifix
25-09-2005, 00:05
No RMXP/PHP line should have 50 characters without a space.
I know because Ive dabbled in RMXP and am quite good at PHP.
Os so because you've dabbled in RMXP that makes you the Masiah of RGGS huh?
When you get into name specific things it gets QUITE long.
include"/drive2/fpgshttpd/sixthcrusifix/default_header.php";
That in itself is 75 characters long. However for some reason the spacy thing doesn't do it after the " / " symbol...
Here's another peice of code from my websit:
$go'userpage.php$__$img'userpage.gif'$border'0'$al t'$user'sPage'$border'0'$__$go_
It's 100 Characters long.
EDIT: WHoa! I prove my point! You see that space by $alt??? That's not really there! And you know what, that space actually does effect this in a negative way, that's the middle of a variable name!
I mean I see your point, it's rare that you have such long strings but it DOES happen.
And @ DarkAkiko ALSO: What's with all these Holy Scripters? No offence but just because you've done something doesn't mean you know ALL about it. WHy would I post this thread if I didn't have examples?
RUBY:
$game_map.wrap.push(Sprite_Duplicate.new(viewport, character,(-$game_map.width*32),0))
That's 85 Characters. Granted there ARE places you could space there the fact is there aren't. And if you stuck a space where it didn't belong it would be bad. PS: That space after viewport isn't really there, however; this time it isn't hurting anything.
It's not going to kill anyone but it's still annoying,.
whats with your bad attitude? It stinks, you know, you need to sort it our moron.
Btw: 1) this has nothing to do with the forum whats so ever
2) what I ment by my post is, it wont **** anything up, so stop being such a rude moron and get over with it. All it takes is a simple disclimar saying: they're maybe spaces that may cause errors.
3) All you do on this forum is complain, get the **** over with it.
I'm sorry if this sounds rude, but we're not having a go at you or being rude at you at the start, then you come out with this on here, and its not just on HHN you do it, ive seen you on RMXP.net too, just stfu, if you have nothing nice to say dont say it at all.
4) I cant say im an expert at PHP or know anything at all, but im sure
include"/drive2/fpgshttpd/sixthcrusifix/default_header.php";
that doesnt need to be that long,
When you get into name specific things it gets QUITE long.
include"/drive2/fpgshttpd/sixthcrusifix/default_header.php";
worst coding style ever...
Besides, you never need to use the full path for including a file. You can always work with relative paths, if you code smart. Alternatively, chdir() is a wonderful little function.
Here's another peice of code from my websit:
$go'userpage.php$__$img'userpage.gif'$border'0'$al t'$user'sPage'$border'0'$__$go_
It's 100 Characters long.That is not PHP. That is random letters with the $ symbol placed in between. I have coded <a href="">'s and <img src="" />'s where variables need to be in the HTML, but it has never looked that ****ed up.
If you want to share this type of coding with the community, then please don't. There are enough bad coding styles out there, without that sort of filth adding to it.
So as I said, if you code smart, you will never have that many characters without a space.
Sixthcrusifix
26-09-2005, 09:17
worst coding style ever...
Besides, you never need to use the full path for including a file. You can always work with relative paths, if you code smart. Alternatively, chdir() is a wonderful little function.
That is not PHP. That is random letters with the $ symbol placed in between. I have coded <a href="">'s and <img src="" />'s where variables need to be in the HTML, but it has never looked that ****ed up.
If you want to share this type of coding with the community, then please don't. There are enough bad coding styles out there, without that sort of filth adding to it.
So as I said, if you code smart, you will never have that many characters without a space.
NO actually I cannot do it that way I HAVE to include the whole path because my server doesn't allow anything else.
And it's not just letters, they're variables. And you may think it's shitty but when you find something else that can cut your filesize/character size in HALF then pass it on down. Because that 85 or so characters of variables and information replaces about 150 characters of HTML and I have pretty much all of the basics of html stuck in variables so I can make my files as small as possible because I only have 350 MB of space and every little kilobyte counts. And don't be an asshole, what you're looking at is pretty raw anyway. It's the begginings of a script I'm creating that will basically allow you to use an extremely advanced version of BB code to code your PHP site.
You'll be able to do things like:
TITLE !!
Which will put out:
<span style="color:980000;"><h1>TITLE!</h1></span>
WIth that code you're dissing I can create a text box, assign it a max character value and a size with 3 variables and then the output is a javascript "characters left" counter which displays a smaller box with numbers that decrease in real time to show you how many characters you have left. You'll later be able to do that with:
You have 3000 Characters, click here to type
for this:
<textarea name="neo_message" rows="5" cols="58" wrap="physical" id="message" onkeydown="textCounter(this.form.message, this.form.remLen,200);" onkeyup="textCounter(this.form.message, this.form.remLen,200);"></textarea>
<input name="remLen" id="remLen" value="3000" size="3" maxlength="3" readonly="readonly" type="text">characters left.
I'm ALL or saving space. And anyway you seem to think it looks "****ed up", why? Until I'm done with everything I am just using straight variables for my site, and EVERYTHING must be in variables cuz it's too messy to have html mixed with them. In this way the source files of most of my pages have only 1 echo and nothing but single quotes, and many variables do the job of a lot of lines of HTML. Look here:
http://www.freepgs.com/sixthcrusifix/MAIN/TEST.php
(Although it's not a great example cuz I could have reduced the size to 200 or so if I just used a loop, :P)
And by the way, if you thought THAT looked ****ed up take a look at this:
<?php
################################################## ################################################## #################
#################### VV HEADER VV ################################################## ###############################
include "default_header.php";
#################### ^^HEADER^^ ################################################## ###############################
################################################## ################################################## #################
####################V V BODY V V################################################# ################################
include "defaultcss.php"; //VERY IMPORTANT!!!
bgcolor(000000);
?>
<?
echo("
$table_1
$center
$main_category
$category
$tr
$content
$TS4
Hello, and welcome to $br The Final Destiny.$br Online portfolio for Sage Brush Fire.$br And Computer Geek Resource!
$br You are currently viewing site $br in $red")
?>
<? if(isset($screen)){echo($screen);}?>
<?
echo(" $red_
Screen Resolution Mode!
$br3
-
$go'http:/\/freepgs.com/sixthcrusifix/TFD'$_ $b Forums$b_ $l_-
$link login.php $__ $b Log In $b_ $l_-
$link register.php $__ $b Sign Up $b_ $l_-
$br What screen resolution would you like to view the site in?
$SELF_FORM
$select'res' $_
$opt 800x600$opt_
$opt 1024x768$opt_
$sel_$_
$input'submit' $value'GO!'$_
$form_end
$br
$day_proper
$TS_end1
$trtd_
$bottom
$br
$tr_
$category
$tr
$content
$center
$text $cols'45' $rows'7' $align'center'
\<<UPDATES>>
-Le 13, Janvier 2005
Okay, site layout is almost complete, thanx to my wonderfull creation, PHPstyle.
Making the templates etc. is UBBER easy! However, site content is another thing.
It's not hard, but I simply don't have the time. I need staff members.
If interested, Please contact me at sixthcrusifix@yahoo.com
With \"Staff Application\" In the subject.
-December 19, 2004-
You can now sign up! YOu can also log in, and log out.
There are no actual benifites to being a member so far, but
if you sign up you'll be in our database. There will be special benofites
for members only. Currently there is no e-mail verification for new
sign ups, but we're working on it and it should be up soon!
-December 17, 2004-
New templates are being made, The loging script is being finished too!
Soon you wil be able to register to the site and log in as a user!
You can set your template preferences, build an artwork wishlist and maintain your own personal profile page :D
-November 28, 2004-
New Template is Being made, Its not the best but
It is a work in progress. By december, the Image Gallery will be
FULLY FUNCTIONAL! And some of the tutorials too!
$text_
$br
$time_info___
$div_end
$tr_
$bottom
$main_bottom
$div_end
$table_end");
?>
<?php
include "default_menu.php";
?>
<?
if(isset($play_music) && ($play_music == "yes"))
{
echo('
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="2" HEIGHT="2" id="SECRET" ALIGN="">
<PARAM NAME=movie VALUE="SECRET.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#ffffff> <EMBED src="SECRET.swf" quality=high bgcolor=#ffffff WIDTH="2" HEIGHT="2" NAME="SECRET" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
');
}
?>
You'd never believe me if I told you it actually simplifies things, but it does. Perhaps we just have different logic, and Besides, it's my site so I do what easiest for me, who cares about other people, they won't be seeing my site's guts, just the output.
And lastly, telling me that my coding it shit and that I shouldn't share it with people, isn't exactly an excuse as to why this spacing problem shouldn't be fixed. In fact it just sorta makes you look like a jerk.
NO actually I cannot do it that way I HAVE to include the whole path because my server doesn't allow anything else.I recommend a change of hosts. My host is highly stable and excellent, and for $5 a month. www.vistapages.com, check it out.
And it's not just letters, they're variables. And you may think it's shitty but when you find something else that can cut your filesize/character size in HALF then pass it on down. Because that 85 or so characters of variables and information replaces about 150 characters of HTML and I have pretty much all of the basics of html stuck in variables so I can make my files as small as possible because I only have 350 MB of space and every little kilobyte counts. And don't be an asshole, what you're looking at is pretty raw anyway. It's the begginings of a script I'm creating that will basically allow you to use an extremely advanced version of BB code to code your PHP site.Lmao, BBCode parsing like that already exists in the vBulletin source code, and that is highly dynamic, which would allow you to define a search and replace for storage in the DB and have the script parse it on the fly. As far as filesize goes, it would be a LOT smaller than what you are trying to produce. Of course, this requires a mySQL DB, which I bet your host does not offer.
I'm ALL or saving space. And anyway you seem to think it looks "****ed up", why? Until I'm done with everything I am just using straight variables for my site, and EVERYTHING must be in variables cuz it's too messy to have html mixed with them.Well when you are done, send me the complete source code and I might search through it for optimisations in ways of coding and filesize, if you want.
You'd never believe me if I told you it actually simplifies things, but it does. Perhaps we just have different logic, and Besides, it's my site so I do what easiest for me, who cares about other people, they won't be seeing my site's guts, just the output.True, but you are the one coding it, and possibly developing it further. Believe me, when you get more serious with your coding and try to develop larger projects, youll want your code to be as readable as possible, so you can look it over later (much later in time) and still remember wth you were trying to do ;)
And lastly, telling me that my coding it shit and that I shouldn't share it with people, isn't exactly an excuse as to why this spacing problem shouldn't be fixed. In fact it just sorta makes you look like a jerk.I never claimed it was a bug nor that it shouldn't be fixed, I just said that coding something that long without a space leads to difficulties later on, for you as the coder or for users if you plan to release your code. (Not neccessarily THAT script, Im just talking as a dev who released some of his work).
Zidane007nl
26-09-2005, 17:21
I'm going to close this thread, before it's getting out of hand.
There's no need to change the coding for that.
You should really learn better scripting, because I can't understand that a variable is 50 characters or more. And, if your host doesn't allow that, get a better one or setup a localhost.
» Closed!
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.