This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
favicon
Started 16 years ago by thizzle | 6 posts |
-
is there a way to get favicon on form? added favicon code to header.php and to view.php... no luck
Posted 16 years 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">
MachForm Support
Posted 16 years ago # -
Is it possible to have a different favicon for each form?
Posted 15 years 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
MachForm Support
Posted 15 years ago # -
This is great. Can it be "extended" to include the success message page?
Posted 15 years 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 15 years ago #
Reply
You must log in to post.