Thread: Chat Modifications - MGC Chatbox Evo
View Single Post
  #8276  
Old 10-20-2012, 01:35 PM
Ranger187 Ranger187 is offline
 
Join Date: Nov 2003
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TruthElixirX View Post
Bringing this back up because it has come back on my list.

I understand quite well that this is after they login, but for some reason it is default to "No" for everyone on signing up. Where do I set it to default to "Yes" and let them change it to "No" if they want?

I can't find it anywhere. I've even found where it is set in the MySQL database "mgc_cb_evo_show";i0;s18:" is "No" and "Yes" is "mgc_cb_evo_show";i1;s18:"

But I don't know what query to run to get everyone to i1 instead of i0. The string of text for this area is this:

Code:
a:9:{s:15:"mgc_cb_evo_font";s:7:"Verdana";s:15:"mgc_cb_evo_size";i:0;s:16:"mgc_cb_evo_color";s:6:"00FF00";s:12:"mgc_cb_evo_b";i:1;s:12:"mgc_cb_evo_u";i:0;s:12:"mgc_cb_evo_i";i:0;s:15:"mgc_cb_evo_show";i:1;s:18:"mgc_cb_evo_uchanid";i:0;s:24:"mgc_cb_evo_sound_disable";i:0;}
and my MySQL skills are not up to par to write a query to exit that one portion. I have even found the code where this is set:

Code:
	$userdata->set('mgc_cb_evo_params', $serialize_cb_params);
	$userdata->save();
Inside profile_updateoptions.php. But no idea what to do with it:

Code:
		'mgc_cb_evo_show' => $vbulletin->input->clean_gpc('p', 'mgc_cb_evo_show', TYPE_UINT),
So what I am asking is how do I make this:

https://dl.dropbox.com/u/14824930/chatbox.png

Default to "Yes" for everyone instead of defaulting to "No". I have been pulling my hair out on this for way too long. I need help bad.


EDIT:

To expand upon this I have found another issue:

I want a certain usergroup to be able to see the chatbox, but not type inside of it, so I have the following permissions set in this usergroup's permissions:

Can view the chatbox
Yes

Can use the chatbox
No

But nothing shows up for them. If I go to the User CP and click edit options, they do not have the option to display it.

I then go and change "Can use the chatbox" to "Yes" and go back to the forum home as them, and the chatbox is still not there. I go to their User CP and the options show up. I change this to show the chatbox (since it is set to no by default). I then go to the main forum page and it shows up, and they can type. I then go back to the Admin CP, turn "Can use the chatbox" to "No", go back to the forum as them, and they can still see it but they can't post in it (which is what I want). If I go to the User CP the options are gone now as well.

I've tried re-uploading all files from a fresh download and re-importing the product file, and it doesn't seem to change anything. It hasn't always been this way. It happened somewhere along with an upgrade. It was previously on by default and displaying.
Usergroup options. But from the sounds of it, you either have sql or template edits over riding this.... I'd revert to a backup at this point if nothing else works. You do take backups right?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01096 seconds
  • Memory Usage 1,782KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete