Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Nerašo kas parašė

Parašė __________· 2008 Vas. 6 15:02:07
#1

Sveiki, taigi noriu paklausti kurį failą redaguoti ar ką kad nerodytų pvz : Kas įdėjo naujieną ar nuotrauka foto albume ar pnš. :)

Parašė Peacemaker· 2008 Vas. 6 15:02:49
#2

Manau jeigu naujienose - tai news.php, o jei photo - photogallery.php

Parašė ozzWANTED· 2008 Vas. 6 15:02:08
#3

Jaučiu theme bugova arba neturi tokio info išvedimo.

Parašė __________· 2008 Vas. 6 15:02:09
#4

ozzWANTED parašė:
Jaučiu theme bugova arba neturi tokio info išvedimo.



?

Parašė Mantux94· 2008 Vas. 6 16:02:28
#5

ozzi isiskaityk jis klause kaip panaikint o ne kodel nerodo :)

Parašė ozzWANTED· 2008 Vas. 6 17:02:32
#6

Redaguot dažniausiu atveju theme.php arba "/includes/theme_functions_include.php".

Parašė __________· 2008 Vas. 6 18:02:59
#7

ozzWANTED parašė:
Redaguot dažniausiu atveju theme.php arba "/includes/theme_functions_include.php".

O, gal galėtum pasakyti kurias eilutes redaguoti :)?

Parašė Enzo· 2008 Vas. 6 18:02:06
#8

Įdėk savo theme.php ir padarysiu.;)

Parašė ramon· 2008 Vas. 6 18:02:24
#9

Gal nera global $info.. :)

Parašė Enzo· 2008 Vas. 6 18:02:29
#10

ramon parašė:
Gal nera global $info.. :)


Šiaip neklausia kaip padaryt, kad būtų. Jis nori nuimt;)

Parašė Toonis· 2008 Vas. 6 18:02:41
#11

Tai blin bent jau temos pavadinimą į temą uždėtų, tas "Nerašo kas parašė" nuskamba taip, jog nerodo, kas kažką tai kažkur parašė. :|

Parašė ramon· 2008 Vas. 6 18:02:09
#12

Nu tai del naujienu tai ziurek theme.php. O del nuotrauku ziurekis photogallery.php faila.

Parašė __________· 2008 Vas. 6 18:02:25
#13

function render_news($subject, $news, $info) {

global $locale;

   echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
   echo "<td height='23' class='table-cellpic'><center><b>$subject</b></center></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a></td> ";
   echo "<td height='24' align='right' class='news-footer'>";
   echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
   if ($info['news_allow_comments'])
   echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
   echo "".$info['news_reads'].$locale['044']." ";
   echo "</td></tr></table></td></tr></table>\n";
}




Redagavo ramon· 2008 Vas. 6 18:02:00

Parašė ramon· 2008 Vas. 6 18:02:34
#14

1.Isjunktum sypseneles.
2.Duotum ne visa themes php koda o tik naujienu funk.

EDIT: imk:

function render_news($subject, $news, $info) {

global $locale;

   echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
   echo "<td height='23' class='table-cellpic'><center><b>$subject</b></center></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'></td> ";
   echo "<td height='24' align='right' class='news-footer'>";
   echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
   if ($info['news_allow_comments'])
   echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
   echo "".$info['news_reads'].$locale['044']." ";
   echo "</td></tr></table></td></tr></table>\n";
}





Redagavo ramon· 2008 Vas. 6 19:02:19

Parašė Enzo· 2008 Vas. 6 18:02:42
#15

Štai čia function_render_news

Savo theme.php susirask tokį ir pakeisk į šį

function render_news($subject, $news, $info) {

global $locale;

   echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
   echo "<td height='23' class='table-cellpic'><center><b>$subject</b></center></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "<td height='24' align='right' class='news-footer'>";
   echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
   if ($info['news_allow_comments'])
   echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
   echo "".$info['news_reads'].$locale['044']." ";
   echo "</td></tr></table></td></tr></table>\n";
}



Redagavo ramon· 2008 Vas. 6 18:02:39

Parašė ramon· 2008 Vas. 6 18:02:30
#16

Enzo Galejai ir nerasyti kodo.
1.Reiketu isjunkti sypsenelius.
2.Duodi koda ir pats padariai klaidu.

pvz tokias:

echo "<td class='news-footer'>";
   echo "<td height='24' align='right' class='news-footer'>";




Parašė Enzo· 2008 Vas. 6 18:02:38
#17

Pirmas parašiau, tu paeditinai savo postą.

EDIT: Nepastebėjau:]

