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, 98 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 - Content module stripping html code [ ]
 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
wingxnut18
Nuke Soldier
Nuke Soldier


Joined: Jan 06, 2006
Posts: 14

Location: Florida

PostPosted: Fri Jan 13, 2006 6:31 am Reply with quoteBack to top

When I post in my content pages, the majority of my html tags are being stripped off. All the formatting for font size, font color and such like that. Is there any way to turn it off or work around that?

I would post the code, but these forums do NOT like some of the formatting that I attempt to post, lol.

We are using PhPnuke 7.9 and I do have full access to all files.

_________________
My signature died...
Find all posts by wingxnut18View user's profileSend private messageVisit poster's website
astalavistabd
Captain
Captain


Joined: Dec 19, 2004
Posts: 663

Location: Canada

PostPosted: Fri Jan 13, 2006 1:32 pm Reply with quoteBack to top

ya, i know, it sucks. I am also looking for better content module which has more options and more customizeable. If you really want to change your content font format you have to edit your style.css and make a special tag there. Smile

_________________
Free PHPNuke Themes, PHPNuke Modules, PHPNuke Blocks (No Registration Required)
Find all posts by astalavistabdView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12464


PostPosted: Fri Jan 13, 2006 8:35 pm Reply with quoteBack to top

Mostly its due to the WYSIWYG editor. The advanced version support more tags, but unfortunately that was removed from 7.9. You'd have to go back to 7.8 for those files

Also, the allowed HTML must be correct in your config.php - that is independent of the 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
wingxnut18
Nuke Soldier
Nuke Soldier


Joined: Jan 06, 2006
Posts: 14

Location: Florida

PostPosted: Sat Jan 14, 2006 2:04 pm Reply with quoteBack to top

Let's just say that the tag I'm mostly working with, and worried about, is the font tag. Would I just add in:

Code:
"font"=>1,


Would that allow me to change font size and color beyond what is defined in the .css?

_________________
My signature died...
Find all posts by wingxnut18View user's profileSend private messageVisit poster's website
wingxnut18
Nuke Soldier
Nuke Soldier


Joined: Jan 06, 2006
Posts: 14

Location: Florida

PostPosted: Sat Jan 14, 2006 2:17 pm Reply with quoteBack to top

Nevermind, I got it. If anyone else is interested, Evaders99 was right. What I did though was this in the config.php:
Code:
$AllowableHTML = array("b"=>1,
            "font"=>2,
            "span"=>2,
            "i"=>1,
            "a"=>2,
            "em"=>1,
            "br"=>1,
            "strong"=>1,
            "blockquote"=>1,
                    "tt"=>1,
                    "li"=>1,
                    "ol"=>1,
                    "ul"=>1);


I added span and font, but it wouldn't accept anything past the actual font or span tag, so I upped the second number. That does the trick.

_________________
My signature died...
Find all posts by wingxnut18View user's profileSend private messageVisit poster's website
shadowmihaiu
Nuke Cadet
Nuke Cadet


Joined: Mar 09, 2006
Posts: 2


PostPosted: Thu Mar 09, 2006 12:53 pm Reply with quoteBack to top

I need to put in image tags, so I have a couple questions...

1. Sorry for my unfamiliarity with html/php... will the above fix in config.php allow the input of img tags? How would I add the functionality to allow inputting an image into the content?

2. Is it possible to use the editor from 7.8, (and if so, I would still have to alter the config.php as above, right?) or would I have to go back to 7.8 completely?
Find all posts by shadowmihaiuView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12464


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

1) Yes you will need to modify config.php for the IMG tag to work. I'm not sure what you mean by "into the context"

2) You would have to load all the WYSWIYG files from 7.8. It maybe better just to use 7.8

_________________
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
shadowmihaiu
Nuke Cadet
Nuke Cadet


Joined: Mar 09, 2006
Posts: 2


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

Thanks for your help.

Evaders99 wrote:
I'm not sure what you mean by "into the context"

I meant content, i.e. into the "content" system.

Quote:
2) You would have to load all the WYSWIYG files from 7.8. It maybe better just to use 7.8


