By sambtaylor on
Are there settings somewhere that stop Drupal from accepting HTML coding for images in nodes. I am trying to hard code images into nodes and nothing displays, even with full html filter set. Can anyone explain?
Are there settings somewhere that stop Drupal from accepting HTML coding for images in nodes. I am trying to hard code images into nodes and nothing displays, even with full html filter set. Can anyone explain?
Comments
err... what?
Drupal does. Certainly for my sites and Drupal.org.
Perhaps there is an issue with your site, your theme, something.... You will need to be more specific about your setup, etc.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
=-=
would be helpful if you posted the HTML you are using as well.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
*img
<img scr="http://thepoetryworkshop.com/files/images/postapoem.JPG" alt="" /><img src="http://thepoetryworkshop.com/files/images/postapoem.JPG" alt="" />Tried both of the above (* equals greater or less than), with and without trailing slash. They look the same, right? But, the first I copied and pasted from a text editor--and it worked! The second I typed into Drupal Text Box and it didn't.
Both with Full Html configured with only Line Break Converter. But, it does seem as if there is some other filter interfering here. The pasted HTML works, the typed HTML doesn't.
I've had this problem in both Safari and Firefox (was suspicious of the browser at first; turned off spell checking). I've had it with both LiteJazz and Zen themes. 5.2 Drupal (I know, security, will update soon, but no one is on these sites yet). And, I've had it with one installation with 60 total modules and another with only CORE modules.
Any ideas?
=-=
This part makes no sense, as pasted or typed drupal doesn't know or care about that.
But .....................
I've pasted it, I've typed it and they both work. Using IE7 see: dev.verymisunderstood.com/
The one thing I'd avoid is the captialized .JPG, not that this is your problem but ..........
what I'd like to do, is give you a test account on my sandbox, and you can try it there leaving the nodes intact. I'd like to inspect the source if you indeed can recreate the problem in my sandbox.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
images uploaded with Drupal
images uploaded with Drupal somehow have a capital JPG added. I added that in case that was the problem. But, it wasn't. That's the file name in the directory. THough when saved on photoshop it was not.
I've tried it now in Netscape, Safaria, and Firefox, and I can't type it into any of them. I can't use IE on a Mac.
Any other ideas?
Um, you are aware of the
Um, you are aware of the typo in what you pasted, right?
Anyway, if you suspect that filters or other wierdness is mutilating your input, do a view-source on the result. That'll show whether it was removed, rewritten, or just wrong. Also running the w3c validator may occasionally help detect if you just really stuffed up with your handwritten code.
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
typo? if you mean the
typo? if you mean the asterisks, that was intentional. The tags are there in the source. Yet, they don't display when they were typed. Only when they were pasted. Bizarre. I don't understand.
=-=
Not all HTML will display when using a FILTERED HTML input format (which is what drupal is set to @ default). which means HTML tags get stripped when using this input format except for those tags allowed by the admin of a Drupal site. the
<img>tag is one of the tags that are stripped by the filter on drupal.org as well as a default drupal installation.<code>you have to wrap your HTML in code tags</code>I've altered your comment : http://drupal.org/node/186573#comment-284762
to show you that the code tags do indeed work.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
No, I didn't mean that. The
No, I didn't mean that. The images don't display when typed. I am using full html and have no issue with the tags not displaying.
=-=
I would like for you to do what you do there please using the blog entry.
If necessary I will install the same theme you are using, but you will have to give me that information.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
I've tried Blue Marine, Zen,
I've tried Blue Marine, Zen, and LiteJazz.
You don't have full html for users, so my test didn't work.
Thanks for setting it up for me though
=-=
oopps, fixed test user now has FULL HTML input format
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Same result. It must be
Same result. It must be some interference from my computer or browser not the drupal installation.
What could do that? Hmmm.
=-=
The fact that it is happening to you on my site definetly points your browser or system in some way interferring. Are you using the latest release of whatever browser is in use ?
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
I've tried 3 browsers. So
I've tried 3 browsers. So that makes me lean to my computer. But OS X has no Known viruses. . . Do you know anything that could affect how local input was recorded that could alter this? What's strange is the source html code is identical when typed. At least on mine. View your source code. Shouldn't that code display??
=-=
Try not to smack yourself in the forehead too hard:
you've been making the mistake every time you've typed it. Matter of fact , dman's comment http://drupal.org/node/186573#comment-284768 picked it up hours earlier.
in the pasted code, which is correct, you are using
<img srcin the typed code you are using
<img scrobviously scr is wrong.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
;-B
I was trying to give the benefit of the doubt and avoid pointing fingers at an obvious mistake which may have just been due to the re-typing of the post made here, and not the actual problem :-}
But if it was just a typo ... all the time ...
Ah well, live and learn. And learn to validate also ;-)
src
is HTML for 'source'. SCR (if anything) is an extension for Windows screensavers.
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
I'm not sure whether to be
I'm not sure whether to be relieved and overjoyed or embarrassed, as I feel both. How I could manage to type it correctly ten times when I pasted it and incorrectly twenty times in a browser is a mystery that seems to confirm how much we create (recreate) our world with our expectations/fears/whatever (once frustrated, etc.). I am grateful for everyone's help, and I apologize for the same.
heh
Relieved. It's not like all of us have not at one time or another done something similar.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
...
With the
<img>added to allowed in the Filtered HTML filter.... It works for meThe exact code used is between code tags above the image.
http://scratch.blkmtn.org/node/123
Whether capitalization is a factor depends more on the OS and Web Server setup then Drupal.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
Thanks for doing the
Thanks for doing the tests.
Capitalization is a factor, but not the problem--it won't work with jpg small even when pasted.
So, why won't it work for me when typed in the browser. It's bizarre. Very frustrating.
path issues?
If it won't work for you from your system, you have an additional issue somewhere complicating your life. It may be a name resolution/routing issue there.
ping your site by name.
traceroute / tracert to your site.
You should get to 207.73.33.226
If you are testing directly on your server itself, then you may need to add a host entry for your site in the hosts table. (Google for how, or see your ISPs documentation for the steps).
Switch themes to Blue Marine and check there. If it works in Blue Marine (or Garland) then check the themes issue queue for other reports of the problem as themes can interfere in subtle ways. I can browse directly to the image in my browser.
This is the exact line used on my scratch site.
<img src="http://thepoetryworkshop.com/files/images/postapoem.JPG" />-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
Blue Marine doesn't work
Blue Marine doesn't work either.
Why would it work when pasted though and not when typed. Why would that have anything to do with any of the above. i will trust you if it does, but it doesn't make sense to me. The site in general is working fine, and the image is called up by everything except when I type it into my text area.
=-=
That's what we are trying to diagnose. by having to complete steps to help diagnose. What we are looking for are clues, since we cannot duplicate your problem on our installs and obviously can't use yours on your system.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
I will try to do all this,
I will try to do all this, but I have to figure out what it all is first:
ping your site by name.
traceroute / tracert to your site.
You should get to 207.73.33.226
If you are testing directly on your server itself, then you may need to add a host entry for your site in the hosts table. (Google for how, or see your ISPs documentation for the steps).
I appreciate you searching for clues.
looking for clues
Going on with the idea of finding clues to this mystery, have you tried other tags to see if they work? Such as
<TABLE>,<UL>, etc?Durval Tabach
Durval Tabach
=-=
It is a mystery no longer, the problem has been solved. The OP was making a typo. See: http://drupal.org/node/186573#comment-284813
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
It appears that I have met
It appears that I have met the same problem. I discovered it when I tried to insert an image. I had set Full HTML as default (and also set it for the specific article). The image is there when I see the article with the TinyMCE editor but else it is hidden. - Then I discovered that the colours had disappeared from some text in another article where I had experimented with foreground colours.
Solution
I for my part have found the solution. I had correctly chosen Full HTML, but I had not noticed that there is a possibility to configure this option in the "Input formats".
Now I have deactivated the "HTML filter" in the configuration of Full HTML. And I can see my images again.
How can you insert HTML codes?
Please tell me how can I see HTML page of my drupal site? Where is it? How can I insert HTML codes? Thanks.
=-=
before you save your node, you have to click on "input formats" under the content text area. Then select the FULL HTML filter.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
I see "File attachments"
I see "File attachments" there. Thanks I think I can upload html files from "File attachments".
But how can I insert google analytics codes for all pages of my site. I use blocks for it. I think blocks are not appropriate location for that type codes.
=-=
If all you see is a file attachments menu, then you don't seem to be signed in as teh 1st created user.
google analytics code can go into page.tpl.php where you deem appropriate. Although I would use the google analytics module in the downloads area.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
No, I am #1 user. I see
No, I am #1 user. I see "Administer" link and "Content Management", "User Management", "Logs", "Site configuration" and so on.
Where is page.tpl.php? Thank you very much for infos.
=-=
click on create content
click on a content type
you should see a collapsed menu that says input formats, it is here that filters are situated.
page.tpl.php is located in your themes folder.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
I don't see input formats. I
I don't see input formats. I think I use a different type of Drupal (updated to version 5.2). Because I downloaded it through a godaddy hosting section which lets to install a site from a long list of open source (free) sites including drupal, wordpress, etc. I didn't install it manually through ftp. I selected drupal from the list to install into one of my domains. All other things have done by godaddy. So, I don't know how to download a piece of code like adsense and google analytics. I used blogger. It's very easy to insert any code to blogger templates. I was looking for such a "template" on drupal. But I see now, drupal or having own hosting account is very different from using blogger.
I have found "page.tpl.php"
I have found "page.tpl.php" Thanks. But how can I write analytics code?
=-=
You should not be using Drupal 5.2 , The latest release of Drupal is 5.3. Drupal 5.3 replaced 5.2 as some security holes were found and patched. If you run 5.2 you run a higher risk of having your site hacked.
Installing Drupal on your own is not any harder these days then using FANTASTICO or some othe rhost panel one click method.
With regards to what you do with page.tpl,.php, you add your code it, Though again, I seriously suggest using the adsense.module in the downloads area here, it makes working with google adsense much easier.
Lastly, input formats is a standard in Drupal since before Drupal 5. if your install doesn't have them, then something is definetly wrong.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
I have learnt how to install
I have learnt how to install files through ftp by myself :)
To install 5.3 should I delete all of my directory where I see on ftp control panel and then install it?
Why can't I upgrade to 5.3 easily by using update function ?
=-=
It is best to learn to update and install on your own. Using a one click update function of a 3rd party can lead to disaster and noone on Drupal.org can help you.
as far as your directories are concered, I cannot see your servers file structure. I do not suggest you delete ALL folder, you should have a public_html folder or what is called a public root. It is here that your website is available to be accessed and Drupal should be installed in this folder.
your hosts documentation should explain how and where to set up web pages and scripts.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
I have found
I have found http://...com/update.php
As I see here I don't need to update any "system module" and "statistics module". But I use version 5.2 and 5.3 is available. Is it conflicted ?
I don't have "public_html" or "public.html". I don't know how to create it. I don't know which files should be renewed if I could create public directory. I think I can only update it to 5.3 if I see a update warning on somewhere while I am surfing on my hosting account. I can give you my directory list with names or snapshot. But I don't want to take your time. Because I am a newbie. If you have time I can also give you my godaddy username/password. But this doesn't help me in the long term. I should learn the process than I can make new updates in the future by myself. Thanks for your help so much. I will have less time to be online for next weeks. I am sorry already if I reply late.
I am definitely having
I am definitely having problems as well with the full html insert.
When I try to insert inline css with a background image url, it replaces it as a a href tag!
becomes
My Drupal sites:
What a mad thing to
What a mad thing to do.
Anyway, that's the URL-filter doing that autolinking for you, not the HTML filter.
Turn it off in your input type if you want.
It could be raised as an issue against the filter mode I guess ... but it's a really rare thing to do!
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards