PDA

View Full Version : (memberlist template) Why can I there delete a usergroup and how can I do this?


ThorstenA
08-19-2008, 04:18 PM
This code on memberlist template makes me curious. Is it even needed by vbulletin? And if when? I just deleted this code from my template for one product and now ask myself if it could harm me anyway.
<form action="profile.php?do=deleteusergroups&amp;usergroupid=$userg roupid" method="post">
<input type="hidden" name="do" value="deleteusergroups" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="usergroupid" value="$usergroupid" />

Marco van Herwaarden
08-20-2008, 06:08 AM
This is default vB, not sure why you want to remove this.

Opserty
08-20-2008, 08:07 AM
Its to do with Public joinable usergroups or something I'm guessing. Open profile.php search for:

if ($_POST['do'] == 'deleteusergroups')


Check out what the PHP code is doing.

ThorstenA
08-20-2008, 08:16 AM
<a href="http://www.forum.com/profile.php?do=deleteusergroups" target="_blank">http://www.forum.com/profile.php?do=deleteusergroups</a> is giving me a blank page. I am curious if this style option is used by vbulletin or not. For example the sound in quick links > open contacts list is somewhat unused.

Opserty
08-20-2008, 08:24 AM
Its $_POST['do'] so you can't access via. the URL you gave.