PDA

View Full Version : like ICQ indicator


ripman
07-27-2002, 08:43 AM
Hello I need to place an online/offline indicator on my forum and I'm lost. On VB 2.0.0 it was simple :




if ($post[field5]!="")
{
eval("\$post[field5] = \"".gettemplate("gadu-gadu")."\";");
}
else
{
$post[field5]="";
}


and add template gadu-gadu which is


< img src="http://www.gadu-gadu.pl/users/status.asp?id=$userinfo[field5]" alt="#GG : $userinfo[field5] - wyslij mi wiadomosc" border=0 >


When i wanted to upgrade to 2.2.6 i noticed that showtread.php whas modified. Can anyone tell me where did you move the part of code like this (it's from showthread.php @ vb2.0.0):


if ($post[showemail] and $displayemails) {
eval("\$post[useremail] = \"".gettemplate("postbit_useremail")."\";");
} else {
$post[useremail]="";
}
$userinfo=$post;
if ($post[icq]!="") {
eval("\$post[icqicon] = \"".gettemplate("icq")."\";");
} else {
$post[icq]="";
}

if ($post[field5]!="") {
eval("\$post[field5] = \"".gettemplate("gadu-gadu")."\";");
}
else {
$post[field5]="";
}

if ($post[aim]!="") {
eval("\$post[aimicon] = \"".gettemplate("aim")."\";");
} else {
$post[aim]="";
}
if ($post[yahoo]!="") {
eval("\$post[yahooicon] = \"".gettemplate("yahoo")."\";");
} else {
$post[yahoo]="";
}

if ($post[homepage]!="" and $post[homepage]!="http://") {
eval("\$post[homepage] = \"".gettemplate("postbit_homepage")."\";");
} else {
$post[homepage]="";
}

if ($post['receivepm'] and $enablepms==1) {
eval("\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
} else {
$post[pmlink] = "";
}

Xenon
07-27-2002, 10:31 AM
search throug functions.php you'll find this code in getpostbit section

ripman
07-27-2002, 10:34 AM
got it :laugh:

big thx :cheeky: