Webmaster Forumu

Geri git   Webmaster Forumu > Hazır Uygulamalar > PhpNuke

PhpNuke phpNuke Temalar Eklentiler


Cevapla
 
LinkBack Seçenekler Stil
  #1 (permalink)   eTicaret 
Alt 2006-02-16, 12:53
 
Üyelik tarihi: Sep 2005
Mesajlar: 33
eTicaret: %0/0
Rep Puanı: 1
KIFO is an unknown quantity at this point
Standart Nuke Yayınladığım Haberlere resim ekleyince AnaSayfada gözükmüyor

Yayınladığım Haberlere resim ekleyince AnaSayfada gözükmüyor

PHP- Kodu:
<?php

/************************************************************/
/* IMPORTANT NOTE FOR THEMES DEVELOPERS!                    */
/*                                                          */
/* When you start cHighTech_02ng your theme, if you want to     */
/* distribute it, please double check it to fit the HTML    */
/* 4.01 Transitional Standard. You can use the W3 validator */
/* located at http://validator.w3.org                       */
/* If you don't know where to start with your theme, just   */
/* start mHighTech_02fying this theme, it's validate and is cool*/
/************************************************************/

/************************************************************/
/* Theme Colors Definition                                  */
/*                                                          */
/* Define colors for your web site. $bgcolor2 is generaly   */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the  */
/* other two bgcolor variables follows the same criteria.   */
/* $texcolor1 and 2 are for tables internal texts           */
/************************************************************/

global $loonr$prefix$db$kokku;
$kokku $db->sql_numrows($db->sql_query("select * from ".$prefix."_stories LIMIT 0, 30 "));

$bgcolor1 "#FFFFFF";
$bgcolor2 "#00BBCC";
$bgcolor3 "#ffffff";
$bgcolor4 "#ffffff";
$textcolor1 "#000000";
$textcolor2 "#000000";

if (
$loonr == "") {
    
$loonr "0";
}

include(
"themes/HighTech_02/tables.php");

/************************************************************/
/* Function themeheader()                                   */
/*                                                          */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks    */
/* function for left side with: blocks(left);               */
/************************************************************/

function themeheader() {
    global 
$user$banners$sitename$slogan$cookie$prefix$name$db;
    
cookiedecode($user);
    
$username $cookie[1];
    if (
$username == "") {
        
$username "Anonymous";
    }
    echo 
"<body bgcolor=\"#EDF0F2\" text=\"#000000\" link=\"#004080\" vlink=\"#004080\" alink=\"#004080\"  leftma26.10.2004rgin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
    if (
$banners) {
    include(
"banners.php");
    }
    
$topics_list "<select name=\"topic\" onChange='submit()'>\n";
    
$topics_list .= "<option value=\"\">All Topics</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 "";
    }
    if (
$username == "Anonymous") {
    
$theuser "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account\">Create an account";
    } else {
    
$theuser "&nbsp;&nbsp;Welcome $username!";
    }
    
$public_msg public_message();
    
$tmpl_file "themes/HighTech_02/header.html";
    
$thefile implode(""file($tmpl_file));
    
$thefile addslashes($thefile);
    
$thefile "\$r_file=\"".$thefile."\";";
    eval(
$thefile);
    print 
$r_file;
    
blocks(left);
    
$tmpl_file "themes/HighTech_02/left_center.html";
    
$thefile implode(""file($tmpl_file));
    
$thefile addslashes($thefile);
    
$thefile "\$r_file=\"".$thefile."\";";
    eval(
$thefile);
    print 
$r_file;
}

/************************************************************/
/* Function themefooter()                                   */
/*                                                          */
/* Control the footer for your site. You don't need to      */
/* close BODY and HTML tags at the end. In some part call   */
/* the function for right blocks with: blocks(right);       */
/* Also, $index variable need to be global and is used to   */
/* determine if the page your're viewing is the Homepage or */
/* and internal one.                                        */
/************************************************************/

function themefooter() {
    global 
$index$foot1$foot2$foot3$foot4;
    if (
$index == 1) {
    
$tmpl_file "themes/HighTech_02/center_right.html";
    
$thefile implode(""file($tmpl_file));
    
$thefile addslashes($thefile);
    
$thefile "\$r_file=\"".$thefile."\";";
    eval(
$thefile);
    print 
$r_file;
    
blocks(right);
    }
    
$footer_message "$foot1<br>$foot2<br>$foot3<br>$foot4";
    
$tmpl_file "themes/HighTech_02/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$cookie$loonr$vasak$parem$kokku$storyhome$storynum
    
$ThemeSel get_theme();
    if (
file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
    
$t_image "themes/$ThemeSel/images/topics/$topicimage";
    } else {
    
$t_image "$tipath$topicimage";
    }
    
$loonr = ($loonr+1);
    if (isset(
$cookie[3])) {
    
$storynum $cookie[3];
    } else {
    
$storynum $storyhome;
    }
    
$ridaaa1 round($loonr/2);
    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=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
    } else {
        
$content "$anonymous ";
    }
    
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    
$posted ""._POSTEDBY." ";
    
$posted .= get_author($aid);
    
$posted .= " "._ON." $time $timezone ($counter "._READS.")";
    if ((
$ridaaa1*2) != $loonr) {
    
$tmpl_file "themes/HighTech_02/story_home.html";
    
$thefile implode(""file($tmpl_file));
    
$thefile addslashes($thefile);
    
$thefile "\$r_file=\"".$thefile."\";";
    eval(
$thefile);
    
$vasak .= "$r_file";
    } else {
    
$tmpl_file "themes/HighTech_02/story_home.html";
    
$thefile implode(""file($tmpl_file));
    
$thefile addslashes($thefile);
    
$thefile "\$r_file=\"".$thefile."\";";
    eval(
$thefile);
    
$parem .= "$r_file";
    }
    if (
$loonr == $storynum OR $loonr == $kokku) { 
    echo 
"<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
    echo 
"<tr>"
    echo 
"<td width=\"100%\" valign=\"top\">"
    print 
$vasak
    echo 
"</td>"
    echo 
"</tr><tr>"
    echo 
"<td width=\"100%\" valign=\"top\">"
    print 
$parem
    echo 
"</td>"
    echo 
"</tr>"
    echo 
"</table>";      }
}

/************************************************************/
/* Function themeindex()                                    */
/*                                                          */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home        */
/************************************************************/

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=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
    } else {
        
$content "$anonymous ";
    }
    
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    
$tmpl_file "themes/HighTech_02/story_page.html";
    
$thefile implode(""file($tmpl_file));
    
$thefile addslashes($thefile);
    
$thefile "\$r_file=\"".$thefile."\";";
    eval(
$thefile);
    print 
$r_file;
}

/************************************************************/
/* Function themesidebox()                                  */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/

function themesidebox($title$content) {
    if (
$_GET['name']!="Forums")
    
$tmpl_file "themes/HighTech_02/blocks.html";
    
$thefile implode(""file($tmpl_file));
    
$thefile addslashes($thefile);
    
$thefile "\$r_file=\"".$thefile."\";";
    eval(
$thefile);
    print 
$r_file;
}

?>
Alıntı ile Cevapla
Ucuz ürün ihaleleri
  #2 (permalink)   eTicaret 
Alt 2006-02-18, 12:31
salihk - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: Nov 2005
Nerden: Ankara
Mesajlar: 194
eTicaret: %0/0
Rep Puanı: 1
salihk is an unknown quantity at this point
Standart

haberin ön izlemesine eklemen lazım yani kısa yazının oldugu yere birde kullandıgın kod yanlış olabilir
Alıntı ile Cevapla
  #3 (permalink)  
Alt 2007-12-15, 08:12
ozguradam
Guest
 
Mesajlar: n/a


Uyarı: (0%)
Standart

anadizinindeki config.php yi aç ve $AllowableHTML satırını aşağıdaki gibi düzenle..

$AllowableHTML = array(
"a" => array("href" => 1, "target" => 1,),
"b" =>1,
"blockquote" =>1,
"br" =>1,
"center" =>1,
"div" => array("align" => 1),
"em" =>1,
"font" => array("face" => 1, "style" => 1, "color" => 1, "size" => array("minval" => 1, "maxval" => 7)),
"h1"=>1,
"h2"=>1,
"h3"=>1,
"h4"=>1,
"h5"=>1,
"h6"=>1,
"hr" =>1,
"i" =>1,
"img" => array("alt" => 1, "src" => 1, "hspace" => 1, "vspace" => 1, "border" => 1, "align" => 1),
"li" =>1,
"ol" =>1,
"p" => array("align" => 1),
"pre" => array("align" => 1),
"span" =>array("class" => 1, "style" => array("font-family" => 1, "color" => 1)),
"strong" =>1,
"table" => array("align" => 1, "border" => 1, "cell" => 1),
"td" =>1,
"tr" => array("align" => 1),
"tt"=>1,
"u" =>1,
"ul" =>1,
"embed"=>1,
"param"=>1,
"object"=>1
);


ben denedim işe yarıyor.
Alıntı ile Cevapla
Cevapla


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
Seçenekler
Stil


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Kazançlar Gözükmüyor... dsgnr Google Adsense 14 2006-08-05 17:22
bu kodları ekleyince hata alıyorum. UndeaD PHP 16 2006-02-20 22:08
Kanal ekleyince feci düşüş oldu Kara Google Adsense 8 2005-07-30 00:46
adbrite kazanımlar gözükmüyor ? Alobar Internetten Para 0 2005-05-02 11:23
iç sayfalarda çıkıyor anasayfada çımıyor hibrahim Internetten Para 8 2004-10-10 20:52


Bütün Zaman Ayarları WEZ +2 olarak düzenlenmiştir. Şu Anki Saat: 23:23 .


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Hosting sponsor Netinternet Datacenter
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