Author |
Message |
jjh221
Worker


Joined: Dec 05, 2006
Posts: 180
|
Posted:
Thu Dec 21, 2006 1:57 pm |
|
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? |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Thu Dec 21, 2006 4:05 pm |
|
You would need to compare the html needed with that in the allowed html array. |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Thu Dec 21, 2006 8:22 pm |
|
Do you mean a target tag? |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
jjh221

|
Posted:
Fri Dec 22, 2006 12:40 am |
|
Yea a target tag....?
Want to make popup window for disclaimer |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Fri Dec 22, 2006 6:58 am |
|
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! |
|
|
 |
jjh221

|
Posted:
Fri Dec 22, 2006 7:18 am |
|
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

|
Posted:
Fri Dec 22, 2006 7:27 am |
|
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

|
Posted:
Fri Dec 22, 2006 7:28 am |
|
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

|
Posted:
Fri Dec 22, 2006 8:23 am |
|
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

|
Posted:
Fri Dec 22, 2006 10:52 am |
|
It's the js reference. NukeSentinel is probably kicking it out. |
|
|
|
 |
jjh221

|
Posted:
Fri Dec 22, 2006 11:39 am |
|
|
|
 |
jjh221

|
Posted:
Fri Dec 22, 2006 1:27 pm |
|
nope its not sentinel. I think its version of mysql or code is just wrong. |
|
|
|
 |
Guardian2003

|
Posted:
Fri Dec 22, 2006 6:16 pm |
|
What makes you think it's not Nuke Sentinel - just curious. |
|
|
|
 |
kguske

|
Posted:
Fri Dec 22, 2006 6:32 pm |
|
You can use the target tag without using js. |
|
|
|
 |
jjh221

|
Posted:
Sat Dec 23, 2006 12:10 am |
|
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

|
Posted:
Sat Dec 23, 2006 7:29 am |
|
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

|
Posted:
Sat Dec 23, 2006 4:10 pm |
|
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

|
Posted:
Sat Dec 23, 2006 7:27 pm |
|
Thanks - if you post how you solve it, I'm sure others would appreciate it. |
|
|
|
 |
jjh221

|
Posted:
Sun Dec 24, 2006 6:23 am |
|
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

|
Posted:
Sun Dec 24, 2006 6:34 am |
|
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

|
Posted:
Sun Dec 24, 2006 7:32 am |
|
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 |
|
|
|
 |
|