PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
providence
Regular
Regular


Joined: Apr 23, 2005
Posts: 95

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

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: 6044

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

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.
View user's profile Send private message
providence
Regular
Regular


Joined: Apr 23, 2005
Posts: 95

PostPosted: Tue Jun 13, 2006 10:49 am Reply with quote Back to top

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
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Tue Jun 13, 2006 11:04 am Reply with quote Back to top

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.
View user's profile Send private message
providence
Regular
Regular


Joined: Apr 23, 2005
Posts: 95

PostPosted: Tue Jun 13, 2006 11:19 am Reply with quote Back to top

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!
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Tue Jun 13, 2006 11:35 am Reply with quote Back to top

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.
View user's profile Send private message
providence
Regular
Regular


Joined: Apr 23, 2005
Posts: 95

PostPosted: Tue Jun 13, 2006 11:40 am Reply with quote Back to top

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.
View user's profile Send private message
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

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

that would be a very wise decision providence. Smile
View user's profile Send private message Visit poster's website
montego
Site Admin


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

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

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
View user's profile Send private message Visit poster's website
providence
Regular
Regular


Joined: Apr 23, 2005
Posts: 95

PostPosted: Tue Jun 13, 2006 11:12 pm Reply with quote Back to top

ahh, but i dont know how to run it my local pc.. i dont have php, sqls, etc
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum