Hey.. lavede en anden tråd men vælger at lave et nyt for jeg tror jeg kender problemet.
Men arbejder med e107 og har lidt problemer med ÆØÅ og arbejder som en gal efter problemet.
Tror det er mit tema der driller. www.steppers.dk
Jeg har programmet notepad++ og har fået af vide jeg skal gemme php filen som utf8 men er det med eller uden bom som den beskriver det.
En anden ting er, hvor skal jeg ligge dette tag ind henne, hvis det overhovede er her den skal ligge ?
mysql_query('SET NAMES utf8');
mysql_query('SET CHARACTER SET utf8');
<?PHP
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
| ©Steve Dunstan 2001-2002
| http://e107.org
| jalist@e107.org
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
+----------------------------------------------------------------------------+
*/
define("LAN_THEME_1", "Test");
define("LAN_THEME_2", "Kommentar: Off");
define("LAN_THEME_3", "Kommentar: ");
define("LAN_THEME_4", "Læs mere...");
define("LAN_THEME_5", "Trackbacks: ");
define("LAN_THEME_6", "Posted by ");
define("LAN_THEME_7", "on");
define("LAN_THEME_8", "Log ind eller tilmeld dig");
define("LAN_THEME_9", "Bruger");
define("LAN_THEME_10", "Kodeord");
define("LAN_THEME_11", "Velkommen tilbage");
define("LAN_THEME_12", "Admin Område");
?>
Skal den måske ligge her ?<?PHP
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
| ©Steve Dunstan 2001-2002
| http://e107.org
| jalist@e107.org
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
// [multilanguage]
@include_once(THEME."languages/".e_LANGUAGE.".php");
@include_once(THEME."languages/English.php");
require_once(THEME."rd_login.php");
// [theme]
$themename = "dAb_08";
$themeversion = "1.1";
$themeauthor = "Leon Lloyd [roofdog78]";
$themeemail = "e107@roofdog78.com";
$themewebsite = "http://www.roofdog78.com";
$themedate = "31/01/2008";
$themeinfo = "<strong>If you decide to use this theme please do not remove the link to http://www.roofdog78.com</strong><br /><br /><a rel='license' href='http://creativecommons.org/licenses/by/2.0/uk/'><img alt='Creative Commons License' style='border-width:0; float: left; margin-right: 10px; margin-bottom: 10px' src='http://creativecommons.org/images/public/somerights20.png' /></a>This work is licenced under a <a rel='license' href='http://creativecommons.org/licenses/by/2.0/uk/'>Creative Commons Licence</a>";
define("STANDARDS_MODE", TRUE);
define("BULLET", "bullet2.gif");
define("IMODE", "dark");
$xhtmlcompliant = true;
$csscompliant = true;
if(!defined("e_THEME")){ exit; }
$page=substr(strrchr($_SERVER['PHP_SELF'], "/"), 1);
define("e_PAGE", $page);
// DEFAULT LAYOUT ----- LEFT AND RIGHT MENU
$layout = "_default";
$HEADER = "
<div id='maincontainer'>
<div id='topsection'>
<div id='loginmenu'>
".RD_LOGIN."
</div>
<div id='title'>
<a href='".SITEURL."'><img src='".THEME."images/logo.gif' alt=''/> {SITENAME}</a>
</div>
</div>
<div id='navmenu'>
{SITELINKS_ALT=no_icons}
</div>
<div id='contentwrapper'>
<div id='contentcolumn'>
";
$FOOTER = "
</div>
</div>
<div id='leftcolumn'>
{SETSTYLE=global_menu}
{MENU=1}
</div>
<div id='rightcolumn'>
{MENU=2}
</div>
</div>
<div id='footer'>
<div class='left_footer'>
{SITEDISCLAIMER}
</div>
<div class='licence'>
<a href='http://creativecommons.org/licenses/by/2.0/uk/'><img src='http://creativecommons.org/images/public/somerights20.png' title='Creative Commons Licence' alt='Licence Agreement'/></a><br /><a href='http://www.roofdog78.com/news.html'><img src='".THEME."images/roof.png' alt='Theme by roofdog78' title='Theme by roofdog78'/></a>
</div>
</div>
";
//CUSTOM LAYOUT ----- LEFT MENU ONLY
$CUSTOMHEADER['no_right_menu'] = "
<div id='maincontainer'>
<div id='topsection'>
<div id='loginmenu'>
".RD_LOGIN."
</div>
<div id='title'>
<a href='".SITEURL."'><img src='".THEME."images/logo.gif' alt=''/> {SITENAME}</a>
</div>
</div>
<div id='navmenu'>
{SITELINKS_ALT=no_icons}
</div>
<div id='contentwrapper'>
<div id='contentcolumn_l'>
";
$CUSTOMFOOTER['no_right_menu'] = "
</div>
</div>
<div id='leftcolumn'>
{SETSTYLE=global_menu}
{MENU=1}
</div>
</div>
<div id='footer'>
<div class='left_footer'>
{SITEDISCLAIMER}
</div>
<div class='licence'>
<a href='http://creativecommons.org/licenses/by/2.0/uk/'><img src='http://creativecommons.org/images/public/somerights20.png' title='Creative Commons Licence' alt='Licence Agreement'/></a><br /><a href='http://www.roofdog78.com/news.html'><img src='".THEME."images/roof.png' alt='Theme by roofdog78' title='Theme by roofdog78'/></a>
</div>
</div>
";
$CUSTOMPAGES['no_right_menu'] = " forum.php forum_viewtopic.php forum_viewforum.php forum_post.php ";
//CUSTOM LAYOUT ----- CENTER MENU ONLY
$CUSTOMHEADER['no_left_menu'] = "
<div id='maincontainer'>
<div id='topsection'>
<div id='loginmenu'>
".RD_LOGIN."
</div>
<div id='title'>
<a href='".SITEURL."'><img src='".THEME."images/logo.gif' alt=''/> {SITENAME}</a>
</div>
</div>
<div id='navmenu'>
{SITELINKS_ALT=no_icons}
</div>
<div id='contentwrapper'>
<div id='contentcolumn_r'>
";
$CUSTOMFOOTER['no_left_menu'] = "
</div>
</div>
<div id='rightcolumn'>
{SETSTYLE=global_menu}
{MENU=2}
</div>
</div>
<div id='footer'>
<div class='left_footer'>
{SITEDISCLAIMER}
</div>
<div class='licence'>
<a href='http://creativecommons.org/licenses/by/2.0/uk/'><img src='http://creativecommons.org/images/public/somerights20.png' title='Creative Commons Licence' alt='Licence Agreement'/></a><br /><a href='http://www.roofdog78.com/news.html'><img src='".THEME."images/roof.png' alt='Theme by roofdog78' title='Theme by roofdog78'/></a>
</div>
</div>
";
$CUSTOMPAGES['no_left_menu'] = " ";
//CUSTOM LAYOUT ----- NO SIDE MENUS
$CUSTOMHEADER['no_menus'] = "
<div id='maincontainer'>
<div id='topsection'>
<div id='loginmenu'>
".RD_LOGIN."
</div>
<div id='title'>
<a href='".SITEURL."'><img src='".THEME."images/logo.gif' alt=''/> {SITENAME}</a>
</div>
</div>
<div id='navmenu'>
{SITELINKS_ALT=no_icons}
</div>
<div id='contentwrapper'>
<div id='contentcolumn_m'>
";
$CUSTOMFOOTER['no_menus'] = "
</div>
</div>
</div>
<div id='footer'>
<div class='left_footer'>
{SITEDISCLAIMER}
</div>
<div class='licence'>
<a href='http://creativecommons.org/licenses/by/2.0/uk/'><img src='http://creativecommons.org/images/public/somerights20.png' title='Creative Commons Licence' alt='Licence Agreement'/></a><br /><a href='http://www.roofdog78.com/news.html'><img src='".THEME."images/roof.png' alt='Theme by roofdog78' title='Theme by roofdog78'/></a>
</div>
</div>
";
$CUSTOMPAGES['no_menus'] = " ";
//------------------------------------------------------------------------------+
$NEWSSTYLE = "
<table class='news_table' cellspacing='0'>
<tr>
<td>
<div class='caption'>
<div class='left'> </div>
<div class='right'> </div>
<div class='news_center'>
{NEWSTITLE}
</div>
</div>
<div class='news_summary'>
{NEWSSUMMARY}
</div>
<div class='news_content'>
{NEWSBODY} <br/>{EXTENDED} <br/>
<div style='text-align:right' class='smalltext'>
".LAN_THEME_6." {NEWSAUTHOR} ".LAN_THEME_7." {NEWSDATE} | {NEWSCOMMENTS} | {EMAILICON}{PRINTICON}{PDFICON}{ADMINOPTIONS}<br/>
</div>
</div>
<div class='bottom'>
<div class='left'> </div>
<div class='right'> </div>
<div class='center'> </div>
</div>
</td>
</tr>
</table>
";
define("ICONSTYLE", "");
define("COMMENTLINK", LAN_THEME_3);
define("COMMENTOFFSTRING", LAN_THEME_2);
define("PRE_EXTENDEDSTRING", "<br />");
define("EXTENDEDSTRING", LAN_THEME_4);
define("POST_EXTENDEDSTRING", "");
// [linkstyle]
define(PRELINK, "");
define(POSTLINK, "");
define(LINKSTART, "");
define(LINKEND, "");
define(LINKDISPLAY, 1); // 1 - along top, 2 - in left or right column
define(LINKALIGN, "center");
// [tablestyle]
function tablestyle($caption, $text){
global $style;
if($style == "global_menu"){
echo "
<table width='100%' class='menu_table' cellspacing='0'>
<tr>
<td class='menu_caption'>
".$caption."
</td>
</tr>
<tr>
<td class='menu_content'>
".$text."
</td>
</tr>
<tr>
<td class='menu_bottom'> </td>
</tr>
</table>
";
}
else if($style == ""){
echo "
<div class='caption_table'>
<div class='caption'>
<div class='left'> </div>
<div class='right'> </div>
<div class='center'>
$caption
</div>
</div>
<div class='content'>
$text
</div>
<div class='bottom'>
<div class='left'> </div>
<div class='right'> </div>
<div class='center'> </div>
</div>
</div>
";
}
}
// [commentstyle]
$COMMENTSTYLE = "{USERNAME} @ <span class='smalltext'>{TIMEDATE}</span><br />
{AVATAR}<span class='smalltext'>{REPLY}</span><br />
{COMMENT}
<div style='text-align: right;' class='smallext'>{IPADDRESS}</div>";
// [chatboxstyle]
$CHATBOXSTYLE = "
<img src='".THEME."images/chatbox_16.png' alt='' style='vertical-align: middle;' />
<b>{USERNAME}</b>
<div class='smalltext'>
{MESSAGE}
</div>
<br />";
?>