vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Who viewed this thread? (https://vborg.vbsupport.ru/showthread.php?t=91409)

xml 12-08-2005 09:50 PM

i have 300+ users online ....could this plugin cuz high load?

bryanb 12-14-2005 11:33 AM

Quote:

Originally Posted by welo
This will create a performance hit if you allow everyone access to it (especially guests). However, you can restrict the usergroups who can see the "who viewed" box (thus eliminating uneccessary queries) by wrapping all the injected template code in an <if> statement:...

Is there a script you could turn me on to that allows this to be viewed by forum members who have reached a certain "reputation" level only? Like 150+? Thanks in advance! :)

bashy 12-14-2005 11:52 AM

Where would this be put please?

Bashy

Quote:

Originally Posted by welo
This will create a performance hit if you allow everyone access to it (especially guests). However, you can restrict the usergroups who can see the "who viewed" box (thus eliminating uneccessary queries) by wrapping all the injected template code in an <if> statement:

Code:

<if condition="in_array($bbuserinfo['usergroupid'], array( 5, 6, 7))">
<!-- who viewed this thread code-->
</if>

...will restrict viewing only to admins and mods. Add other usergroups at your discretion.

Installed, and thanks. :up:


bryanb 12-14-2005 03:09 PM

I'm pretty much a newbie with phpMyadmin. When I submited the query I received this:

Quote:

You have to choose at least one Column to display
What now? :ermm:

I'm running the most recent version - 2.7.0-pl1.

bryanb 12-16-2005 05:34 AM

Quote:

Originally Posted by bryanb
I'm pretty much a newbie with phpMyadmin. When I submited the query I received this:


What now? :ermm:

I'm running the most recent version - 2.7.0-pl1.

If anyone can help me on this, I'd really appreciate it. Thanks!!

bryanb 12-27-2005 08:26 PM

If anybody can point me into the right direction, I'd really appreciate it. Thanks in advance!

vietkieu_cz 01-05-2006 06:10 PM

I need this hack for only some Forum (some thread), not for all forums (not all threads), can I help me?

ForeverForums 01-10-2006 06:06 PM

i got this working flawless in 3.5.2

*installs*

AraServ 01-21-2006 11:24 PM

i can't make it work on 3.5.3 !!!

Silvio 01-23-2006 03:15 PM

Working smoothly on 3.5.3 *installed*


Is there the possibility to have more options than the very usefull Hidden user one?

---> avoid showing admins and/or mods?

ty and regards

bkaul 02-17-2006 05:03 AM

Quote:

Originally Posted by TMM-TT
I've noticed that this function does'nt work with the gold version. But the problem seem to be easy resolved. :)

In the plugin php code, change this line (sessions):

I had to do this to get it working in 3.5.3

Just a thought... wonder if it'd be possible to use the database info that's already there for each user for new post searches, etc. to retroactively add viewed data to existing threads...

BabyNameAddict 03-05-2006 01:59 PM

I have 3.5.4. I followed the steps with no errors, but I also can't see who viewed the thread. Any ideas?

BabyNameAddict 03-05-2006 02:07 PM

Wait, I think I see it now. I was expecting it to be under the "views" where it shows how many viewed the post. But I see it's now on the bottom of a thread once you open it.

:)

BabyNameAddict 03-05-2006 11:38 PM

Just wanted to add: great job! I clicked *Install* and gave the thread a 5 Star rating :nervous:

kall 07-13-2006 04:34 AM

Quote:

Originally Posted by Markco
Yes i have similar probl?me the error is:

This appears to be an error if you are using PHP5.

Cannot view threads, as the following error is displayed, and that is all.

Quote:

Fatal error: Cannot use object of type vB_Session as array in /***/***/***/***/showthread.php(1912) : eval()'d code on line 35
Disabling the showthread plugin stops the error, but obviously breaks the hack.

Does anyone have any idea how to resolve this?

Whiterook 07-30-2006 06:15 PM

Installed, and working just fine, thank you.

I do have a question on the following script enhancement.
Welo included the following:
Quote:

Originally Posted by welo
This will create a performance hit if you allow everyone access to it (especially guests). However, you can restrict the usergroups who can see the "who viewed" box (thus eliminating uneccessary queries) by wrapping all the injected template code in an <if> statement:

Code:

<if condition="in_array($bbuserinfo['usergroupid'], array( 5, 6, 7))">
<!-- who viewed this thread code-->
</if>

...will restrict viewing only to admins and mods. Add other usergroups at your discretion.

My question is on wrapping the injected template code with the above <if statement.

Where do I add this code?

Pretty much the same thing Bashy asked, but wasn't answered. Good to know I'm not the only one with this question... some what of a disclaimer :D

Thank You in advance,
WR

Muellmann 07-30-2006 07:59 PM

Quote:

Originally Posted by vietkieu_cz
I need this hack for only some Forum (some thread), not for all forums (not all threads), can I help me?

exclude by forum-ID in that way:
visible in forums 2, 3, 4:
<if condition="in_array($forumid, array(2, 3, 4))">
<!-- Code of this Hack -->
</if>

djjeffa 11-02-2006 03:01 AM

is this out for 3.6.1 ?
and is ther a way to make this an option for certin threads to knock the load down on big sites?

Cloud Strife 04-05-2007 06:33 PM

After upgrading to mySQL 5 I get this error with the plugin:-

Fatal error: Cannot use object of type vB_Session as array in /home/siteupload/public_html/forums/showthread.php(1953) : eval()'d code on line 33

RedGTiVR6 07-11-2007 09:19 PM

Quote:

Originally Posted by Muellmann (Post 1040806)
exclude by forum-ID in that way:
visible in forums 2, 3, 4:
<if condition="in_array($forumid, array(2, 3, 4))">
<!-- Code of this Hack -->
</if>

Thanks!

This is exactly what I was looking for!

I only wanted this to show in our bug reporting forums so I can keep tabs on our QA team and to let our customers know if the QA team has read the bug report.

I'm off to try and install this on 3.6.7PL1.

:D

RedGTiVR6 07-11-2007 10:40 PM

Quote:

Fatal error: Cannot use object of type vB_Session as array in /xxxxx/public_html/vbulletin/showthread.php(1963) : eval()'d code on line 111
Any ideas anyone? Even though this mod isn't supported....:(

ahmedeldeep 07-30-2007 12:16 AM

i need this mod but i cant run it on php5
plz quick help

ahmedeldeep 07-30-2007 05:38 PM

plz help

HossMon 12-31-2008 04:09 AM

I was able to get this working on v 3.7.4 BUT only if your using PHP 4.x I'm working on editing the array calls for PHP 5 and will update post if I ever suss it out.
But, It must be installed as a plugin. Do not import the xml file!
This also works on my v3.6.9 board as well.

As this is my first "real" contribution to vB.org, I hope that by attaching the instructions I created I'm breaking no rules nor offending the original author!
It is a minor change to the original installation.

Download the instructions attached and give it a go. I take no responsibility if it screws up your forums. I'm just attempting to be helpful. DO backup your database first please!

If anybody finds any fault with these instructions. Please feel free to edit and repost them.

An additional note....

If you use the optional line
<if condition="in_array($bbuserinfo['usergroupid'],array(5,6,7))">
to control you can use this Mod...
make sure the extra </if> statement following the phrase <!-- end currently active users -->
exisits when editing the SHOWTHREAD template. This </if> is included in the paste text of my instructions.

If you chose not to use this line, I do not believe it needs to be included.

Code:

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

And make sure there is also an </if> statement either before or after <!-- end who viewed this thread -->
Before saving and reloading the template.
Again last line should be as follows...

Code:

<!-- end who viewed this thread -->
</if>

I hope that makes sense to everyone. It's late and I've been at it for a while!


All times are GMT. The time now is 08:30 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.01216 seconds
  • Memory Usage 1,776KB
  • 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
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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