scootstah
Staff Alumni-
Posts
3,858 -
Joined
-
Last visited
-
Days Won
29
Everything posted by scootstah
-
So does practically every CMS ever made.
-
Need your opinion on our new design
scootstah replied to Pavel Burminsky's topic in Website Critique
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. -
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?
-
How do I display questions from checkboxes?
scootstah replied to sonnieboy's topic in Third Party Scripts
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 />'; } -
Transitioning from Joomla to PHP Framework
scootstah replied to MatthewSchenker's topic in Frameworks
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. -
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.
-
Transitioning from Joomla to PHP Framework
scootstah replied to MatthewSchenker's topic in Frameworks
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. -
Maybe "delete" is the submit button or something.
-
Have you checked that $_POST['delete_goauld'] is set?
-
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.
-
I know... I try to hate it, but the things it does to URL routing is just too awesome.
-
Haha. Glad I'm not the only one. >_>
-
Ah, makes sense then. Of course the determined abuser could just cURL the server to get the API key whenever he wanted to.
-
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.
-
It means "append the stuff on the right to the variable on the left". $foo = 'foo'; // $foo is "foo" $foo .= 'bar'; // $foo is "foobar"
-
Because you have the tables inside the while loop.
-
Using Jquery each() to veiw individual divs (modals)
scootstah replied to son.of.the.morning's topic in Javascript Help
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> -
Maybe I'm just slow today. Why couldn't the offending server just generate the current time as well?
-
I'll give you a hint: $events = ''; while ($row = mysql_fetch_array($query)){ $events .= '<option value="' . $row['eventname'] . '">' . $row['eventname'] . '</option>'; }
-
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.