|
#1
|
|||
|
|||
Hide donate star
I have see this in u-232 and trying to add this in FreeTSP v1 but there is some little problems.. If someone can help me?
function_user.php PHP Code:
PHP Code:
PHP Code:
|
#2
|
|||
|
|||
try this
Code:
alter table users add donorstar enum('yes,'no') NOT NULL DEFAULT 'yes'; Code:
$str .= ($user['donor'] == 'yes' && $user['donorstar'] == yes ? '<img src="'.$image_dir.'donor.png" alt="" title="" />' : ''); Code:
print ("<tr> <td class='rowhead_form' align='center'>Hide donor star</td> <td class='rowhead' align='left'> <input type='radio' name='donorstar' value='yes'".($CURUSER["donorstar"] == "yes" ? " checked='checked'" : "")." />Yes <input type='radio' name='donorstar' value='no'".($CURUSER["donorstar"] == "no" ? " checked='checked'" : "")." />No </td></tr>"); Code:
if (isset($_POST["donorstar"]) && ($donorstar = $_POST["donorstar"]) != $CURUSER["donorstar"]) { $updateset[] = "donorstar= ".sqlesc($donorstar); } |
Tags |
donate , hide , star |
|
|