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
jjh221
Worker
Worker


Joined: Dec 05, 2006
Posts: 178

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

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: 6373
Location: Vsetin, Czech Republic

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

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 Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

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

Do you mean a target tag?
View user's profile Send private message
jjh221
Worker
Worker


Joined: Dec 05, 2006
Posts: 178

PostPosted: Fri Dec 22, 2006 12:40 am Reply with quote Back to top

Yea a target tag....?

Want to make popup window for disclaimer
View user's profile Send private message
montego
Site Admin


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

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

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".
View user's profile Send private message Visit poster's website
jjh221
Worker
Worker


Joined: Dec 05, 2006
Posts: 178

PostPosted: Fri Dec 22, 2006 7:18 am Reply with quote Back to top

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


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

PostPosted: Fri Dec 22, 2006 7:27 am Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
montego
Site Admin


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

PostPosted: Fri Dec 22, 2006 7:28 am Reply with quote Back to top

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(),
);
View user's profile Send private message Visit poster's website
jjh221
Worker
Worker


Joined: Dec 05, 2006
Posts: 178

PostPosted: Fri Dec 22, 2006 8:23 am Reply with quote Back to top

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


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Fri Dec 22, 2006 10:52 am Reply with quote Back to top

It's the js reference. NukeSentinel is probably kicking it out.
View user's profile Send private message
jjh221
Worker
Worker


Joined: Dec 05, 2006
Posts: 178

PostPosted: Fri Dec 22, 2006 11:39 am Reply with quote Back to top

what do i do? anything?
View user's profile Send private message
jjh221
Worker
Worker


Joined: Dec 05, 2006
Posts: 178

PostPosted: Fri Dec 22, 2006 1:27 pm Reply with quote Back to top

nope its not sentinel. I think its version of mysql or code is just wrong.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Fri Dec 22, 2006 6:16 pm Reply with quote Back to top

What makes you think it's not Nuke Sentinel - just curious.
View user's profile Send private message Send e-mail Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Fri Dec 22, 2006 6:32 pm Reply with quote Back to top

You can use the target tag without using js.
View user's profile Send private message
jjh221
Worker
Worker


Joined: Dec 05, 2006
Posts: 178

PostPosted: Sat Dec 23, 2006 12:10 am Reply with quote Back to top

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


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Sat Dec 23, 2006 7:29 am Reply with quote Back to top

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


Joined: Dec 05, 2006
Posts: 178

PostPosted: Sat Dec 23, 2006 4:10 pm Reply with quote Back to top

ah ok ill try that tomorrow.

thanks, ill post back. I think ima go pass out now. wow am i tired lol AV weekend
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Sat Dec 23, 2006 7:27 pm Reply with quote Back to top

Thanks - if you post how you solve it, I'm sure others would appreciate it.
View user's profile Send private message
jjh221
Worker
Worker


Joined: Dec 05, 2006
Posts: 178

PostPosted: Sun Dec 24, 2006 6:23 am Reply with quote Back to top

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


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Sun Dec 24, 2006 6:34 am Reply with quote Back to top

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)),
View user's profile Send private message
jjh221
Worker
Worker


Joined: Dec 05, 2006
Posts: 178

PostPosted: Sun Dec 24, 2006 7:32 am Reply with quote Back to top

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