Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
providence
Regular
Regular


Joined: Apr 23, 2005
Posts: 95

PostPosted: Tue Jun 13, 2006 8:26 am Reply with quote

hi, I have HTML enabled in my reviews module
but when adding the embed tags it displays nothing.
I've used the same tags to display flash in my site, but when it comes to reviews module, its nothing.

here's the code I use..


Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="500"><param name="movie" value="flash.swf"><param name=quality value=high><PARAM NAME=loop VALUE=true><embed src="flash.swf"  width="500" height="500" loop=true quality=highpluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>

</object>


can anyone help me with this? thanks
 
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Tue Jun 13, 2006 10:11 am Reply with quote

Different modules / functions check HTML in different ways. If the reviews module uses the check_html function in the mainfile.php, you might need to defined that these tags are valid in your config.php file.

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
providence
PostPosted: Tue Jun 13, 2006 10:49 am Reply with quote

Code:
$AllowableHTML = array("b"=>1,"i"=>1,"u"=>1,"img"=>2,"div"=>2,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1);




thanks, this is the one in my config.

I dont quite get it, why there are equals, greater than and less than?

what do i type to add the ones in
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="500"><param name="movie" value="flash.swf"><param name=quality value=high><PARAM NAME=loop VALUE=true><embed src="flash.swf"  width="500" height="500" loop=true quality=highpluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>

</object>


thanks
 
kguske
PostPosted: Tue Jun 13, 2006 11:04 am Reply with quote

I don't use reviews, so I'm not sure if it uses the check_html function. If it does, you will need to add an object tag to the allowableHTML array.

The => assigns how may items are associated with the tag. For example, b, i, u, em, br, strong, blockquote, tt, li, ol and ul tags only have the tag - no additional qualifications. However, img, for example, requires a src= qualifier, and a usually requires an href= qualifier. Make sense?

Try replacing
Code:
$AllowableHTML = array("b"=>1,"i"=>1,"u"=>1,"img"=>2,"div"=>2,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1); 

with
Code:
$AllowableHTML = array("b"=>1,"i"=>1,"u"=>1,"img"=>2,"div"=>2,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1, "object"=>4, "param"=>2, "embed"=>6); 

Be aware that doing this will allow ANYONE to post flash files, which could cause security issues.
 
providence
PostPosted: Tue Jun 13, 2006 11:19 am Reply with quote

thanks kguske, it works now

by the way, it does makes sense in your explaination, thanks

by the way, im the only poster in my site, so I think it will be pretty secure

and my site doesnt do any financial transcations in anyway, so If ever there is a security issue, only thing will affect me is my time consumed restoring the site. heh

thanks again!
 
kguske
PostPosted: Tue Jun 13, 2006 11:35 am Reply with quote

Glad that did the trick. What I mean by secure was that someone could potentially use a flash file to gain unauthorized access to or to deface your site. If you limit posting to yourself, then you should be fine.
 
providence
PostPosted: Tue Jun 13, 2006 11:40 am Reply with quote

ahh thanks

maybe i should start keeping a whole backup of my site.

cause right now the only thing i have is the sql backup but not the files.
 
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

PostPosted: Tue Jun 13, 2006 6:52 pm Reply with quote

that would be a very wise decision providence. Smile

_________________
Themes BB Skins Only registered users can see links on this board! Get registered or login!
Graphic Tees Only registered users can see links on this board! Get registered or login!
Paranormal Tees Only registered users can see links on this board! Get registered or login!
Ghost Stories & More Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9453
Location: Arizona

PostPosted: Tue Jun 13, 2006 9:39 pm Reply with quote

Something I do is have an exact replica of my site running on my local PC that is a "test/qa" kind of system. As I test changes to things and prove them out, I then publish to my production site. It almost guarantees that that my files are the same, plus I get to test everything out first! Wink

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
providence
PostPosted: Tue Jun 13, 2006 11:12 pm Reply with quote

ahh, but i dont know how to run it my local pc.. i dont have php, sqls, etc
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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 ©