This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - squidgetx
Pages: 1 ... 32 33 [34] 35 36 ... 123
496
« on: September 24, 2011, 10:13:48 pm »
I googled and I became hopelessly confused...Does anyone have a table or something for the syntax and special char parameters for RewriteRule?
Edit: I added this line to .htaccess RewriteRule ^([^/]*)$ /index.php?p=$1 [L] and it just killed my CSS...aka the page loads with no styling O_o.
497
« on: September 24, 2011, 03:47:48 pm »
What are A,B,C and D? Friction should be applied to H, the x velocity. As in H>>0-(H<<0)->S //get direction of velocity If S //if we're moving H-S->H //decrease velocity by 1 in the opposite direction End H<<0-(H>>0)->S If +H->H End
498
« on: September 24, 2011, 03:30:26 pm »
We're live Now I'm wondering if it's a good idea to change to individual pages (no php/mysql) to deal with navigation, just for cleanliness and search visibility :* Since adding a new comic entails going to the file manager to upload a new file and change the value of $max AND then going into mySQL to enter the title/alt text I feel like it's pretty much the same amount of work either way... Oh, and is there a way to strip the .html off the end of the url of an hmtl file (in the address bar)
499
« on: September 23, 2011, 09:57:36 pm »
Hey guys, I've started a webcomic (golly gee whiz!) Anyway, here it is: shakespeare's comicsUh, not sure if this should go into web dev or here...lol Feedback/criticism/tell your friends pl0x Thanks to Eeems, juju, and cooliojazz for all their help with setting up the site.
500
« on: September 22, 2011, 10:13:18 pm »
I ended up using w3 to figure it out before I saw your post O_o thanks though ahaha. Anyway, looks like I've got everything done Titles, alts, and tags all get fetched out of a mySQL using $cur, there's also a $max which helps the navigation buttons work perfectly. Thanks guys! Now to wrap up the layout and CSS...
501
« on: September 22, 2011, 08:24:45 pm »
I'd like to learn the best and most efficient way to do things haha. I don't mind adding in MySQL, I think I've got a handle on PHP.
I tried looking up MySQL and I got a lot of info on how to create and manipulate data tables; but I'm really looking for just a way to access a data table? How can you do that?
502
« on: September 21, 2011, 11:30:56 pm »
Haha, well I'll wait until I get it working completely before I do anything...atm I'm just using a random free host to test out the php and stuff.
The xml isn't working, plus I realized it's probably not the best idea to load and parse a large xml file every time a page loads, so I think I'll go with what Eeems suggested instead. I can keep the many .txt files in another directory to avoid clutter...
503
« on: September 21, 2011, 10:36:07 pm »
Done. I may make changes to it later.
I gotta finish up these levels and get a release out soon :* maybe this weekend after I finish up a couple of essays...
504
« on: September 21, 2011, 05:37:10 pm »
I think I can figure this out...
On a new subject, what are some good free webhosting places? I'm looking for some 200+mb space, php, and ad-free. Also it would be nice if the hosting is reliable, etc. and doesn't insert their own scripts into my webpages
505
« on: September 21, 2011, 04:56:33 pm »
So every comic would then be accompanied by 2 txt files, one like named alt1 and the other named title1? I see how I can use file_get_contents, but is there a way to have all the titles and text in one file? Or am I not understanding what you're saying?
506
« on: September 21, 2011, 03:47:48 pm »
Ok, I see. Wow, php is pretty powerful lol. And then for alt text and stuff should I use an xml file?
<1><title>Title</title><alt>Alt text</alt></1> <h2><?php echo $xml->$cur->title ?> </h2> <img.... title=<?php $xml->$cur->alt ?>>
Does this work?
507
« on: September 21, 2011, 11:15:38 am »
<?php $cur = $_GET['p']; ?> <a href="/?p=<?php echo $cur - 1; ?>"><img src="thebestprevbuttonever"></a><a href="/?p=<?php echo $cur + 1; ?>"><img src="thebestnextbuttonever"></a> This would show two buttons, one linking to the previous comic, one linking to the next. (You could also add something like changing "$cur - 1" to "$cur > 0 ? $cur - 1 : 0" and "$cur + 1" to "$cur < $max ? $cur + 1 : $max" for safety as long as you always changed $max to the current comic number) Need anything else?
Oh wow, I didn't realize that php outputs html LOL. Thanks . So just to clarify, I would then have to name each comic's page /?p=#, correct?
508
« on: September 20, 2011, 11:00:45 pm »
Hmm, could I get some help? It's kinda annoying that I can't test out PHP scripts offline, i'm waiting for the nameservers to resolve atm.
I see that the $_GET function gets the variable off the url, so if the variable is p and the url is blah/?p=10 the $_GET[p]=1, right? Then what- do you just do like $_GET[p]+1=$_GET[p]?
509
« on: September 20, 2011, 09:57:17 pm »
Yeah, so I'm starting my first foray into web development (yay!) And I'm trying to build a webcomic (yay!) Except I don't know how. I get html and css, the design isn't the problem. The problem for me are the "next" and "previous" buttons. I can think of two ways to make them work properly: 1) Every webpage has unique hyperlinks (pain in the butt and kinda inefficient) 2) Use some scripty thing to define where these buttons will direct the user. So, my question is, what's the best way to do this? Am I overestimating how inefficient option 1 will be? How can I even do option 2? I skimmed over some javascript/php/asp tutorials but nothing jumped out at me as being able to do this. Note: The comics would be numbered I guess. Like XKCD and cyanide/happiness and every other webcomic there is. LOL Thanks in advance
510
« on: September 19, 2011, 11:25:07 pm »
So buttsfredkin suggested I write a tutorial on this subject, so I guess I might as well. This tutorial is going to be a little less structured than usual; I'm just going to list off a series of bullet point tips for you guys. Enjoy! Note; For clarity purposes I've left the code relatively unoptimized. - You can make menus sparkle a little with some animations. The most common one I like to use is a wipe-in effect. This can be accomplished with the use of acceleration and velocity to control the piece of text. Place the text in an array with ptr, xpos, ypos, xvel, and yvel. Sometimes, if you are having the text come in horizontally or vertically, you can save some time by omitting the appropriate values. For more information on acceleration, check out the specific tutorials thread for some simple explanations in the physics tutorials. The key here is that you want to start the text object with some starting velocity, and then have it decelerate so that it will slow and then stop. This can actually apply to many things, not just text; some examples can be menu cursors, borders, map tiles, and more.
"Text"->Str1 0->X 40->V While V //While it has some velocity Text(X/8,Y,Str1) //We'll use *8 precision V-1->V+X->X //Decrease velocity by 1 and add it to the position End - Borders-You want to make a 'window border' for your menu, but you don't want a plain old box.... Well, there are many things you can do. Here are some of the menu variations I use:
Rect(x,y,w,h) RectI(x+1,y+1,w-2,h-2) Rect(x,y,w,h)^^r RectI(x+2,y+2,w-4,h-4 Rect(x,y,w,h) RectI(x+2,y+2,w-4,h-4) Pxl-off(x,y) Pxl-off(x+w,y) Pxl-off(x,y+h) Pxl-off(x+w,y+h)
Use your imagination! - Custom Fonts- They are cool. I don't know if there's been a tutorial on this before, but it's pretty straightforward.
.Let's pretend that the fontset is stored in Pic1 Lbl W //write routine, arguments are x, y and pointer to text For(E,0,length(r3)-1) //For the length of the word Pt-On(E*8+r1,r2,{r3+E}-$41*8+Pic1) //Take value of text character and use it to draw the letter. End - Random aesthetic things: I've run out of things for now, so I'll just talk about random things. Circles and lines look good behind text. Check out Space Dash title screen for an example (link in sig). Grayscale layering effects are also very nice: copy L6 to L3, clear L6 and DispGraph^^r; again, you can see this in Space Dash (And Gravity Guy). Something that I haven't done before but also looks very nice is menu highlighting;akin to mouseovers, except on the calc. Oh, and make sure everything is always centered; that always makes everything look better.
Well I'm done for now, I might add some more stuff if I can think of it in the morning.
Pages: 1 ... 32 33 [34] 35 36 ... 123
|