ULTIMATESSJ
08-19-2002, 12:10 AM
I am trying to make an addon for my postbit, so i can show a popup for furthur info (maybe for an RPG), so the popup would appear with this url
http://www.boardurl.com/forums/member.php?s=&action=postbit&userid=1
i am the biggest php n00b alive, and i don't know what the hell i am really doing here, i have wrote this (which is probibly all a load of stupid gibberish)
// ############################### start postbit addon ###############################
if ($action=="postbit") {
$templatesused = "postbitadd,postbitaddbit";
include("./global.php");
$permissions=getpermissions();
if (!$permissions[canview] or !$permissions[canviewmembers]) {
show_nopermission();
}
if ($userid=="" and $username!="") {
$username=urldecode($username);
$user=$DB_site->query_first("SELECT userid FROM user WHERE username='".addslashes(htmlspecialchars($username))."'");
$userid=$user[userid];
}
$userid = verifyid("user",$userid);
}
tell me what the proper code for this would be, can't write anything after alchahol :speechless:
http://www.boardurl.com/forums/member.php?s=&action=postbit&userid=1
i am the biggest php n00b alive, and i don't know what the hell i am really doing here, i have wrote this (which is probibly all a load of stupid gibberish)
// ############################### start postbit addon ###############################
if ($action=="postbit") {
$templatesused = "postbitadd,postbitaddbit";
include("./global.php");
$permissions=getpermissions();
if (!$permissions[canview] or !$permissions[canviewmembers]) {
show_nopermission();
}
if ($userid=="" and $username!="") {
$username=urldecode($username);
$user=$DB_site->query_first("SELECT userid FROM user WHERE username='".addslashes(htmlspecialchars($username))."'");
$userid=$user[userid];
}
$userid = verifyid("user",$userid);
}
tell me what the proper code for this would be, can't write anything after alchahol :speechless: