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, 377 guest(s) and 13 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - HTML Links in PHPNuke Block [ ]
 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
JonV
Nuke Cadet
Nuke Cadet


Joined: Jan 25, 2006
Posts: 5


PostPosted: Fri Jan 19, 2007 9:19 pm Reply with quoteBack to top

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.
Find all posts by JonVView user's profileSend private message
ejs
Nuke Soldier
Nuke Soldier


Joined: Oct 02, 2005
Posts: 21


PostPosted: Sat Jan 20, 2007 4:38 pm Reply with quoteBack to top

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>&middot;</big></strong>&nbsp;<a href=\"http://yoursite.com/whateverhtmlorphp.htm\">MyLink</a><br />\n";


That should work.
Find all posts by ejsView user's profileSend private messageSend e-mail
JonV
Nuke Cadet
Nuke Cadet


Joined: Jan 25, 2006
Posts: 5


PostPosted: Sat Jan 20, 2007 5:10 pm Reply with quoteBack to top

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!
Find all posts by JonVView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sat Jan 20, 2007 11:47 pm Reply with quoteBack to top

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
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
JonV
Nuke Cadet
Nuke Cadet


Joined: Jan 25, 2006
Posts: 5


PostPosted: Sun Jan 21, 2007 5:38 am Reply with quoteBack to top

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?
Find all posts by JonVView user's profileSend private message
Fireboar
Corporal
Corporal


Joined: Dec 01, 2006
Posts: 64


PostPosted: Tue Jan 23, 2007 8:35 am Reply with quoteBack to top

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!
Find all posts by FireboarView user's profileSend private messageVisit poster's website
JonV
Nuke Cadet
Nuke Cadet


Joined: Jan 25, 2006
Posts: 5


PostPosted: Tue Jan 23, 2007 4:14 pm Reply with quoteBack to top

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