is there a way to get favicon on form? added favicon code to header.php and to view.php... no luck
Appnitro Software Forums » MachForm
favicon
(6 posts)-
Posted 1 year ago #
-
hi,
You can add favicon by editing "includes/view-functions.php", search on line 1830 and 2362 you'll find this code :
<link rel="stylesheet" type="text/css" href="{$css_dir}view.css" media="all" />put exactly bellow that code
<link rel="shortcut icon" href="images/cd.ico">Posted 1 year ago # -
Is it possible to have a different favicon for each form?
Posted 1 year ago # -
Yes it possible.. try to edit "includes/view-functions.php" file and go around line 1818 ~ 1822, you will see these code :
if($has_calendar){ $calendar_js = '<script type="text/javascript" src="js/calendar.js"></script>'; }else{ $calendar_js = ''; }put these code bellow that line
if ($form_id == 1) $fav_icon = '<link rel="shortcut icon" href="images/icon1.ico">'; elseif ($form_id == 2) $fav_icon = '<link rel="shortcut icon" href="images/icon2.ico">';then go to line 1837 and you will see this :
<script type="text/javascript" src="js/view.js"></script>add this code exactly bellow that line
{$fav_icon}Those code will give different Fav Icon for form 1 and 2
Posted 1 year ago # -
This is great. Can it be "extended" to include the success message page?
Posted 1 year ago # -
Also, when I rename the page... so to hide the id=[form number] example=http://domainname.com/company_form.php it strips away the favicon. Is there anyway to rename and keep the favicon?
Posted 1 year ago #
Reply
You must log in to post.