Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> WYSIWYG - Raven's RavenNuke(tm) v2.x Distro
Author Message
jjh221
Worker
Worker


Joined: Dec 05, 2006
Posts: 178

PostPosted: Thu Dec 21, 2006 1:57 pm Reply with quote

When submitting a popup window link, using WYSIWYG, it does not store it. After hitting submit it take me back to my home page. Is the html for a popup window not allowed? Or did i screw something up again?
 
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6793
Location: Ha Noi, Viet Nam

PostPosted: Thu Dec 21, 2006 4:05 pm Reply with quote

You would need to compare the html needed with that in the allowed html array.
 
View user's profile Send private message Send e-mail
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Thu Dec 21, 2006 8:22 pm Reply with quote

Do you mean a target tag?

_________________
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
jjh221
PostPosted: Fri Dec 22, 2006 12:40 am Reply with quote

Yea a target tag....?

Want to make popup window for disclaimer
 
montego
Site Admin


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

PostPosted: Fri Dec 22, 2006 6:58 am Reply with quote

Quote:

After hitting submit it take me back to my home page


I think this is the root of the issue. By change does your text have the work "Union" in it somewhere? That is a well known issue. Take that word out or substitute a "0" for the "o".

_________________
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
jjh221
PostPosted: Fri Dec 22, 2006 7:18 am Reply with quote

Doesnt have any words "Union". Strange thing is, when creating it in WYSIWYG, I can click on the link and it works. It just doesnt save. I can create other links. Not sure if its an sql error. It does write other links and text, just not the popup window.
 
montego
PostPosted: Fri Dec 22, 2006 7:27 am Reply with quote

Bummer... I was hoping it was an easy answer. Might very well be a bug in the version of FCK Editor. Have you tried to use the "View/Edit Source" button and manually add the target parameter?

It is possible that, as Guardian mentioned, that the "target" parameter is not in the Allowable HTML array. Check your config.php script for this array definition.
 
montego
PostPosted: Fri Dec 22, 2006 7:28 am Reply with quote

BTW, if your Allowable HTML array definition does not look like this, then you may have misssed a few editor edits:

Code:


$AllowableHTML = array(
   "a" => array("href" => 1, "target" => 1, "title" => array("minlen" => 4, "maxlen" => 120)),
   "b" => array(),
   "blockquote" => array(),
   "br" => array(),
   "center" => array(),
   "div" => array("align" => 1),
   "em" => array(),
   "font" => array("face" => 1, "style" => 1, "color" => 1, "size" => array("minval" => 1, "maxval" => 7)),
   "h1"=>array(),
   "h2"=>array(),
   "h3"=>array(),
   "h4"=>array(),
   "h5"=>array(),
   "h6"=>array(),
   "hr" => array(),
   "i" => array(),
   "img" => array("alt" => 1, "src" => 1, "hspace" => 1, "vspace" => 1, "border" => 1, "align" => 1),
   "li" => array(),
   "ol" => array(),
   "p" => array("align" => 1),
   "pre" => array("align" => 1),
   "span" =>array("class" => 1, "style" => array("font-family" => 1, "color" => 1)),
   "strong" => array(),
   "table" => array("align" => 1, "border" => 1, "cell" => 1),
   "td" => array(),
   "tr" => array("align" => 1),
   "tt"=>array(),
   "u" => array(),
   "ul" => array(),
);
 
jjh221
PostPosted: Fri Dec 22, 2006 8:23 am Reply with quote

Yep I have all the same. I think I found the problem. When trying to manually add it into my database, I get a syntax error. Maybe its my mysql version or my code is wrong.

Code:
'<div align="center"><a href="javascript:void(window.open('http://mysite.com/disclaimer/index.htm','Disclaimer','resizable=yes,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no,width=600,height=300'))">Disclaimer<br/></a></div>'
 
kguske
PostPosted: Fri Dec 22, 2006 10:52 am Reply with quote

It's the js reference. NukeSentinel is probably kicking it out.
 
jjh221
PostPosted: Fri Dec 22, 2006 11:39 am Reply with quote

what do i do? anything?
 
jjh221
PostPosted: Fri Dec 22, 2006 1:27 pm Reply with quote

nope its not sentinel. I think its version of mysql or code is just wrong.
 
Guardian2003
PostPosted: Fri Dec 22, 2006 6:16 pm Reply with quote

What makes you think it's not Nuke Sentinel - just curious.
 
kguske
PostPosted: Fri Dec 22, 2006 6:32 pm Reply with quote

You can use the target tag without using js.
 
jjh221
PostPosted: Sat Dec 23, 2006 12:10 am Reply with quote

Guardian2003 wrote:
What makes you think it's not Nuke Sentinel - just curious.

I get a syntax error when trying to add it to mysql. I didnt think that sentinel would change the code incorrectly. Also I tried with sentinel disabled. Not sure if that would really do anything, but it didnt work.


kguske wrote:
You can use the target tag without using js.


Ill have to look for some.


edit: welli cant figure out one that will allow me to resize the window.
 
kguske
PostPosted: Sat Dec 23, 2006 7:29 am Reply with quote

Sorry - I must've missed that resize requirement before. The target tag allows a new window to open, but it won't resize, as you know.

You could add a JS function to your includes/javascript.php or includes/my_header.php, add onclick to your a tag options in $allowable_html in config.php, then add the onclick option calling the javascript popup function to your link.
 
jjh221
PostPosted: Sat Dec 23, 2006 4:10 pm Reply with quote

ah ok ill try that tomorrow.

thanks, ill post back. I think ima go pass out now. wow am i tired lol AV weekend
 
kguske
PostPosted: Sat Dec 23, 2006 7:27 pm Reply with quote

Thanks - if you post how you solve it, I'm sure others would appreciate it.
 
jjh221
PostPosted: Sun Dec 24, 2006 6:23 am Reply with quote

I dont know I cant figure it out. I dont know how to set onclick in $allowable_html for this code or if it will even work.

Code:
function popUp(strURL,strType,strHeight,strWidth) {

var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
window.open(strURL, 'newWin', strOptions);
}


Code:
<a href="my-pop-up-window.htm" onclick="popUp(this.href,'console',400,200);return false;" target="newWin">This is my link</a>


Id like to use this code so I can set Height and Width, user side.


Last edited by jjh221 on Sun Dec 24, 2006 6:40 am; edited 2 times in total 
kguske
PostPosted: Sun Dec 24, 2006 6:34 am Reply with quote

To add onclick to $allowable_html, in the config.php change:
Code:
$AllowableHTML = array(

   "a" => array("href" => 1, "target" => 1, "title" => array("minlen" => 4, "maxlen" => 120)),
to:
Code:
$AllowableHTML = array(

   "a" => array("href" => 1, "onclick" => 1,"target" => 1, "title" => array("minlen" => 4, "maxlen" => 120)),
 
jjh221
PostPosted: Sun Dec 24, 2006 7:32 am Reply with quote

Thanks, but I give up, i dont even know if the code I want to use, is usable in php. Ima go play some video games

Merry xmas.... Ill try more later
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> WYSIWYG - Raven's RavenNuke(tm) v2.x Distro

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 ©