vb.org Archive

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

visitangeles 06-04-2009 11:50 PM

is it possible to put the number of unread posts per forum in the forumhomedisplay area kind of like how UBB Threads works?

basically put each line or each forum would have a the total number of threads then the new unread threads would be in ( number_of_unread_threads ) and then the posts line like in ( number_of_unread_posts) next to the number of posts total

can you do that with your mod?

like getnew x and some code for the forum or whatever?

Paul M 06-05-2009 08:12 AM

No, thats not possible with this mod.

kevcj 06-15-2009 04:38 PM

Wonderful modification, thank you Paul.

I do have one question though - Setting the cut off date to less then 10 days makes the number of unread post disappear. All it says is "Display Unread Posts". Am I missing something?

Paul M 06-15-2009 09:11 PM

At a guess, you are using the "Count All Posts Marked as Unread" option, and your "Database Read Marking Limit" is 10 days - the "cutoff" must always be higher than the DRML in the Display All mode.

kevcj 06-15-2009 10:21 PM

Quote:

Originally Posted by Paul M (Post 1830356)
At a guess, you are using the "Count All Posts Marked as Unread" option, and your "Database Read Marking Limit" is 10 days - the "cutoff" must always be higher than the DRML in the Display All mode.

Thank you, that fixed it. Now it says 8359 Unread Posts instead of 16,600+

MjrNuT 06-17-2009 05:19 PM

Paul,

I'm not sure if my question is in the right place, but I have this mod of yours as well as the Extended Rep Checks. I specifically like this mod for the UnRead Posts. My question is about the Reputation part now.

I have set it such that giving + rep. requires a comment. Is it possible to NOT display WHOM it came from? Of course admins could see from ACP, but I'm referring to the UserCP.

Thanks in advance.

Paul M 06-17-2009 06:07 PM

Displaying who gave a comment is a usergroup setting (standard vb).

Sunka 06-17-2009 07:46 PM

Paul, is it possible to alter MOD for new picture comments (not only for my pictures, but for all users pictures)?

Paul M 06-17-2009 09:22 PM

Sorry, I have no plans to make any further changes to any of my mods for the 3.x series of vbulletin (except bug fixes).

smooth-c 06-19-2009 11:46 AM

Is there a way to have these off by default?

Oblivion Knight 06-20-2009 07:33 AM

Just an observation, shouldn't the query on usercp_start have some kind of condition to check whether or not the reputation system is enabled.? Somewhat of an unnecessary additional query if not.. ;)

Paul M 06-20-2009 10:32 AM

Yes, That sounds sensible. :)

Im not going to release an update just for that, as its very minor, but Ive updated my master copy so it will be included in the next release (which will prob be vb4).

smooth-c 06-21-2009 07:01 AM

Is there a way to have these off by default?

Paul M 06-21-2009 08:20 AM

Sorry, dont really understand what your asking.

Fulla 06-30-2009 07:52 AM

Hi Paul, thx alot for the mod, been using it for a while :)

I've came across a problem lately, since I installed VBAdvanced adding a front page. The links on front page won't work, they link to a wrong address.

Main Page: www.gamingcraft.net
Forums: www.gamingcraft.net/forum

Clicking New Posts on Main Page, trys to redirect to http://www.gamingcraft.net/search.php?do=getnew (Without the /forum included).

Is there a way I can edit it to forcefully include /forum?
(Same for new reputation).

Paul M 06-30-2009 08:58 AM

Use the links path setting in the mods options.

wAnBoA 07-08-2009 06:49 AM

Thanks for the mod, Paul M.
Do you think it's possible to have an option so that we can set the forums we want to be included?
It would be useful if we only want a few forums to be included instead of the exclude option.

Paul M 07-08-2009 11:09 AM

Sorry, that wont happen in this version.

If I have the time I may think about it when its upgraded for vb4.

Quantnet 07-08-2009 12:42 PM

Will there be an option to show unread blog entry as well?

Paul M 07-08-2009 09:00 PM

I cannot answer that until we see how v4 works, but unlikely for the moment, I dont actually use the blogs.

Chy 07-19-2009 06:33 PM

Thanks installed.

Chy 07-20-2009 04:27 PM

Any idea how to get the link to work with Vba CMPS, the link goes to "link not found" on my homepage. It's fine in the forums area though.

wrang 07-21-2009 12:36 AM

I found a error?
When i click on the link this came up in the adressbar
/forumet/\"search.php?do=getnew\"

and the side
Quote:

Not Found
The requested URL /forumet/\"search.php was not found on this server.
What do i have done wrong

Edit I found it my mistake at the dup_posts texts

greenspan 07-23-2009 09:30 AM

Quote:

Originally Posted by Chy (Post 1852301)
Any idea how to get the link to work with Vba CMPS, the link goes to "link not found" on my homepage. It's fine in the forums area though.

As Paul mentioned above, you can "use the links path setting in the mods options."

Go to: vBulletin Options>Display Unread Posts and Reputation. In Links Prefix Path, put something like: "http://www.yousite.com/forums/" since search.php is in there.

Paul M 07-25-2009 04:10 PM

Quote:

Originally Posted by greenspan (Post 1854055)
As Paul mentioned above, you can "use the links path setting in the mods options."

Go to: vBulletin Options>Display Unread Posts and Reputation. In Links Prefix Path, put something like: "http://www.yousite.com/forums/" since search.php is in there.

You should only need the /forums/ part.

Freesteyelz 08-03-2009 11:39 PM

Thanks for releasing a useful mod, Paul. :)

