| Author |
Message |
Snake
Nuke Cadet


Joined: Apr 21, 2003
Posts: 5
|
Posted:
Wed Apr 23, 2003 1:39 am |
  |
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.  |
|
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Wed Apr 23, 2003 2:48 am |
  |
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  |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Snake
Nuke Cadet


Joined: Apr 21, 2003
Posts: 5
|
Posted:
Wed Apr 23, 2003 11:45 am |
  |
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 |
|
|
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Wed Apr 23, 2003 11:50 am |
  |
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 |
|
    |
 |
Javed
Nuke Soldier


Joined: Jun 06, 2003
Posts: 19
|
Posted:
Mon Jun 09, 2003 5:41 pm |
  |
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. |
|
|
   |
 |
El_Supremo
Sergeant


Joined: May 23, 2003
Posts: 126
|
Posted:
Mon Jun 09, 2003 6:09 pm |
  |
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\">"; |
|
|
   |
 |
Javed
Nuke Soldier


Joined: Jun 06, 2003
Posts: 19
|
Posted:
Mon Jun 09, 2003 6:35 pm |
  |
Thanks. You are great.
It worked. |
|
|
   |
 |
suseguse
Nuke Cadet


Joined: Jul 21, 2003
Posts: 3
|
Posted:
Mon Jul 21, 2003 2:01 pm |
  |
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 |
|
|
   |
 |
|
|