Jump to content

ronc0011

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by ronc0011

  1. Not too sure about that one. Reading up on it, it appears to want a web url i.e. http;//website.com/wp_content/themes/mytheme/css/style.css. Besides I’m working on this locally on my laptop so I guess the URL would be something like http://localhost/wp-4/wp_content/themes/sidebars/css/style.css Anyway I am trying to use a relative folder path As I noted the version where the style.css is in the root theme folder with functions.php and index.php works just fine. It’s when I create a folder “css” in the root theme folder and place the style.css file in that folder. I’m having difficulty getting the syntax correct so It can find the stylesheet. I was kind of hoping someone here might be able to tell me what I’m doing wrong in my coding. I’m sure it must be something to do with how I have formed the path for … get_stylesheet_uri("//css/style.css")); or is it… get_stylesheet_uri(./css/style.css)); or maybe… get_stylesheet_uri(‘//css/style.css’)); or even get_stylesheet_uri(/css/style.css)); I have actually done this successfully once before though as I recall it didn’t appear to work right at first and then suddenly without explanation or reason it started working. Who knows? Is it something I’m missing?
  2. I just wanted to apologize for some double and I believe even s triple post. It was unintentional I clicked the “Submit” button and nothing appears to happen and so I click it again. Is it my keyboard? What?... Well apparently not the site just doesn’t appear to be responding. SO I give up and move on. Then later when I come back I see t instances of my post or in this last example two instances. Anyway just wanted to let someone know what was happening and to apologize for that.
  3. I’m never altogether sure when something is maybe going on but I think this time it’s just my typing it in wrong. I’m working on some Youtube Wordpress tutorials and I’m having an issue with the script finding the style.css file. Of course the script is is calling a Wordpress function but it is after all written in php. So here’s the function… function nq_styles() { wp_enqueue_style('style', get_stylesheet_uri(style.css)); } This function was working until I moved the the style.css fill up one level to its own folder. So now the file resides in css/style.css So I change dthe file path in the function to… function nq_styles() { wp_enqueue_style('style', get_stylesheet_uri(css/style.css)); } I’ve tried a couple of different structures, for example… /css/style.css or ./css/style.css or even //css/style.css and nothing seems to be working. What am I missing ? BTW I couldn't get the "Code" button to work
  4. Cool I got it. Turns out I still had all the versions that ship with PHP including the production version the development version and just plan php.ini Turns out I originally made the changes in the production version. As soon as I made the changes to php.ini it all worked just fine. Cool because I may still want to make use of XDebug before it’s all said and done. Much thanks to everyone for your help
  5. Actually display errors is already set to off I didn’t think I was actually using XDebug I think it got installed when I was working out my Apache, MySQL, PHP setup. In the end I installed everything separately / individually and I went with Visual Studio with PHP Tools for Visual Studio. In the beginning I was looking at Zend, and Netbeans and everything else. So anyway I’ve been doing all of my developing without using any debugging and just running my pages in a browser on localhost. Though I did find an information box telling me that Xdebug was running. Apparently I selected “Start with Debugging” from the Debug menu. Honestly I’ve never tried to learn anything about XDebug though I have tried to find out if there is a way to get Visual Studio to point to my Apache install as it debug server. So if Xdegug is already set to off I wonder what else can turn off Xdebug or I guess I could just uninstall it. Wonder how that’s done. There’s probably documentation on that on their website or some where. But Thank you for your reply.
  6. How do I turn off error reporting in the php.ini file I’m working on some Wordpress exorcises and I’m getting these PHP errors which are messing up the display of my Wordpress dashboard causing the bottom half of the page to be inaccessible. I can’t navigate around the page because of the PHP error display. I’ve never been clear about where this is controlled, but I guess it’s time to track it down. The errors are displayed as a table with orange field backgrounds. Pretty vibrant display actually. Unfortunately it’s messing up my Wordpress Dashboard. So I need to turn it off so I can go in and deactivate the plugin that’s causing it.
  7. Cool !!! Let me give it a try ... Looks Like that was it. Way cool. Thanks a bunch. LOL I needed a little sunshine in my day. thanks :-)
  8. I'm trying to learn how to use your forum and apparently I'm missing something pretty basic. At first I was trying to just cut & paste from Word to the text input box on the "New Topic" page and I can't get anything to workf. I see the three little icons in the upper right of the form but they don't appear to actually do anything. Even the "Paste from Word" icon doesn't seem to actually do anything. Is there some special trick to get these things to paste content from my Word document. I have the specific text highlighted. In fact I actually did a 'Ctrl +C' to copy the desired text but there seems to be nothing that will actually paste that text into the PHPFReaks text entry form. Can anyone help me with this?
  9. Yeah, so the frustration just got the better of me. I’ve been fighting with Windows and stupid crap on the internet for too long. It’s just that it’s such a habit that I compose any kind text element in Word simply for the convenience and also for Spell check and other error checking you get with Word ii catches a lot of grammatical, spelling and other type-O’s. This is something I’ve been doing since Windows 98 1rst Edition. And frankly this business with not being able to copy & Paste from I.E. to word or vice versa is something recent and not universal across all web sites. In fact just to get a comparison I just went to one of my Wordpress site and updated the installation It has no problem with Copy & Paste from Word It had occurred to me that it might have to do with the new version of PHP or something or I suppose recent coding practices. I had a PHPBB forum installed on that website but apparently I took it down I haven’t been keeping up with those sites for a while Anyway it’s just aggravating to find something doesn’t work especially something that’s been doing fine for 17 years. Anyway as it turns out it was entirely possible to waste several hours trying to find a decent website dedicated to PHP. Surprisingly even PHP.net doesn’t have a decent forum for this purpose. Ha, go figure. If they have a forum they have taken great care to obscure its presence. Lastly nobody would use MS Word to build code. I find Visual Studio easiest to work with of course you have to get the plugin for PHP but works great
  10. Well I guess I feel pretty dumb. Just too long staring at this stuff. Also different environment than what I was used to . I changed from a desktop with dual monitors to a laptop with a single 15” monitor. I’m actually used to being able to see what I’m doing. Well thank you for your help. That’s what I needed was a pair of good eyes.
  11. OK so that didn't work at all. In fact after clicking around on the different buttons i.e. "Paste From Word" etc I ended up having to refresh the page just to be able to type directly into the box. So it looks like I have to use Chrome for this site. I was going to have a try at Firefox. That turned out to be a disaster. I spent all day yesterday cleaning up the mess that Firefox created. It seems these days If you try to install Firefox you will get a pile of other garbage bundled with it and if you're not careful you'll end up with a bunch of stupid garbage on your machine . I ended up having to find and perform the Windows Restore which has replace "last Known Good Configuration" which Microsoft has so cleverly hidden in Windows 8. Doing that and reinstalling other software took most of the day So anyway enough of me venting and tanks for your response as it turns out to be the only actual real solution.
  12. <?php $dbhost = "localhost"; $dbuser = "root"; $dbpass = "r00"; $dbname = "users"; $conn = mysqli_connect ($host, $user, $pass, $name); // Test if connection occured This is where we do our error trapping if(mysqli_connect_errno()) { die ("database connection failed: " . mysqli_connect_error() . " (" . mysqli_connect_errno() . ")" ); } ?> OK, this is what I got and I think you'll be able to see I do have a user name and password...
  13. The deal is I know for fact the username and password are good. BTW I’m doing all this on my laptop. Apache, MySQL, & PHP are all installed and running locally. I have a DB named “users” that I created under the root user account with a password of “r00t” now I can run a “SELECT * FROM “ with those credentials using the command line tool that ships with MySQL no problem it show all records in the users table. But the PHP script throws this error
  14. Is it possible to copy & paste from MSword to the post text box. I do see the little icons that say they are for "paste as Plan text" and "Paste from word" they don't however appear to do anything at all. Honestly my first inclination was to just move on, believing that it was almost certainly easier to find something out there that was easier to work with than this. Low & behold I was mistaken in this idea. It defies understanding the depths and extent that some web developers will go to, to make their pages unusable.
  15. Forget this I am not going to retype everything I just got through composingin MS Word because you guys have figured out how to stop copy and paste from Microsoft. I'm pretty sure I can find a forum that works in less time than it takes to work this crap out.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.