What is vldPersonals?

vldPersonals is a very easy to use dating/social software. It allows you to create a fully functioning & modern dating website in a matter of minutes. If You think it's too complicated - check vldPersonals!
Know more about how You can become a dating website owner

What is vldCrowd?

vldCrowd.com is the biggest unofficial community of vldPersonals owners. It is a place to share ideas and thoughts about Your dating website. It is a place to answer questions and receive answers.
Do You own a vldPersonals license? Don't hesitate and join!

Connect Today

Community members help each other to take their dating websites to the next level. Can You make your vldPersonals website better? Join and find out...

Connect With More Than 500 Dating Website Owners! Sign Up Today

Block member mod

11/07/2009 05:08 AM
249 1 0
This mod is aimed at preventing members from blocking Admin users.
 
Why? I dunno.. I just thought it maybe a good idea.
 
In lang.lib.account_blocked.php add somewhere after " $LANG['blocked'] = array ( ":
 
PHP
"cant_block_member" => //MOD
 
"You are not able to block this member.", //MOD

In lib.account_blocked.php BEFORE " // Insert blocked " comment section add:
PHP
//MOD START - PREVENT MEMBERS FROM BLOCKING ADMIN MEMBER
$result = $DB->query("SELECT group_id FROM " . DB_PREFIX . "members WHERE member_id = '$id' AND group_id = 1 LIMIT 1");
       
                if ($DB->num_rows($result))     {
                       
                        $TEMPLATE->set_message("error", ($LANG['blocked']['cant_block_member']), 0, 0);
 
                        redirect(VIR_PATH . ($PREFS->conf['fancy_urls'] ? "member/$id/" : "index.php?m=member_profile&p=profile&id=$id"));
               
                }
//MOD END

Please note, re: group_id = 1
where 1 is your admin group's id (if it is something different change the number)