I'm curious if there's a way the script can look for "<!-- unread posts -->" instead of (where highlighted in red):

Code:

  $vbphrase['welcome_x_link_y'] .= '</strong><br />'.$unread.'<strong>'; // 3.7 Onwards Phrase


When I replace the red with "<!-- unread posts -->" it gave me a parse error. :o As a resolve I either removed $unread (in blue) or removed the red (shown below):

Code:

  '</strong><br />'.$unread.'<strong>'; // 3.7 Onwards Phrase
  "<!-- PEMDATA38: {$data_dup['title']} : Version = {$data_dup['version']} : Revision = {$data_dup['cvs']} -->";


The mod seems to work when either edit was applied. Is that ok or is there a more efficient way of doing it?

Paul M 08-04-2009 01:13 PM

Sorry, Im not following what your trying to do (or why ?).

FYI, It doesnt look for anything, it appends itself to the relevant phrase.

Freesteyelz 08-04-2009 07:46 PM

Quote:

Originally Posted by Paul M (Post 1861201)
FYI, It doesnt look for anything, it appends itself to the relevant phrase.

In your previous version there was a section in vB Options to specify the area which Unread Post codes would attach to using ATCS (Automatic Template Changes System). I wanted to do that with this version since my navbar is modified.

I've successfully moved $unread so the mod will display where I want it to (and not after last visited phrase) by commenting out those lines of codes. I was just wondering if by commenting out those lines of codes (below) would harm vB or the codes in any way:

Code:

  // $vbphrase['welcome_x'] .= '</strong><br />'.$unread.'<strong>'; // 3.6 Phrase
  // $vbphrase['welcome_x_link_y'] .= '</strong><br />'.$unread.'<strong>'; // 3.7 Onwards Phrase
  // $vbphrase['last_visited_x_at_y'] .= "<!-- PEMDATA38: {$data_dup['title']} : Version = {$data_dup['version']} : Revision = {$data_dup['cvs']} -->";


:)

Saviour 08-04-2009 08:45 PM

Nice mod, Paul...thanks!

Paul M 08-04-2009 09:32 PM

Quote:

Originally Posted by Freesteyelz (Post 1861411)
In your previous version there was a section in vB Options to specify the area which Unread Post codes would attach to using ATCS (Automatic Template Changes System). I wanted to do that with this version since my navbar is modified.

That was only in a couple of the 3.6 versions in mid 2007, for the last two years (since v1.22) it has used the phrase system.

Quote:

Originally Posted by Freesteyelz (Post 1861411)
I've successfully moved $unread so the mod will display where I want it to (and not after last visited phrase) by commenting out those lines of codes. I was just wondering if by commenting out those lines of codes (below) would harm vB or the codes in any way:

Nope, commenting them out will not affect anything else.

Freesteyelz 08-04-2009 10:01 PM

Oh. I've been using an older version (1.21) all this time. :o Thanks, Paul, for the assurance. :)

K4GAP 08-13-2009 06:04 PM

Is there a way to make this display "Unread Posts" as it does here on this site? (top right)

akanevsky 08-15-2009 12:51 PM

Quote:

Version 3.8.001 adds support for forums excluded if you have the "Get New/Get Daily Opt Out Modification" installed (by Andreas).
Hey,

Can you please also add support for my modification of Andreas's hack, which is "Selective Forum Filter"?

Thanks.

Paul M 08-15-2009 03:51 PM

@ Psionic Vision, Please try the attached with your mod before I release it.

yamahapaul 08-15-2009 11:34 PM

Paul-

My older, pre updated version is working fine on 3.8.4 with no issues, is there anything to be gained by updating? I know it may sound a daft question but I'm a firm believer in if it aint broke etc.... :o

Paul M 08-16-2009 01:08 AM

What version exactly are you using ?

yamahapaul 08-16-2009 09:06 AM

Quote:

Originally Posted by Paul M (Post 1868247)
What version exactly are you using ?

No idea and the original xml got deleted when I had to reformat my laptop, I guess it is the one before the current one.. :o

nascartr 08-16-2009 10:45 AM

Quote:

Originally Posted by Paul M (Post 1867958)
@ Psionic Vision, Please try the attached with your mod before I release it.


I'll go ahead and update that I gave this a try and it seems to work. I tested it on one forum I chose to exclude, made a post with my test account in that excluded forum, checked back on my normal account and the unread post wasn't showing in the navbar. I went back into my options and reset the exclusion list and then the unread post showed up like it should have originally before exclusion.

I'm going to keep using the version attached because I can't tell that it doesn't work with Psionic Vision's mod.

nomoreturn 08-16-2009 02:38 PM

Nice mod thanks

Paul M 08-16-2009 03:07 PM

Quote:

Originally Posted by yamahapaul (Post 1868377)
No idea and the original xml got deleted when I had to reformat my laptop, I guess it is the one before the current one.. :o

Just check the version number in your ACP. :)

Quote:

Originally Posted by nascartr (Post 1868422)
I'll go ahead and update that I gave this a try and it seems to work. I tested it on one forum I chose to exclude, made a post with my test account in that excluded forum, checked back on my normal account and the unread post wasn't showing in the navbar. I went back into my options and reset the exclusion list and then the unread post showed up like it should have originally before exclusion.

I'm going to keep using the version attached because I can't tell that it doesn't work with Psionic Vision's mod.

Thanks for confirming it works, I'll release it as the main version.


All times are GMT. The time now is 03:12 PM.

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.03643 seconds
  • Memory Usage 1,825KB
  • 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
  • (3)bbcode_code_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