Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1122

PostPosted: Fri May 07, 2010 9:09 am Reply with quote

Hi everybody.

I remembered today something very important I wanted to discuss about some lines in header.php on the root.

What I understand from these lines is that if favicon.ico is on the themes/images/ then show it but how is that possible if favicon is not there. it is on the root where mainfile.php is(on the root) Why do we need to call favicon.ico to that location if we know it is on the root.


Code:
if (defined('THEME_FAVICON'))

      echo '<link rel="shortcut icon" href="' , INCLUDE_PATH , 'themes/', $ThemeSel, '/images/favicon.ico" type="image/x-icon" />', "\n";
   else if (file_exists(INCLUDE_PATH . 'themes/' . $ThemeSel . '/images/favicon.ico')) {
      echo '<link rel="shortcut icon" href="' , INCLUDE_PATH , 'themes/', $ThemeSel, '/images/favicon.ico" type="image/x-icon" />', "\n";
   }



The funny thing is in spite of that it shows the favicon.ico

I am thinking of this

Code:
    if (file_exists('favicon.ico')) {


        echo '<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />'."\n";

    }


Please let me know as soon as possible that is the purpose to have that code there. Shocked

That is why I love so much nuke because i always find something different.


Or

Code:
if (defined('THEME_FAVICON')) 

      echo '<link rel="shortcut icon" href="' , INCLUDE_PATH ,  'favicon.ico" type="image/x-icon" />', "\n";
   else if (file_exists(INCLUDE_PATH . 'favicon.ico')) {
      echo '<link rel="shortcut icon" href="' , INCLUDE_PATH , 'favicon.ico" type="image/x-icon" />', "\n";
   }
 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Fri May 07, 2010 10:32 am Reply with quote

[ Only registered users can see links on this board! Get registered or login! ]

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
hicuxunicorniobestbuildpc







PostPosted: Sat May 08, 2010 3:15 pm Reply with quote

2.Link theme’s defined favicon; if not defined, check if it exists and link to accommodate old themes

Ok, thanks. I understand now it is for old themes but almost nobody use old themes anymore and favicon.ico will be always on the root
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©