11,530 Posted Topics

Member Avatar for dstoltz

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. …

Member Avatar for Dani
0
376
Member Avatar for kiccano
Member Avatar for <M/>
Member Avatar for <M/>
0
141
Member Avatar for Dani

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 …

Member Avatar for LastMitch
0
433
Member Avatar for <M/>
Member Avatar for dfaulted

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??

Member Avatar for dfaulted
0
423
Member Avatar for tinstaafl

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?

Member Avatar for tinstaafl
0
244
Member Avatar for Dani

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 …

Member Avatar for Dani
0
889
Member Avatar for ernie.cordell

The robot question? You mean human verification? That stops once you post two more times.

Member Avatar for leodown
0
190
Member Avatar for Dani

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?

Member Avatar for happygeek
0
188
Member Avatar for Msanches

> So if I changed my mind and decided not to login with Google and click on Cancel button Not within my control to change.

Member Avatar for Dani
1
149
Member Avatar for Dani

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

Member Avatar for Dani
0
127
Member Avatar for Ancient Dragon

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.

Member Avatar for Dani
0
70
Member Avatar for broj1
Member Avatar for stultuske
1
906
Member Avatar for hapiscrap
Member Avatar for andreiviziru

I use the CodeIgniter framework and here is the code for the function that they use: function character_limiter($str, $n = 500, $end_char = '&#8230;') { if (strlen($str) < $n) { return $str; } $str = preg_replace("/\s+/", ' ', str_replace(array("\r\n", "\r", "\n"), ' ', $str)); if (strlen($str) <= $n) { return …

Member Avatar for andreiviziru
0
248
Member Avatar for bipin
Member Avatar for Ancient Dragon

> my view of Daniweb is widescreen enough without having the bar. I'm not sure what you mean?

Member Avatar for gerbil
0
202
Member Avatar for Stuugie
Member Avatar for Stuugie
0
151
Member Avatar for Stuugie

There's a 1MB max file size. How big of a picture are you trying to upload?! Compress the darn thing!

Member Avatar for Reverend Jim
0
74
Member Avatar for andreea.leau
Member Avatar for davy_yg

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 …

Member Avatar for davy_yg
0
160
Member Avatar for torrm

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 …

Member Avatar for rubberman
0
160
Member Avatar for Assembly Guy

> 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 …

Member Avatar for Dani
1
282
Member Avatar for jingda

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.

Member Avatar for <M/>
0
430
Member Avatar for kapildeven89

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.

Member Avatar for Dani
0
39
Member Avatar for davy_yg

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.

Member Avatar for davy_yg
0
277
Member Avatar for luis.andrei.cobo

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');

Member Avatar for Dani
0
1K
Member Avatar for Dani

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"> …

Member Avatar for Dani
0
454
Member Avatar for <M/>

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.

Member Avatar for <M/>
0
302
Member Avatar for andreiviziru

It should already be working, no? #footer { position: fixed; bottom: 0px; left: 0px; } That should do the trick?

Member Avatar for almostbob
0
265
Member Avatar for nitin1

> 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. …

Member Avatar for nitin1
0
253
Member Avatar for billkas
Member Avatar for Dani

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 …

Member Avatar for Ketsuekiame
0
294
Member Avatar for <M/>

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.

Member Avatar for <M/>
0
109
Member Avatar for Dani

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 …

Member Avatar for Dani
0
2K
Member Avatar for LindaH2
Member Avatar for Ketsuekiame

Form validation fixed. MSN and Yahoo! now request an email address. Twitter has always requested just the Twitter username *without* the @ symbol.

Member Avatar for Dani
1
338
Member Avatar for ChrisHunter

> 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??

Member Avatar for Dani
2
202
Member Avatar for Ancient Dragon
Member Avatar for pritaeas
0
116
Member Avatar for 123chrishaw
Member Avatar for mrgreen
Member Avatar for DavidW

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.

Member Avatar for Saidinaxl
0
289
Member Avatar for iamthwee
Member Avatar for FarrisFahad

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 …

Member Avatar for FarrisFahad
0
1K
Member Avatar for happygeek

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.

Member Avatar for happygeek
0
244
Member Avatar for Ancient Dragon

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.

Member Avatar for Assembly Guy
0
330
Member Avatar for ddm

It was posted as a code snippet, so I'm assuming they are just showing off their work :)

Member Avatar for David W
0
584
Member Avatar for Olagsfark

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 …

Member Avatar for pritaeas
0
174
Member Avatar for best4earn

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?

Member Avatar for best4earn
0
180

The End.