Używam skórkę BlueStar, w której na górze znajdują się Edytuj profil | Prywatne wiadomości | Panel administratora | Wyloguj. Chciałbym, gdy dostanę nową wiadomość Zamiast Prywatne wiadomości pisało na czerwono: Otrzymałeś Nową Wiadomość.
Plik theme skórki:
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class=\"bullet\">·</span>");
require_once INCLUDES."theme_functions_include.php";
/**
* I Don't need for this:
* function get_head_tags() {}
**/
function render_page($license=false) {
global $settings, $main_style, $locale, $aidlink;
// Header
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n";
echo "<tr>\n";
echo "<td class=\"header-left\" rowspan=\"4\"></td>";
echo "<td class=\"header-top\">\n";
if(iMEMBER){
echo "<a href=\"".BASEDIR."edit_profile.php\">".$locale['global_120']."</a> |".
" <a href=\"".BASEDIR."messages.php\">".$locale['global_121']."</a>".
(iADMIN ? " | <a href=\"".ADMIN."index.php".$aidlink."\">".$locale['global_123']."</a>" : "").
" | <a href=\"".BASEDIR."setuser.php?logout=yes\">".$locale['global_124']."</a>\n";
} else {
echo "<form method=\"post\" action=\"".FUSION_SELF."\" style=\"margin-top:-3px;\">\n";
echo $locale['global_101']." <input type=\"text\" name=\"user_name\" class=\"textbox\" style=\"width:100px\" />\n";
echo $locale['global_102']." <input type=\"password\" name=\"user_pass\" class=\"textbox\" style=\"width:100px\" />\n";
echo "<input type=\"submit\" name=\"login\" value=\"".$locale['global_104']."\" class=\"button\" />\n";
echo ($settings['enable_registration'] ? " | <a href=\"".BASEDIR."register.php\">".$locale['global_107']."</a>\n" : "").
" | <a href=\"".BASEDIR."lostpassword.php\">".$locale['global_108']."</a>";
echo "</form>\n";
}
echo "</td>";
echo "<td class=\"header-right\" rowspan=\"4\"></td>";
echo "</tr><tr>\n";
echo "<td class=\"header-logo\">\n";
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"height: 100%;\">\n";
echo "<td>".showbanners()."\n</td>";
echo "<td align=\"right\" width=\"200\" style=\"width: 200px;\" valign=\"bottom\">\n";
echo "<form id=\"headsearch\" method=\"get\" action=\"".BASEDIR."search.php\">\n";
echo "<input type=\"hidden\" name=\"stype\" value=\"news\" />\n";
echo "<input type=\"text\" name=\"stext\" value=\"Search\" onclick=\"if(this.value=='Search')this.value='';\" onblur=\"if(this.value=='')this.value='Search';\" class=\"headsearchbox\" style=\"width:160px\" />";
echo "<input type=\"submit\" name=\"submit\" value=\"›\" class=\"headsearchbutton\" style=\"width:20px\" />";
echo "</form>\n";
echo "</td></tr></table>";
echo "</td>";
echo "</tr><tr>\n";
echo "<td class=\"header-navigation-top\">".showsublinks("", "nav-item")."</td>";
echo "</tr><tr>\n";
echo "<td class=\"header-navigation-bottom\"></td>";
echo "</tr>\n";
echo "</table>\n";
//Content
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"".$main_style."\">\n";
echo "<tr>\n";
echo "<td class=\"body-left\" valign=\"top\"></td>";
if (LEFT) { echo "<td class=\"panels-left\" valign=\"top\">".LEFT."</td>"; }
echo "<td class=\"body-main\" valign=\"top\">".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class=\"panels-right\" valign=\"top\">".RIGHT."</td>"; }
echo "<td class=\"body-right\" valign=\"top\"></td>";
echo "</tr>\n";
echo "</table>\n";
// Footer
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tr>\n";
echo "<td class=\"footer-left\"></td>\n";
echo "<td align=\"left\" class=\"footer-center\">\n";
echo "<div style=\"float: left;\">".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</div>\n";
echo "<div style=\"float: right;\">".showcounter()."</div>\n";
echo "<div class=\"center\" align=\"center\">BlueStar theme by <a target='_blank' title='seo service' href='http://www.seoxrumerservice.com'>seoxrumerservice</a> | <a target='_blank' title='Hosted Exchange 2010' href='http://www.apps4rent.com/'>Hosted Exchange 2010</a> </div>";
echo "<div class=\"footer-subbox\">";
echo stripslashes($settings['footer']);
if (!$license) { echo "<br />\n".showcopyright(); }
echo "</div>\n";
echo "</td>\n";
echo "<td class=\"footer-right\"></td>\n";
echo "</tr>\n";
echo "</table>\n";
}
function render_news($subject, $news, $info) {
echo "<div class=\"news-title\"><h2>".$subject."</h2></div>\n";
echo "<div class=\"news-content\">".$news."</div>";
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"spacer\">\n";
echo "<tr>\n";
echo "<td class=\"fnews-left\"></td>\n";
echo "<td align=\"center\" class=\"fnews-middle\">\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n";
echo "<td class=\"fnews-right\"></td>\n";
echo "</tr>\n";
echo "</table>\n";
}
Mam theme o nazwie BlueStar i chciałbym aby na górze w rogu gdy pojawi się nowa wiadomość pisało na czerwono: Otrzymałeś Nową Wiadomość.
Screen:
PW od moderatora:
- Zmiana nazwy tematu - khaman 20.06 - 11:26
Edytowane przez Pieka dnia 20.06.2011 12:40:31
|