It's ok lol.... I found it myself.
If anyone else wants to know
(and by the way before you look at the code, PLEASE be aware that i can't code to save my life! so i've just looked at it hard and modified it a bit)
Proper developers will freak at this lol:
in members.php:
Change inbetween where it says "//Enable or Disable deletion-ability " and "//Subject" to this:
Code:
//Enable or Disable deletion-ability
if(GBUSERID == $bbuserinfo['userid'] or $permissions['adminpermissions'] or ($split['1'] == $bbuserinfo['userid'] && time() < ($split['0']+($vboptions['editthreadtitlelimit']*60)))) {
$html .= "
<script LANGUAGE=\"JavaScript\">
<!--
function confirmSubmit()
{
var agree=confirm(\"".$vbphrase['wg_areyousure']."\");
if (agree)
return true ;
else
return false ;
}
// -->
</script>
<table border=0 cellspacing=0 cellpadding=2>
<tr><td><table border=0 cellspacing=0 cellpadding=0>
<form action=\"member.php?u=".GBUSERID."\" method=\"post\">
<input type=\"hidden\" name=\"do\" value=\"remove_gbentry\">
<input type=\"hidden\" name=\"gbtime\" value=\"".$split['0']."\">
<input type=\"hidden\" name=\"gbuserid\" value=\"".$split['1']."\">
<tr><td><input onClick=\"return confirmSubmit()\" type=\"image\" src=\"images/buttons/gbremove.gif\" title=\"".$vbphrase['wg_remove']."\"></td></tr>
</form>
</table></td><td></td></tr>
</table>";
}
if(GBUSERID == $bbuserinfo['b'] or $permissions['adminpermissions'] or ($split['1'] == $bbuserinfo['userid'] && time() < ($split['0']+($vboptions['editthreadtitlelimit']*60)))) {
$html .= "
<script LANGUAGE=\"JavaScript\">
<!--
function confirmSubmit()
{
var agree=confirm(\"".$vbphrase['wg_areyousure']."\");
if (agree)
return true ;
else
return false ;
}
// -->
</script>
<table border=0 cellspacing=0 cellpadding=2>
<tr><td><table border=0 cellspacing=0 cellpadding=0>
</table></td><td><table border=0 cellspacing=0 cellpadding=0>
<form action=\"member.php?u=".GBUSERID."\" method=\"post\">
<input type=\"hidden\" name=\"do\" value=\"edit_gbentry\">
<input type=\"hidden\" name=\"gbtime\" value=\"".$split['0']."\">
<input type=\"hidden\" name=\"gbuserid\" value=\"".$split['1']."\">
<tr><td><input type=\"image\" src=\"images/buttons/gbedit.gif\" title=\"".$vbphrase['wg_edit']."\"></td></tr>
</form>
</table></td></tr>
</table>";
}
$html .= "</td><td width=100% class=\"smallfont\">";
//Subject
By the way i had to use a bit of code that proper coders will freak at lol...
I used GBUSERID == $bbuserinfo['b'] in the 2nd bit to make sure it was skipped (as in i know there isnt a variable called "b", so it will just skip it) to get it working...
If someone can improve on the code it would be cool. It seems to be working at the moment but the code is really dirty, so i spologise! again i cant code at all, and i dont know what half of the code means lol.... so please dont start shouting at me :squareeyed:
Just thought i'd post it to share with anyone else who's doing something like this
J