11,566 Posted Topics
Re: Yeah, change that first line to just `<!DOCTYPE HTML>` | |
Re: I use the CodeIgniter framework and here is the code for the function that they use: function character_limiter($str, $n = 500, $end_char = '…') { if (strlen($str) < $n) { return $str; } $str = preg_replace("/\s+/", ' ', str_replace(array("\r\n", "\r", "\n"), ' ', $str)); if (strlen($str) <= $n) { return … | |
Re: I have never even heard of it. What does it do? | |
Re: > my view of Daniweb is widescreen enough without having the bar. I'm not sure what you mean? | |
Re: Hmm, really? Please post in the feedback forum so I can fix the bug. | |
Re: There's a 1MB max file size. How big of a picture are you trying to upload?! Compress the darn thing! | |
Re: Codeigniter is designed to be an MVC framework which means: model layer: read/writes to the database view layer: the website's front-end skin controller layer: retrieves data from the model layer and preps it for the view layer You shouldn't really be including other php files in your views. However, if … | |
Re: Assign a number to each question in the text file. Then, generate a random number and, for each number generated, pull the corresponding line of the text file. I'm not a C++ programmer, but some languages have libraries that let you pull *n* numbers at once. If C++ isn't one … | |
Re: > could we have a means of syntax-highlighting code that is tailored to the forum that it's posted on This currently exists and is in place. > optionally an author-specified languag There are no current plans for this, sorry. We tried playing around with it last year but found the … | |
Re: I used to have a lot of reptiles when I was growing up. Then ended up with two dogs. Living by myself with no pets at the moment. | |
Re: I have no clue what you're talking about, sorry. Are you talking about using html microdata to indicate authorship to Google? If so, that means telling Google who wrote content on your site by linking to the author's profile on your site or Google+ profile. | |
Re: You wouldn't do this with PHP, you would do it with Javascript. You should check out the jQuery library. If you were to use jQuery, you would do it like this: `$('body').css('background-color', 'blue');`. You would need to be using the jQuery library though. | |
Re: Put this at the top of your PHP script and see if it gives you any errors: error_reporting(E_ALL); ini_set('display_errors', '1'); | |
I'm attempting to use Gogole Analytics event tracking to track browser viewport size. I'm using event tracking already in a bunch of other user-initiated places with jQuery and everthing works fine. This doesn't seem to be working though: I have this at the bottom of my html page: <script type="text/javascript"> … | |
Re: As Paulkd points out, effects like these aren't designed to be part of core functionality. They're just design elements that, as long as they degrade nicely, people shouldn't even know what they're missing. | |
Re: It should already be working, no? #footer { position: fixed; bottom: 0px; left: 0px; } That should do the trick? | |
Re: > As I understand it, the current default avatars are generated based on the username so each default avatar is unique. They use Gravatar, so they're generated based on email address. The exact same auto-generated image is used on every forum/commenting site that uses gravatar, and every individual's is unique. … | |
A lot of people have been indicating they're having issues differentiating New vs Read threads in the forum listing pages. The icons are in the exact same place they were in the old skin. I went ahead and made the READ icons lighter to make the NEW icons pop a … | |
Re: There's no longer a link in the header. You have to go into your member profile and then click "View Rank in Top List" to see the personalized top list showing where you rank. Then, at the bottom is a button to see the top 100. | |
Community activity has been WAY down since we switched over to our new proprietary platform and off of vBulletin just over a year ago. There was literally a night and day difference in activity from the day before the switch to the day after. I thought that it would just … | |
Re: Form validation fixed. MSN and Yahoo! now request an email address. Twitter has always requested just the Twitter username *without* the @ symbol. | |
Re: > If I'm in a thread and decide to login to post, I like to be dropped straight back into the page I was on. You should be?? | |
Re: I have the same problem. Yahoo! actually owns Overture, though, and from what I can tell, their search results rely heavily on Overture's PPC network. In other words, you're going to have to fork over some money for good rankings in Yahoo! At least from my experience. Good luck. | |
![]() | |
Re: I don't have any experience with TinyMCE, but I looked into it when choosing an editor to go with for DaniWeb. Can you post your code and I'll take a look at it? So you're saying everything works fine if you replace TinyMCE with a standard textbox, but not with … | |
Re: Hmm, really? OK I'll be sure to check it out just as soon as we launch the new version of the site, which should be momentarily. | |
Re: No, I don't feel there should be a time limit because a main attribute of the forums is that everything you write not only helps the OP but lives on to help many, many millions of people years into the future. | |
Re: It was posted as a code snippet, so I'm assuming they are just showing off their work :) | |
Re: Olagsfark, what you're describing does not prevent DOS attacks (there's nothing you can do in your scripts about that) but it *is* an example of flood control. It prevents flooding, which is when someone tries to repeatedly fill out forms on your website in order to create many multiple entries … | |
Re: Huh? I'm confused. Isn't MLM multi-level marketing? I did a quick google search and found that the binary plan is basically just a binary tree example of how MLM schemes work. Is this a homework problem you have? | |
Re: There was a rogue ad that wouldn't load until it timed out, sorry about that. | |
Re: You can post a Job Offer in the Business Exchange section of the site if you'd like. | |
Re: Exactly niek_e ... sorry, we're actually required to fulfill antispam regulations to keep information about every user who registers with us on record. ![]() | |
Re: That's our DaniWeb dude!! He's been out mascot for years and years. He's not corporate ... he's wearing a DaniWeb-colored polo. | |
We use hashes a lot in our URIs to jump people around to a specific place on the page. For example (www.example.com#part1 and www.example.com#part2). However, we have a static fixed header at the top of the page, and so if it tries to jump you down, it ends up plopping … | |
Re: Thank you for your feedback!! :) There is currently a feature freeze on everything because we are currently in the early stages of rolling out a site makeover later in the month. It most likely will be replaced with something such as a short word that doesn't take up so … | |
Re: It seems to be having an issue unserializing the favorites and the social media member fields. Although I'm not quite sure exactly why, I think it has something to do with this: http://www.daniweb.com/web-development/php/threads/459459/codeigniter-session-class-unserialize-failure | |
Re: AdSense is the best place to start because, firstly, they tap into a lot of other ad networks, and secondly, they are pretty good about filling 100% of the impressions you have, meaning that you can work with JUST them and be fine. CPM rates (cost per thousand ad impressions) … | |
![]() | Re: Sorry for the delay. Yeah, we always used Gravatar as a backup (at least for the past long while) but we switched from using the "mystery man" grey cartoony guy as the last-resort backup (which was the same for everyone) to the email-hash based Gravatars. |
There is full read and write chat functionality now added to the API :) Who wants to write two-way IRC<-->DaniWeb Chat integration? ;) Any takers ... ?? You need an access token in order to post, but it's feasable if you create a new DaniWeb account named "IRC Bot" and … | |
Re: I've seen it used to reference PHP include files ... those PHP scripts that can't stand on their own but simply are helpers meant to be referenced from other php scripts. | |
Re: Seems like he hasn't been around for two weeks. As you say, it's probably school finals or something. Hopefully. | |
The End.