-
Posts
132 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Everything posted by Diesl
-
Well, they did say they were going to adopt a more "google-like" update schedule. If its a new one every 3 months, than it would mean 4 versions per year.. which isn't that bad. I haven't tested FF5 yet, but will get around to it eventually.
-
@illusions - no that will not work cross browser and does not factor in pages that are potentially longer or shorter. You can tackle this 3 ways 1) (preferred way). Your div class bg_m has a defined width. Why don't you use create a background image for it that has the border patterns on the left and right sides? For a visual example, go here: https://forum.tera-europe.com/forumdisplay.php and look at how they use the background image on the class body_wrapper 2) In CSS3, there is a new border-image feature which lets you turn a border into an image. I don't recommend this as not all browsers are CSS3 compliant, but it could be interesting: http://www.css3.info/preview/border-image/ 3) Use JavaScript/jQuery to detect the height of your document and then bind the height to your border images. I don't recommend this as it can break with certain css, and will definitely not work if a user doesn't have JavaScript enabled.
-
That's too bad. I was looking forward to seeing Federation54. What is your new project? Good luck with the sales. The cities look really good.
-
Make sure to not design your layout too wide. I'm on my laptop (1280x800) and just from your screenshot I had to scroll horizontally just a little bit. The most common website width is 960px.
-
I can tell you that I make $30-35/month just from Google Ads. Hard to say what my monthly is because I've had times when I've made quite a lot in a short span of time, been in the negatives for a few months (forcing me to cut back on ad spending) been a few months where I break even and then had surges again.
-
Regardless of if it has been done before, it would add a good dimension to your game if you added it. The trick would be to make it more than just a "pay XXX to fix your weapon capability". If you were to design a more in-depth system, it would add to the uniqueness of your game.
-
I just had a look at my Google Analytics the other day, and noticed that for the month of May, the highest screen resolution (by quite a margin) that visited my game was 240x160. This has been an increasing trend over the last while, so it is not something to ignore. When I first designed my layout, I didn't take the time to modify it to be suitable for mobile devices, as I thought that most of my players would be using a desktop or laptop. That was quite naive of me, and I'm looking to do a re-design that would better support my mobile device users. I am aiming to design a flexible CSS3 layout that customizes depending on the size of your browsers. You can see how it is done here: http://webdesignerwall.com/tutorials/adaptive-mobile-design-with-css3-media-queries My question is, what sort of things are you doing to support mobile users in terms of UI?
-
A game engine should work out of the box without errors, so yes they are issues as well (not sure about #1 as it could be lack of knowledge to run crons on his part).
-
50p? Well I guess the price shows the quality. At least I can see you know how to use the bevel and emboss feature.
-
CSS would be the preferred method to use now-a-days (JavaScript was the old way). It is much cleaner and shorter. Not all users may have JavaScript enabled on their browser, and their may be instances of a flashing image when a user rolls over the button (if the rollover image is not cached or pre-loaded properly). Also, you only need to make 1 http per button with CSS rather than 2 with JavaScript. @lucky3809 - you can make the CSS code reference all images in the desired area. It is a different set up, but look at how Apple does it on their navigation. They just need one css rule for each rollover. Very simple and easy.
-
People here are so critical :rolleyes: A lot of big name web companies offer "unlimited storage space". The definition is a bit confusing, but use some common sense. Don't be so nit picky. The only problem I can foresee is that since you are based in Albania, you might have a more difficult time drawing in Clients from North America and UK due to server distance. But, good luck to you. Your website is very nicely designed and professional.
-
There are a lot of nice graphic elements in your game. Good luck to you.
-
This new version of the foums is annoying
Diesl replied to scorpiic venom's topic in Feedback and Site Support
http://cogdogblog.com/2009/08/01/pretty-code/ While it's not built for vBulletin, perhaps it can be adapted? -
PAGINATION FUNCTION This a pagination function that makes the presentation of the total list of available pages much cleaner and user-friendly. Features can be used anywhere in your game ability to customize how many pages are displayed in the spread CSS styled pagination elements First Page and Last Page buttons How to Use The pagination function calls for 5 arguments; $total, $action, $page, $perpage, $spread. $total: the total number of entries to use in your pagination. Ex. If this function was used for your events, you would need to send in the total number of events for the given user. $action: the function requires you to use a $_GET action parameter to send the user back to the correct page. If you are using a different parameter, or not using a parameter at all, the function can be easily modified to accomodate $page: what page the user is currently on $perpage: how many instances you want to display (default 25) $spread: the maximum number of pages you want to show between the first and last button (default 5) The function will print out the page list.The function will return the value of the current page that you are on, so that you can use it in your query. (Example of using the function: Events page) //count all instances of events $t=$db->query("SELECT count(*) FROM events WHERE evUSER={$ir['userid']}"); $total = $db->fetch_single($t); //check to see that page from the $_GET is not empty if(empty($_GET['page'])) { $ID=1; } else { $ID = $_GET['page']; } //how many events per page $events_per_page = 25; //do pagination, grab the starting event instance $start=pagination($total, "events", $ID, $events_per_page, 5); $q=$db->query("SELECT * FROM events WHERE evUSER={$ir['userid']} ORDER BY evTIME DESC LIMIT ".$start.", $events_per_page"); The returned value will be whatever page the user is currently on multiplied by the total number of events per page. This will be used as the starting value for the LIMIT in our query. Function Code PHP code: /* ------- pagination function ------- $total: number of instances to consider $page: what page the user is on $perpage: sorting how many instances per page is shown $action: the $_GET action parameter (ex. ?action=index) $spread: how many page option links sit between the first and last links */ function pagination($total, $action, $page = 1, $perpage = 25, $spread = 5) { global $db; //return nothing as the total number of instances is less than the per page sort if($total < $perpage) { return 0; } $page=abs(intval($page)); //Calculate the last page $lastpage=floor($total/$perpage); //Class for page links $span_pre="<span class='pagelist'>"; $span_suf="</span>"; //Color styling for page link that the user is on $font_pre="<font color='red' weight='bold'>"; $font_suf="</font>"; //checking what the distance is away from the median of the spread (rounded to highest int) $spread_dist=intval($spread/2); //check if the total number of instances is great enough that first and last links are needed. $totalspread=$spread+2; if(($total/$perpage) >= $totalspread) { //Only show first link when player isn't viewing the first page if($page > ($spread_dist+1)) { //Show First link print "<a href='?action=$action&page=1'>".$span_pre."<< First".$span_suf."</a>.."; $start_point = $page-$spread_dist; $end_point = $spread; } else { //Player is on first page already $start_point=1; } //Only show last link when player isn't viewing the last page if($page < ($lastpage-($spread_dist))) { //Show last link $lastlink="..<a href='?action=$action&page=$lastpage'>".$span_pre."Last >>".$span_suf."</a>"; $end_point = $page+$spread_dist+1; if($start_point == 1) { $end_point = $start_point + $spread; } } else { //Player is on last page already $end_point=$lastpage+1; if($end_point > ($lastpage - $spread_dist)) { $start_point=$lastpage-$spread+1; } } //Inbetween pages for ($x = $start_point; $x < $end_point; $x++) { if($x==$page) { print"<a href='?action=$action&page=$x'>".$span_pre.$font_pre.$x.$font_suf.$span_suf."</a>"; } else { print"<a href='?action=$action&page=$x'>".$span_pre.$x.$span_suf."</a>"; } } print $lastlink; return ($page-1)*$perpage; } else { for ($x = 1; $x <= $lastpage+1; $x++) { if($x==$page) { print"<a href='?action=$action&page=$x'>".$span_pre.$font_pre.$x.$font_suf.$span_suf."</a>"; } else { print"<a href='?action=$action&page=$x'>".$span_pre.$x.$span_suf."</a>"; } } return ($page-1)*$perpage; } } CSS code: [CSS] .pagelist { border: 1px solid #444444; padding: 2px 6px; text-decoration: none; font-size:12px; } [/CSS]
-
This happens for me in FF 4 as well.
-
Well, you need to start somewhere. Good that you're sticking with it Kieran-R. Good luck to you.
-
http://blog.jquery.com/2011/05/03/jquery-16-released/ The update of the boolean attribute looks quite handy. Performance boosts are always a plus.
-
http://redux.mccodes.com/index.php?page=itemmarket Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/redux/public_html/Mods/itemmarket.php on line 61 http://redux.mccodes.com/index.php?page=yourgang&action=donate That looks pretty ugly, and the tables are huge for the space needed (viewed on Chrome).
-
Looks good! You may want to look at the line spacing of some of your texts, they are really close together vertically in many areas. Also, I would suggest trying to give a modern look to your forms. There is quite a bit of documentation/tutorials and examples on how to Web 2.0 style your buttons. You can even do it with CSS.
-
on line 153, you are using echo ' (single quote rather than double quotes) change to echo "
-
To add on, You are only filtering for given character values in your string. While you maybe eliminating character values that are used in an SQL injection, what a_bertrand said is much more efficient and clean. Also, since I see that you are using this in some sort of message query, you are going to strip possible characters that the user would use normally in the chat, such as a question mark, period, etc. That is not ideal at all.
-
Well, if you are asking about potential new servers, either you should look at a VPS or Dedicated server Some discussion here: http://makewebgames.io/showthread.php/38912-Hosting-your-game Otherwise, many shared hosts do not offer low time interval cron jobs as they tend to eat up a lot of CPU process power. However, you might be able to find some if you dig around a lot, or you can talk to Peter @ w3hosting, since I know that his hosting plans accommodate it.
-
Prison Survival - Out Rank, Out Will, Out Last
Diesl replied to daftrude's topic in General Discussion
With that attitude, how do you expect us to be helpful/productive? The most constructive that you really need, is that you need to develop more before you show it off and open it up to the general public for comments. Your mods (besides the minor UI tweaks) are basically bonuses for being active, which are nice to have, but don't contribute to making your game unique. That and, your game ran really slow (could be hosting issues, memory leaks or lack of query optimization). We all have lives outside this forum, glad that you have one as well. We are not claiming it to be a race, we are saying you should spend more time than just a week on your project before you show it off as you have. Those who have made successful games have worked on it for many months before releasing it for beta testing. If we are in fact being "captain obvious" then why are you being so defensive and retorting so vigorously? Perhaps we are putting a dent into your ego. If you are going to continue this way, then you won't find any help here. Good luck. -
Looks like Microsoft is dropping IE 10 support for Vista http://www.pcmag.com/article2/0,2817,2383640,00.asp
-
I probably speak on behalf of many others here, but I have no idea what a "bloodlines effect" is. Could you go into more detail about what you are trying to accomplish? From what I am guessing so far, you have some sort of feature that when a player reaches a certain stage, their base energy increases by 300?