Do you know of a rollback script anywhere to go back from 7.9 patched to 7.8 patched? I haven't found one. I have two PHPnuke websites - one I can just start from scratch, but the other is running and I believe I'll have database problems by re-installing. (I'm not advanced enough to figure out how to undo the so-called upgrade to 7.9 all myself).

thanks again,
Shadow
Find all posts by shadowmihaiuView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12464


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

You'd have to write the HTML code to get the IMG to work


I have not seen one.

_________________
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
Exodus
Nuke Soldier
Nuke Soldier


Joined: Oct 02, 2004
Posts: 20


PostPosted: Wed Mar 15, 2006 7:18 am Reply with quoteBack to top

wingxnut18 wrote:
Nevermind, I got it. If anyone else is interested, Evaders99 was right. What I did though was this in the config.php:
Code:
$AllowableHTML = array("b"=>1,
            "font"=>2,
            "span"=>2,
            "i"=>1,
            "a"=>2,
            "em"=>1,
            "br"=>1,
            "strong"=>1,
            "blockquote"=>1,
                    "tt"=>1,
                    "li"=>1,
                    "ol"=>1,
                    "ul"=>1);


I added span and font, but it wouldn't accept anything past the actual font or span tag, so I upped the second number. That does the trick.



_____________________________________________________________


I have been struggling with this for a while now and its driving me nuts. I'm using 7.9 and I cant get html tags to work whether the editor is turned on or off. I'm mostly needing to use the font tags for fontsize and color and image link to imbed pictures. I have changed my config.sys to read the following:

$AllowableHTML = array("b"=>1,
"i"=>1,
"a"=>2,
"em"=>1,
"br"=>1,
"strong"=>1,
"blockquote"=>1,
"tt"=>1,
"li"=>1,
"ol"=>1,
"H1"=>1,
"H2"=>1,
"H3"=>1,
"H4"=>1,
"center"=>1,
"img"=>2,
"alt"=>1,
"table"=>2,
"tr"=>2,
"td"=>2,
"p"=>2,
"div"=>2,
"font"=>2,
"p"=>1,
"p"=>1,
"ul"=>1);

I thought that should cover it but still no dice. I'm confused on what "1" and "2" stand for exaclty. Is "1" activated and "2" deactivated?

I will sacrifice a goat in your name if you can help me with this before I go insane! LOL (kidding of course)


Eric
Find all posts by ExodusView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12464


PostPosted: Wed Mar 15, 2006 7:52 am Reply with quoteBack to top

"2" is with attributes (ie a href="")
"1" is w/o attributes (ie a only)

The WYSIWYG editor will also filter code. You will have to disable it

_________________
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
elkidogz
Nuke Cadet
Nuke Cadet


Joined: Feb 01, 2006
Posts: 7


PostPosted: Thu Apr 06, 2006 5:49 pm Reply with quoteBack to top

how does one disable the WYSIWYG

i've added the "img"=>2 what else needs to be done?
Find all posts by elkidogzView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12464


PostPosted: Fri Apr 07, 2006 5:26 am Reply with quoteBack to top

You can add in your config.php
Code:

define('NO_EDITOR',1);

Or just delete the loading code from includes/javascript.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
highesp
Nuke Soldier
Nuke Soldier


Joined: Sep 05, 2004
Posts: 10


PostPosted: Sat Apr 22, 2006 8:14 am Reply with quoteBack to top

Hi

I have the same problem and tried the above. What I need is the WYSIWYG working with the Content Module without it stripping most of my html code.

Funny thing is tables, images, etc... work fine, but it strips the code in fonts such as colour, size, etc... and it displays them like in my css.

I tried to change config.php.
Originally it looked like:
Code:
$AllowableHTML = array(
   "a" => array("href" => 2, "target" => 2, "title" => array("minlen" => 4, "maxlen" => 120)),
   "b" => array(),
   "blockquote" => array(),
   "br" => array(),
   "center" => array(),
   "div" => array("align" => 1),
   "em" => array(),
   "font" => array("face" => 1, "style" => 1, "color" => 1, "size" => array("minval" => 1, "maxval" => 7)),
   "h1"=>array(),
   "h2"=>array(),
   "h3"=>array(),
   "h4"=>array(),
   "h5"=>array(),
   "h6"=>array(),
   "hr" => array(),
   "i" => array(),
   "img" => array("alt" => 1, "src" => 1, "hspace" => 1, "vspace" => 1, "border" => 1, "align" => 1),
   "li" => array(),
   "ol" => array(),
   "p" => array("align" => 1),
   "pre" => array("align" => 1),
   "span" =>array("class" => 1, "style" => array("font-family" => 1, "color" => 1)),
   "strong" => array(),
   "table" => array("align" => 1, "border" => 1, "cell" => 1),
   "td" => array(),
   "tr" => array("align" => 1),
   "tt"=>array(),
   "u" => array(),
   "ul" => array(),
);


Changing 1 to 2 does not change a thing.
What I don't understamd is why it works in the news module perfectly (showing the font and color I choose via the WYSIWYG editor) and not on the content module.

If only someone could help me with this I would be gratefull ever after.
Find all posts by highespView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12464


PostPosted: Sat Apr 22, 2006 3:50 pm Reply with quoteBack to top

I'm not sure what all those arrays do. It doesn't seem to be the way its supposed to work. What version are you using? Is it Patched?

Try
"font"=>2

_________________
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
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.281 Seconds - 156 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::