vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Unread Posts and Reputation Comments (welcome box) (https://vborg.vbsupport.ru/showthread.php?t=123886)

HDT 07-09-2007 07:08 PM

Quote:

Originally Posted by Ren? Kunze (Post 1280428)
Hello,

i used the RSS Feed and the problem is: I have 50 or 100 new Post in the Forum every day.

It is possible to determined forumid.

Try this hack,might be help.
http://www.vbulletin.com/forum/showthread.php?t=231241

kyokushin4life 07-09-2007 08:24 PM

Paul M, thank you for this plugin. One of my members brought up an issue that an incon that shows "Forum Contains New Posts" are still there after reading the unread posts. Do you know how to solve this issue?

popowich 07-13-2007 05:45 PM

Quote:

There is no facility to exclude forums from the count (note: only forums that a member has permission to view are included).
Looks like I have the same question as what is being discussed. I have used the unread posts product for a while now and it works great. I installed Selective Forum Filter today at the request of my members. If my members go to unread posts the posts they don't want to see are not displayed in the listing, which is good, but they are still counted in the X unread posts number. If you can't see it, is it possible to have it not counted? If nothing is done they'll end up with a huge number of unread posts that they can't see. I'm wondering Is this is a reasonable request for this mod to not count what will not be displayed?

Is there a creative way for my users to get around this?

Publicly joinable groups that have no permissions to the forum?

Thank you for your time.
-Raymond

centurius 07-13-2007 07:00 PM

Thank you, this is awesome.

RedTyger 07-15-2007 04:09 PM

Hi,

I struggled for a bit about whether this was a bug because vBulletin's behaviour didn't seem correct to me, but regardless according to this, a bug it be.

Quote:

This will display the actual number of posts that are still considered unread by you (and will show up in a 'getnew' search).

A usergroup is permitted to view a forum and thread content in that forum but is not permitted to view other's threads. When a thread they are not permitted to view has a new post, the new posts indicator lights up and your modification declares that the user has 1 new post.

That new post does not display in a get new search, as they have no permission to view it so from that user's perspective the count is not correct (and nor is the statusicon, it seems to me). Tested on a stock forum, latest version.

Ta!

Paul M 07-15-2007 08:16 PM

That's quite possible, I'm pretty sure no permission checks were changed when this was ported from 3.5, but I believe new thread permissions were added to 3.6, so this won't take them into account.

I'll make a note to fix it, but given that it will affect very few people and I'm quite busy (with a long todo list), it will probably be a while.

Canis Firebrand 07-19-2007 01:09 PM

I don't know how popular or if it is even something that would be fairly easy to code in.

The two options you have to display the unread posts.

What would it take to make the choice be selectable per user in their UserCP? The master option would be chosen in the same way, and if they didn't choose their own, that is how they would see the unread count.

But, if they did choose the method in their UserCP options, they could see it the other way.

I hope that makes sense.

Paul M 07-19-2007 05:05 PM

Yes, it would be possible, but since no one has ever mentioned it, there doesn't seem to be a great need for such a feature, which means it's unlikely it will ever get added, I would need to be very short of things to do. :)

popowich 07-19-2007 05:14 PM

I think we are all talking about the same thing but not to each other?

I have many Paul M products, and i like to keep my members happy.

Would a donation in appreciation of all the work from those asking for the update help to prioritize and get this issue resolved?

-Raymond :D

Antivirus 07-26-2007 07:54 AM

This is very nice Paul, thanks! It's untested, but regarding counting posts in forums where a member has doesn't have permission to "Can View Other's Threads"...

i think all that needs to be done is adding a conditional to the query which checks $xfperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']

Like following:
PHP Code:

if (!($xfperms $vbulletin->bf_ugp_forumpermissions['canviewothers']))
{
    
$xpostuserid_list "AND thread.postuserid = " $vbulletin->userinfo['userid'] . " AND " $vbulletin->userinfo['userid'] . " <> 0";
}
else
{
    
$xpostuserid_list '';


and adding $xpostuserid_list as a variable conditional for within the WHERE clause of the query

yaoren 08-04-2007 02:23 AM

**Installed**
on 3.6.7 and working fine on all skins.
Couldn't get it to work at first then double checked to see if it was actually enabled (which it wasn't) so if you find this happens to you... check that first :)

Ohiosweetheart 08-07-2007 07:56 PM

*sigh* I would love to use this if I could put it somewhere other than the navbar template. :(

Great mod!

Paul M 08-07-2007 10:51 PM

You don't have to put it in the navbar, the options are there to auto-modify a different template, or you could even manually add it somewhere.

PoetJA-1975 08-08-2007 05:29 AM

Quote:

Originally Posted by Ohiosweetheart (Post 1312156)
*sigh* I would love to use this if I could put it somewhere other than the navbar template. :(

Great mod!

What PAUL said - and perhaps you should take notice that what you hear about navbar template ain't always gold.

Jacquii.

Ohiosweetheart 08-08-2007 05:56 AM

Quote:

Originally Posted by Paul M (Post 1312281)
You don't have to put it in the navbar, the options are there to auto-modify a different template, or you could even manually add it somewhere.

Thanks Paul, I discovered that after I opened the file. I was just going by the screenshot. :)




Quote:

Originally Posted by PoetJA-1975 (Post 1312439)
What PAUL said - and perhaps you should take notice that what you hear about navbar template ain't always gold.

Jacquii.

Not sure what you mean by that, Jacquii, but being a vB designer, I'm well acquainted with the navbar template.

My point was that the forum that I want to use this mod on would require that it be placed in another template. :)

Deadly Assassin 08-16-2007 03:47 AM

This shows on the default style, but will not show on my modified style.

The login name and PM's etc... are showing on the left of the style instead of the standard right.

Can someone please tell me how to edit the correct template to allow this to show.

Thanks.

shokmuzik.com 08-18-2007 12:41 PM

Gad an issue when browsing the private.php, I see the hack sometimes 2-4 times. See screenshot.

Paul M 08-18-2007 03:48 PM

Sometimes ?

You obviously have some customisation that is affecting it on that page, if you work out under what conditions it happens, it might give you a clue as to what causes it.

Foxtrotelite 08-18-2007 06:11 PM

works great, thanks

Spinning Webs 08-19-2007 04:02 PM

OK, I love this hack...

Now, can it do this:

I recently changed my forum to be about one specific sporst team to many different teams. Some users of the original forum would like to see new posts only in forums and sub-frums that they select, or not see a count from threads they don't care about.

Before I go in and monkey around with the code, is something like this a) doable and b) something you may consider for a future release?

Here's my forum so that you see what I mean. It used to be only for our soccer team, Rochester Raging Rhinos, but now encompasses all of our local teams.

http://www.rochestersportsfan.com


Thanks!

Paul M 08-19-2007 04:17 PM

There is no such functionality in this, nor am I considering it atm.

Perhaps when vb3.7 comes out (requiring a new release) I may think about it then.

BadgerDog 08-19-2007 04:36 PM

Ok, INSTALLED.... :)

However, it doesn't show up?

I have my thread marking set as:

Inactivity/Cookie Based
Database (no automatic forum marking) <------
Database (automatic forum marking)

The mod is turned ON....

Running v3.6.7pl1

Any ideas?

Thanks

Regards,
Badger

Edit: Never mind ... :) For some reason, I had to go into the Manage Products area after the IMPORT and install and ENABLE the mod. I never had to do that before. It's now on-line and functioning fine. Thanks Paul... very nice ... as usual ... :up:

Spinning Webs 08-19-2007 04:48 PM

Quote:

Originally Posted by Paul M (Post 1321021)
There is no such functionality in this, nor am I considering it atm.

Perhaps when vb3.7 comes out (requiring a new release) I may think about it then.

Thanks.

Would you mind, then, if I looked into modifying your code?

Paul M 08-19-2007 04:52 PM

Quote:

Originally Posted by BadgerDog (Post 1321037)
Edit: Never mind ... :) For some reason, I had to go into the Manage Products area after the IMPORT and install and ENABLE the mod. I never had to do that before. It's now on-line and functioning fine. Thanks Paul... very nice ... as usual ... :up:

You're right, for some reason the default is set to disabled, not sure why that is, I'll update the zip file shortly. Thanks.

Quote:

Originally Posted by Spinning Webs (Post 1321045)
Would you mind, then, if I looked into modifying your code?

You are free to edit it on your forum as much as you like, you just cannot release any modified version. :)

Paul M 08-19-2007 05:06 PM

Zip updated to be enabled when installed.

FIM 08-19-2007 05:26 PM

thanks installed :)

HDT 08-19-2007 08:20 PM

v1.21 : ATCS and disable options added.

Dumb question,what ATCS ?

Paul M 08-19-2007 09:32 PM

The system used to automatically add the hacks output to a template.

wrang 08-21-2007 02:30 PM

It dosent work for me and i dosent understand what i should write in the
Quote:

ATCS: Template Name
The name of the template that ATCS will process.

ATCS: Search Text
The text that ATCS will search for.

Paul M 08-21-2007 08:16 PM

Are you using a custom style ?

wrang 08-22-2007 09:37 AM

Now it works. But is it possible to have it like all new post will show always
Now it is that if you have read one thread it dissapear from the text.

Hope you understand what i mean

What is the diffrent to use the diffrent database
( ) Inaktivitet/Cookie-based
( ) Database (iNo automatisk forum-mark)
(X) Database (automatisk forum-mark)

Quote:

There are two options (using a setting in the vBulletin Options). If set to 'yes', it will only count the unread posts since your last visit, if set to 'no' it will count all posts considered unread. This setting reflects the divider in the getnew search display.
Where do i set this to No.
If i put it to NO in the Display Unread Posts it dosent show at all

Paul M 08-22-2007 11:11 AM

The modification itself has a section in your vb options.

wrang 08-22-2007 01:13 PM

Quote:

Originally Posted by Paul M (Post 1323047)
The modification itself has a section in your vb options.

Witch are.

I dont realy understand your text, can you explain it better.

:o

Paul M 08-22-2007 03:42 PM

There is a set of settings for this mod (in it's own section) in your vbulletin options, that is where you will find the option you are looking for.

pcg 08-27-2007 08:34 PM

I see you address the ignored users, but what about ignored threads? I still see unread posts counts from ignored threads. I use database marking.

Thanks

Paul M 08-27-2007 10:53 PM

There is no such thing as ignored threads in default vbulletin.

pcg 08-27-2007 11:37 PM

Right. You are correct. I have the ignore threads mod. Any chances it works with this? I understand they are two different mods.

Paul M 08-28-2007 12:05 AM

Nope, it's unlikely to work with such a modification.

BTW, there is no code that takes account of ignored users either.

Gaetan 09-02-2007 08:03 PM

Hi,
I installed it, and, as I'm using a modified style I added $unread in my navbar and desactivated the automatic installation
But nothing happens, I don't see anything.

I'm using 3.6.8

Paul M 09-02-2007 08:15 PM

Do you have database threadmarking turned on ............


All times are GMT. The time now is 11:13 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.01935 seconds
  • Memory Usage 1,830KB
  • 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_php_printable
  • (12)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
  • (40)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