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)
-   -   Show Thread Enhancements - AJAX: Show Users Browsing Threads & Replying (https://vborg.vbsupport.ru/showthread.php?t=164369)

Alfa1 12-13-2007 06:05 PM

Where do you adjust the setting 'Show Users Browsing Threads'?

UltraFanatics 12-13-2007 06:28 PM

Admin control panel mate in VB

Alfa1 12-13-2007 06:32 PM

I figured it that far.

I see that it is in adminCP -> vbulletin options -> thread display options

But i see no possibility there to adjust the setting per user group. How and where can I set this?

Jafo232 12-15-2007 08:55 PM

You cannot set it via usergroups, but you can limit access to members only.

Alfa1 12-16-2007 04:03 AM

That is too bad. Please consider adding usergroup permissions.

Jafo232 12-16-2007 08:17 AM

Not up to me, bring it up with Jelsoft....

Alfa1 01-20-2008 03:59 PM

What would happen if I would alter showthread so that instead of replacing the code like instructed, I would add something along the lines of:
<if condition="is_member_of($bbuserinfo,4,5,6,7)">[Jafo's code]<else />[original code]</if>

Would that cause problems?

Alfa1 01-20-2008 09:26 PM

I just placed your code between
PHP Code:

<if condition="is_member_of($bbuserinfo,4,5,6,7)">[Jafo's code]</if> 

And now only member groups of my choice can see users browsing a thread.

So my code is:
PHP Code:

<!-- currently active users -->
<if 
condition="$show['activeusers']">

<if 
condition="is_member_of($bbuserinfo,23,5,6,7)">
 <
div id='inlineonline' name='inlineonline'></div>

<
script>

function 
getFile(url) {
if (
window.XMLHttpRequest) {
AJAX=new XMLHttpRequest();
} else {
AJAX=new ActiveXObject("Microsoft.XMLHTTP");
}
if (
AJAX) {
AJAX.open("GET"urlfalse);
AJAX.send(null);
return 
AJAX.responseText;
} else {
return 
false;
}
}

function 
changeInlineOnline () {

var 
getFile('$vboptions[bburl]/inlineonline.php?t=$threadid' '&nocache=' + (Math.random() * 1.33));

document.getElementById('inlineonline').innerHTML f;

setTimeout("changeInlineOnline()"10000);
}

changeInlineOnline();

</
script>
</if>
</if>
<!-- 
end currently active users --> 


Jafo232 01-21-2008 12:00 PM

I don't see any reason why it wouldn't work.

Alfa1 01-21-2008 02:57 PM

Seems to work fine.

This function doesn't seem to register when someone uses the back button to navigate.


All times are GMT. The time now is 04:40 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.04839 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_php_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