Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 03:30 am EST
Geeklog Forums
Another Printer Friendly question
Status: offline
TMR Design
Forum User
Newbie
Registered: 11/28/05
Posts: 9
I had been working with 1.3 and was able to find the code so when you click the Printer Friendly Version link it opens a new window. There were 2 places this occurred. One was for the text link and the other was for the Printer Icon in the article.
Now I have installed 1.4 with the new 'Professional' template and I want to make the same change.
I found one instance in article.php to change the text link but I can't for the life of me find the code for the Printer Icon link. Can someone point out the document and location of the code that will change this? I assume all this is within the php documents but it is not obvious to me.
Thanks,
Robert
Now I have installed 1.4 with the new 'Professional' template and I want to make the same change.
I found one instance in article.php to change the text link but I can't for the life of me find the code for the Printer Icon link. Can someone point out the document and location of the code that will change this? I assume all this is within the php documents but it is not obvious to me.
Thanks,
Robert
11
10
Quote
Status: offline
TMR Design
Forum User
Newbie
Registered: 11/28/05
Posts: 9
I don't know how many instances of this need to be changed but for now I found the other code that needed to be changed for the printer icon to open the printer friendly version in a new page.
For those that want to know, or for those that do know and want to correct me or point out sometihng I missed, I opened:
system/lib-story.php
and modified the following:
At about line 400 find:
{
$article->set_var( 'print_icon', '<a href="' . $printUrl . '">'
. '<img border="0" src="' . $_CONF['layout_url']
. '/images/print.' . $_IMAGE_TYPE . '" alt="' . $LANG01[65]
. '" title="' . $LANG11[3] . '"></a>' );
$article->set_var( 'print_story_url', $printUrl );
$article->set_var( 'lang_print_story', $LANG11[3] );
$article->set_var( 'lang_print_story_alt', $LANG01[65] );
}
and change it to this:
{
$article->set_var( 'print_icon', '<a href="' . $printUrl . '" target="_blank">'
. '<img border="0" src="' . $_CONF['layout_url']
. '/images/print.' . $_IMAGE_TYPE . '" alt="' . $LANG01[65]
. '" title="' . $LANG11[3] . '"></a>' );
$article->set_var( 'print_story_url', $printUrl );
$article->set_var( 'lang_print_story', $LANG11[3] );
$article->set_var( 'lang_print_story_alt', $LANG01[65] );
}
As I said, I am not sure if these are the only instances that need to be changed but I believe they have affected things globally so anytime the link or the icon are used it will behave correctly.
Robert
For those that want to know, or for those that do know and want to correct me or point out sometihng I missed, I opened:
system/lib-story.php
and modified the following:
Text Formatted Code
At about line 400 find:
{
$article->set_var( 'print_icon', '<a href="' . $printUrl . '">'
. '<img border="0" src="' . $_CONF['layout_url']
. '/images/print.' . $_IMAGE_TYPE . '" alt="' . $LANG01[65]
. '" title="' . $LANG11[3] . '"></a>' );
$article->set_var( 'print_story_url', $printUrl );
$article->set_var( 'lang_print_story', $LANG11[3] );
$article->set_var( 'lang_print_story_alt', $LANG01[65] );
}
and change it to this:
{
$article->set_var( 'print_icon', '<a href="' . $printUrl . '" target="_blank">'
. '<img border="0" src="' . $_CONF['layout_url']
. '/images/print.' . $_IMAGE_TYPE . '" alt="' . $LANG01[65]
. '" title="' . $LANG11[3] . '"></a>' );
$article->set_var( 'print_story_url', $printUrl );
$article->set_var( 'lang_print_story', $LANG11[3] );
$article->set_var( 'lang_print_story_alt', $LANG01[65] );
}
As I said, I am not sure if these are the only instances that need to be changed but I believe they have affected things globally so anytime the link or the icon are used it will behave correctly.
Robert
9
11
Quote
All times are EST. The time is now 03:30 am.
- 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