Author |
Message |
providence
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Apr 23, 2005
Posts: 95
|
Posted:
Tue Jun 13, 2006 8:26 am |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
Site Admin
![](modules/Forums/images/avatars/41f0b40a419280935f3a0.gif)
Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Tue Jun 13, 2006 10:11 am |
|
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 search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
providence
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jun 13, 2006 10:49 am |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jun 13, 2006 11:04 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
providence
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jun 13, 2006 11:19 am |
|
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! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jun 13, 2006 11:35 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
providence
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jun 13, 2006 11:40 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jaded
Theme Guru
![](modules/Forums/images/avatars/447fe6544d7f95dc7157a.gif)
Joined: Nov 01, 2003
Posts: 1006
|
Posted:
Tue Jun 13, 2006 6:52 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Jun 13, 2006 9:39 pm |
|
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](modules/Forums/images/smiles/icon_wink.gif) |
_________________ 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! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
providence
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jun 13, 2006 11:12 pm |
|
ahh, but i dont know how to run it my local pc.. i dont have php, sqls, etc |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|