vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Integration with vBulletin - Flashchat Integration for vB 3.5 (https://vborg.vbsupport.ru/showthread.php?t=91278)

drex 01-27-2006 09:01 PM

works great. fixed it! please disregard.........

Paul M 01-27-2006 09:20 PM

Quote:

Originally Posted by drex
works great. fixed it! please disregard.........

Good :) What was wrong ?

virtualraceday 01-27-2006 09:31 PM

Hi Paul!

Thanks for the script... I've installed it and tried to get it working, but the auto login feature won't work for me :(

What happens is, I log into vB, then click my chat link to open FlashChat 4.4.2 in a popup window, but it tells me my login is invalid. Then, if I use the same user/pass it will log me in.

It seems like vB isn't passing the correct user/pass combination to FlashChat....because I can definitely login manually, and it even sets the correct admin level etc.

Any help would be great! Thanks in advance!

Paul M 01-27-2006 09:47 PM

Quote:

Originally Posted by virtualraceday
Any help would be great! Thanks in advance!

Can I refer you to these two quotes :)

Quote:

please make sure you have clicked the install link - esp if you require support
Quote:

Support: Please check any file edits carefully, the vast majority of problems reported are due to an error made in editing a file. If you are still stuck and want me to take a look then feel free to PM me your site address, an admin user and ftp access details, without these I cannot help you. Depending on time, it could be several days before I get chance to look at your issue.

drex 01-28-2006 02:05 AM

paul--

not sure but if i had to guess:

Quote:

Support: Please check any file edits carefully, the vast majority of problems reported are due to an error made in editing a file. If you are still stuck and want me to take a look then feel free to PM me your site address, an admin user and ftp access details, without these I cannot help you. Depending on time, it could be several days before I get chance to look at your issue.
cheers for a great hack!

Silvio 01-29-2006 06:26 PM

Paul, excuse my bad english,


ty 4 this really grat mod & *installed*

A problem for me is there.
I can't manage authoring phase, as i need , as I am not able to let script understand "secondary usergroups" and its added rights to the main usergroup.

I better explain with an example

Let immagine that you have 2 usergroups 1 called "Registerd" (Groupid 2) and another called "Enabled" (Groupid 13)

but again, immagine to use secondary usergroups, so you have a user that belong as primary usergroup to Groupid 2 and has also as child group a secondary flag on Groupid 13, with added its privileges.

Now I would need to grant access to both users -> that have primary Groupid 13 or those that have primary Groupid 2 but also a secondary groupid13. At same time I do not want to grant Access to User with Only primary Groupid 2.

....really difficult for me to explain in english.. I hope i did.

I played around that and i tested various ideas on vbulletin35CMS.php

I thought to have solved my problem using this last quoted . but ..notthing...

I modified:
PHP Code:

foreach ($GLOBALS['vbulletin']['users'] as $group) if (in_array($group,$groups)) $userrole ROLE_USER// Check Allowed groups 

to :

PHP Code:

foreach ($GLOBALS['vbulletin']['users'] as $group)
{
if (
in_array($group,$groups) && in_array($GLOBALS['vbulletin']['users'][0], $groups))
{
     
$userrole ROLE_USER// Check Allowed groups
}


then I set up users array to both

PHP Code:

'users' => array( 13,) , // vBulletin usergroups allowed standard access to chat. 

or
PHP Code:

'users' => array( 13 ) , // vBulletin usergroups allowed standard access to chat. 

but in neither way is working :tired:

How can I Do to solve this problem? is my logic wrong or just a typo :S ?

ty so much for patience

regards


*note : I am using flaschat integration module post-440 with Flaschat452Beta

Paul M 01-29-2006 10:25 PM

Quote:

Originally Posted by Silvio
Now I would need to grant access to both users -> that have primary Groupid 13 or those that have primary Groupid 2 but also a secondary groupid13. At same time I do not want to grant Access to User with Only primary Groupid 2.

Okay, Assuming I have understood this correctly then all you need to do is this ;

PHP Code:

'users' => array( 13 ) , // vBulletin usergroups allowed standard access to chat. 

The only reason I can think of that this didn't work is because of the other change you made - restore that back to this ;

PHP Code:

foreach ($GLOBALS['vbulletin']['users'] as $group) if (in_array($group,$groups)) $userrole ROLE_USER// Check Allowed groups 

I honestly can't understand why you edited that or what you were trying to do.

By simply using the original file and changing the standard access group to 13, the following will happen ;

Primary = 2 Secondary = none : No Access
Primary = 2 Secondary = 13 : Access allowed
Primary = 13 Secondary = none : Access Allowed

Which appears to be what you described above.

Silvio 01-30-2006 07:28 AM

ty so much Paul,

B4 trying to play with code, I tried to setup (with ummodified code) only on array setup to -> 13 but users with secondary on 13 wasent allowed. to allow them i had to setup 2,13 on array. but consequently group 2 was allowed and should not.

so after that, i tryed to play a bit, but no results.

Now actually i restored the original line of your code to test again, and result is the same.
to grant access to sec/13 i need to setup array at (2,13)

I would love to sort it out

ty for patience & help

ciao take care
l8r

Paul M 01-30-2006 09:38 AM

It should work as described (it does here, I just tested it). Please PM me ftp access if you want me to have a look.

Silvio 01-30-2006 11:30 AM

:rolleyes: ty Paul, your code is working ... I understood where an issue is .(well I should say 2 as my brain is really lame&small :disappointed: )
Ok the problem is on cookies.

array set on : (13)

Donno why but
1) logging in vB with testuser1(group 2) it wont give access as should
then normally log out vB from that user
2) logging in with vB testuser2(group2+13) it will give rights as should

So ur mod is perfect, but

2)<-- is true only if
a) cookies are hand-cleared on explorer proper menu
b) to login vB as testuser2 after that testuser1 has logged out vB, It must be done after all opened explorer are closed and reopened in new fresh instances (just logout vB & again login vB with the other user in same explorer window will make the difference)

Again sorry to keep loosing ur time, as ur mod is PERFECT and on vB3.5.3 is working great!!!

A note is that, in the case cookies are not unset properly : --> If I logout from vB Testuser2 (the one with rights) and then I login vB as Testuser1 (the one without), even if vB well recognize both of them as it is welcoming them with their correct username (welcome Testuser1 .....), flashchat will log me as Testuser2 granting me access.

ciao take care


All times are GMT. The time now is 11:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02077 seconds
  • Memory Usage 1,765KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete