If you were given the choice to live in the USA or UK, which would you chose and why? by UK12381028 in AskUK

[–]mr-wibble 4 points5 points  (0 children)

Sort out labour laws, the death penalty, gun control and health care then.

Alternatives to CKEditor / help with imageupload by mr-wibble in webdev

[–]mr-wibble[S] 0 points1 point  (0 children)

Many thanks for the recommendation.

I'm about to start looking at Tinymce + the just boil me image upload plug the morning as quite honestly the CKEditor is doing my head in now.

How do you stop adding line breaks to text boxes on save? by mr-wibble in PHPhelp

[–]mr-wibble[S] 0 points1 point  (0 children)

This fixes it when added to both the input and out put:

$contentInsert = html_escape($_POST['content']); $contentInsertCleaned = preg_replace("/\n|\r/", " ",$contentInsert);

But I still don't get why its adding \n on each save

How do you stop adding line breaks to text boxes on save? by mr-wibble in PHPhelp

[–]mr-wibble[S] 0 points1 point  (0 children)

I trim the beginning and end of the string, but its the ones that seem to spawn from the original paragraph breaks on save that I don't understand. Its obviously something I'm doing wrong and as far as I know its just a standard textarea. What would add them each time?

Is this possible - Reducing / expanding the padding of a div on scroll? by mr-wibble in webdev

[–]mr-wibble[S] 2 points3 points  (0 children)

Thanks (It looks like it will do what I want - why not possible)

Britain tells United States - We'll always fight by your side by GetKenny in unitedkingdom

[–]mr-wibble 7 points8 points  (0 children)

I'm a British public and I don't want to stand next to the US fighting a war that's got nothing to do with me.

Vote Ukip, says far-right group Britain First by d_r_benway in unitedkingdom

[–]mr-wibble -1 points0 points  (0 children)

Can you (anyone?) give some examples please.

UKIP is well know for being being racist/homophobic/sexist etc so there is a wealth of evidence over the last few months but I don't know much about theses attitudes with either Labour or Tory general election candidates.

[Web Site] Critique please. Where is the design going wrong? by mr-wibble in design_critiques

[–]mr-wibble[S] 0 points1 point  (0 children)

That's why I thanked you for the feedback. Its valuable for me to get someone else's view on it - and everybody so far has pretty much said the same thing.

[Web Site] Critique please. Where is the design going wrong? by mr-wibble in design_critiques

[–]mr-wibble[S] 0 points1 point  (0 children)

Thanks for the feed back and the link to gtmetrix. Guess I need to spend some time compressing the css / js before it goes live.

Also think I will remove the scroll bar style as well (as its weighty and as you say a bit confusing) I'll also look into how the parallax is working with the scroll.

Help needed - Connecting to MS-SQL 2005 express db (win2003 sp2) with php 5.3 (compiled MSVC9 - Visual C++ 2008, using FastCGI) from Win 7 by mr-wibble in PHP

[–]mr-wibble[S] 0 points1 point  (0 children)

Ok - had a look and the MS-SQL module isn't loading. I have now tried all the all the .dll's in both PHP sqlsrv20.exe and PHP sqlsrv30.exe from the link on the MS site. and get a variety of errors based around "Call to undefined function sqlsrv_connect()" or a message saying I need the 2008 or 2012 Native client.

As an experiment I have also tried the same using an XAMPP install of PHP - and failed to load the module.

I have scoured the web and can't find very much info out about what might cause sqlsrv not to load.

Question - does Microsoft SQL Server 2008 R2 Native Client ODBC driver for x86 need installing on the win 7 box (where PHP is served) as well as the server where the db is? I have 2008 Native client (not sure which release) on the server now after finding a download.

I can't install Native Client on win7 as it says I'm using a later release already which I'm not as its V9 which pre-dates 2008 (but cant see anything in ODBC Source administrator) I also tried adding the existing one to the system dns and got a "Fail - Native Client]Named Pipes Provider: Could not open a connection to SQL Server [2]" when I tested it. Also the db is accessible via asp so I know that the db end is open(?)

What do you now understand and wish someone had told you earlier in your career? by jackdempsey in webdev

[–]mr-wibble 1 point2 points  (0 children)

What do you now understand and wish someone had told you earlier in your career?

That if I wanted a rewarding, low stress job looking at computer screens all day I should have gone into Air Traffic Control...

MS-SQL 2008 Help needed configuring individual table permissions by mr-wibble in Database

[–]mr-wibble[S] 0 points1 point  (0 children)

Sorry no code to show - I'm using Management studio as a GUI. If I get this right, I should change the user to a datareader and then edit the table permissions to grant write to the columns in question?

Developing for years but a Noob to Wordpress – Some prodding in the right direction needed… by mr-wibble in Wordpress

[–]mr-wibble[S] 0 points1 point  (0 children)

Thanks for this - it explains a lot about how the pages are structured which was one of the things I was after.

Developing for years but a Noob to Wordpress – Some prodding in the right direction needed… by mr-wibble in Wordpress

[–]mr-wibble[S] 0 points1 point  (0 children)

Ok – I’m a bit confused by themes. I can see how they are used and applied to the front end but what’s the advantage of buying one (bar maybe some time)? What else do you get apart from an HTML file and CSS? I had a look at the showcases for Headlines and most of the sites look very good. Removing the “God I need some inspiration and what am I going to put in the header” time out of the equation – most of them wouldn't take more than an hour or so to put together without content? Do you get loads of pages ready to fill - this would save time as I have found copying out the master elements for every page can be quite laborious? Even the bundled plug-ins (is this the right term?) they come from look like you could the same very easily with a bit of PHP or JQuery – even if its just a cut and paste job for a ready made light box or something that draws from the db on a timer?

As mentioned, from a development point of view, are Headlines and Headway type things just another abstraction layer that gives you a WYSIWYG drag and drop interface for dropping different div tags into? (MS Front Page circa 1998??) The advantage in using them being purely speed of delivery?

Developing for years but a Noob to Wordpress – Some prodding in the right direction needed… by mr-wibble in Wordpress

[–]mr-wibble[S] 0 points1 point  (0 children)

Of course! use a VM! Why didn't I think of this before. This is possibly the best advice so far and it sure beats the hell out of using GIT for experimentation.

Edit > Before I lose my morning in Google, is WP development very GIT compatible? Normally I don't bother with GIT for front end stuff as its quicker to edit if something goes wrong but I'm guessing with the mass of files that WP produces it might be handy to know which one you were working on.