>>
Site Map
>>
Forums
>>
Modules 7x
Forum module - topics in forum:
Modules 7x - Discussions regarding PHP-Nuke Modules. 7x
Code change to open module in a new window
Probably a very simple bit of code, but what extra code is required to force this link to open in a new browser window, please?
| Code: : |
<?PHP
echo "<META HTTP-EQUIV=Refresh CONTENT='0; URL=http://www.osbornecoburg.co.uk/photos/'>\n";
?> |
(Original code found in these forums, by the way)
Thanks for your help!
What exactly are you trying to achieve? (I.E Load a seperate page when the original is loaded) If you tell us what you want to do, then we can give you some code that will help achieve that.
Hi Cypher, the link is added as a module, with the quoted code in the index.php file within the modules folder. At present it opens in the same browser window, I would like it to open in a new window if possible.
Thanks again.
Why dont you directly link to http://www.osbornecoburg.co.uk/photos/ with a target="_blank" in the tag? E.G | Code: : |
| <a href="http://www.osbornecoburg.co.uk/photos/" target="_blank">Photos</a> |
Couldn't get it to work as a separate module, after more searching found the 'block-modules.php' method as per forum topic.http://phpnuke-uk.net/modules.php?name=Forums&file=viewtopic&t=4863&highlight=target+blank
Thanks anyway.
i keep forgetting that php coding is different from html, although some html will work within php scripts.
What I meant was to directly link to it in a custom block. Just create a new block and in the HTML, put what I posted earlier. That way, you don't have to mess around creating modules.
| midulster Wrote: : |
| i keep forgetting that php coding is different from html, although some html will work within php scripts. |
Actually, you can use all HTML tags in PHP. Either use the echo function (" marks have to appear like \" e.g. <img src=\"path\">) | Code: : |
| echo "<HTML CODE>"; |
or simply close off the PHP code and add normal HTML and then start the PHP code again. | Code: : |
| <?php PHP CODE ?> <HTML CODE> <?php MORE PHP CODE ?> |
| Cypher_489 Wrote: : |
Actually, you can use all HTML tags in PHP. Either use the echo function (" marks have to appear like \" e.g. <img src=\"path\">) | Code: : | | echo "<HTML CODE>"; |
or simply close off the PHP code and add normal HTML and then start the PHP code again. | Code: : | | <?php PHP CODE ?> <HTML CODE> <?php MORE PHP CODE ?> |
|
that's something to remember.