Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Iterpimas

Parašė LeBro· 2008 Geg. 21 10:05:50
#1

kaip po eilutes :

echo ($data['user_avatar'] ? "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['u017']."'><br><br>\n<hr>\n" : "")




po kurios eina eilute :

.($data['user_hide_email'] != 1 || iADMIN ? "<button class='button' onclick=\"window.location = 'mailto:".str_replace("@","&#64;",$data['user_email'])."';\" style='margin-bottom:1px;width:100px;' title='".str_replace("@","&#64;",$data['user_email'])."'>".$locale['u051']."</button><br>\n" : "")




iterpti koda :

# START
$countplius = dbcount("(type)", "reputation", " to_id='".$data['user_id']."' AND type='1'");
$countminus = dbcount("(type)", "reputation", " to_id='".$data['user_id']."' AND type='0'");
$counttotal = $countplius - $countminus;
echo "Reputacija: <a href='#'>".$counttotal."</a>";
if (iMEMBER) {
}
# END




kad nemestu klaidos :)

tikiuosi supratot, ka turiu omeny ;] manau kertantys visus tuos kintamuosius turetu susigaudyt

Parašė Dandžu· 2008 Geg. 21 11:05:15
#2

Bandyk šitą variantą. Turiu ir dar vieną galvojo.
echo ($data['user_avatar'] ? "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['u017']."'><br><br>\n<hr>\n" : "");
$countplius = dbcount("(type)", "reputation", " to_id='".$data['user_id']."' AND type='1'");
$countminus = dbcount("(type)", "reputation", " to_id='".$data['user_id']."' AND type='0'");
$counttotal = $countplius - $countminus;
echo "Reputacija: <a href='#'>".$counttotal."</a>";
if (iMEMBER) {
}
echo ($data['user_hide_email'] != 1 || iADMIN ? "<button class='button' onclick=\"window.location = 'mailto:".str_replace("@","&#64;",$data['user_email'])."';\" style='margin-bottom:1px;width:100px;' title='".str_replace("@","&#64;",$data['user_email'])."'>".$locale['u051']."</button><br>\n" : "");



Redagavo Dandžu· 2008 Geg. 21 11:05:27

Parašė LeBro· 2008 Geg. 21 11:05:02
#3

Parse error: syntax error, unexpected '.' in /mp3s.lt/profile.php on line 102

:|

Parašė Dandžu· 2008 Geg. 21 11:05:04
#4

echo "".($data['user_avatar'] ? "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['u017']."'><br><br>\n<hr>\n" : "")."";
$countplius = dbcount("(type)", "reputation", " to_id='".$data['user_id']."' AND type='1'");
$countminus = dbcount("(type)", "reputation", " to_id='".$data['user_id']."' AND type='0'");
$counttotal = $countplius - $countminus;
echo "Reputacija: <a href='#'>".$counttotal."</a>";
if (iMEMBER) {
}
echo "".($data['user_hide_email'] != 1 || iADMIN ? "<button class='button' onclick=\"window.location = 'mailto:".str_replace("@","&#64;",$data['user_email'])."';\" style='margin-bottom:1px;width:100px;' title='".str_replace("@","&#64;",$data['user_email'])."'>".$locale['u051']."</button><br>\n" : "")."";




Parašė LeBro· 2008 Geg. 21 11:05:32
#5

dekui, shark ;) dar siek tiek pakeiciau tavo koda ir viskas veikia ;)