كسي مي تونه اين كدروبراي من تغييربده(مربوط به تغييرلوگو) ((خيلي خيلي فوري))

pooya799

Member
با سلام
من يه تم دارم كه لوگوي ديفالتش چند تكه هست ومن يه لوگو براش طراحي كردم ولي چون لوگوي اصلش چندتكه هست نمي تونم جايگزينش كنم وبه مشكل برخوردم تروخدايكي پيدانمي شه بمن كمك كنه واين كدروعوض كنه طوري كه لوگوش يك تكه بشه ومن فقط بخواهم جاي اسم لوگو روتغيير بدم ...من خيلي عجله دارم آبروم درخطره ...كمممممممممممك
[align=left:3a3de658ef]<?php

$lnkcolor = "#336699";
$bgcolor1 = "#ffffff";
$bgcolor2 = "#D1DFEF";
$bgcolor3 = "#B1CBD9";
$textcolor1 = "#000000";
$textcolor2 = "#000000";
$theme_home = "Web_Links";
$hr = 1; # 1 to have horizonal rule in comments instead of table bgcolor

function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable() {
echo "</td></tr></table></td></tr></table>\n";
}

function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}

function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = ""._NOTE."$notes\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font size=\"2\">$thetext<br>$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." \"$thetext\"$notes\n";
echo "<font size=\"2\">$boxstuff</font>\n";
}
}

function themeheader() {
global $prefix, $db, $user, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $banners, $sitename, $anonymous, $user;
echo "<body bgcolor=\"$bgcolor1\" topmargin=\"1\" leftmargin=\"1\">";
if (is_user($user)) {
cookiedecode($user);
$username = $cookie[1];
$bienvenida = ""._HELLOMEM." $username [ <a href=\"modules.php?name=Your_Account&op=logout\">"._LOGOUT."</a> ]";
} else {
$bienvenida = "<a href=\"modules.php?name=Your_Account&op=new_user\">"._MEMBERSHIP."</a>";
}
$topics_list = "<select name=\"topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">"._ALLTOPICS."</option>\n";
$toplist = $db->sql_query("select topicid, topictext from $prefix"._topics." order by topictext");
while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) {
$topicid = intval($topicid);
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
echo"<TABLE WIDTH=\"100%\" BORDER=0 CELLPADDING=0 CELLSPACING=0 background=\"themes/ip/images/headbg.gif\">"
. " <TR>"
. " <TD>"
. "<IMG SRC=\"themes/ip/images/top_01.gif\" WIDTH=239 HEIGHT=25>&lt;/TD>"
. " &lt;TD align=\"right\">"
. " &lt;map name=\"FPMap0\">"
. " &lt;area href=\"index.php\" shape=\"rect\" coords=\"467, 4, 509, 15\">"
. " &lt;area href=\"modules.php?name=Contact\" shape=\"rect\" coords=\"400, 4, 443, 15\">"
. " &lt;area target=\"_blank\" href=\"http://www.yourname.com/modules.php?name=Downloads\" shape=\"rect\" coords=\"321, 3, 369, 15\">"
. " &lt;area target=\"_blank\" href=\"http://www.yourname.com/sales/cgi-bin/client.cgi\" shape=\"rect\" coords=\"247, 3, 302, 16\">"
. " &lt;area href=\"modules.php?name=Topics\" shape=\"rect\" coords=\"184, 4, 226, 15\">"
. " &lt;area href=\"modules.php?name=Forums\" shape=\"rect\" coords=\"93, 3, 165, 15\">"
. " &lt;area href=\"modules.php?name=Submit_News\" shape=\"rect\" coords=\"31, 4, 81, 17\">"
. " &lt;/map>"
. "<IMG SRC=\"themes/ip/images/top_02.gif\" WIDTH=536 HEIGHT=25 usemap=\"#FPMap0\" border=\"0\">&lt;/TD>"
. "&lt;/TR>"
. "&lt;TR bgcolor=#ffffff>"
. "&lt;TD align=\"left\" valign=\"top\">"
. "&lt;a href=\"index.php\"><IMG SRC=\"themes/ip/images/top_03.gif\" WIDTH=239 HEIGHT=75 ALT=\"Home Page\" border=\"0\">&lt;/a>&lt;/TD>"
. "&lt;td align=\"right\" valign=\"bottom\">";
echo"&lt;table border=\"0\" width=\"470\" cellpadding=\"2\">"
. "&lt;tr align=\"right\" valign=\"bottom\">"
. "&lt;td height=\"62\">";
if ($banners) {
include("banners.php");
}
echo"&amp;nbsp;&lt;/td>&lt;/tr>&lt;/table>";
echo "&lt;/td>&lt;/TR>&lt;/TABLE>";
echo"&lt;table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"$bgcolor1\">&lt;tr>&lt;td align=\"center\">"
."&lt;/td>&lt;/tr>&lt;/table>"
."&lt;br>"
."&lt;table border=\"0 cellpadding=\"4\" cellspacing=\"0\" width=\"100%\" align=\"center\" dir=\"rtl\">\n"
."&lt;tr>&lt;td background=\"themes/ip/images/header_bg.gif\" height=\"55\" align=\"right\" width=\"50%\">"
."&lt;form action=\"modules.php?name=Search\" method=\"post\">"
."&lt;font class=\"content\">"._SEARCH2." &lt;input type=\"text\" size=\"15\" name=\"query\">&amp;nbsp;&amp;nbsp;"._ON2."&amp;nbsp;&amp;nbsp;$topics_list&lt;/font>"
."&lt;/select>"
."&lt;/form>&lt;/td>"
."&lt;td background=\"themes/ip/images/header_bg.gif\" height=\"55\" align=\"right\" width=\"50%\">"
."&lt;table border=\"0\" width=\"100%\" cellpadding=\"2\">"
. " &lt;tr>"
. " &lt;td width=\"100%\" align=\"left\" valign=\"top\">&amp;nbsp;$bienvenida&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td>"
. " &lt;/tr>"
. " &lt;tr>"
. " &lt;td width=\"100%\">&amp;nbsp;&lt;/td>"
. " &lt;/tr>"
. "&lt;/table>"
."&lt;/td>&lt;/tr>\n"
."&lt;tr>&lt;td valign=\"top\" width=\"100%\" colspan=3>\n";
$public_msg = public_message();
echo "$public_msg&lt;br>";
echo "&lt;table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\">&lt;tr>&lt;td valign=\"top\" width=\"150\" bgcolor=$bgcolor1>";
blocks(left);
echo "<img src=\"images/pix.gif\" border=\"0\" width=\"150\" height=\"1\">&lt;/td>&lt;td>&amp;nbsp;&amp;nbsp;&lt;/td>&lt;td width=\"100%\" valign=\"top\">";
}

