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, 66 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 - Open in New Window command? [ ]
 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
Snake
Nuke Cadet
Nuke Cadet


Joined: Apr 21, 2003
Posts: 5


PostPosted: Wed Apr 23, 2003 1:39 am Reply with quoteBack to top

is there such a command I could enter to have a certain page open in a new window?

We currently have one section of our site on a different host and want to have that page open in a new window to leave the Nuke in behind rather than change to another page.

Any suggestios would be greatly appreciated, thanks in advance for your time. Surprised
Find all posts by SnakeView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Wed Apr 23, 2003 2:48 am Reply with quoteBack to top

Depends how you are calling the page. If you are calling the page with hyperlink, then add the target="_newpage_" to the link:
Code:
<a "href="http://www.somepage.com" target="_newpage_">New Page</a>

Of cours _newPage_ can be whatever you want to name it. You can also use the JavaScript open() function. You can look that one up Wink

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Snake
Nuke Cadet
Nuke Cadet


Joined: Apr 21, 2003
Posts: 5


PostPosted: Wed Apr 23, 2003 11:45 am Reply with quoteBack to top

Hey Raven,
Thanks for your time. Here is the code for what I am attempting to do. The link is built into the top of a theme and i just can't get it to work with the code you gave me. Any suggestions would be greatly appreciated.

Thank you again.

Code:
    ."<td height=\"20\" width=\"16%\" bgcolor=\"#C0C0C0\" class=\"navbox\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#808080'\" onMouseOut=\"this.style.background='#C0C0C0'\" onClick=\"window.location.href='http://fbforums.chicagoblastvbc.com/index.php'\">\n"
        ."<a class=\"topnav\" href=\"http://fbforums.chicagoblastvbc.com/index.php\">".Forums."</a>\n"
        ."</td>\n
Find all posts by SnakeView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Wed Apr 23, 2003 11:50 am Reply with quoteBack to top

Try this
Code:

."<td height=\"20\" width=\"16%\" bgcolor=\"#C0C0C0\" class=\"navbox\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#808080'\" onMouseOut=\"this.style.background='#C0C0C0'\" onClick=\"window.location.href='http://fbforums.chicagoblastvbc.com/index.php'\">\n"
        ."<a class=\"topnav\" href=\"http://fbforums.chicagoblastvbc.com/index.php\" target=\"new\">".Forums."</a>\n"
        ."</td>\n

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Javed
Nuke Soldier
Nuke Soldier


Joined: Jun 06, 2003
Posts: 19


PostPosted: Mon Jun 09, 2003 5:41 pm Reply with quoteBack to top

I want a similar kinda solution. I mean when I click on the "Read More.." (that appears at the bottom of the news stories), the extended part should open in a new window.

Please help me, which file should I edit, and what'll be the new coding for it.
Find all posts by JavedView user's profileSend private message
El_Supremo
Sergeant
Sergeant


Joined: May 23, 2003
Posts: 126


PostPosted: Mon Jun 09, 2003 6:09 pm Reply with quoteBack to top

Open modules/news/index.php and look for:

$story_link = "<a href=\"article.html$s_sid$r_options\" >";

somewhere round line 105

change to

$story_link = "<a href=\"article.html$s_sid$r_options\" target=\"_blank\">";

and modules/news/categories.php approx line 77

change

$story_link = "<a href=\"article.html$s_sid$r_options\">";

to

$story_link = "<a href=\"article.html$s_sid$r_options\" target=\"_blank\">";
Find all posts by El_SupremoView user's profileSend private message
Javed
Nuke Soldier
Nuke Soldier


Joined: Jun 06, 2003
Posts: 19


PostPosted: Mon Jun 09, 2003 6:35 pm Reply with quoteBack to top

Thanks. You are great.
It worked.
Find all posts by JavedView user's profileSend private message
suseguse
Nuke Cadet
Nuke Cadet


Joined: Jul 21, 2003
Posts: 3


PostPosted: Mon Jul 21, 2003 2:01 pm Reply with quoteBack to top

Hello,
I have been studying the above replies to solve my problem, but can't seem to get any of them to work:

I use the "downloads" module for .pdf files, and would like for each one to open up in a new window, as you click on it.

I've tried to change the admin/download.php, but to no avail - can anyone help?

Here's an example of one of my changes (search for first occurance of "fileurl" to see the original version):

Code:
.""._FILEURL.": <input type=\"text\" name=\"url\" value=\"$url\" size=\"50\" maxlength=\"100\">&[ <a href=\"$url\" target=\"new\">"._CHECK."</a> ]<br>"



Many, many thanks,
Susanne
Find all posts by suseguseView 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
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.552 Seconds - 303 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::