chicka Posted June 3, 2009 Posted June 3, 2009 Well I was getting tired of the same old link to search the streets so I decided to add an image that you can click on instead of the link.. First upload an image that you wanna use for your streets.. In streets.php look for: print " > <a href=streets.php>Continue Searching</a> "; replace that with ";print " "; you will have to obviously change the your image.jpg to what ever pic your using but it works good for me.. Quote
chicka Posted June 3, 2009 Author Posted June 3, 2009 Re: Street Images thank you... that small little thing took for ever to figure out Quote
Uridium Posted June 3, 2009 Posted June 3, 2009 Re: Street Images Its the small things that make a big difference to a script and how it looks :) if you wanted to create a button then you could always goto www.grsites.com for your buttons and banners you can create your own styles has some nice effects aswell Quote
chicka Posted June 3, 2009 Author Posted June 3, 2009 Re: Street Images i'll go check that out right now.. i'm always looking for ways to better the look of the game... i'm still new at all this so anything that I can learn i'm always interested Quote
CrazyT Posted June 3, 2009 Posted June 3, 2009 Re: Street Images You just gave me a idea, so here i go lol. Everytime you click search in streets.php a diff image shows... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Count how many streets there are (if using database) then just make street images like.. 1.png, 2.png, 3.png *me thinks its a good idea lol. If not database can just do like. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
chicka Posted June 3, 2009 Author Posted June 3, 2009 Re: Street Images hey thats a good idea.. have you tested it to see if that would work??? if so great.. i'll try it out Quote
CrazyT Posted June 3, 2009 Posted June 3, 2009 Re: Street Images hey thats a good idea.. have you tested it to see if that would work??? if so great.. i'll try it out No i haven't tested it. It will work.. how i have done it. :-D Quote
virtualshogun Posted June 13, 2009 Posted June 13, 2009 Re: Street Images $chance = rand(1,10); if ($chance == 1) { $spinpicA = 'streets1.jpg'; //random event or thing or nothing... } if ($chance == 2) { $spinpicA = 'streets2.jpg'; } if ($chance == 3) { $spinpicA = 'streets3.jpg'; } if ($chance == 4) { $spinpicA = 'streets4.jpg'; } if ($chance == 5) { $spinpicA = 'streets5.jpg'; } if ($chance == 6) { $spinpicA = 'streets6.jpg'; } if ($chance == 7) { $spinpicA = 'streets7.jpg'; } if ($chance == 8) { $spinpicA = 'streets8.jpg'; } if ($chance == 9) { $spinpicA = 'streets9.jpg'; } if ($chance == 10) { $spinpicA = 'streets10.jpg'; } print "<img src=$spinpicA 'width=500' 'height=300'> "; there you go, Quote
Lithium Posted June 13, 2009 Posted June 13, 2009 Re: Street Images $chance = rand(1,10); if ($chance == 1) { $spinpicA = 'streets1.jpg'; //random event or thing or nothing... } if ($chance == 2) { $spinpicA = 'streets2.jpg'; } if ($chance == 3) { $spinpicA = 'streets3.jpg'; } if ($chance == 4) { $spinpicA = 'streets4.jpg'; } if ($chance == 5) { $spinpicA = 'streets5.jpg'; } if ($chance == 6) { $spinpicA = 'streets6.jpg'; } if ($chance == 7) { $spinpicA = 'streets7.jpg'; } if ($chance == 8) { $spinpicA = 'streets8.jpg'; } if ($chance == 9) { $spinpicA = 'streets9.jpg'; } if ($chance == 10) { $spinpicA = 'streets10.jpg'; } print "<img src=$spinpicA 'width=500' 'height=300'> "; there you go, You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Prolly you save a few lines like this? Quote
virtualshogun Posted June 13, 2009 Posted June 13, 2009 Re: Street Images or put it into an array for even shorter $chance = rand(1,10); $Spic = array("streets1.jpg","streets2.jpg","streets3.jpg","streets4.jpg","streets5.jpg","streets6.jpg","streets7.jpg","streets8.jpg","streets9.jpg","streets10.jpg"); $Showpic = ($Spic, $chance); print "<img src=$Showpic 'width=500' 'height=300'> "; Quote
Lithium Posted June 13, 2009 Posted June 13, 2009 Re: Street Images hmmm shorter? 3 lines vs 4 is not shorter... unless my math is wrong Quote
virtualshogun Posted June 13, 2009 Posted June 13, 2009 Re: Street Images eh true, different ways to skin the same cat im guessing and no your math isnt bad :D Quote
CrazyT Posted June 13, 2009 Posted June 13, 2009 Re: Street Images eh true, different ways to skin the same cat im guessing and no your math isnt bad :D The one i said was just simple can be used. Quote
chicka Posted June 13, 2009 Author Posted June 13, 2009 Re: Street Images i'm not a pro at this by any means but by looking at all the ideas, they would all work just the same.. +1 to all of you.. either which way you do it, it will work Quote
mr_shuu Posted July 14, 2009 Posted July 14, 2009 Re: Street Images so now how can search the streets be set up to have different locations.. if in london search these streets... if location NY... and then according to levels... so a level one can not search in NY Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.