Jump to content

scootstah

Staff Alumni
  • Posts

    3,858
  • Joined

  • Last visited

  • Days Won

    29

Everything posted by scootstah

  1. I don't know. Just stuck with me from all those years ago I guess.
  2. So does practically every CMS ever made.
  3. I found a minor annoyance. If you hover over the top navigation links, they turn blue but are only clickable if you are actually over the text.
  4. You have generic metadata, but not page specific data. If you write an article about fishing and then another article about soccer, shouldn't they have separate search criteria?
  5. It's exactly what you want. In your form, you name the related checkboxes the same thing with square brackets. So like, <input type="checkbox" name="chk[]" value="1" /> <input type="checkbox" name="chk[]" value="2" /> <input type="checkbox" name="chk[]" value="3" /> <input type="checkbox" name="chk[]" value="4" /> <input type="checkbox" name="chk[]" value="5" /> <input type="checkbox" name="chk[]" value="6" /> Now in PHP, $_POST['chk'] will be an array of all clicked-on checkboxes. So you could loop through them and echo them out like this: foreach($_POST['chk'] as $chk) { echo 'You selected choice ' . $chk . '<br />'; }
  6. Joomla kind of sits on the line between CMS and framework, to be honest. What I'm getting at though, is that a CMS is more of an "end product" that you finely tune for your needs. It is already a specific application to do a specific set of functions. A framework is just a bunch of libraries, or "tools", to build an application. You can download any existing CMS, install it, and have a fully functional website in 5 minutes. When you install a framework, all you have is "Welcome to Such and such Framework". I guess I don't understand the question you are asking. Decide what type of application you are building and then find the right tool for the job. The right tool won't always be a framework, and it won't always be a CMS. You can pretty much build any kind of website with any platform out there. Joomla has enough plugins to do pretty much anything imaginable, but then again so does most of the frameworks out there. It basically comes down to how hard you want to work to achieve your goal, or what you are most comfortable working with. If you are very comfortable with Joomla then you can probably build a better website with it than you could with any other tool.
  7. You won't be able to deter a determined user when you're dealing with client-side JavaScript code. You can make it annoying and time-consuming, but not impossible. Indeed. And the more annoying and time consuming you make it, the more the person probably wants it - just so they can spite you.
  8. We're talking about storing the query in a variable.
  9. Well, you're comparing a CMS to a framework when in reality they aren't really comparable. A CMS is a specific application, whereas a framework is simply a set of tools to create an application. It's like comparing a car to a wrench.
  10. Maybe "delete" is the submit button or something.
  11. Have you checked that $_POST['delete_goauld'] is set?
  12. IMO it is nothing special. It's not revolutionary, but it's pretty much my only positive thought about Wordpress. It's obvious that elegant code isn't what makes things popular lol.
  13. I know... I try to hate it, but the things it does to URL routing is just too awesome.
  14. Haha. Glad I'm not the only one. >_>
  15. Ah, makes sense then. Of course the determined abuser could just cURL the server to get the API key whenever he wanted to.
  16. Pssshhh. I do use double quotes for queries like that, but I still concatenate it. So it would look like this: $query = "SELECT * FROM table_name WHERE field_id = '" . $fieldID . "'"; Meh. I usually use a database wrapper so I hardly ever write a query like that anyway.
  17. Looks good - simple, good design, seems responsive. I would add some metadata options to pages, so that you can specify a page title, meta keywords, a meta description, etc - for SEO purposes. Also use SEO friendly URL's. "elementa/?id=4" is pretty ugly. Also, you are vulnerable to CSRF attacks in the dashboard. P.S. I made a page called "testtest" that I can't figure out how to delete - sorry about that.
  18. It means "append the stuff on the right to the variable on the left". $foo = 'foo'; // $foo is "foo" $foo .= 'bar'; // $foo is "foobar"
  19. I find that syntax ugly, so I always concatenate. Actually, I find double quotes to be ugly in general so I avoid them like the plague unless I need to use special characters (like \n).
  20. Because you have the tables inside the while loop.
  21. So then do this: $(document).ready(function(){ $('.basic').click(function(e){ e.preventDefault(); $(this).children('div.hidden').modal(); }); }); <style type="text/css">.hidden { display:none; }</style> <a class="basic"> <div class="hidden">Lorem Ipsum</div> </a>
  22. Maybe I'm just slow today. Why couldn't the offending server just generate the current time as well?
  23. True, but then again if the pattern already had escaped delimiters then you'd totally botch it up. For example if the pattern was "~a string with \~ in it~" then it would end up "~a string with \\~ in it~". So you'd need regex to validate your regex. o.O
  24. I'll give you a hint: $events = ''; while ($row = mysql_fetch_array($query)){ $events .= '<option value="' . $row['eventname'] . '">' . $row['eventname'] . '</option>'; }
  25. gap8u: You should be using version control. And/or a deployment system (which you can also do with version control, somewhat). You should never just push files to a live server with no fallback plan. Eek.
×
×
  • 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.