function themefooter() {
global $index, $bgcolor1, $bgcolor2, $bgcolor3;
if ($index == 1) {
echo "&lt;/td>&lt;td>&amp;nbsp;&amp;nbsp;&lt;/td>&lt;td valign=\"top\" bgcolor=$bgcolor1>";
blocks(right);
echo "&lt;/td>";
}
echo "&lt;/td>&lt;/tr>&lt;/table>&lt;/td>&lt;/tr>&lt;/table>";
echo"&lt;table border=\"0\" cellspacing=\"0\" width=\"100%\" cellpadding=\"0\" background=\"themes/ip/images/footer_bg.gif\" height=\"55\" dir=\"rtl\">"
. "&lt;tr>"
. "&lt;td width=\"100%\" align=\"center\">";
footmsg();
echo "&lt;p align=\"center\">&amp;nbsp;&lt;/td>"
. " &lt;/tr>"
. "&lt;/table>";
}

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
if ("$aid" == "$informant") { ?>

&lt;style>
.news { display: none; }
&lt;/style>
&lt;script>
function newsDisplay(itemname)
{

tmp = document.getElementsByTagName('div');
for (i=0;i&lt;tmp.length;i++)
{
if (tmp.className == itemname) tmp.style.display = (tmp.style.display == 'none' || tmp.style.display == '') ? 'block' : 'none';
}

}
&lt;/script>
&lt;table border=1 cellpadding=3 cellspacing=0 width=100% bordercolor="#336699" style="border-collapse: collapse" height="1">&lt;tr>
&lt;td bgcolor=#EEEEEE width="100%" style="border-right-style: none; border-right-width: medium" height="10">
&lt;?php echo"$title"; ?>&lt;br>&lt;?php echo"&lt;p align=right>$morelink";?>&lt;/td>
&lt;td bgcolor=#EEEEEE width="45" align="center" style="border-left-style: none; border-left-width: medium" height="1">
&lt;?php echo" &lt;button onclick=\"newsDisplay('news')\" style=\"color: #336699; font-size: 8pt; border: 1px double #336699; height:17; background-color:#EEEEEE\" value=\"contenuto\">
<img border=\"0\" src=\"images/doublearrow.gif\" alt=\""._EXPANDNEWS."\">&lt;/button>";?>&lt;/td>&lt;/tr>
&lt;/table>
space2.gif
&lt;div class="news">
&lt;table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#336699" width="100%">
&lt;tr>
&lt;td width="90%" align="ident" style="border-top-style: none; border-top-width: medium; border-right-style:none; border-right-width:medium" bgcolor="#FFFFFF">
&lt;font class=content>
&lt;?php echo"$thetext"; ?>&lt;/font>&lt;hr color="#336699" width="100%" size="1">
&lt;?php echo""._POSTEDBY."";formatAidHeader($aid); ?>&amp;nbsp;&lt;?php echo""._ON."&amp;nbsp;$time $timezone&amp;nbsp;"._READS."&amp;nbsp;&amp;nbsp;"; ?>&lt;?php echo $counter; ?>
&lt;/td>
&lt;td width="10%" align="center" style="border-top-style: none; border-top-width: medium; border-left-style:none; border-left-width:medium" bgcolor="#FFFFFF">
&lt;a href="modules.php?name=News&amp;amp;new_topic=&lt;?php echo"$topic"; ?>&amp;author=">&lt;img src=&lt;?php echo"$t_image"; ?> border=0 Alt=&lt;?php echo"\"$topictext\""; ?>&lt;/td> &lt;/tr>&lt;/table>&lt;/div>&lt;br>

&lt;?php } else {
if($informant != "") $boxstuff = "&lt;a href=\"modules.php?name=Your_Account&amp;amp;op=userinfo&amp;username=$informant\">$informant&lt;/a>&amp;nbsp;"._WRITES.":&amp;nbsp;";
else $boxstuff = "$anonymous";
?>
&lt;table border=1 cellpadding=3 cellspacing=0 width=100% bordercolor="#336699" style="border-collapse: collapse" height="1">&lt;tr>
&lt;td bgcolor=#EEEEEE width="100%" style="border-right-style: none; border-right-width: medium" height="10">
&lt;?php echo"$title"; ?>&lt;br>&lt;?php echo"&lt;p align=right>$morelink";?>&lt;/td>
&lt;td bgcolor=#EEEEEE width="45" align="center" style="border-left-style: none; border-left-width: medium" height="1">
&lt;?php echo" &lt;button onclick=\"newsDisplay('news')\" style=\"color: #336699; font-size: 8pt; border: 1px double #336699; height:17; background-color:#EEEEEE\" value=\"contenuto\">
<img border=\"0\" src=\"images/doublearrow.gif\" alt=\""._EXPANDNEWS."\">&lt;/button>";?>&lt;/td>&lt;/tr>
&lt;/table>
space2.gif
&lt;div class="news">
&lt;table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#336699" width="100%">
&lt;tr>
&lt;td width="90%" align="ident" style="border-top-style: none; border-top-width: medium; border-right-style:none; border-right-width:medium" bgcolor="#FFFFFF">
&lt;font class=content>
&lt;?php echo"$boxstuff";?>&lt;?php echo"$thetext"; ?>&lt;/font>&lt;hr color="#336699" width="100%" size="1">
&lt;?php echo""._POSTEDBY."";formatAidHeader($aid); ?>&amp;nbsp;&lt;?php echo""._ON."&amp;nbsp;$time $timezone&amp;nbsp;"._READS."&amp;nbsp;&amp;nbsp;"; ?>&lt;?php echo $counter; ?>
&lt;/td>
&lt;td width="10%" align="center" style="border-top-style: none; border-top-width: medium; border-left-style:none; border-left-width:medium" bgcolor="#FFFFFF">
&lt;a href="modules.php?name=News&amp;amp;new_topic=&lt;?php echo"$topic"; ?>&amp;author=">&lt;img src=&lt;?php echo"$t_image"; ?> border=0 Alt=&lt;?php echo"\"$topictext\""; ?>&lt;/td> &lt;/tr>&lt;/table>&lt;/div>&lt;br>
&lt;?php }
}

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath, $bgcolor1, $bgcolor2, $bgcolor3;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
if ("$aid" == "$informant") {
echo"
&lt;table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=$bgcolor3 width=100% style=\"border: 1px dashed #97BDE8\">&lt;tr>&lt;td>
&lt;table border=0 cellpadding=3 cellspacing=1 width=100%>&lt;tr>&lt;td bgcolor=$bgcolor2>
&lt;font class=\"title\">$title&lt;/font>&lt;br>"._POSTEDON." $datetime
&lt;br>"._TOPIC.": &lt;a href=modules.php?name=News&amp;amp;new_topic=$topic>$topictext&lt;/a>
&lt;/td>&lt;/tr>&lt;tr>&lt;td bgcolor=$bgcolor1>
&lt;a href=\"modules.php?name=News&amp;amp;new_topic=$topic\"><img src=\"$t_image\" border=\"0\" alt=\"$topictext\" title=\"$topictext\" align=\"right\">&lt;/a>$thetext
&lt;/td>&lt;/tr>&lt;/table>&lt;/td>&lt;/tr>&lt;/table>&lt;br>";
} else {
if($informant != "") $informant = "&lt;a href=\"modules.php?name=Your_Account&amp;amp;op=userinfo&amp;username=$informant\">$informant&lt;/a> ";
else $boxstuff = "$anonymous ";
$boxstuff .= ""._WRITES."\"$thetext\"$notes";
echo "
&lt;table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=$bgcolor3 width=100%>&lt;tr>&lt;td>
&lt;table border=0 cellpadding=3 cellspacing=1 width=100%>&lt;tr>&lt;td bgcolor=$bgcolor2>
&lt;font class=\"title\">$title[/b]&lt;/font>&lt;p>"._CONTRIBUTEDBY." $informant "._ON." $datetime&lt;/font>
&lt;/td>&lt;/tr>&lt;tr>&lt;td bgcolor=$bgcolor1>
&lt;a href=\"modules.php?name=News&amp;amp;new_topic=$topic\"><img src=\"$t_image\" border=\"0\" alt=\"$topictext\" title=\"$topictext\" align=\"right\">&lt;/a>$thetext
&lt;/td>&lt;/tr>&lt;/table>&lt;/td>&lt;/tr>&lt;/table>&lt;br>";
}
}

