I recently installed 7.8 on my site I made one block on the right which had 3 links to different sites and it worked great. I patched my 7.8 with secpatch3.2. Now all new and edited blocks lose all attached links after saving the block.
Yeah, I'm having this same problem. Also, with some HTML code that I put in with IE, it will make IE crash and close down. But with FireFox, it will add the code most of the time, but it usually strips away some of the HTML code. I have 7.8 also. I didn't have a problem when I used 7.7.
Actually I just tried it again to refresh my memory. With IE, when tring to add the code, it will either make IE crash or not add anything. With FireFox, it will not make FireFox crash but, when you click on update HTML code, usually nothing will show up, if you go back to the HTML, most of the html code is gone. Any fixes for this?
It takes the HTML code out with or without the advance editor on or off. I just patched it to the newest patch of 7.8 and it still does the same thing.
i can click update, and all is fine, the picture now shows, but when i save it, and go to see if the pic is there, it's not there, and when I go look at the code, it has turned into this
Now it keeps this much of the HTML <a href="pics"></a>
I made a backup of the mainfile, so I copied it back, since it's still not working. I'm still lost. And also, my members have just started telling me that their sigs no long work, (they had pictures for their sigs), also, It's like I can not have HTML at all on my website now. I converted as much stuff over to PHP blocks and modules as I could, but still there are some stuff that needs HTML. Hope someone can help me here. I did not have this problem with 7.7. All the HTML worked...
Yeap, that fixed the problem, and I re-did the a href, from the link above I posted to get the a href links to stay. Everything seems to be working fine now.
The meaning of "1" and "2" is whether the tag accepts attributes or not. For example, if you want the <p> tag to NOT accept attributes (i.e. you accept <p> but you don't accept <p align="center">) the you put "1", otherwise (i.e., if attributes like "align" etc. are accepted) you put "2". That this is indeed so, can be seen from the check_html() function of mainfile.php (see also Section 16.1):
this is not so. I have tested and disproved it. it works with all html tages EXCEPT <a href and <img
If I put a tag like <img src="images/pocket.jpg"> It works fine.
If I put tag like <img src="images/pocket.jpg" border="0"> does not work
I have "img"=>2 in my config.php, so the second tag SHOULD work.
also "a"=>2 in my config.php and <a href tags do not work at all. The link is stripped and all that is left is <a href="">
AH HA!!!
Here's the lines in mainfile.php causing all the headache.
Code:
// Delete all spaces from html tags .
$str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?[[:space:]]*([^\" >]*)[[:space:]]*\"?[^>]*>",'<a href="\\1">', $str);
// Delete all attribs from Anchor, except an href, double quoted.
$str = eregi_replace("<[[:space:]]* img[[:space:]]*([^>]*)[[:space:]]*>", '', $str);
// Delete all img tags
$str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?javascript[[:punct:]]*\"?[^>]*>", '', $str);
lornaben Nuke Cadet
Joined: Feb 27, 2005
Posts: 8
Posted:
Tue Jun 20, 2006 1:05 pm
Is there a resolution to this issue ?
I added loads of bits to the allowed html in config.php but still it get stripped out......
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum