vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - Quick Account Switch (https://vborg.vbsupport.ru/showthread.php?t=132741)

Caerydd 12-30-2006 07:13 AM

Hmm, well no joy at present getting it to work outside the forum pages, and I had to reset the system/reinstall it after fiddling around with the source code :(

Other than that, works great and my users love it! Now all I need is something built on this to integrate it into our premium features that allows one to have more than one account >>

Also, perhaps some way of viewing all accounts that are mapped at all in this system.

buileminh 01-02-2007 01:35 PM

Thanks for this nice hack!
Suggestion: Only certain group(s) can use this feature

voteforbird 01-06-2007 12:04 AM

Does this script lay a cookie entitled "userid"?

akanevsky 01-06-2007 01:37 PM

Quote:

Originally Posted by voteforbird (Post 1151676)
Does this script lay a cookie entitled "userid"?

No.

scan-pa 01-07-2007 12:48 AM

Anthony,

Great mod, but can you please add a feature for only certain groups to be able to access this function?

stomph 01-28-2007 04:51 PM

Quote:

Originally Posted by scan-pa (Post 1152306)
Anthony,

Great mod, but can you please add a feature for only certain groups to be able to access this function?

I simply enclosed the whole modification to the USERCP template with:
Code:

<if condition="in_array($bbuserinfo['usergroupid'], array(2, 6, 7))">
and:
Code:

</if>
Now only users from the groups 2, 6 and 7 will see the hack in UserCP.

Mastar 01-30-2007 04:23 PM

Anyone got it working on Vb3.64?

akanevsky 01-30-2007 06:23 PM

Quote:

Originally Posted by Mastar (Post 1170652)
Anyone got it working on Vb3.64?

This works on 3.6.4. 3.6.0 is the minimum version required in the 3.6.x series.

Caerydd 01-30-2007 06:40 PM

Quote:

Originally Posted by stomph (Post 1169126)
I simply enclosed the whole modification to the USERCP template with:
Code:

<if condition="in_array($bbuserinfo['usergroupid'], array(2, 6, 7))">
and:
Code:

</if>
Now only users from the groups 2, 6 and 7 will see the hack in UserCP.

This only seems to work with 'primary' usergroups, either that or it doesn't work for a more than three numbers in an array?

I have users awarded a usergroup as their secondary usergroups, and want the ability to link available to them then.

akanevsky 01-30-2007 07:26 PM

Quote:

Originally Posted by Caerydd (Post 1170754)
This only seems to work with 'primary' usergroups, either that or it doesn't work for a more than three numbers in an array?

I have users awarded a usergroup as their secondary usergroups, and want the ability to link available to them then.

Please use is_member_of($bbuserinfo, 2, 6, 7) in the conditional instead of what he posted.


All times are GMT. The time now is 02:20 PM.

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.01499 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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