Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Undefinded index bėda
Parašė Erdfcvxl· 2011 Geg. 9 18:05:52
#1
Sveiki turiu tokia beda :
Notice: Undefined index: news_sub in /home/madclan/domains/madclan.us.lt/public_html/themes/gaming_v.2/theme.php on line 307
Notice: Undefined index: news_image in /home/madclan/domains/madclan.us.lt/public_html/themes/gaming_v.2/theme.php on line 314
Notice: Undefined index: news_text in /home/madclan/domains/madclan.us.lt/public_html/themes/gaming_v.2/theme.php on line 360
toks erroras cia su V7. O theme.php faile tos eilutes atrodo stai taip :
function render_news($subject, $news, $info) {
$sub = trimlink($info['news_sub'], 22);
echo " <table cellspacing='0' cellpadding='0' width='430' align='center'>
<tr>
<td background='".LINK.THEME."images/news-bg.png' width='430'>
<table cellspacing='0' cellpadding='0' width='153' heigth='102' align='left' style='margin-top: 14px; margin-left: 10px;'>
<tr>
<td width='153' heigth='102'>
".$info['news_image']."
</td>
</tr>
</table>
<table cellspacing='0' cellpadding='0' width='238' align='left' style='margin-left: 18px; margin-top: 14px;'>
<tr>
<td width='238'>
<table cellspacing='0' cellpadding='0' width='190' height='18' align='left' style='margin-top: 4px;'>
<tr>
<td width='190' height='18'>
<span class='news-subject'>
".$sub."
</span>
</td>
</tr>
</table>
<table cellspacing='0' cellpadding='0' width='24' height='22' align='right' style='margin-right: 10px;'>
<tr>
<td background='".LINK.THEME."images/news-coment.png' width='24' height='22'>
<span class='news-coment'>
<div align='center' style='margin-top: -5px; margin-left: 5px;'>
".$info['news_comments']."
</div>
</span>
</td>
</tr>
</table>
<table cellspacing='0' cellpadding='0' wdith='204' height='12' align='left'>
<tr>
<td wdith='204' height='12'>
<span class='news-autor'>
Autor: <a href='".BASEDIR."profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
</td>
</tr>
</table>
<table cellspacing='0' cellpadding='0' width='236' align='left' style='margin-top: 18px;'>
<tr>
<td width='236'>
<span class='news-text'>
".$info['news_text']."
</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing='0' cellpadding='0' width='416' height='1' align='center' style='margin-top: 18px;'>
<tr>
<td background='".LINK.THEME."images/news-ciarky.png' width='416' height='1'>
</td>
Taigi kas ras klaidu ar siaip pades bus labai gerai ir busiu be galo dekingas.
Deiviux.eu: kas per pavadinimas? Neužsitrauk rūstybės.
Redagavo Deiviux.eu· 2011 Geg. 9 19:05:45
Parašė Erdfcvxl· 2011 Geg. 9 19:05:19
#2
Atsiskaitycaiu uz pagalba
Parašė avice· 2011 Geg. 9 19:05:56
#3
is kur istraukei tuos news_image/text?
Galimima istraukt tik tai:
$info
[news_id]
[user_id]
[user_name]
[user_status]
[news_date]
[cat_id]
[cat_name]
[news_subject]
[news_ext]
[news_reads]
[news_comments]
[news_allow_comments]
[news_sticky]
arba jei nori papildomu teks paciam pasidaryt.
Tikiuosi supratai ;]
Redagavo avice· 2011 Geg. 9 19:05:18
Parašė Erdfcvxl· 2011 Geg. 9 19:05:55
#4
nesupratau..... As atsisiunciau tema uzdejau sukuriau newsa ir meta toki errora todel numeciau koda nesupratau ka tu nori pasakyti gal galetum smulkaiu?
Parašė avice· 2011 Geg. 9 19:05:42
#5
".$info['news_text/image/sub']." keisk i kitus kur parasiau tik nezinau i kokius pats pratestuok