Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
[HTL] & [Normal] Shoutbox Hack - 1.03d Details »»
[HTL] & [Normal] Shoutbox Hack - 1.03d
Version: 1.00, by Link14716 Link14716 is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 01-09-2004 Last Update: Never Installs: 83
Supported
 

Re-released at https://vborg.vbsupport.ru/showthrea...790#post547790

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #347  
Old 03-23-2004, 11:49 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djohn
Fixed my first problem, however the bug with wysiwyg editor is still there. Also, I have a rather template question. How can i remove that grey part around the shoutbit (when iframe is enabled)? See screenshot.
WYSIWYG should be working in 1.04 when it's released.

In template shoutbox_iframe:
Find:
Code:
$headinclude
Add under:
Code:
<style type="text/css">
<!--
body {
margin: 0px 0px 0px 0px;
}
</style>
It will be like that by default in 1.04.
  #348  
Old 03-23-2004, 11:50 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
i'm getting this error

also my forumhome shoutbox has no box surrounding it

oh and i'm getting no permission when i try and go into the shoutbox?
Paste about 20 lines above and below that line from admincp/usergroup.php and I'll see if I can find what went wrong. When it is working, update a usergroup and the no permission screems should go away.
  #349  
Old 03-23-2004, 11:52 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by edeab220
Sorry if it's been asked...

I'm having this error:
Code:
Parse error: parse error in /home/.rafferty/palmforu/palmforums.org/forums/admincp/index.php on line 900
Happens when...obviously...when I access AdminCP. What do you think when wrong?
That isn't related to my hack as it does not modify admincp/index.php.
  #350  
Old 03-24-2004, 12:04 AM
edeab220 edeab220 is offline
 
Join Date: Mar 2004
Location: South NJ
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Link14716
That isn't related to my hack as it does not modify admincp/index.php.
Oh...yea i forgot . Must have been a prob when I installed HTL.

Thanks for narrowing the problem down for me .
  #351  
Old 03-24-2004, 12:04 AM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the response mate, I've so far been using do=update&userid=X - I took a peek at the script and realised it could be done. It seems only around a 3rd of users haven't been updated so I'm going through The Shoutbox page by page and checking the userid's of users not assigned and showing as '0' and then updating them. My Shoutbox is 750 pages... I'm 200 pages in lol.
  #352  
Old 03-24-2004, 08:32 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Link14716
Paste about 20 lines above and below that line from admincp/usergroup.php and I'll see if I can find what went wrong. When it is working, update a usergroup and the no permission screems should go away.
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);
	}
hope this helps
  #353  
Old 03-24-2004, 10:44 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see the problem.
Code:
// [END HACK='Shoutbox Hack' AUTHOR='squall14716' VERSION='1.03' CHANGEID= 3 ]		}
Change that to
Code:
// [END HACK='Shoutbox Hack' AUTHOR='squall14716' VERSION='1.03' CHANGEID= 3 ]
		}
Now edit and save a usergroup to update the cache and you should be all set.
  #354  
Old 03-24-2004, 11:00 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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  
Old 03-24-2004, 01:29 PM
djohn djohn is offline
 
Join Date: Feb 2004
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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  
Old 03-24-2004, 01:41 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
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
fixed the templates, although will mod further
  #357  
Old 03-24-2004, 02:13 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

solved all the problems now

except i think the shoutbox templates need reviewing
  #358  
Old 03-24-2004, 06:12 PM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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  
Old 03-24-2004, 07:57 PM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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  
Old 03-25-2004, 01:55 AM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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  
Old 03-25-2004, 01:26 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i seem to have an issue where only admins can shout?

keep on getting a message about "your usergroup doesn't have permission"
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:05 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05869 seconds
  • Memory Usage 2,371KB
  • Queries Executed 30 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete