The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[HTL] & [Normal] Shoutbox Hack - 1.03d Details »» | ||||||||||||||||||||
Re-released at https://vborg.vbsupport.ru/showthrea...790#post547790
Show Your Support
|
Comments |
#352
|
||||
|
||||
Quote:
Code:
if ($_REQUEST['do'] == 'add') { if (!empty($_REQUEST['defaultgroupid'])) { // set defaults to this group's info $defaultgroupid = intval($_REQUEST['defaultgroupid']); $usergroup = $DB_site->query_first(" SELECT * FROM " . TABLE_PREFIX . "usergroup WHERE usergroupid = $defaultgroupid "); $ug_bitfield = array(); foreach($_BITFIELD['usergroup'] AS $permissiongroup => $fields) { $ug_bitfield = array_merge(convert_bits_to_array($usergroup["$permissiongroup"], $fields) , $ug_bitfield); } } else { // [START HACK='Shoutbox Hack' AUTHOR='squall14716' VERSION='1.03' CHANGEID= 3 ] // set default yes permissions (bitfields) $ug_bitfield = array( 'showgroup' => 1, 'canview' => 1, 'canviewmembers' => 1, 'canviewothers' => 1, 'cagetattachment' => 1, 'cansearch' => 1, 'canmodifyprofile' => 1, 'canthreadrate' => 1, 'canpostattachment' => 1, 'canpostpoll' => 1, 'canvote' => 1, 'canwhosonline' => 1, 'allowhidden' => 1, 'showeditedby' => 1, 'canseeprofilepic' => 1, 'canusesignature' => 1, 'shoutview' => 1, 'shoutpost' => 1, 'shoutedit' => 1, 'shoutdelete' => 1, 'shouthdelete' => 0, 'shouteditothers' => 0, 'shoutdeleteothers' => 0, 'shouthdeleteothers' => 0, 'shoutip' => 0, 'shoutcoventry' => 0 ); // set default numeric permissions $usergroup = array( 'pmquota' => 0, 'pmsendmax' => 5, 'attachlimit' => 1000000, 'avatarmaxwidth' => 50, 'avatarmaxheight' => 50, 'avatarmaxsize' => 20000, 'profilepicmaxwidth' => 100, 'profilepicmaxheight' => 100, 'profilepicmaxsize' => 25000, 'shouthierarchy' => 5, 'shoutmaxdaily' =>0 ); // [END HACK='Shoutbox Hack' AUTHOR='squall14716' VERSION='1.03' CHANGEID= 3 ] } print_table_header($vbphrase['add_new_usergroup']); } else { $usergroupid = intval($_REQUEST['usergroupid']); $usergroup = $DB_site->query_first(" SELECT * FROM " . TABLE_PREFIX . "usergroup WHERE usergroupid = $usergroupid "); $ug_bitfield = array(); foreach($_BITFIELD['usergroup'] AS $permissiongroup => $fields) { $ug_bitfield = array_merge(convert_bits_to_array($usergroup["$permissiongroup"], $fields) , $ug_bitfield); } construct_hidden_code('usergroupid', $usergroupid); print_table_header(construct_phrase($vbphrase['x_y_id_z'], $vbphrase['usergroup'],$usergroup[title], $usergroup[usergroupid]), 2, 0); } |
#353
|
||||
|
||||
I see the problem.
Code:
// [END HACK='Shoutbox Hack' AUTHOR='squall14716' VERSION='1.03' CHANGEID= 3 ] } Code:
// [END HACK='Shoutbox Hack' AUTHOR='squall14716' VERSION='1.03' CHANGEID= 3 ] } |
#354
|
||||
|
||||
thanks that totally fixed the usergroup problems btw
ok more issues the templates are all ++++ed up in there all my shouts are by 0 and everytime i try to make a shout i get "you cannot make a blank shout. also the box thing(table) for my shoutbox on the forumhome isn't there oh and everytime i try to make a shout on the forum home it puts me inside the shoutbox |
#355
|
|||
|
|||
Thanks for your reply, Link14716. I've done all the edits that you suggested and now my shout box looks like this:
The grey part still remains on the right of shoutbox, the left is okay. Is there any way to remove that grey part? PS: Your shoutbox owns no matter what! Any news about the release date of 1.04? Also, how ill the updating thing work? Will it update fine, even if I have customized some shoutbox templates? |
#356
|
||||
|
||||
Quote:
|
#357
|
||||
|
||||
solved all the problems now
except i think the shoutbox templates need reviewing |
#358
|
||||
|
||||
I'm not sure if it's because of the upgrade or something but EVERYONE can edit everyone's comment. That includes delete messages, edit messages, even mine. I know this because I tried it as guest. Also, I have it so that guests can not see the shout box, but they can see it anyway. And they can't post a comment in the home forum, but they can post a message in the shoutbox.php. Guests can do everything an admin can do in the shout box, that goes with every other group. Is this because of VB3 Gold? The files are alittle different?
|
#359
|
||||
|
||||
Sorry if this was posted already -- can't find it. Phrases are not showing up on forum home. shoutbox.php is fine.
Any ideas? Great hack, BTW! |
#360
|
||||
|
||||
Did you edit the index.php? and/or if you added the phrases. If you added the phrases, then you have to edit index.php.
|
#361
|
||||
|
||||
i seem to have an issue where only admins can shout?
keep on getting a message about "your usergroup doesn't have permission" |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|