Gary King 37 PHP/vBulletin Guru Team Colleague

Yep, congratulations on the job well done from me too, Dani.

Also, on a side note sarahk, that is precisely how I operate every morning as well (or late at night), since those emails are typically sent around midnight (depends on the server's timezone, too, of course.)

Gary King 37 PHP/vBulletin Guru Team Colleague

Yep, TS2 definitely rocks :) Great recommendation! :D

Gary King 37 PHP/vBulletin Guru Team Colleague

[Linker error] undefined reference to `GetStockObject@4'

I get a bunch of errors when trying to Compile & Run this.

Gary King 37 PHP/vBulletin Guru Team Colleague

Here's a good book to learn how to use Ruby: http://www.math.umd.edu/~dcarrera/ruby/0.3/

Gary King 37 PHP/vBulletin Guru Team Colleague

The send method, when used on any object, can have an indefinite number of arguments passed to it.

Gary King 37 PHP/vBulletin Guru Team Colleague

Tell W3C.

I think deprecting tags is like telling English speaking people they can't use the words "program." "can," and "tree" anymore.

And notice that their replacement solutions for everything they deprecate uses more typing.

Just because it's deprecated doesn't mean it can't be used anymore. We'll have to wait another 10 years for that to happen ;)

Gary King 37 PHP/vBulletin Guru Team Colleague

Try using controller.env, where controller is the name of the controller where you are using this.

Gary King 37 PHP/vBulletin Guru Team Colleague

Here's a good place to start.

Gary King 37 PHP/vBulletin Guru Team Colleague

I would prefer seeing this forum renamed Ruby on Rails because Rails is really what gave Ruby a huge boost in familiarity among most people.

Gary King 37 PHP/vBulletin Guru Team Colleague

The JavaScript forum would better serve your question :)

Gary King 37 PHP/vBulletin Guru Team Colleague

I give another vote to http://poignantguide.net/ruby/ :)

Also, I think that the Wikipedia article for RoR is not really a good resource for learning how to write Ruby.

Gary King 37 PHP/vBulletin Guru Team Colleague

env["QUERY_STRING"] should work.

Gary King 37 PHP/vBulletin Guru Team Colleague

I give another vote to http://poignantguide.net/ruby/ :)

Gary King 37 PHP/vBulletin Guru Team Colleague

Use www.php.net/preg_match to match the particular contents that you want from the page.

Gary King 37 PHP/vBulletin Guru Team Colleague

There isn't much that you need besides www.php.net/file and www.php.net/file_get_contents

Those should get you started.

Gary King 37 PHP/vBulletin Guru Team Colleague
<?php

if ($_GET['dlurl'])
{
	header('Content-type: application/pdf');
	header('Content-Disposition: attachment; filename="downloaded.pdf"');
	readfile('original.pdf');
}

?>

as an example.

Gary King 37 PHP/vBulletin Guru Team Colleague

Which version of PHP do you have? I would have thought MediaWiki supports all the way to PHP 4.

Gary King 37 PHP/vBulletin Guru Team Colleague

So

$message = "The following was submitted:\n\n";
foreach($fields as $f => $v)
{
	if ($v)
		$message .= sprintf("%20s:  %s\n",$v,$_REQUEST[$f]);
}

?

Gary King 37 PHP/vBulletin Guru Team Colleague

I know Ruby on Rails, but there aren't enough posts right now on DaniWeb about RoR to justify a new forum for it. It is becoming more and more popular each day, but that doesn't mean that every website needs to have a forum about it, IMO. It's not a framework that's as easy to pick up as, say, a language like PHP, which we have a forum for, and we have lots of pretty newbie PHP programmers come here. If there were RoR questions, chances are that those developers would be knowledgeable enough to seek other ways to solve their problems, like mailing lists, IRC, etc. and wouldn't come to DaniWeb, where we don't serve the hardcore programmer as much. Just my 2 cents :)

Gary King 37 PHP/vBulletin Guru Team Colleague

Use <input type="checkbox" name="checkbox[]" value="your value" />
Keep using that for your checkboxes, but just change value="". It will put all your checkbox values into the $_REQUEST[checkbox][] array. Then on the next page and the page after, etc. etc., just output this into HTML:

<?php

$previous_checkboxes = '';
foreach ($_REQUEST['checkbox'] as $value)
{
    $previous_checkboxes .= '<input type="hidden" name="checkbox" value="' . $value . '" />';
}

?>
Gary King 37 PHP/vBulletin Guru Team Colleague

SnagIt! is also a very good screencap tool, but it's rather expensive.

I use SnagIt too. I like the company's products in general, such as Camtasia Studio, for making videos of your desktop.

Gary King 37 PHP/vBulletin Guru Team Colleague

Yeah, a Java applet is better, or a Flash file, than PHP for video chat.

Gary King 37 PHP/vBulletin Guru Team Colleague

I'm sure you can, although I don't know the specifics.

Gary King 37 PHP/vBulletin Guru Team Colleague

Bud I'm not really sure what you're getting at but, DaniWeb News and Feedback is not a Sub-Forum. It's a Forum Under a Forum Category.

A sub-forum would be the MySQL forum under the Database forum. Which is under the Web Development Category.

""""""""""""
sorry if this isn't what you are referring to, but it's what your post looks like it refers to.

If you read my post carefully, you will see that I said

Take the subforums in DaniWeb News and Feedback

As you can see, I said the subforums IN that forum. There are 3, last time I checked. (At least for me. Certain users can see more or less, depending on your usergroup.)

Gary King 37 PHP/vBulletin Guru Team Colleague

I'm sure there are more students than professionals on these forums :)

Gary King 37 PHP/vBulletin Guru Team Colleague

The subforums are poorly laid out. Take the subforums in DaniWeb News and Feedback as an example.

Gary King 37 PHP/vBulletin Guru Team Colleague

Show the subforums on the forum index so we can see what subforums exist. With the way it is now, people don't even know that most of the subforums exist. I wasn't even aware that this forum (DaniWeb News and Feedback) even had subforums until I opened it. There is a vBulletin Option to show subforums on the forum index.

Gary King 37 PHP/vBulletin Guru Team Colleague

You don't have to get really advanced to get the time :) There is already a built-in function for that that can do all of that in one line.

if (date('A') == 'AM')
{
  // it is AM
}
else
{
  // it is PM
}
Gary King 37 PHP/vBulletin Guru Team Colleague
Gary King 37 PHP/vBulletin Guru Team Colleague

http://statcounter.com/ is another good service for this. I suggest using whatever control panel you have available to you and using that instead, though, since those are often more powerful. I'm talking about products such as Urchin, AWStats, etc.

Gary King 37 PHP/vBulletin Guru Team Colleague

The MySQL server also needs to be running before using it. It is not like PHP, since PHP only runs when it needs to. Start -> Run -> "services.msc" -> Enter. Then select the MySQL service and hit 'Start'.

Gary King 37 PHP/vBulletin Guru Team Colleague

Have you googled?

I found the following for you:

http://www.a1javascripts.com

I don't think these are what he wants. He wants something like: http://www.php.net/quickref.php

Gary King 37 PHP/vBulletin Guru Team Colleague

Just download WAMP for Windows or LAMP for Linux. I'm unsure if those complete packages still exist, but give it a try. It downloads the entire set for you and you can install it as a bundle... I believe.

Gary King 37 PHP/vBulletin Guru Team Colleague

You'll need to explain your problem more clearly. I have a hard time understanding what you are trying to accomplish.

Gary King 37 PHP/vBulletin Guru Team Colleague

Probably about 7 hours for me on a typical weekday?

Gary King 37 PHP/vBulletin Guru Team Colleague

I like it, it's attractive.

Gary King 37 PHP/vBulletin Guru Team Colleague

I think the space between the last post of the thread and the Quick Reply box is too far. There are the ads, and then the Similar Threads. I suggest making the Google ad a leaderboard instead, so that it stretches horizontally and saves space, and move the similar threads below the quick reply box, since repliers are not typically the ones who will be going to the similar threads.

In conclusion, I think that Daniweb is going in the right direction nonetheless. Good job, and I truly commend you and the "team" for working so hard to get this looking how it is now, and as far as it is now :)

And where IS vBulletin 3.5 anyway? The upgrade more of a challenge than anticipated?

I think they started designing before 3.5 final was out.

Also, the homepage Featured Blogs? They don't show who the author is for them. Show the author. The Featured Forum Threads should also show the Date Posted and the Author. Show a rating for the threads, as well, so users can quickly see which are reputable. Otherwise, it seems that you are suggesting that they ALL are top notch articles. If you show the thread ratings, then at least people have a say.

The tiny font looks unprofessional to me.

Gary King 37 PHP/vBulletin Guru Team Colleague

Nice job, Dani!

But, where's vBulletin 3.5 (Ajax)? Different colors for each category? And please increase depth of forums shown on forum index. This new layout has a bit of a learning curve for those who are used to the old one. Even for me, I sort of had to go "whoa" and blink my eyes to re-coordinate myself. I mean, it definitely looks like and less like vBulletin and more and more like a corporation's forum, which in a way is nice. In my opinion, I prefer the more professional look than the more cartoony look, anyways.

Also, there is quite a lot of wasted white space. Why not let those who have much higher resolution to be able to use it all in all its glory? Expand to 100%?

Who made the new layout?

And finally, I dislike the really light-gray text. It's hard to read, since the white background sort of jumps out at you, and it's like a blinding light (okay, not THAT strong), especially when you are really tired and reading Daniweb at 4 in the morning :)

The old smilies (and present ones) are sort of annoying as well. They need less animation, and need to be less cartoony, and more like the simple, default vBulletin ones, for instance, or the Dark Project smilies.

I really commend you on working hard on this layout, though, and to whomever else helped to get this layout released. You …

Gary King 37 PHP/vBulletin Guru Team Colleague

I still think that this suggestion of mine should be implemented.

Gary King 37 PHP/vBulletin Guru Team Colleague

I'm certain that there is an AppleScript for this.

Directory: http://www.dougscripts.com/itunes/index.php

Gary King 37 PHP/vBulletin Guru Team Colleague

Code: http://www.google.com/search?num=30&hl=en&lr=&q=Fibonacci+number+C%2B%2B&btnG=Search

They all do the same thing. So I'm sure you can just pick one and use that. Or, compare it with yours to see what you did wrong.

Gary King 37 PHP/vBulletin Guru Team Colleague

http://www.priadoblender.com/

Where's the beer???? :eek:

I use this to make executable files from PHP files. I mean, you run the code in something such as DOS, but at least it works. I use it when I don't have a PHP server in hand.

Gary King 37 PHP/vBulletin Guru Team Colleague

AdSense, in my opinion, is great. It is easy to integrate, and the return isn't too bad, especially for its simplicity.

Not much else to say. I don't even optimize my pages (my site's a forum, actually, like Daniweb) but that's not really a problem for me. The ads are performing... okay, at least, I don't have to spend time tweaking them. If I did, my return would most definitely shoot up a lot more, though.

Gary King 37 PHP/vBulletin Guru Team Colleague
Gary King 37 PHP/vBulletin Guru Team Colleague

You will need a lot of money to get something like eBay, then! Try to get some venture capital funding, if you can, and are serious about this. Or at least a full time programmer.

Gary King 37 PHP/vBulletin Guru Team Colleague

Ajax is the future, not Flash. Reason? Ajax does not require any plugins to be installed. All you need is a modern browser, which more people certainly have, than Flash. Also, you need to continuously update Flash - in fact, Macromedia just recently released a new version of Flash a few weeks ago.

Flash is still good for media such as audio and video (my preferred for things that move, such as games, for instance, but I like Quicktime for videos. Flash is probably one of the best for audio as well, though, since it doesn't freeze the browser :D), so it won't be going anywhere anytime soon.

But more and more people will soon develop websites in Ajax rather than an entire website in Flash. Why? Because Flash is not indexable by search engines, since the text is contained in the Flash file. It will probably be possible to index the text one day, but for now, it is not. I'm sure Ajax has its own indexing problems, but not as many. Also, Flash is controlled by one company, and in this day and age, this is a no-no :p (At least, for the web :) Of course there are certain times when a company is better than simply a method or an organization.)

Gary King 37 PHP/vBulletin Guru Team Colleague

You can try changing the MIME type, which I believe you can do in PHP. Something like:

header("Content-Type: {$mime}");

Info: http://ca3.php.net/manual/en/function.header.php

Only works if the image is viewed on its own page, I believe.

Gary King 37 PHP/vBulletin Guru Team Colleague

This is some cool stuff. I'll just quote a blog here since it explains it better than I would :)

As Ajax spreads it wings, folks are using it to come up with cool new apps. Writely, was one. Latest - Meebo, a web-based IM client. Through Ajax, the folks at meebo were able to create a virtual application-like experience within a single web browsing window.

More: http://gigaom.com/2005/09/14/ajax-based-im-meebo/

Gary King 37 PHP/vBulletin Guru Team Colleague

You could use the COUNT function that exists in MySQL instead.

$count = mysql_query ("SELECT COUNT(*) AS count FROM events ORDER BY event_id DESC");

$count = $count['count'];

// $count now contains # of rows
Gary King 37 PHP/vBulletin Guru Team Colleague

If you are inside a Solved thread, you would never know it, because there is nowhere to tell you that it is solved. Please put the text 'Solved' somewhere in solved threads to distinguish between solved and unsolved threads.