function themesidebox($title,$content,$blocktemplate) {

if ($blocktemplate == "") {
$blocktemplate = "default.html";
}
$tmpl_file = "themes/ip/blocks+/$blocktemplate";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

?>

?>[/align:3a3de658ef]عكس ها بانام top_01وtop-02والي آخرهستند
ممنون
 

sambol

Active Member
عزيز يه روش خيلي ساده اين بود كه تو هم عكست رو به اندازه اون لوگو تيكه تيكه بكني كه من به اين روش ميگم كلك رشتي و نياز به تغيير كد هم نداره. ولي تغيير كد هم مي شه ولي اين چيزي كه نوشتي همه كدها هست اگه يازم خودم قالب رو داشتم شايد مي تونستم؟
 

pooya799

Member
بله ماهم ازاين كلكهابلديم :wink:
مشكل من اينه كه اگه ازاون روش استفاده كنم اون لوگويي كه من مي خواهم درنمي آيد
اين كد رونمي شه تغييرداد؟اگه نمي شه بگيد فايلشو براي دانلودبزارم فقط تروخدا سريعترعجله دارم..اضافه كنم كه فقط عكس هاي تكه تكه سايت به نام هاي Top_01وtop_02وtop_03وtop_04است وفقط كدمربوط به اينها مي خواهم تغييركنه ويك تكه بشه.
ممنون
 

pooya799

Member
آقااصلاهركه مي تونه كمكم كنه ايميلشو بزاره تافايلوبراش بفرستم
خيلي يلي ممنون
 

جدیدترین ارسال ها

بالا