Jump to content
xisto Community

sonesay

Members
  • Content Count

    958
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by sonesay

  1. Thanks I like it too but I think its too plain on the panels I will try and paint some wear and tear on it when I get a chance. Right now I'm trying to figure out a good way to slice it up and put it into xhtml and css. Heres what I've done so far http://forums.xisto.com/no_longer_exists/ The upper panels seem to be ok because it does not need to stretch unlike my left, center and right panels they need to be expandable vertically depending on how much content is there so I need to come up with a method for doing that. I was thinking have top section and footer of it as an image and the middle part as a scalable image. Still not 100% what will work but atleast I have an idea lol. I changed the orange color panel to red. It looks more evil in red. Oh yeah the glossy black panel for my headings are from a link someone put on itrap. Thanks for sharing it saved me alot of time since creating them is time consuming. I realised one major flaw though the whole witdh is like 1022 it dosent allow any room for scrolling bars on 1024x768 so theres an ugly horizontal scrolling bar for you 1024x768 users. I know its bad practice to do that but going back to change things now would be work I dont want to do at this time. I just wanna carry on seee if I can get a working and complete template. heres a screen shot just incase I update the site later
  2. I never used file maker pro before. I've only used oracle and mysql and MS access. I think one disadvantage to filemaker pro is that its not as widely used as others and maybe the cost too. But I have not personally used it so I dont know how good it is and if its worth the money when mysql is free depending on what type of licence I think. Is filemaker pro similar to acess with a GUI?
  3. When my friend first told me about it I thought it was a aussie country dance lol. Its pretty cool but crazy kind of dance lol kids these days. Some of the moves look like the running man lol. When I see my aussie mates I got another thing to tease them about Hey do you do the Melbourne Shuffle over in aussie? http://forums.xisto.com/no_longer_exists/
  4. This is my new template I'm going to be using for my new site. It took me 3 days to do. I spend day 1 drawing it up sorry I cannot upload my draft sketch as my scanner is not working. The next 2 days I spent drawing it up in photoshop. The colours are kinda generic I know but thats my style. I cant seem to create anything other then grey toned things. I think adding some decay onto the panels will give it some depth something my style of drawing lacks. The panels - I like as many panels as I can so I went with the 3 column layout and extra 2 side header panels for shouts and login information maybe. Directly below the header panel will be navigation which should just be text and CSS.Content center panel is for content what else. Side left and right panels for extra controls maybe login section.Now the tough part now is figuring out a way to cut and build it in xhtml and css.Tiling background - I dont know if its been coverd in tutorials here but I couldnt find any in our forums when I was looking to make some of my own. The key for tiles without much work in PS using filters is to have dimensions to the power of 2. For example 16,32,64,128,256 etc. I only just learned this myself from reading online tutorials on it. Some of them I couldnt get to work but the key is having them to the power of 2. Most filters will render tiling images by default if your documents match that dimensions. I used 512 x 512 since smaller sizes would be noticable repeats once tiled. well let me know what you think? any tips for improvements? Also I'm looking for any good links for creating textures in PS. The good ones are hard to find if you know any please tell me.
  5. I dont use flat files well files on their own just to hold data. Although I do keep a few arrays stored in a PHP file just to use it may be considered the same thing. There is an advantage here since its in a PHP file there is no wait time for retriving it from a database. If you have static data that seldom changes and is required often by many processes having this setup will be more effect then having them stored in a database. If on the other hand you have to update it often then flat files are very bad as its much slower to update because the program will have to read each line untill it finds the correct entry then perform the update. If the list gets very long it can be very slow. In this case a database is more effective.
  6. Im sorry but your not very clear please rewrite it so we can understand better what you are trying to do exactly. I got the part about you wanting to have an input text box and button for submitting. I dont know what you want to do here exactly. Create a whole new php file? or just add the entry to your case switch.
  7. Very weird problem. One thing you should do is plug the 3.5 mm jack into a MP3 Player or other device to make sure its not the source of the sound. Well if your able to use headphones then it should mean theres nothing wrong with your PC audio output. I'm afraid the problem would lie somewhere between your 3.5mm audio cable to the amp and output speakers. But yeah the reason to plug the speakers into another audio source that you know works is to eliminate the possiblity that the source is causing the problem. If its showing the same problem pluged into another source then its your speaker system. Good luck
  8. doing push ups only work out some parts of your upper body and arms. You need to do other exercises that work out other muscles as well. Do everything, sit-ups, weights etc.
  9. Its true wireless can be hacked but there are many different levels of encryption. Not every body is going to have a hacker living near them to hack into their wireless network and if you do you will want to pust very long passwords and use the highest encryption you have available. This will atleast make it very slow and painful for them to hack into your wireless network. Now the effects of wireless networks affecting your brain I dont know. It probably does to some level but who knows what effect it has on us. If theses are the only reason your mum wont let you get a wireless then its not that good IMO. If you cant put holes in your walls then just run a long cable to your router/modem and get some nails with plastic cuppling to nail it into the base of the walls to keep it nice and neat. Thats what I do with one of my wired connections you dont have to put a hole in the wall but you can still have wired internet just means more money for longer cables.Theres no reason not to be able to get a long cable if your mum wont let you do that lol I feel sorry for you.
  10. wow thats some nice work there. I'm not a big fan of that style of art but I do apprecaite good work when I see them. If I had that as my own work for a portolio I would be pround, you must be. Keep doing what your doing you'll only improved and dont worry about what people say too much theres always going to be people who see it differently. Just take their comments and decide for yourself if they are right. I could point out alot of things I'd like differently but I would only mention one as the others dont really annoy me. The FLash page opening up in a new window is kinda annoying and if you can make it open in the same window it would annoy less people IMO.
  11. price dosent matter? i would say go for this one then http://www.alienware.com/main.aspx the duel video card that would be very good for anything from gaming to video editing? HDD is only 160 gb though so it will run out fast once you start loading stuff into your laptop.
  12. Yeah thanks alot man it works beautifuly. Solved that problem with your code but it showed me another flaw in my programming lol. because I'm reloading each merit skill individually and my integrity checks arnt exactly working with multiple ajax calls, I'm starting to think i need to just group them and reload them together instead of individually. Its ugly this way and I didnt want to have to resort to it but I may have to.heres whats happening 19 skills to load...skill 1 loaded (button disabled)... skill 2 loaded (button disabled)... skill 3 loaded (button disabled)... skill 4 loading (button not disabled)... skill 5 loading (button not disabled)...so in that example only 1-3 is loaded the rest is loading and user clicks button. this vokes the disable function and does ajax calls. since other buttons were not loaded yet they continue loading active lol. So a user can click it right away and execute two ajax calls messing up data integrity. Yes its my bad programming logic I am gonna think about what I'm gonna do to address it. Most likely group them up and elimiate this individual reload problem all together./sigh
  13. Can you provide more information maybe some code for us to? If the error is only happening with includes then the error should be in the included file. Its hard to tell with not much info. Do you get any syntax errors? If you have a link post it.
  14. I've never used ftp manager in cpanel it probbaly works if its there. lol give it a go. I'm not too sure about how they do updates. 1 forum package i was using required you to just upload newer files and it updated to a new version. I think you should look at backing up your forum database regularly if you intend to have copies just incase something goes wrong. I think 'myPHPadmin' in cpanal allows you to make backups of the databse.
  15. lol to upload files to Xisto servers you need a ftp program. I'm not sure if they allow any other methods but you also need ftp address and passwordit should be the same as your cpanel password and usernamesftp address: ftp.sonesay.trap17.comusername: sonesaypassword: passwordthats an example of my ftp account.
  16. maybe this is what you are looking for http://www.anelectron.com/board/index.php?tid=289
  17. I wll try your code next. Its about lunch time now and I need to go make something to eat. I think I have serious problems when all the individual divs get reloaded. The buttons dont seem to be disabled yet I get no error from fire bug. I know its gonna be difficult to explain since I do have alot of other JS code running when a button is pressed. heres my code so far for my specific layout . it returns no errors yet dosent seem to work. for (var i = 0; i < y.length; i++){ // loop for buttons in child div. y.disabled = true; z = y.getElementsByTagName('button'); z.disabled=true; } } linenums:0'>function disable_btn(div_id) { x = document.getElementById(div_id) // get main div y = x.getElementsByTagName('div'); // get child divs for (var i = 0; i < y.length; i++){ // loop for buttons in child div. y.disabled = true; z = y.getElementsByTagName('button'); z.disabled=true; } } Whats suppose to happen is when 1 button is pressed this code is suppose to run and disable all other buttons. oh 1 last question about your code will it get the buttons iside the child div's if I just pass it the parent div id? be back in 30mins or so lunch time.
  18. nice that looks like it will work. Mine isnt working at the moment I still havent figured out how to correctly reference the child nodes.heres an example of my layout echo "<div id='combat_skills_merits' class='merit_groups'>"; echo "<span class='merit_cpl'>"; echo "Max Combo: 20"; echo "</span>"; echo "<br />"; echo "<span class='merit_cpl'>"; echo "Weapon Skills - Max Item: 8 Cost: 1>2>3>3>3>3>3>3"; echo "</span>"; echo "<div id='hand2hand_merits'>"; echo "</div>"; echo "<div id='dagger_merits'>"; echo "</div>"; echo "<div id='sword_merits'>"; echo "</div>"; echo "<div id='great_sword_merits'>"; echo "</div>"; echo "<div id='axe_merits'>"; echo "</div>"; echo "<div id='great_axe_merits'>"; echo "</div>"; echo "<div id='scythe_merits'>"; echo "</div>"; echo "<div id='polearm_merits'>"; echo "</div>"; echo "<div id='katana_merits'>"; echo "</div>"; echo "<div id='great_katana_merits'>"; echo "</div>"; echo "<div id='club_merits'>"; echo "</div>"; echo "<div id='staff_merits'>"; echo "</div>"; echo "<div id='archery_merits'>"; echo "</div>"; echo "<div id='marksmanship_merits'>"; echo "</div>"; echo "<div id='throwing_merits'>"; echo "</div>";echo "<span class='merit_cpl'>"; echo "Defensive Skills - Max Item: 4 Cost: 1>2>3>3"; echo "</span>"; echo "<div id='guarding_merits'>"; echo "</div>"; echo "<div id='evasion_merits'>"; echo "</div>"; echo "<div id='shield_merits'>"; echo "</div>"; echo "<div id='parrying_merits'>"; echo "</div>"; echo "</div>"; the buttons them selves are inside the individual skills e.g hand2hand_merits div, dagger_merits div... but I'm trying to make a function to first get the main container div which in this case is <div id='combat_skills_merits' then count child divs (19) in total for this one. and then acess button nodes in each one and disable them.edit: sorry i didnt explain in more detail first time round. I need it this way so I can reuse the function for different sections of the page.
  19. I've seen a loop where a form element is counted and then a loop executed to process each form element. I think the same can be done here for buttons I just cant seem to find example codes for counting elements when I am actually looking for one. [hr=noshade] [/hr] Ok I think I'ved found it. looked around in w3schools and found http://forums.xisto.com/no_longer_exists/ x = document.getElementById('combat_skills_merits').getElementsByTagName("div").length; I'm assuming x will be an array containing those object nodes and I can acess them with x.button.disabled='true'; going to try it now.
  20. I need help to write a function to disable all buttons iside a div ID. if possible the function will disable all buttons even the ones inside child divs belonging to the main div.
  21. sorry i did not read your javascript code. I usually don't read long lines of code until I'm fully awake, bored or really have to. But from what you said you want to store variables from javascript to mysql database? well only way to do that is pass javascript variables to PHP. Thats the quick answer. method 1. post javascript variables using 'get' or 'post' and grabs those in PHP then do mysql queries.method 2. post javascript variables using ajax (post or get) and do the same thing in PHP and Mysql.method 1 is more simpler if you are not familiar with ajax just yet.
  22. I think your suppose to unzip those files locally on your desktop first then open up the folder and have a read through the readme files. I've never tried unzipping on a remote server before. You have to read the instructions that come with the program if there is any.
  23. Heres my merit system at its current stage. http://forums.xisto.com/no_longer_exists/ note: select a character from the drop down list to see output. I've been working on this locally on my mac and because of little or no delay I did not see the problem until I decided to upload to the WWW. The problem lies in the adding of merits to each category. Although there are integrity checks on the PHP side before executing the update to mysql database it somehow fails because of the lag. i.e multiple 'add' buttons can be pressed before the section gets reloaded. so if your modifying the 'Combat Skill' category and its 19/20 you should only be able to add one more merit. But because of page reloading delay you are able to hit more buttons before it finishes reloading. my function to modify merits. if ($mm_mode == "remove") { // check if merit is equal or above 1 before lowering by 1 // get users merits $q1 = "SELECT ".$mm_merit." FROM ".$mm_table." WHERE c_id = ".$mm_c_id; $r1 = mysql_query($q1, $link); while ($m = mysql_fetch_array($r1)) { $mm_new_level = $m[$mm_merit]; } if($mm_new_level > 0) { $mm_new_level--; // update hp level $q2 = "UPDATE ".$mm_table." SET ".$mm_merit." = ".$mm_new_level . " WHERE c_id = " . $mm_c_id; mysql_query($q2, $link); } } if ($mm_mode == "add") { $q1 = "SELECT ".$mm_merit." FROM ".$mm_table." WHERE c_id = ".$mm_c_id; $r1 = mysql_query($q1, $link); while ($m = mysql_fetch_array($r1)) { $mm_new_level = $m[$mm_merit]; } // check if under max combo and item limit before adding. if($mm_new_level < $mm_item_limit && $mm_new_level < $mm_combo_limit) { $mm_new_level++; // update hp level $q2 = "UPDATE ".$mm_table." SET ".$mm_merit." = ".$mm_new_level . " WHERE c_id = " . $mm_c_id; mysql_query($q2, $link); } } } linenums:0'>function modify_merit($mm_c_id, $mm_mode, $mm_merit, $mm_combo_limit, $mm_item_limit, $mm_table) { include('../db.php'); if ($mm_mode == "remove") { // check if merit is equal or above 1 before lowering by 1 // get users merits $q1 = "SELECT ".$mm_merit." FROM ".$mm_table." WHERE c_id = ".$mm_c_id; $r1 = mysql_query($q1, $link); while ($m = mysql_fetch_array($r1)) { $mm_new_level = $m[$mm_merit]; } if($mm_new_level > 0) { $mm_new_level--; // update hp level $q2 = "UPDATE ".$mm_table." SET ".$mm_merit." = ".$mm_new_level . " WHERE c_id = " . $mm_c_id; mysql_query($q2, $link); } } if ($mm_mode == "add") { $q1 = "SELECT ".$mm_merit." FROM ".$mm_table." WHERE c_id = ".$mm_c_id; $r1 = mysql_query($q1, $link); while ($m = mysql_fetch_array($r1)) { $mm_new_level = $m[$mm_merit]; } // check if under max combo and item limit before adding. if($mm_new_level < $mm_item_limit && $mm_new_level < $mm_combo_limit) { $mm_new_level++; // update hp level $q2 = "UPDATE ".$mm_table." SET ".$mm_merit." = ".$mm_new_level . " WHERE c_id = " . $mm_c_id; mysql_query($q2, $link); } }} each button pressed is added like this } linenums:0'>if($merit == "sword_level") { modify_merit($c_id, $mode, $merit, 20, 8, 'combat_skill'); } I know I cant blame lag being the cause of my problem its my code. There are two options at this stage I can think of 1. Redo all the sections and reload all Div's in the same category all at once so there is no way to press more then 2 buttons. e.g if HP merit is incresed the whole HPMP div reloads at once so there is no chance to hit the add MP button causing 8 max combo constraint to fail. 2. Use java script to disable all add buttons in the category being modified until its fully reloaded(not sure this will work). What do you think would be the best way to fix this?
  24. sonesay

    Ajax question

    The output was just an echo of "1"; I just did that to test out to change the original value of 0 to 1.I dont think it gets put on a new line because of insuficent width space. because the final output is like this.'General''1''<button>'when the original output is 'General' '1' '<button>'I tested it out on fire fox, safari and opera i believe and it does have the same effect on all 3.I am using a DTD of strict xhtml 1.0 maybe that has something to do with it. At this stage I'm happy with reloading an entire div just to keep moving forward on my project. Hopefully someone with similar issues or know a way do this method can let us know. I have posted this issue on ext forums but no response so far over there.thank you again for your response.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.