| Citation: |
| includes/page_header.php |
| Citation: |
| if ( !empty($userdata['user_popup_pm']) )
{ $template->assign_block_vars('switch_enable_pm_popup', array()); } } |
| Citation: |
|
$sql = 'SELECT * FROM ' . USER_GROUP_TABLE . ' WHERE group_id=1 AND user_id=' . $userdata['user_id'] . ' AND user_pending=0 LIMIT 1'; $is_vip = 0; if (($result = $db->sql_query($sql)) != FALSE) { $is_vip = $db->sql_numrows($result); $db->sql_freeresult($result); } if ($is_vip == 0) { $template->assign_block_vars('non_vips_only', array()); } #change group_id=1 to whatever your group ID is# |
| Citation: |
|
templates/SubSilver/any.tpl |
| Citation: |
|
<!-- BEGIN non_vips_only --> #content you want others to see goes here. <!-- END non_vips_only --> |
| Citation: |
|
Mod Title: Hide Content By Group Id Mod Version: 1.0.0 Author: John Olson (jrcoololson@yahoo.com Description: This mod will show only the content you want to normal users and not to the group you select. (Example: If you have a donate button, and a group you can hide that button from that group and it will only appear for other users.) Portions of this script were inspired/written by other people. I can only claim partial credit. Installation Level: Easy Installation Time: 1-2 Minutes Files To Edit: 2 #includes/page_header.php templates/SubSilver/any.tpl |
Toutes les heures sont au format GMT + 2 Heures