Ich bin in der sache noch noob,habe problem mitt meni Forum..Wass mus ich fur datten hier rein machen in theme.php damit der Forum funtzt das ist die Code,wenn mier jemand Helfen kann were sehr dankbar..hier noch menine daten..fur Forum..
mojforum.mo.ohost.de
//edit by HeX: logindaten + email entfernt wegen Missbrauchgefahr
--------------------------------------------
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 | <?php /************************************************************/ /* Theme Name: Spider-X */ /* Theme Design By: Xipher--www.xipherdesigns.com */ /************************************************************/ /* Copyright (c) 2003 by Francisco Burzi */ /* http://phpnuke.org */ /************************************************************/ /************************************************************/ /* Theme Colors Definition */ /************************************************************/ $bgcolor1 = "#1E1E1E" ; $bgcolor2 = "#1E1E1E" ; $bgcolor3 = "#1E1E1E" ; $bgcolor4 = "#1E1E1E" ; $textcolor1 = "#FFFFFF" ; $textcolor2 = "#FFFFFF" ; /************************************************************/ /* OpenTable Functions */ /************************************************************/ include ( "themes/Spider-X/tables.php" ); /************************************************************/ /* FormatStory */ /************************************************************/ function FormatStory( $thetext , $notes , $aid , $informant ) { global $anonymous ; if ( $notes != "" ) { $notes = "<br><br><b>" ._NOTE. "</b> <i>$notes</i>\n" ; } else { $notes = "" ; } if ( "$aid" == "$informant" ) { echo "<font class=\"content\" color=\"#FFFFFF\">$thetext$notes</font>\n" ; } else { if ( $informant != "" ) { $boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> " ; } else { $boxstuff = "$anonymous " ; } $boxstuff .= "" ._WRITES. " <i>\"$thetext\"</i>$notes\n" ; echo "<font class=\"content\" color=\"#FFFFFF\">$boxstuff</font>\n" ; } } /************************************************************/ /* Function themeheader() */ /************************************************************/ function themeheader() { global $name , $user , $sitename , $slogan , $cookie , $prefix ; cookiedecode( $user ); $username = $cookie [1]; if ( $username == "cr3w" ) { $username = "Anonymous" ; } $public_msg = public_message(); echo "$public_msg" ; //$topics_list = "<select name=\"topic\" onChange='submit()'>\n"; //$topics_list .= "<option value=\"\">All Topics</option>\n"; //$toplist = sql_query("select topicid, topictext from $prefix"._topics." order by topictext", $dbi); //while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) { //if ($topicid==$topic) { $sel = "selected "; } //$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n"; //$sel = ""; if ( $username == "cr3w" ) { $username = "<font color=\"#FFFFFF\" face=\"verdana\" size=\"1\">Guest</font>" ; } echo "<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">" ; $tmpl_file = "themes/Spider-X/header.html" ; $thefile = implode( "" , file( $tmpl_file )); $thefile = addslashes ( $thefile ); $thefile = "\$r_file=\"" . $thefile . "\";" ; eval ( $thefile ); print $r_file ; //LEFT SIDE BACKGROUND echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n" . "<tr valign=\"top\">\n" . "<td width=\"44\" valign=\"top\" background=\"themes/Spider-X/images/left.jpg\"><img src=\"themes/Spider-X/images/left.jpg\" width=\"30\" height=\"11\" border=\"0\"></td>\n" . "<td width=\"170\" valign=\"top\">\n" ; global $swapleftright ; $swapleftright = "1" ; if ( $name == 'Forums' || $name == 'Members_List' || $name == 'Private_Messages' ) { /* Don't display it. */ } else { blocks(left); } $swapleftright = "0" ; echo "</td>\n" . "<td width=\"5\" valign=\"top\"><img src=\"themes/Spider-X/images/HD/spacer.jpg\" width=\"5\" height=\"0\" border=\"0\"></td>\n" . "<td width=\"100%\">\n" ; } /************************************************************/ /* Function themefooter() */ /************************************************************/ function themefooter( $title ) { global $index , $foot1 , $foot2 , $foot3 , $copyright , $banners , $totaltime , $dbi , $db , $prefix ; $maxshow = 10; // here you can change Number of downloads to dispaly in the block. $a = 1; $result = sql_query( "select lid, title, hits from " . $prefix . "_links_links order by date DESC limit 0,$maxshow" , $dbi ); while (list( $lid , $title , $hits ) = sql_fetch_row( $result , $dbi )) { $title2 = ereg_replace ( "_" , " " , "<b>$title</b>" ); $show .= " $a: <a href=\"modules.php?name=Web_Links&l_op=viewlinkdetails&lid=$lid&ttitle=$title\">$title2</a><br><br>" ; $showlinks = "<A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" align= \"left\" direction= \"up\" height=\"49\" scrollamount= \"2\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'>$show" ; $a ++; } global $prefix , $db ; $a = 1; $sql = "SELECT lid, title FROM " . $prefix . "_downloads_downloads ORDER BY hits DESC LIMIT 0,10" ; $result = $db ->sql_query( $sql ); while ( $row = $db ->sql_fetchrow( $result )) { $title2 = ereg_replace ( "_" , " " , "<b>$row[title]</b>" ); // $content .= "<strong><big>·</big></strong> $a: <a href=\"modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$row[lid]&title=$row[title]\">$title2</a><br>"; $content .= " $a: <a href=\"modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$row[lid]&title=$row[title]\">$title2</a><br> <br>" ; $showdl = "<A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" align= \"left\" direction= \"up\" height=\"50\" scrollamount= \"2\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'>$content" ; $a ++; } if ( $index == 1) { echo "</td>\n" . "<td width=\"100%\" valign=\"top\"><img src=\"themes/Spider-X/images/HD/spacer.jpg\" width=\"10\" height=\"0\" border=\"0\"></td>\n" . "<td width=\"170\" valign=\"top\">\n" ; blocks(right); } echo "</td>\n" . "<td width=\"29\" valign=\"top\" align=\"right\" background=\"themes/Spider-X/images/right.jpg\"><img src=\"themes/Spider-X/images/right.jpg\" width=\"30\" height=\"11\" border=\"0\"></td>\n" . "</tr>\n" . "</table>\n\n\n" ; $footer_message = "$foot1<br>$foot2<br>$foot3<br>$foot4" ; $tmpl_file = "themes/Spider-X/footer.html" ; $thefile = implode( "" , file( $tmpl_file )); $thefile = addslashes ( $thefile ); $thefile = "\$r_file=\"" . $thefile . "\";" ; eval ( $thefile ); print $r_file ; } /************************************************************/ /* Function themeindex() */ /* This function format the stories on the Homepage */ /************************************************************/ 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 ( $notes != "" ) { $notes = "<br><br><b>" ._NOTE. "</b> $notes\n" ; } else { $notes = "" ; } if ( "$aid" == "$informant" ) { $content = "$thetext$notes\n" ; } else { if ( $informant != "" ) { $content = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> " ; } else { $content = "$anonymous " ; } $content .= "" ._WRITES. " \"$thetext\"$notes\n" ; } //Code Changed - just show posted by $posted = "" ._POSTEDBY. " " ; $posted .= get_author( $aid ); $posted .= " " ._ON. " $time $timezone " ; //End Code Change $tmpl_file = "themes/Spider-X/story_home.html" ; $thefile = implode( "" , file( $tmpl_file )); $thefile = addslashes ( $thefile ); $thefile = "\$r_file=\"" . $thefile . "\";" ; eval ( $thefile ); print $r_file ; } /************************************************************/ /* Function themearticle() */ /************************************************************/ function themearticle ( $aid , $informant , $datetime , $title , $thetext , $topic , $topicname , $topicimage , $topictext ) { global $admin , $sid , $tipath ; $ThemeSel = get_theme(); if ( file_exists ( "themes/$ThemeSel/images/topics/$topicimage" )) { $t_image = "themes/$ThemeSel/images/topics/$topicimage" ; } else { $t_image = "$tipath$topicimage" ; } $posted = "" ._POSTEDON. " $datetime " ._BY. " " ; $posted .= get_author( $aid ); if ( $notes != "" ) { $notes = "<br><br><b>" ._NOTE. "</b> <i>$notes</i>\n" ; } else { $notes = "" ; } if ( "$aid" == "$informant" ) { $content = "$thetext$notes\n" ; } else { if ( $informant != "" ) { $content = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> " ; } else { $content = "$anonymous " ; } $content .= "" ._WRITES. " <i>\"$thetext\"</i>$notes\n" ; } $tmpl_file = "themes/Spider-X/story_page.html" ; $thefile = implode( "" , file( $tmpl_file )); $thefile = addslashes ( $thefile ); $thefile = "\$r_file=\"" . $thefile . "\";" ; eval ( $thefile ); print $r_file ; } /************************************************************/ /* Function themesidebox() */ /************************************************************/ function themesidebox( $title , $content ) { global $swapleftright , $bgcolor1 , $bgcolor2 ; if ( $swapleftright == "0" ) { $tmpl_file = "themes/Spider-X/R-Block.html" ; } else { $tmpl_file = "themes/Spider-X/L-Block.html" ; } $ThemeSel = get_theme(); // block image titles code $giftitle = "themes/$ThemeSel/images/block-titles/$title.gif" ; $jpgtitle = "themes/$ThemeSel/images/block-titles/$title.jpg" ; $jpegtitle = "themes/$ThemeSel/images/block-titles/$title.jpeg" ; $pngtitle = "themes/$ThemeSel/images/block-titles/$title.png" ; if ( file_exists ( $pngtitle )){ $title = "<img src=\"$pngtitle\">" ; } else if ( file_exists ( $jpegtitle )){ $title = "<img src=\"$jpegtitle\">" ; } else if ( file_exists ( $jpgtitle )){ $title = "<img src=\"$jpgtitle\">" ; } else if ( file_exists ( $giftitle )){ $title = "<img src=\"$giftitle\">" ; } $thefile = implode( "" , file( $tmpl_file )); $thefile = addslashes ( $thefile ); $thefile = "\$r_file=\"" . $thefile . "\";" ; eval ( $thefile ); print $r_file ; } ?> |
verwendete ilchClan Version: 1.1
betroffene Homepage: mojforum.mo.ohost.de
Zuletzt modifiziert von HeX am 15.10.2007 - 20:55:52