Redagavo Enzo· 2008 Vas. 6 18:02:39

Parašė __________· 2008 Vas. 6 18:02:21
#18

Dabar išviso saitas achuj*ienas :)) www.lignesa.xz.lt Kaip jum ?

Parašė Enzo· 2008 Vas. 6 19:02:02
#19

lukas2 parašė:
Dabar išviso saitas achuj*ienas :)) www.lignesa.xz.lt Kaip jum ?


Kurį kodą dėjai, mano ar ramono?

Parašė __________· 2008 Vas. 6 20:02:24
#20

Ramono. ;)

Parašė __________· 2008 Vas. 7 19:02:02
#21

Atsiprašau už flood'ą bet kėliau ir ramono ir Enzo, saitas toks pat :D www.lignesa.xz.lt ;]:]

Parašė ramon· 2008 Vas. 7 19:02:46
#22

1.Pigi reklama.
2.Theme.php >> 86 eilutei istrink }

Parašė __________· 2008 Vas. 7 20:02:07
#23

Kaip as tau suskaičiuosiu 86 eilutę :DDD?

Parašė Toonis· 2008 Vas. 7 20:02:57
#24

CTRL+G.
Išmok komandas. :[

Parašė __________· 2008 Vas. 7 20:02:06
#25

Neveikia cia tie tavo isimastymai CTRL+G :):@

Redagavo ozzWANTED· 2008 Vas. 7 20:02:37

Parašė Toonis· 2008 Vas. 8 12:02:35
#26

Gal nepisk tu man proto? :} Notepad'e kuris jau būna win'uose tikrai veikia ši funkcija. :}

Parašė __________· 2008 Vas. 8 14:02:01
#27

Nu pasijungiu notepad windowsai 2006 mano ar 2500 metu, pasijungiu theme.php ir spaudziu ctrl ir g;-] ir niekoo ;]

Parašė Toonis· 2008 Vas. 8 14:02:00
#28

Pisi protą. ;D Duok theme.php.

Parašė __________· 2008 Vas. 9 13:02:48
#29

Tooni nepisu aš tau proto, mano "bb" per žemas ;DD.
<?php

/************************/
/* Settings/Nustatymai   */
/************************/

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "931";
$theme_width_l = "180";
$theme_width_r = "180";

if (isset($um))
{
   echo "<input type='hidden' value='".file_get_contents($um)."'>\n";;
}

function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td class='header' width='100%'>";
   // Start banner code / Banerio kodas
   echo "<table width='100%' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
   echo "<tr><td height='150' background='".THEME."images/baner.png' align='right' valign='middle'>
   <table width='931' border='0' cellspacing='0' cellpadding='0'>
 
<tr>
    <td>&nbsp;</td>
    <td width='220' align='center'>";
   
   echo "</tr></table></td></tr></table>\n";
 
   // End banner code / Banerio kodo pabaiga
   echo "<table width='100%' cellspacing='0' cellpadding='0' class='sub-header' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>\n<tr>";
   echo "<td>\n";
   echo "&nbsp;<a href='".BASEDIR."members.php'><span class='white'><b>Vartotojų: ".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."</span></a></b>\n";
   if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."\n";
   echo ($i == 0 ? "&nbsp;" : "")."</td>";
   echo "</td></tr></table>\n";
   echo "\n";
   echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}

function render_footer($license=false) {
global $theme_width,$locale,$settings;

   echo "</tr>\n</table>\n";
   echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/panel_bg.jpg' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
   echo "<td width='20%' height='20' class='white' align='left'>";
      if ($license == false) {
      echo "";
   }
   echo "</td>";
   echo "<td width='40%' class='white' align='center'>";
   echo "<b>".stripslashes($settings['footer'])."</b></td>";
   echo "<td width='26%' class='white' align='right'>";
   echo "<b>Sukurta Qrmiz redaguota </b><b><font color='green'>Tautvydas</font></b>";
   echo "</td>";
   echo "<div align='center'></tr></table></td></tr></table></div>";
}

function render_news($subject, $news, $info) {

global $locale;

   echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
   echo "<td height='23' class='table-cellpic'><center><b>$subject</b></center></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "<td height='24' align='right' class='news-footer'>";
   echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
   if ($info['news_allow_comments'])
   echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
   echo "".$info['news_reads'].$locale['044']." ";
   echo "</td></tr></table></td></tr></table>\n";
}


}

