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, 146 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 - [Urgent]PHP-Nuke 7.7 wont allow me to use <embed> tag [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
slacko
Guest






PostPosted: Sun May 15, 2005 12:55 pm Reply with quoteBack to top

I'm in huge needs to embed movie files such as .WMV into stories i post
but it seems like PHP-Nuke strips the <embed> tags automatically

how can i fix that?
Find all posts by Anonymous
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sun May 15, 2005 4:21 pm Reply with quoteBack to top

You have to add it as an allowed HTML tag in config.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
slacko
Guest






PostPosted: Sun May 15, 2005 5:02 pm Reply with quoteBack to top

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

i added this line, it didnt seem like it's working, when i'm trying to type in <embed src="xxx"></embed> into the HTML source editor, it still strips out the <embed> tag

any ideas please?
Find all posts by Anonymous
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sun May 15, 2005 6:34 pm Reply with quoteBack to top

Quote:

Put the tags you want to allow in the $AllowableHTML array in the config.php file. Here is a (quite liberal) example:

$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);



The numbers that appear next to each tag have the following meaning:

a 1 means the tag does not accept any attributes

a 2 indicates that the tag may also contain attributes

_________________
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
slacko
Guest






PostPosted: Sun May 15, 2005 7:11 pm Reply with quoteBack to top

i did what you said and i added
Quote:
"embed"=>2
to it, i'm not sure how the older versions work, but in 7.7, the editor just strips the tag no matter what i do to the config file, it's getting annoying

Sad i guess i shouldn't have paid $10 for it and use the free 7.6 version instead
Find all posts by Anonymous
slacko
Guest






PostPosted: Sun May 15, 2005 8:13 pm Reply with quoteBack to top

=/

Tiny_mce wyswyg editor in 7.7 is a b!tch, i guess you guys should include other wyswyg editors that really DOES ALLOW html

this tiny_mce thing is disabling html even it's the admin who's posting Mad
Find all posts by Anonymous
arnoldkrg
Major
Major


Joined: Aug 03, 2003
Posts: 936

Location: United Kingdom

PostPosted: Mon May 16, 2005 12:15 am Reply with quoteBack to top

You can disable the tiny mce editor for all admins by editing includes/javascript.php. Find around line 65:

Code:
} elseif (is_admin($admin) AND $advanced_editor != 1 AND $name != "Private_Messages") {
   echo "<!-- tinyMCE -->
      <script language=\"javascript\" type=\"text/javascript\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
      <script language=\"javascript\" type=\"text/javascript\">
         tinyMCE.init({
            mode : \"textareas\",
         theme : \"basic\",
         language : \"$lang\",
         $edtcss
         force_p_newlines: \"false\",
         force_br_newlines: \"true\"
         });
      </script>
      <!-- /tinyMCE -->";



and delete or comment out. You also need to set $advanced_editor = 0 in config.php of course.

_________________
Image
Find all posts by arnoldkrgView user's profileSend private messageSend e-mailVisit poster's website
crewxp2
Guest






PostPosted: Sat Sep 24, 2005 6:07 pm Reply with quoteBack to top

Anyone have a solution for this? I'm trying to embed on the news section in 7.9 and it's not working.


Also, whats the code to post an image in a news story? Thx
Find all posts by Anonymous
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
You can post new topics in this forum
You can 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: 1.028 Seconds - 88 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::