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, 188 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 [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
mariagr
Nuke Soldier
Nuke Soldier


Joined: Dec 29, 2005
Posts: 34


PostPosted: Sun May 20, 2007 12:09 am Reply with quoteBack to top

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?

_________________
Maria
Find all posts by mariagrView user's profileSend private messageSend e-mail
v3x
Support Mod
Support Mod


Joined: Oct 19, 2004
Posts: 1041

Location: UK

PostPosted: Sun May 20, 2007 8:15 am Reply with quoteBack to top

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
Find all posts by v3xView user's profileSend private messageVisit poster's website
mariagr
Nuke Soldier
Nuke Soldier


Joined: Dec 29, 2005
Posts: 34


PostPosted: Sun May 20, 2007 10:58 am Reply with quoteBack to top

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.

_________________
Maria
Find all posts by mariagrView user's profileSend private messageSend e-mail
zast
Nuke Cadet
Nuke Cadet


Joined: May 15, 2007
Posts: 5


PostPosted: Sun May 20, 2007 12:56 pm Reply with quoteBack to top

I have the same problem and not solution Sad
Find all posts by zastView user's profileSend private message
hue
Support Mod
Support Mod


Joined: Apr 18, 2003
Posts: 368

Location: Ohio

PostPosted: Sun May 20, 2007 2:28 pm Reply with quoteBack to top

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

_________________
Go Go Buckeyes!!
Find all posts by hueView user's profileSend private messageICQ Number
mariagr
Nuke Soldier
Nuke Soldier


Joined: Dec 29, 2005
Posts: 34


PostPosted: Mon May 21, 2007 6:36 am Reply with quoteBack to top

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

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

_________________
Maria
Find all posts by mariagrView user's profileSend private messageSend e-mail
hue
Support Mod
Support Mod


Joined: Apr 18, 2003
Posts: 368

Location: Ohio

PostPosted: Mon May 21, 2007 7:18 am Reply with quoteBack to top

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 .

_________________
Go Go Buckeyes!!
Find all posts by hueView user's profileSend private messageICQ Number
zast
Nuke Cadet
Nuke Cadet


Joined: May 15, 2007
Posts: 5


PostPosted: Wed May 23, 2007 8:16 am Reply with quoteBack to top

Me too I have always the same problem Sad
Find all posts by zastView user's profileSend private message
moods
Corporal
Corporal


Joined: Dec 13, 2005
Posts: 72


PostPosted: Wed May 23, 2007 10:09 am Reply with quoteBack to top

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.
Find all posts by moodsView user's profileSend private message
zast
Nuke Cadet
Nuke Cadet


Joined: May 15, 2007
Posts: 5


PostPosted: Sun May 27, 2007 1:49 am Reply with quoteBack to top

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
Find all posts by zastView user's profileSend private message
eXistenZe
Sergeant
Sergeant


Joined: Mar 03, 2007
Posts: 127


PostPosted: Sun May 27, 2007 5:39 am Reply with quoteBack to top

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.
Find all posts by eXistenZeView user's profileSend private message
moods
Corporal
Corporal


Joined: Dec 13, 2005
Posts: 72


PostPosted: Mon May 28, 2007 6:58 am Reply with quoteBack to top

ok. thanks.
will try and get back to u guys
Find all posts by moodsView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



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: 0.093 Seconds - 444 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::