vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Who Viewed This Thread - Enhanced Version (https://vborg.vbsupport.ru/showthread.php?t=68876)

Ocean 10-17-2004 12:32 AM

Quote:

Originally Posted by theArchitect

Super idea for a hack. Very useful. :)

Thanks! :)


Quote:

Originally Posted by theArchitect

*theArchitect clicks install*.

Though, for some reason the "Already viewed this thread since:" is displaying "never" rather than a date and time shown in your screen shot. Have I messed something up in the install?

Not at all. It will show "Never" if you have never reset the counter for that particular thread. Try resetting it, you'll see that it will now show the date and time you last reset it. :)

Until the first time you reset the second counter for any given thread, the second counter will show the exact same results as the first.


Quote:

Originally Posted by theArchitect

BTW, I found the install process very simple, but I amended the SHOWTHREAD template as I have currently active users at the top and not the bottom.

Also, and I don't know if this is of interest to anyone. When I downloaded the .txt file and opening it in the default app text edit everything was fine. But when I opened the file in my editor of choice (BBEdit) I got some strange symbols. And if anyone says, that?s Mac?s for you they are a dead man.

Well, I won't say it then. But it would seem that I don't need to, either... <grin>

theArchitect 10-17-2004 02:03 AM

Quote:

Originally Posted by Ocean
Thanks! :)




Not at all. It will show "Never" if you have never reset the counter for that particular thread. Try resetting it, you'll see that it will now show the date and time you last reset it. :)

Until the first time you reset the second counter for any given thread, the second counter will show the exact same results as the first.




Well, I won't say it then. But it would seem that I don't need to, either... <grin>

So I need to hit reset for all of my threads?????

Is there a short cut to do them all. I have one or two of them.

edit:
Err. I just hit reset counter and got:
Code:

Fatal error:  Call to undefined function:  is_member_of() in \forum\misc.php on line 8
Help...

Ocean 10-17-2004 02:15 AM

Quote:

Originally Posted by theArchitect

So I need to hit reset for all of my threads?????

Is there a short cut to do them all. I have one or two of them.

No, you don't have to hit Reset on any of them until you have the need/desire to. The second counter is there to give you a date/timestamped resettable list of users who have viewed that thread. You don't need to Reset any given thread unless/until you have the need/desire to see who will have viewed that thread from that point on.

Otherwise, you can just leave them be. :)


Quote:

Originally Posted by theArchitect

edit:
Err. I just hit reset counter and got:
Code:


Fatal error: Call to undefined function: is_member_of() in \forum\misc.php on line 8

Help...

The function "is_member_of" is called from the code this hack adds to misc.php. However, it is a vB function.

The problem is that the error message states that you put that addition in the very beginning of the misc.php file (before the global functions are pre-loaded). You need to move the hack's added code to the right place in Misc.php - refer to the instructions for details. :)

theArchitect 10-17-2004 02:00 PM

Thankyou Ocean. Your prompt and accurate advice is most appreciated.

Ocean 10-17-2004 03:44 PM

Quote:

Originally Posted by theArchitect

Thankyou Ocean. Your prompt and accurate advice is most appreciated.

You're very welcome! :)

bnn121 10-21-2004 08:48 AM

This is a great hack...but...is there a way to pick and choose who can see this?

Meaning...right now all admins can see the hack...but no supermods or regualr mods. I no it may be some work. Is there a section that can be edited to allow additional userid to view this hack?

Ocean 10-21-2004 02:05 PM

Quote:

Originally Posted by bnn121

This is a great hack...but...is there a way to pick and choose who can see this?

Meaning...right now all admins can see the hack...but no supermods or regualr mods. I no it may be some work. Is there a section that can be edited to allow additional userid to view this hack?

No problem. :)

See my following post about the new version. :)


Edit: I released a new version initially, but I subsequently pulled it, because I wanted to make the Security settings easier to work with. Give me a bit, and I'll post the new version here. :)

Ocean 10-21-2004 07:05 PM

Hi, all! I have just released v1.2.5 of this hack.

The only changes that were made, was to allow for more flexibility in deciding who could view this hack, and the ease that you could choose which Security Layout you wanted to use (No more "remove this" or "uncomment that". Now, other than choosing which UserGroups you want to have access to this hack, you only have to change ONE variable in order to select which Security Option you want to use). :)

As before - by default, only Admins can see any of the "Who Viewed" information, and only Admins can Reset the second section.


However, if you wish to change this, there are now three options you can choose from:

Option 1: If you want ALL users to be able to see BOTH sections of "Who Viewed" information.

Option 2: If you want to specify ONLY certain UserGroups IN ADDITION to Admins that can see BOTH sections of "Who Viewed" information.

Option 3: If you want ALL users to see the first section of "Who Viewed" information, but wish to specify that ONLY certain UserGroups can see the second section of "Who Viewed" information.


Regardless of which option you choose, ONLY Admins can Reset the second section.


If the default security setup is fine with you, than installation is mostly just a matter of inserting code where instructed.


However, if you want to choose any of the other security options, instructions are in the code changes for the ShowThread.php file. It's a LOT easier now. :)


If anyone wishes to upgrade from 1.2.1 to 1.2.5, all you have to do is replace the code additions to ShowThread.php and the SHOWTHREAD Template from the new instructions.

Then, if you wish to modify the security settings, follow the instructions in the ShowThread.php section to do so. :)

bnn121 10-23-2004 10:45 AM

I just finished installing your newest release...and this is one great hack...but I have one question.

If you click on the Who viewed this thread's minimize arrow to collapse that box it does just fine...but if you try the same thing with the who viewed this thread since...it does not collapse that box...it collapse the who viewed this thread since instead.

What part of the code handles the collapsing of the boxes...so I may check and see if I made an error.

Ocean 10-23-2004 02:45 PM

Quote:

Originally Posted by bnn121

I just finished installing your newest release...and this is one great hack...but I have one question.

If you click on the Who viewed this thread's minimize arrow to collapse that box it does just fine...but if you try the same thing with the who viewed this thread since...it does not collapse that box...it collapse the who viewed this thread since instead.

What part of the code handles the collapsing of the boxes...so I may check and see if I made an error.

Oops! No, that's not your error - that's mine. I never collapse those objects on my own board, so I never noticed that discrepancy.

I fixed the problem and released 1.2.6. Anyone upgrading from v1.2.5 ONLY - can just replace the code added to the SHOWTHREAD Template (Step 6), and you'll be fine.


Anyone upgrading from v1.2.1 to v1.2.6 only needs to replace the code additions to ShowThread.php in addition to the SHOWTHREAD Template. :)


All times are GMT. The time now is 08:21 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.01282 seconds
  • Memory Usage 1,757KB
  • 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_code_printable
  • (9)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