| Author |
Message |
JonV
Nuke Cadet


Joined: Jan 25, 2006
Posts: 5
|
Posted:
Fri Jan 19, 2007 9:19 pm |
  |
I am sure this has been asked many times but I have been searching the forum for over an hour to fins the solution and can not find it.
I am using the standard PHPnuke admin create block and trying to have a list of links to external sites in the blocks and for some reason the link are translating to the domain name I am and the domain name I want to link to in the same address.
for example if I use the HTML function in the create new block and type the following link.
<a href="http://www.w3schools.com/">Visit W3Schools!</a>
My site translates this to
http://www.mydomain.com/www.w3schools.com
any help would be greatly appreciated. |
|
|
   |
 |
ejs
Nuke Soldier


Joined: Oct 02, 2005
Posts: 21
|
Posted:
Sat Jan 20, 2007 4:38 pm |
  |
You're on the right track ... just using the html isn't quite enough in a php block.
Try something like this:
| Code: |
| $content .= "<strong><big>·</big></strong> <a href=\"http://yoursite.com/whateverhtmlorphp.htm\">MyLink</a><br />\n"; |
That should work. |
|
|
    |
 |
JonV
Nuke Cadet


Joined: Jan 25, 2006
Posts: 5
|
Posted:
Sat Jan 20, 2007 5:10 pm |
  |
I must still be doing something wrong.
When I type in the code you gave me I just get this returned in the link box.
$content .= "· MyLink
\n";
These are the steps I am following.
From Admin
I am creating a new block
Giving it a Title
Leaving the file selection blank
In the content section I am clicking on the html button and entering the code.
Is there something else I should be doing?
I really appreciate your help! |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12373
|
Posted:
Sat Jan 20, 2007 11:47 pm |
  |
Hmm your HTML is correct, and your procedure is correct. ejs is giving a different alternative, a PHP file block to do it.
I think, however, you may have something wrong in your phpNuke input. What version of phpNuke are you using? Is it Patched? Are you using the WYSIWYG editor?
Can we see on your site where this is occuring? |
_________________ Helping those that help themselves
Read FIRST or DIE!
"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding |
|
     |
 |
JonV
Nuke Cadet


Joined: Jan 25, 2006
Posts: 5
|
Posted:
Sun Jan 21, 2007 5:38 am |
  |
I am using PHPNuke 7.9.
I downloaded all the patch files from http://www.nukeresources.com
I am using Atlite_87_nuke.
I am not sure what you mean about the WYSIWG editor. I am clicking on the little HTML button and entering the html code in there. I will google the WYSWIG to get a better understanding of it.
The site is www.bcatvers.com
I will re-activate the block giving me problems so you can see what it is doing. (Last block on right side)
Thanks for your help!
*** A little follow up. I disabled the WYSIWG editor and re-entered the block. Exactly the same results.
I did notice however, that in the admin. panel, block admin. section, if I show the block, the html links are correct.
*** further follow up
If I create the links with out target="_blank" , everything seems to work fine, other than the fact that my visitors are leaving my page.
Is there anyway to have target="_blank"? I've tried it with or without the editor.
Is this something I need to add to my allowable html? |
|
|
   |
 |
Fireboar
Corporal


Joined: Dec 01, 2006
Posts: 64
|
Posted:
Tue Jan 23, 2007 8:35 am |
  |
You could... try using single quotes in your HTML. I'm not sure if it'll help, but does <a href='website' target='_blank'>Mylink</a> work for you? |
_________________ http://www.fantasy-pc.com/ - PHP-Nuke website with a growing community where you can talk about anything.
Want a version of PHP-Nuke with all the bells and whistles removed? PHP-Nuke Lite is for you! |
|
    |
 |
JonV
Nuke Cadet


Joined: Jan 25, 2006
Posts: 5
|
Posted:
Tue Jan 23, 2007 4:14 pm |
  |
I'll give that a try and let you know, that for your help!
that did not work with the nuke editor enabled, I'll try it with it disabled. |
|
|
   |
 |
|
|