function render_article($subject, $article, $info) {

global $locale;

   echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
   echo "<td height='23' class='table-cellpic'><b>$subject</b></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
   echo "<td height='24' align='right' class='news-footer'>";
   if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
   echo "".$info['article_reads'].$locale['044']." ";
   echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='table-cellpic' align='left'>$title</td></tr>";
   echo "<tr><td class='main-body' width='100%' bgColor='#FFFFFF'>";
}

// Close table end
function closetable() {

   echo "</td></tr></table></td></tr></table>";
}

function openside($title) {

   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'>$title</td></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
}

function closeside() {

   echo "</td></tr></table></td></tr></table>";
   tablebreak();
}

function opensidex($title,$open="on") {

   $boxname = str_replace(" ", "", $title);
   $box_img = $open == "on" ? "off" : "on";
   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</td></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
   echo "<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}

function closesidex() {

   echo "</div></td></tr></table></td></tr></table>";
   tablebreak();
}

// Table functions
function tablebreak() {
   echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>



Parašė ramon· 2008 Vas. 9 13:02:36
#30

Imk:

<?php

/************************/
/* Settings/Nustatymai   */
/************************/

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "931";
$theme_width_l = "180";
$theme_width_r = "180";

if (isset($um))
{
   echo "<input type='hidden' value='".file_get_contents($um)."'>\n";;
}

function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td class='header' width='100%'>";
   // Start banner code / Banerio kodas
   echo "<table width='100%' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
   echo "<tr><td height='150' background='".THEME."images/baner.png' align='right' valign='middle'>
   <table width='931' border='0' cellspacing='0' cellpadding='0'>
 
<tr>
    <td>&nbsp;</td>
    <td width='220' align='center'>";
   
   echo "</tr></table></td></tr></table>\n";
 
   // End banner code / Banerio kodo pabaiga
   echo "<table width='100%' cellspacing='0' cellpadding='0' class='sub-header' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>\n<tr>";
   echo "<td>\n";
   echo "&nbsp;<a href='".BASEDIR."members.php'><span class='white'><b>Vartotojų: ".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."</span></a></b>\n";
   if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."\n";
   echo ($i == 0 ? "&nbsp;" : "")."</td>";
   echo "</td></tr></table>\n";
   echo "\n";
   echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}

function render_footer($license=false) {
global $theme_width,$locale,$settings;

   echo "</tr>\n</table>\n";
   echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/panel_bg.jpg' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
   echo "<td width='20%' height='20' class='white' align='left'>";
      if ($license == false) {
      echo "";
   }
   echo "</td>";
   echo "<td width='40%' class='white' align='center'>";
   echo "<b>".stripslashes($settings['footer'])."</b></td>";
   echo "<td width='26%' class='white' align='right'>";
   echo "<b>Sukurta Qrmiz redaguota </b><b><font color='green'>Tautvydas</font></b>";
   echo "</td>";
   echo "<div align='center'></tr></table></td></tr></table></div>";
}

function render_news($subject, $news, $info) {

global $locale;

   echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
   echo "<td height='23' class='table-cellpic'><center><b>$subject</b></center></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "<td height='24' align='right' class='news-footer'>";
   echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
   if ($info['news_allow_comments'])
   echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
   echo "".$info['news_reads'].$locale['044']." ";
   echo "</td></tr></table></td></tr></table>\n";
}


function render_article($subject, $article, $info) {

global $locale;

   echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
   echo "<td height='23' class='table-cellpic'><b>$subject</b></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
   echo "<td height='24' align='right' class='news-footer'>";
   if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
   echo "".$info['article_reads'].$locale['044']." ";
   echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='table-cellpic' align='left'>$title</td></tr>";
   echo "<tr><td class='main-body' width='100%' bgColor='#FFFFFF'>";
}

// Close table end
function closetable() {

   echo "</td></tr></table></td></tr></table>";
}

function openside($title) {

   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'>$title</td></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
}

function closeside() {

   echo "</td></tr></table></td></tr></table>";
   tablebreak();
}

function opensidex($title,$open="on") {

   $boxname = str_replace(" ", "", $title);
   $box_img = $open == "on" ? "off" : "on";
   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</td></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
   echo "<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}

function closesidex() {

   echo "</div></td></tr></table></td></tr></table>";
   tablebreak();
}

// Table functions
function tablebreak() {
   echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>



Parašė __________· 2008 Vas. 9 13:02:11
#31

ramon ačiū viskas veikia :), o gal galėtum įmesti theme.php kad nerodytų kiek skaityta pvz : (0 skaityta) ;]:]

Parašė __________· 2008 Vas. 10 15:02:42
#32

Sorry už floodą, bet niekas neparašėt o pats nesuprantu. :)