You are missing our premiere tool bar navigation system! Register and use it for FREE!


Author: mariagrPostPosted: Mon May 21, 2007 6:36 am    Post subject:

I replace the code but I have the same problem (no new window!).

The target="_blank" (only this) , is disappear !

Author: hueLocation: OhioPostPosted: Mon May 21, 2007 7:18 am    Post subject:

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 

Author: v3xLocation: UKPostPosted: Sun May 20, 2007 8:15 am    Post subject:

Add

target="_blank"

to your <a href=

So it should look something like this

<a href="http://yourdomain.com" target="_blank"><img src= etc etc

Author: mariagrPostPosted: Sun May 20, 2007 10:58 am    Post subject:

In the html editor I write this target="_blank" , but then is disappear !

Is possible to add something in the $AllowableHTML in the config.php or something else?

Thank you for your time.

Author: zastPostPosted: Sun May 20, 2007 12:56 pm    Post subject:

I have the same problem and not solution Sad

Author: hueLocation: OhioPostPosted: Sun May 20, 2007 2:28 pm    Post subject:

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, 177 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 - image link in new window image link in new window

Nuke Cops -> Basic Operation

Author: mariagr PostPosted: Sun May 20, 2007 12:09 am    Post subject: image link in new window

Hello again. Thang you for your help that you give me any time.

I work now in version 7.9 and now I can not create a link in an image to open a new window.

Can you help me please?
zast wrote:
I have the same problem and not solution Sad
Open your config.php and find the $AllowableHTML array . Once you find it ,
just replace yours with this one
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, 'width' => 1, 'height' => 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(),
    'strike'=>array(),
    'sub'=>array(),
    'sup'=>array(),
    'table' => array('align' => 1, 'border' => 1, 'cell' => 1, 'width' => 1, 'cellspacing' => 1, 'cellpadding' => 1),
    'td' => array('align' => 1, 'width' => 1, 'valign' => 1, 'height' => 1, 'rowspan' => 1, 'colspan' => 1 ),
    'tr' => array('align' => 1),
    'tt'=>array(),
    'u' => array(),
    'ul' => array(),
);

You can read more on it here --> http://nukecops.com/PHP-Nuke_allow-special-html-tags.html
mariagr wrote:
I replace the code but I have the same problem (no new window!).

The target="_blank" (only this) , is disappear !
Shut down your pop up blocker , and or hold down the control key while clicking the link .

Author: zast PostPosted: Wed May 23, 2007 8:16 am    Post subject:

Me too I have always the same problem Sad

Author: moods PostPosted: Wed May 23, 2007 10:09 am    Post subject:

i also have almost the same problem with u.

how can i make the googleadsense blocks to open in a new window when someone clicks it.

Author: zast PostPosted: Sun May 27, 2007 1:49 am    Post subject:

A solution (not good !!) is (found on forum) :
Replace in mainfile.php

Search the line :
$str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?[[:space:]]*([^\" >]*)[[:space:]]*\"?[^>]*>",'<a href="\\1"', $str);

replace with

$str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?[[:space:]]*([^\" >]*)[[:space:]]*\"?[^>]*>",'<a href="\\1" target="_blank">', $str);

It s not very good solution because all link open in blank page but it s work Sad.


Perhaps we can disable checkhtml when admin post the news or autonews.
I hope to find that in the code Smile


Last edited by zast on Sun May 27, 2007 7:15 am; edited 1 time in total

Author: eXistenZe PostPosted: Sun May 27, 2007 5:39 am    Post subject:

If target="x" does not work it means that it is inside a function that does not support it or is being blocked. Specially if you're using firefox...

You must search the function that makes the output and above.

Author: moods PostPosted: Mon May 28, 2007 6:58 am    Post subject:

ok. thanks.
will try and get back to u guys



Nuke Cops -> Basic Operation

All times are GMT - 8 Hours

Page 1 of 1

Powered by phpBB © 2001,2002 phpBB Group
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: 0.127 Seconds - 179 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
added by Evaders - DO NOT REMOVE
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::