Welcome to Geeklog, Anonymous Thursday, December 26 2024 @ 04:48 pm EST
Geeklog Forums
Printer friendly version in new window?
Status: offline
TMR Design
Forum User
Newbie
Registered: 11/28/05
Posts: 9
Hello again,
What document would I edit to change the url for the printer friendly version so it opens a new window? (_target="blank")
Thanks,
Robert
What document would I edit to change the url for the printer friendly version so it opens a new window? (_target="blank")
Thanks,
Robert
11
12
Quote
Status: offline
TMR Design
Forum User
Newbie
Registered: 11/28/05
Posts: 9
I probably should have played with this before my intial post. I am sure this is not new for many seasoned GL admins but for those that want to do this and did not know how, here is what I did.
Open:
article.php
Find:
if ($_CONF['hideprintericon'] == 0) {
$story_options[] = '<a href="' . $_CONF['site_url']
. '/article.php?story=' . $story . '&mode=print'
. '">' . $LANG11[3] . '</a>';
Replace With:
if ($_CONF['hideprintericon'] == 0) {
$story_options[] = '<a href="' . $_CONF['site_url']
. '/article.php?story=' . $story . '&mode=print' . '" target="_blank">' . $LANG11[3] . '</a>';
Save & Close
There is another instance of this with a similar change in lib-common.php (version 1.39). I do not see the code in version 1.41 so I do not know if it happens somewhere else or if it is not necessary in the later version.
I will post again after I install and modify 1.41. Right now I am just testing and experimenting with 1.39.
Text Formatted Code
Open:
article.php
Find:
if ($_CONF['hideprintericon'] == 0) {
$story_options[] = '<a href="' . $_CONF['site_url']
. '/article.php?story=' . $story . '&mode=print'
. '">' . $LANG11[3] . '</a>';
Replace With:
if ($_CONF['hideprintericon'] == 0) {
$story_options[] = '<a href="' . $_CONF['site_url']
. '/article.php?story=' . $story . '&mode=print' . '" target="_blank">' . $LANG11[3] . '</a>';
Save & Close
There is another instance of this with a similar change in lib-common.php (version 1.39). I do not see the code in version 1.41 so I do not know if it happens somewhere else or if it is not necessary in the later version.
I will post again after I install and modify 1.41. Right now I am just testing and experimenting with 1.39.
13
10
Quote
All times are EST. The time is now 04:48 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content