Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Thanks!! :)

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Jim, are you using standard login or are you using Login with Facebook, etc?

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

The first image shows what happens every time I go to a new forum. Three rectangles get rendered at the top of the screen, then get erased.

Those three images are supposed to be to Tweet, Google+, or Facebook Like the page. I suspect you are using an ad blocker or something that is hiding the iframes.

By the same note, we use an IFRAME technique for AJAX-based file uploads. I suspect that your ad blocker is doing something funky with those iframes as well, which is why you're having file uploading issues.

As mentioned in my previous post, you end up in "limbo" because the Submit button goes away the second your web browser sends the data to the server, and it doesn't reappear and display your new post on the page until the server receives your data from your web browser, stores it in the database, and sends back an acknowledgement that all is good along with your new post.

The server might be getting confused if the ad blocker is doing something funky with the hidden IFRAMES that are used to do file uploads.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Yes, that is a known issue when there's a server/network issue. It's usually hit or miss whether the post goes through (when there's a networking issue, it's hard to predict how far in transmission the data made it), so we hide the Submit button until we're 100% confident that it got submitted and we received a 'success' back from the server, just in case there was a lag.

Under normal circumstances, the submit button gets hidden and comes back into view so quickly that you don't notice it was even gone.

All of the other issues you described though I do find perplexing.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

I have another post stuck in limbo. I have Ghostery and ADBlock disabled

Of everything you described, this is the only issue that rings a bell with me. Posts that get stuck in limbo do this due to server or network issues usually. We deliberately hide the 'Submit' button from the time it's initially clicked until the time the post goes through, so that server lags don't cause people to repeatedly hit the Submit button and accidentally double/triple post.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

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.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Jim,

I wasn't around most of today. I'll investigate this tomorrow. I def think something weird is going on. In the meantime, are you using any browser plugins, ad block, etc?

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

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 $str;
    }

    $out = "";
    foreach (explode(' ', trim($str)) as $val)
    {
        $out .= $val.' ';

        if (strlen($out) >= $n)
        {
            $out = trim($out);
            return (strlen($out) == strlen($str)) ? $out : $out.$end_char;
        }
    }
}

It should work if you edit your line 115 and replace $part with character_limiter($part, 10)

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

On the contrary, I'm wondering if the issues you're having are the same non-reproducable cookie issues I've been suspecting caused the posting drop as soon as we switched to the new system.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

So you're still having issues with logging in? I'm confused.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Jim, I have no clue what you're talking about and I don't see any pictures at all?

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sorry, I'm confused what the difference is? A run down town in the UK isn't profane?

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

No idea, sorry. And yeah, that title scared me.

<M/> commented: sorry about that :D +0
Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Fixed so that tw*t only registers on a whole word now, so it shouldn't be flagged on investmentwatchblog anymore.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Google in Mountain View, CA is an amazing place to work as a software developer. But didn't we already establish in another thread here that you should start off at a smaller place, build up experience, and then move on?

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

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 you're just trying to do a shared navigation menu, I guess that's alright. Put it wherever you want your navigation menu to be. All of the views should primarily just be templates.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

In that example, you're fetching from a MySQLi resource (database).

Instead you would do this

$api = file_get_contents('http://themesnmotifs.com/api/wp/f6f60a0e7091a627641f01b9d1dd7536ea4b8496/list_wp');
$api_object = json_decode($api, true);
foreach ($api_object AS $row)
{
    echo $row['Company'] . " " . $row['wp_phone'];
    echo "<br>";
}
Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

That looks like JSON to me.

You can convert it to a PHP object using the json_decode() function.

$api = file_get_contents('http://themesnmotifs.com/api/wp/f6f60a0e7091a627641f01b9d1dd7536ea4b8496/list_wp');
$api_object = json_decode($api);
Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hmm, really? Please post in the feedback forum so I can fix the bug.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

That can happen if there's bad latency on their end, but out of my control.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

It should already be working, no?

#footer
{
    position: fixed;
    bottom: 0px;
    left: 0px;
}

That should do the trick?

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

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.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

PFO is fixed :)

Will look into member count. The endorsements number is cached so that's why it's off slightly. Funnily enough this is not a new feature ... it just moved from lower down on the page towards the top, and suddenly it's just like new to everyone :)

Still confused what you mean about tabs not working in code snippets. Can you give me an example I can reproduce? I don't want other people to have the same issue in the future.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

I started collecting data today to measure a visitor's viewport size (the size of their browser window) and not just their screen resolution. I'm going to use this information to make informed decisions regarding making DaniWeb play nice at lower resolutions.

What I've learned so far is that nearly all people seem to be browsing at 1300 pixels or higher width, which is great. However, browser height is much smaller than I thought it was (damn widescreen laptops to blame!). Therefore, I'm going to work on making the fixed header/footer not fixed at smaller resolutions so they don't occupy so much vertical real estate.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

ProgrammingForums.org, DaniWeb's sister site.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Yes, pritaeas just told me. I emailed James.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Thanks!! :) As mentioned earlier, a big focus this week will be on making the site more mobile friendly and happier at smaller resolutions.

I'm designing on dual 30" monitors, so it's hard for me to think small sometimes.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Home from my weekend trip to Florida!!!!!! Relaxing tonight but I'll get right onto things in the morning.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'm not so sure why tabs don't line up. I'll check it out when I get home tomorrow night.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sorry, I'm confused how you're trying to get it to indent?? It looks identical to the way it was typed in?

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Thanks!!

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'll look at it tomorrow night or Monday. :)

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Thanks BigPaw!

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Rev, that's who's currently online browsing the site. You can click on any of their names to type in their shoutbox, and they'll get an alert wherever they are saying there is a new chat message waiting for them in their shoutbox. It's like instant messaging of sorts.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Intended font is supposed to be 16px at 100% so I think it's something on your end??

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

I think it's your setup, Cereal. I thought I would be all fancy and make all font sizes relative ;) Apparently that wasn't a smart idea for uniformity.

I'll set a base font size up on my end. Let me know if that works at Ctrl+0 :)

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Testing testing 1-2-3 from a different PC with a fresh installation of Windows 8. Nothing installed on it except for Chrome, which I just installed for this test (and because I like Chrome).

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

cereal, are you using any third party extensions or plugins of any kind??

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Also in related topics (right box) I get articles from restricted areas, as this link which is in Moderators forum:

Thanks for the catch!! Bug fixed :)

cereal commented: you're welcome! +0
Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

if that change was made, it's not working properly, or the interval is extremely short (like a fraction of a second).

It is a fraction of a second :) I changed it from being instantaneous to being 6/10ths of a second.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member
Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hey Dani, what happpend to the top charts?

http://www.daniweb.com/stats/toplist/950732

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

I've tested on my Windows PC in Internet Explorer, Firefox, and Chrome. I've tested on my iMac in Safari and Chrome. No issues anywhere. Unfortunately I don't have access to a Linux box to reproduce your troubles.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Testing in IE 10.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Testing in Chrome on OS X.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Works for me fine with Chrome for Windows. Let me go test Chrome for OS X to double check. Sorry, I only have access to a Windows PC and an iMac.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Test from Safari on OS X 10.8.3

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

I fixed the bug in Firefox, or at least it didn't used to work for me and now it does. Darn javascript. I had triple equals null and I changed it to double equals the empty string and now it works.

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

Have you coordinated the update with sitepoint? They have updated their forum on the same day

Haha what a hilarious coincidence!

Dani 4,645 The Queen of DaniWeb Administrator Featured Poster Premium Member

abe15b869fb257ebd3852acb6b9e6172

Testing in Firefox. :)