You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 162 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Blocks: Links added to text will not save [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
zer0grav
Nuke Cadet
Nuke Cadet


Joined: May 12, 2005
Posts: 5


PostPosted: Fri Mar 10, 2006 8:34 am Reply with quoteBack to top

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.

Code before saved:

<div><a href="eqdkp/viewnews.php" target="_blank">DKP Points</a></div><br />

Code after save:

<div><a href="">DKP Points</a></div><br />

This has also effected my "Administration" block.

Any ideas?
Find all posts by zer0gravView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Fri Mar 10, 2006 10:16 am Reply with quoteBack to top

Is the A tag allowed in config.php ?

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
zer0grav
Nuke Cadet
Nuke Cadet


Joined: May 12, 2005
Posts: 5


PostPosted: Fri Mar 10, 2006 8:40 pm Reply with quoteBack to top

Im a real newb when it come to this stuff, but I did some reading on forums and I assume its allowed?

$AllowableHTML = array("tr"=>1,"td"=>2,"table"=>2,"div"=>2,"p"=>2,"hr"=>1,"b"=>1,"i"=>1,"strike"=>1,"u"=>1,"div"=>2,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1);

I'm using the built in editor in the block module to add my links, btw.
Find all posts by zer0gravView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Fri Mar 10, 2006 8:42 pm Reply with quoteBack to top

Something with the WYSIWYG editor stripping it out? I'm not entirely sure. The Allowed HTML looks correct

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Guardiannknight
Nuke Soldier
Nuke Soldier


Joined: Aug 09, 2005
Posts: 28


PostPosted: Sat Mar 11, 2006 10:17 am Reply with quoteBack to top

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. Shocked I have 7.8 also. I didn't have a problem when I used 7.7.

_________________
www.guardiansworlds.com
Find all posts by GuardiannknightView user's profileSend private messageVisit poster's website
Guardiannknight
Nuke Soldier
Nuke Soldier


Joined: Aug 09, 2005
Posts: 28


PostPosted: Sat Mar 11, 2006 10:30 am Reply with quoteBack to top

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. Shocked Any fixes for this?

_________________
www.guardiansworlds.com
Find all posts by GuardiannknightView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sat Mar 11, 2006 5:21 pm Reply with quoteBack to top

Are you using the Advanced editor?

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Guardiannknight
Nuke Soldier
Nuke Soldier


Joined: Aug 09, 2005
Posts: 28


PostPosted: Sun Mar 26, 2006 1:47 pm Reply with quoteBack to top

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.

lets say I enter this code

<a href="pics/"><img height="200" src="mygraphics/piclinks2.jpg" width="1000" border="0" /></a>

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

<a href=""></a>

I have no clue what is going on...

_________________
www.guardiansworlds.com
Find all posts by GuardiannknightView user's profileSend private messageVisit poster's website
Guardiannknight
Nuke Soldier
Nuke Soldier


Joined: Aug 09, 2005
Posts: 28


PostPosted: Sun Mar 26, 2006 4:29 pm Reply with quoteBack to top

I tried what you told this guy to do in this post.. http://www.nukecops.com/postt52049.html

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. Sad 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. Sad Hope someone can help me here. I did not have this problem with 7.7. All the HTML worked...

_________________
www.guardiansworlds.com
Find all posts by GuardiannknightView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Mon Mar 27, 2006 10:44 am Reply with quoteBack to top

The img tag is allowed in your config.php ?

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Guardiannknight
Nuke Soldier
Nuke Soldier


Joined: Aug 09, 2005
Posts: 28


PostPosted: Mon Mar 27, 2006 1:32 pm Reply with quoteBack to top

I guess this is what you was talking about in the config.php?

$AllowableHTML = array("tr"=>1,"td"=>2,"table"=>2,"div"=>2,"p"=>2,"hr"=>1,"b"=>1,"i"=>1,"strike"=>1,"u"=>1,"div"=>2,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1);


Is 1 for on and 2 for off?

_________________
www.guardiansworlds.com
Find all posts by GuardiannknightView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Mon Mar 27, 2006 7:33 pm Reply with quoteBack to top

This should help you out:
http://www.nukecops.com/PHP-Nuke_config-php-file.html

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Guardiannknight
Nuke Soldier
Nuke Soldier


Joined: Aug 09, 2005
Posts: 28


PostPosted: Wed Mar 29, 2006 10:19 am Reply with quoteBack to top

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.

Thanks, Smile
Guardian

_________________
www.guardiansworlds.com
Find all posts by GuardiannknightView user's profileSend private messageVisit poster's website
myrtletrees
Nuke Cadet
Nuke Cadet


Joined: Apr 05, 2006
Posts: 2


PostPosted: Wed Apr 05, 2006 2:15 pm Reply with quoteBack to top

Evaders.
According to the link you posted
Quote:
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);
Find all posts by myrtletreesView user's profileSend private message
lornaben
Nuke Cadet
Nuke Cadet


Joined: Feb 27, 2005
Posts: 8


PostPosted: Tue Jun 20, 2006 1:05 pm Reply with quoteBack to top

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...... Crying or Very sad
Find all posts by lornabenView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.593 Seconds - 110 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::