By jorre on
I hope this will be my last question before I have my drupal installation running the way I want it to be...
as a new user of drupal, I deleted the "php code" input format, because I thought this would be unsafe... yes, instead of just deactivating it I deleted it...
so now I only have 'Filtered HTML' or 'full HTML' in my input formats...
I'm using the banner module, and for this I need to be able to create a new "block" and use PHP code again as input format...
since I deleted the 'php code' option, this can't be done
my question: is there a way to simply add this "php code" input format option again? Or am I f*cked and do I need to reinstall my drupal? :)
thanks in advance!
Comments
just go to administer ->
just go to
administer -> input formatsand create a new filter. After it's created, you can configure it however you need, php and all.Thanks!!!!
Thanks because this happened to me and I didn't know how to solve. :-)
Now I could add some snippets.
deleted the original, created a new one, does not help
I've written about this problem of mine into some other threads, have received some comments, but got no help.
Tried to create a block with a php snippet, thought it was safe, as I copied the code from a post by drupal user. But since I had to modify it for my own variables, maybe I got something wrong.
Now, everywhere, all around Drupal.org, I get to read how disastrous it is to put in invalid php. Found no examples though, of what it may cause. And found no suggestions of how to fix the site after the worst has happened.
My problem is that after deleting php code (in input formats), the whole site looked awful:
All the formatting of the text was gone, no headers, no bolds, no paragraphs, tables no longer applied, no lay-out on any of the pages, images were no longer displayed...
I tried both full HTML, and Filtered HTML, no change. Only the input format iFrame made the pages look ok again. I have triple-checked the settings of each input formatting filter, but can't find a reason there.
Next I created a new input format, tried to make my own PHP filter. Named it PHP Code, checked only the PHP check-box for it, but RSS and feeds are still missing. I have been browsing Drupal.org for days, trying to find a way to re-install PHP input format, but found only this thread. And, like I said, this doesn't work for my site.
If the copied and modified php code that I tried, actually was invalid, is starting the site all over again the only solution?
Begging for help,
MerjaS