Jump to content

Spixxx

Members
  • Posts

    29
  • Joined

  • Last visited

    Never

Everything posted by Spixxx

  1. Hm, thanks but I dont think thats it. I could be wrong...
  2. I get what youre saying, but if you edit an index.php file of any wordpress site, in it you won't see the header displayed. You won't see a PHP include either, you just see: ...and thats it. How is header.php being included?
  3. How does wordpress and other similar CMS/applications replace their div elements? For example, if you view the source code of a wordpress site, you will only see: Where, the above code is clearing being switched out for "header.php". How is this done? I believe it's php and jquery, but I would be wrong. Thanks!
  4. Spixxx

    Smoothing text

    I can't download the file the generator creates. It says I havent agreed that I am allowed to use my font, when I clearly check the terms&conditions box on the previous page. Try it, theres a problem with their generator.
  5. Spixxx

    Smoothing text

    I said it was still unsure how to use it. I didn't say I couldn't find it...don't be a smart ass.
  6. Spixxx

    Smoothing text

    Yea I found that, but I am unsure how to use it. Thanks though
  7. Spixxx

    Smoothing text

    http://www.templateaccess.com/demos/webrainbow-3d-html/portfolio.html On a website like this, how do they smooth the fonts? I know its not text on the website, I think it's an image. But the input for it is just <h1>Your text here</h1> And somehow it turns into smooth text, or an image. Is this css? If not, how can this be achieved. It looks very nice.
  8. Hm, thanks. I'm just not sure how to completely customize it (put menus where I want and stuff) versus changing the look of it. Thanks, though; you got me on the right track.
  9. Okay, that was my first hunch. As for the customizing aspect, how do I skin/modify a zen-cart? Is there a way to build my site and simply enter a block of code and just put snippets everywhere (ie below) <html> <head></head> <body> Header {log-in} BlahBlahBlah {left-menu} BlahBlahBLah {zen-footer} </body> </html> ...like that? OR would I be better off going to their support forums? Thanks man.
  10. Hello everyone, I am pretty familiar with creating sites, as far as PHP, HTML, CSS, photoshop and etc but I am now creating a site for my clients Store. He wants an online store with a blog, and a few pages. Basically a CMS with a storefront/ecommerce. My question is what should I use? Wordpress, drupal? Or go with just an e-commerce like zen-cart? I usually edit the pages myself, but I need to make it so it is dummy-proof and he can manage the whole site without any help. Add products, categories, news, edit blog, etc. I am good with graphics and had a site layed out, but which CMS/ecommerce is most customizable to the point where I can integrate it seamlessly? Any thoughts, ideas, etc? Thanks in advance, I appreciate the help.
  11. No, but if there is only one option you care about ie wether the checkbox is checked, then echo Checkbox: Yes, but if it isnt checked, then dont display anything you could just do [code] if($checkbox_variable == "on"){ echo "Checkbox: Yes";} [/code] ...with no else statement Thats about as short as it gets Try it.
  12. Here's what happened Instead of [code] <?php include ("phpFunctions.inc"); $title = $_GET['title']; echo("<title>Article: $type</title>"); ?> [/code] You supposed to use [code] <?php include ("phpFunctions.inc"); $title = $_POST['title']; echo("<title>Article: $type</title>"); ?> [/code] Because the hidden field grabbed the GET variable of title, and has it...that part works. But when you submit the form, it uses get, but instead since there are no GET variables in the voting table, just use POST. Try that, and if not try using method="post" in your form Hope it helps...
  13. Unchecked checkboxes have the value off, and checked have the value on. You do not need to define any values in the actual <input type="checkbox" etc> tag. In the $subject, or whatever use this: [code] if($checkbox_variable == "on"){ echo "Checkbox: Yes";} else{ echo "Checkbox: No"; } [/code] Or replace Yes/No with whatever the checkbox is concerning... Hope it helps.
  14. Ok, here's the deal: I have a dropdown that has the values No(selected) and Yes I want to have an invisible dropdown that will show if the user selects Yes above, and dissapear if they change it back to know. Things to know: My form name is "file_editor" My Yes/No dropdown name is "is_backup" My function for this is called "showSelect" Thanks for all help!!
  15. My friend posted about this and said his post was gone the next day...so I helped him with $i++;, but he never got this answered, and Im using the same script... [code] <?php $number="5"; $directory ="upload/"; if ($_POST){ for ($i=0;$i<$number;$i++){ if (trim($_FILES['myfiles']['name'][$i])!=""){ $newfile = $directory.$_FILES['myfiles']['name'][$i]; move_uploaded_file($_FILES['myfiles']['tmp_name'][$i], $newfile); $j++; } } } if (isset($j)&&$j>0){ ACTION HERE } echo "<form method='post' enctype='multipart/form-data'>"; for($i=0;$i<$number;$i++){ echo "<input type='file' name='myfiles[]' size='30'><br>";} echo "<input type='submit' name='action' value='Upload'>"; echo "</form>"; ?> [/code] Few questions: 1) What would "ACTION HERE" be if I wanted to echo a _blank link to each of the newly uploaded files? 2) How could I make a form to specify a number 1-9, and use that in place of $number? And continue w/ rest of form 3) How could I make a dropdown with different directory names to upload the file(s) into? (i.e. ../images, .current folder, ../images/something)
  16. I got help from another forum, but as of now disregard the above, I have one last question on this subject My huge code: [a href=\"http://www.fefusion.net/spx/code.txt\" target=\"_blank\"]http://www.fefusion.net/spx/code.txt[/a] Here's what it does, forget the bottom part, but at the top... The beggining form shows an input box and a dropdown to specify wether the file is a backup file If it is, then it does its own thing, and forgets the bottom part, which would be if it WASNT a backup file It goes to a new page, posts the backup/$filename in a textarea, and you can edit/save it. But when I click save, it doesnt save and it disregards this whole section: [code] if($submit3 == "Save"){BLAH} [/code] ...and doesnt save or echo $filename Updated, just goes back to the first form, which was if(!$submit1){} I know its long and everything but it would be greatly appreciated if someone would tell me what I did wrong...probably some small mistake grr... Thanks.
  17. My bad my server was acting up, the link should work now... If you have questions IM me at nitejag.
  18. Mind re-writting your question? I don't quite understand...
  19. The answer if you need to have a hidden input. Example: You have a form, a user submits the data, and is sent to another form within the same php code. You want to use the data from a previous field, or maybe even 2 or 3 forms back. Use this: [code] <input type="hidden" name="something" value="$something"> [/code] Put that in a form to use that data in the next form, and even if you use it then, you need to use that everytime for the following page/form. I probably made it more complicated that it really is...but you'll get the idea.
  20. First off, here's a link to my code, because I dont know but it wont post the topic if I include it...I have no idea why: [a href=\"http://www.fefusion.net/spx/code.txt\" target=\"_blank\"]http://www.fefusion.net/spx/code.txt[/a] Everything works its just that when I edit the file in the second page, the... [code] echo "<input type='hidden' name='data' value='$data'>"; [/code] ...messes up the second page and displays random input buttons, text, etc What other way can I do this while still preserving the orginal $data before replaceIn() and use the old $data for the next page?
  21. [code] <script language="javascript"> beg = "on"; adv = "off"; function mode(level){ if(level == "beg"){ beg = "on"; adv = "off";} if(level == "adv"){ beg = "off"; adv = "on";} } function bold() { if(beg == "on"){document.editor.area.value = document.editor.area.value + "<b>\nYour Text Here\n</b>";} if(adv == "on"){document.editor.area.value = document.editor.area.value + "<b></b>";} } </script> <form name="editor"> <textarea name="area" rows="6" cols="25"> </textarea> <br> <b>Mode: </b> <input type="radio" name="mode" onclick="mode(beg)" checked>Begginer    <input type="radio" name="mode" onclick="mode(adv)">Advanced <br> <input type="button" value="Bold" onClick="bold()"> <br> <input type="submit" name="submit" value="Submit"> </form> [/code] It works when I click Bold Text, it inserts the [code]<b>Your Text Here</b>[/code] But when I try advanced mode, it still inserts ^THAT instead of [code] <b></b> [/code] What did I do wrong??
  22. Eh, I tried a different way and it works [code] <?php $number = 5; $directory  = "upload/"; if ($_POST) { for ($i=0;$i<$number;$i++) { if (trim($_FILES['myfiles']['name'][$i])!="") { $newfile = $directory.$_FILES['myfiles']['name'][$i]; move_uploaded_file($_FILES['myfiles']['tmp_name'][$i], $newfile); $j++; } } } if (isset($j)&&$j>0) echo "Your file(s) has been uploaded.<br>"; echo "<form method='post' enctype='multipart/form-data'>"; for($i=0;$i<$number;$i++) { echo "<input type='file' name='myfiles[]' size='30'><br>"; } echo "<input type='submit' name='action' value='Upload'>"; echo "</form>"; ?> [/code] But how can I echo links to the file(s) uploaded when done uploading??
  23. I did, copied exact thing, didn't work. Error reporting didnt help...
  24. My bad, I fixed that before someone replied, thanks. But it still gets the same error...
×
×
  • Create New...

Important Information

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.