Customizing SMF > Modifications and Packages

BK-SMF Favicon & Custom Global HTML

<< < (2/2)

Old Fossil:
It is highly unlikely the mod will be updated due to the author not being online since 2009.

ninja111:
Can someone please tell me how to remove this??

It has destroyed my site. And if i manually remove it, that hopefully might fix it. Can someone please give me directions of what to do.

Also, idk if this says anything but, I followed the parse directions and i didn't have the ability to see any of this:


--- Quote ---Find:
template_menu();
Replace With:
template_menu();

if(!empty($modSettings['custom_global_html']))
      echo '
         <div align="center" style="width: 90%; margin-left: auto; margin-right: auto; margin-top:10px; border: 0px solid;" class="middletext">
            ', $modSettings['custom_global_html'], '
         </div>';

   

./Themes/default/languages/Modifications.english.php
Find (at the end of the file):
?>
Add Before:

$txt['custom_global_html'] = 'HTML code to be displayed below user info bar:';
$txt['favicon'] = 'Enter the URL to your Favicon:';

./Themes/default/languages/Modifications.english-utf8.php
Find (at the end of the file):
?>
Add Before:

$txt['custom_global_html'] = 'HTML code to be displayed below user info bar:';
$txt['favicon'] = 'Enter the URL to your Favicon:';
This operation isn't vital to the installation of this mod.

./Themes/default/languages/Help.english.php
Find (at the end of the file):
?>
Add Before:

$helptxt['custom_global_html'] = '<strong>HTML code will be displayed over page content, below user info bar. You can use to add a banner, or make global announcements etc.</strong>';
$helptxt['favicon'] = '<strong>A favicon, short for favorites icon, also known as a website icon, or shortcut icon, is an icon associated with a particular website or webpage. A web designer can create such an icon and install it into a website or webpage by several means, and most graphical web browsers will then make use of it. Browsers that provide favicon support typically display a page\'s favicon in the browser\'s URL bar and next to the page\'s name in a list of bookmarks. Browsers that support a tabbed document interface typically show a page\'s favicon next to the page\'s title. The Microsoft Windows Shell uses favicons to represent Internet shortcuts to web pages. - Wikipedia</strong>';

./Themes/default/languages/Help.english-utf8.php
Find (at the end of the file):
?>
Add Before:

$helptxt['custom_global_html'] = '<strong>HTML code will be displayed over page content, below user info bar. You can use to add a banner, or make global announcements etc.</strong>';
$helptxt['favicon'] = '<strong>A favicon, short for favorites icon, also known as a website icon, or shortcut icon, is an icon associated with a particular website or webpage. A web designer can create such an icon and install it into a website or webpage by several means, and most graphical web browsers will then make use of it. Browsers that provide favicon support typically display a page\'s favicon in the browser\'s URL bar and next to the page\'s name in a list of bookmarks. Browsers that support a tabbed document interface typically show a page\'s favicon next to the page\'s title. The Microsoft Windows Shell uses favicons to represent Internet shortcuts to web pages. - Wikipedia</strong>';
This operation isn't vital to the installation of this mod.

./Sources/ManageSettings.php
Find:
// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!
Replace With:
// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!
                array('text', 'custom_global_html', '30'),
      array('text', 'favicon', '30'),

      '',

--- End quote ---

Navigation

[0] Message Index

[*] Previous page

Go to full version