Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
kadabram
Hangin' Around



Joined: Oct 29, 2007
Posts: 30

PostPosted: Mon Jan 14, 2008 1:54 pm Reply with quote

Hello,

I am running PHPNuke v7.9. I have a problem with the news.

If I type a new article and it has text only it works fine.

If I type a new article with text and an image, the image displays but the text that is after the image is stripped out of my post. Can't figure it out.

What is strange: if I run EasyPHP on my local computer, there is no problem at all!

Here is what is written in my config.php file:
Code:
$AllowableHTML = array("b"=>1,"i"=>1,"strike"=>1,"div"=>2,"u"=>1,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1,"img"=>2);


But I am sure the problem doesn't come from this, because, as said above, it works on local (with EasyPHP).

Any ideas here Rolling Eyes ? Anyone ? Thanks!! Smile
 
View user's profile Send private message
kadabram







PostPosted: Mon Jan 14, 2008 3:03 pm Reply with quote

Hello again,

I did resolve my problem by myself. Hope this can help someone.

If you've got the same problem, you must not set the border to 0. Here is an exemple of working code:

Code:
<img height="200" alt="Your alt here" hspace="10" src="themes/Your_Theme/images/photos/your_pic_name.jpg" width="227" align="left" vspace="10" border="1" />


It works!!
 
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Mon Jan 14, 2008 5:33 pm Reply with quote

From the looks of it, 7.9 must not be using the $AllowableHTML array to check your HTML, since the "img"=>2 means that the img tag can only have 2 attributes - yours has 8!.

Anyway, I'm glad you got it working and appreciate your posting the solution.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Jan 14, 2008 7:53 pm Reply with quote

Actually it doesn't. "img"=>2 means you can use all attributes. It isn't a count of how many you can use.

My guess is that the WYSIWYG editor is not allowing zero values of border

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©