This topic is locked
[SOLVED]

 Change favicon (PHPrunner 10.0)

2/28/2019 8:40:50 AM
PHPRunner General questions
S
sadisticmagician author

Hello,

how I can customize favicon with phprunner 10?

thanks

S
sadisticmagician author 3/1/2019



Hello,

how I can customize favicon with phprunner 10?

thanks


I already read this post > https://asprunner.com/forums/topic/23142-placing-favicon-in-the-project-phprunner/

but can't find Editor > Templates > page.htm (HTML mode) code in PHPrunner 10

S
sadisticmagician author 3/5/2019



I already read this post > https://asprunner.com/forums/topic/23142-placing-favicon-in-the-project-phprunner/

but can't find Editor > Templates > page.htm (HTML mode) code in PHPrunner 10


I can't resolve this problem. Is there not a possibility to insert code in all page? I no understand, in old php version it was possible.

T
taumic 3/5/2019

Hi,
Suggestion/Try:
EDITOR - HEADER - HTML-Mode


<head profile="http://www.w3.org/2005/10/profile">;

<link rel="icon"

type="image/ico"

href="/ICM/TN.ico" />

</head>


This should work..... (TN.ico is your favicon)
Best regards
Michael

S
sadisticmagician author 3/5/2019



Hi,
Suggestion/Try:
EDITOR - HEADER - HTML-Mode


<head profile="http://www.w3.org/2005/10/profile">;

<link rel="icon"

type="image/ico"

href="/ICM/TN.ico" />

</head>


This should work..... (TN.ico is your favicon)
Best regards
Michael


Doesn't work <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=87278&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />

A
aalekizoglou 3/5/2019

As I had the same problem to add favicon in PHPR10, this is what I've done to support favicon.
In After paplication initialize add



global $customjscript;
$customjscript = <<<EOT

<script type="text/javascript">

$(window).load(function () {

$('head').append('<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />');

});

</script>

EOT;


in editor under header add



global $customjscript;
echo $customjscript;



[size="2"]In fact I use $customjscript for all my pages to add custom javascript code that way.[/size]

S
sadisticmagician author 3/6/2019



As I had the same problem to add favicon in PHPR10, this is what I've done to support favicon.
In After paplication initialize add



global $customjscript;
$customjscript = <<<EOT

<script type="text/javascript">

$(window).load(function () {

$('head').append('<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />');

});

</script>

EOT;


in editor under header add



global $customjscript;
echo $customjscript;



[size="2"]In fact I use $customjscript for all my pages to add custom javascript code that way.[/size]


Perfect work!!! thank you <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=87283&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

admin 3/6/2019

Just wanted to say that we will add something that will make managing favicons and similar stuff easier.

admin 3/6/2019

Just wanted to say that we will add something that will make managing favicons and similar stuff easier.