PDA

View Full Version : postbit addon help


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:

g-force2k2
08-19-2002, 12:13 AM
so you're trying to accomplish a popup? i think a few other ppl have been asking that... (guess its rpg competetion :p) anyways... the best thing to use would be javascript... php can be used too... but it wouldn't have the same effects ;) and you're not worrying so much about the postbit as you are the showthread... hope that helps somewhat...

g-force2k2

ULTIMATESSJ
08-19-2002, 11:33 AM
Originally posted by g-force2k2
so you're trying to accomplish a popup? i think a few other ppl have been asking that... (guess its rpg competetion :p) anyways... the best thing to use would be javascript... php can be used too... but it wouldn't have the same effects ;) and you're not worrying so much about the postbit as you are the showthread... hope that helps somewhat...

g-force2k2

thats the plan of it, i wanna use that php code for the page, but i am gonna use a javascript popup to bring it up, from there it should be easy to make