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)

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


All times are GMT. The time now is 07:15 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.01167 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
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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