- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 135 guest(s) and 1 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 [ ]
Author
Message
mariagr
Nuke Soldier
Joined: Dec 29, 2005
Posts: 31
Posted:
Sun May 20, 2007 12:09 am
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
phpnuke-hosting
Support Mod
Joined: Oct 19, 2004
Posts: 1032
Location: UK
Posted:
Sun May 20, 2007 8:15 am
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
_________________www.phpnuke-hosting.com
The Internets Foremost PHP-Nuke Web Host.
Click Here!
mariagr
Nuke Soldier
Joined: Dec 29, 2005
Posts: 31
Posted:
Sun May 20, 2007 10:58 am
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
zast
Nuke Cadet
Joined: May 15, 2007
Posts: 5
Posted:
Sun May 20, 2007 12:56 pm
I have the same problem and not solution
hue
Support Mod
Joined: Apr 18, 2003
Posts: 368
Location: Ohio
Posted:
Sun May 20, 2007 2:28 pm
zast wrote:
I have the same problem and not solution
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!!
mariagr
Nuke Soldier
Joined: Dec 29, 2005
Posts: 31
Posted:
Mon May 21, 2007 6:36 am
I replace the code but I have the same problem (no new window!).
The target="_blank" (only this) , is disappear !
_________________ Maria
hue
Support Mod
Joined: Apr 18, 2003
Posts: 368
Location: Ohio
Posted:
Mon May 21, 2007 7:18 am
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!!
zast
Nuke Cadet
Joined: May 15, 2007
Posts: 5
Posted:
Wed May 23, 2007 8:16 am
Me too I have always the same problem
moods
Corporal
Joined: Dec 13, 2005
Posts: 72
Posted:
Wed May 23, 2007 10:09 am
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.
zast
Nuke Cadet
Joined: May 15, 2007
Posts: 5
Posted:
Sun May 27, 2007 1:49 am
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 .
Perhaps we can disable checkhtml when admin post the news or autonews.
I hope to find that in the code
Last edited by zast on Sun May 27, 2007 7:15 am; edited 1 time in total
eXistenZe
Sergeant
Joined: Mar 03, 2007
Posts: 127
Posted:
Sun May 27, 2007 5:39 am
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.
moods
Corporal
Joined: Dec 13, 2005
Posts: 72
Posted:
Mon May 28, 2007 6:58 am
ok. thanks.
will try and get back to u guys
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