11,530 Posted Topics
Re: What do you mean by "internal links" vs "external links"? All links on your site and off your site should use the rewritten links. There should be no way for a website visitor to know what the *real* path to the file is, no hyperlinks anywhere pointing to it, etc. … | |
This seems kinda random but basically I have the following member function in my caching class: public function increment($key, $expires = 0) { // Requires OPT_BINARY_PROTOCOL return $this->cache->increment($key, 1, 0, $expires); } So then I want to do flood protection like this: $cache->increment('foo', 10) > 50 90% of the time … ![]() | |
Re: I went ahead and fixed your code. We don't use BBCode around here like most other forums do. Instead, we use the Markdown syntax. There's a link to documentation in the top right of every editor. Or it's here: http://www.daniweb.com/community/syntax Are you sure that you have MySQLi installed?? | |
Re: We use a third party library to do our code highlighting: http://google-code-prettify.googlecode.com/svn/trunk/README.html Can you include in this thread an example of what you mean? | |
Receiving this CodeIgniter message in my error log every so often (and by every so often I mean quite often): ERROR - 2013-07-21 07:26:40 --> Severity: Notice --> unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 124 of 187 bytes /home/daniweb/httpdocs/system/libraries/Session.php 724 Could a problem unserializing() be caused by a session cookie … | |
Re: The robot question? You mean human verification? That stops once you post two more times. | |
I'm getting complaints today that the site, API, and chat room are all acting really sluggish and a bit funky. However, I'm not able to reproduce *anything* out of the ordinary. Can I get specific confirmation, please? | |
Re: > So if I changed my mind and decided not to login with Google and click on Cancel button Not within my control to change. | |
My code looks like this: if (!empty($foo)) { $doc = new DOMDocument(); $doc->loadHTML($foo); $images = $doc->getElementsByTagName('img'); } And this is happening: DOMDocument::loadHTML() [<a href='domdocument.loadhtml'>domdocument.loadhtml</a>]: Document is empty in Entity, line: 2 | |
Re: There's been an issue recently with a lot of accidental double-posting but I can't seem to get to the bottom of it. | |
Re: Incredibly strange because I haven't been playing aroudn with anything!! | |
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? |
The End.