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=168303)

struff 10-26-2008 05:06 PM

Quote:

Originally Posted by Paul M (Post 1653030)
I suggest you add the index manually via phpmyadmin. Mysql is taking so long to add the index that php is timing out.

Can you please tell me how to do that? I only have a little experience doing stuff in phpmyadmin (but haven't had any problems doing it).

Thanks.

Paul M 10-26-2008 05:20 PM

Code:

ALTER TABLE post ADD INDEX (dateline) ;

struff 10-27-2008 09:34 PM

[QUOTE=Paul M;1653225]
Code:

ALTER TABLE post ADD INDEX (dateline) ;
I apologize for my ignorance but I would rather ask questions first before breaking anything. Do I run that on the SQL page?

And then what do I do after running that?

Thanks again.

Paul M 10-28-2008 02:50 PM

1. Yes, run it as an SQL query.

2. Just install the mod (wait for the index to be created, which coud take a while).

rc1320 10-31-2008 10:38 PM

I've installed the product and scanned this thread but I still can't figure out why mine will not display.

Do I need to manually add something to my modified nav bar template?

Paul M 10-31-2008 10:48 PM

I take it you read this ?

Quote:

Note: The unread posts portion of this hack only works if you use the database thread marking system, also, this attaches itself to certain phrases in the "welcome" box and will not work if they are not present (or are modified by other code).

EcoCav 11-02-2008 06:56 PM

Is there a way to block users from using this addon? I love it, but several members on my forum dont like it. It would be nice if some members could disable it via the CP.

Paul M 11-02-2008 11:19 PM

Nope, there is no such facility.

e-power 11-09-2008 11:45 AM

i had this working on my tes pages but it wont work now its gone live it gives me this :

Importing Product, Please Wait...

[:]
Checking for Index

Checking User Table
Adding Column to User Table

Display Unread Posts and Reputation Comments

Installing : Version 3.7.007 ; Revision 3.14

( Replacing : Version 3.7.007 ; Revision 3.14 )

Paul M 11-09-2008 10:07 PM

What is your question exactly ?

e-power 11-10-2008 04:49 PM

That it dosnt work and thats what i get when installing ?

im running 3.7.4 ..

Paul M 11-11-2008 09:24 AM

What was displayed is correct.

"it doesnt work" isnt exactly a question, and I dont have enough information to be able to say much. Have you checked everything mentioned in the main post.

e-power 11-11-2008 04:47 PM

link to site if that helps

http://www.escortpower.co.uk/forums/index.php

Paul M 11-11-2008 07:44 PM

not without an admin login it doesnt. :)

GlamRockTalk 11-20-2008 03:08 AM

This mod ROCKS! :D

Megatr0n 12-02-2008 11:02 AM

Hi Paul,

A small request is it possible you can add a feature where admins can filter out threads from a particular forum for the Unread Post bit?

I'd appreciate it if you can do this sometime in the near future or if there is way already?

Paul M 12-02-2008 01:02 PM

As it says ;

Quote:

Version 3.7.004 adds the following ;

A forum exclusion list - requested a number of times, an option is provided to exclude forums from the unread count & display.

Goomzee 12-03-2008 08:22 AM

Quote:

Originally Posted by Goomzee (Post 1643856)
i went there but it;s show only Display order number but wht is forums ID


plz answer above thread

NikosN 12-03-2008 09:48 AM

Thank you

mattcaswell 12-05-2008 04:18 PM

Paul,
I love the mod and use it with my RSS feeds. Is there some code I can change in the NavBar for "New Posts" that will point it to the same seach as the Unread Posts code? I blocked the RSS forums in your mod and it works great.. but when the users click on "new posts" in the navbar, they see all the RSS posts also.

I've searched all over this thread for this answer and if I missed it.. I apologize.

Thanks
matt

Paul M 12-05-2008 04:25 PM

You need to add &exclude=1,2,3 to the url.

mattcaswell 12-05-2008 04:52 PM

Quote:

Originally Posted by Paul M (Post 1679136)
You need to add &exclude=1,2,3 to the url.

Is there a variable you defined for the excluded forums that I can add to the end of the url?

I guess I'm not explaining it correctly. When someone clicks on 'New Posts" on the NavBar, I want them to use your code instead of the code thats in the NavBar template. I have commented out the OEM code and added a link with the excluded forums, and that works, but if I add a new RSS feed, then I have to edit the template again to add that forum number.

Ie: <!--ADDED BY MATT FOR NEW POSTS-->
<td class="vbmenu_control"><a href="http://www.thesabrehood.org/forum/search.php?do=getnew&exclude=144,145,146,161,162,1 63">New Posts</a></td>

Is there a code block I can put here to take advantage of your great mod from the NavBar location.

Thanks for all your efforts!

Paul M 12-05-2008 07:23 PM

Use $vboptions[dupexcl]

i.e. search.php?do=getnew&exclude=$vboptions[dupexcl]

redlabour 12-05-2008 08:35 PM

Quote:

Originally Posted by Paul M (Post 1679240)
Use $vboptions[dupexcl]

i.e. search.php?do=getnew&exclude=$vboptions[dupexcl]

Why is this not included in the Mod? Without that it makes no sense to exclude a Forum from your Mod.

In this Way i have to edit every single Phrase with the Searchlink of your Mod.

Paul M 12-05-2008 09:02 PM

Um, it is .......

redlabour 12-05-2008 10:42 PM

Quote:

Originally Posted by Paul M (Post 1679291)
Um, it is .......

I think you misunderstand me now.

Only the Counter is lower if i use your excluded Function in AdminCP.

I have to add to every Phrase of your Mod the exclude manually if i want the search beiing affected.

Paul M 12-06-2008 11:00 AM

The link provided by the mod includes the exclude functionality, but I see your point.

I might be able to force the search to always exclude them - the question is, do I want to ?

Not everyone (including me) wants them always excluded.

aciurczak 12-18-2008 08:23 PM

I added a line in my navbar template so directly below this mod's line of "you have X unread posts", right underneath there is the text that says "Mark all posts as read". Users really like to see their number of unread posts, but it was confusing some of them and they were not able to find the "mark all forums read" option in the quick links menu. Now with a single click they can mark all as read, 1/4" away on the screen. I'm happy with how it is on my site now and don't need any updates to this mod, but it might be a nice option for the next rev.

Problemsolver 12-23-2008 07:42 PM

If I want to translate it to swedish, where do i edit stuff?

Paul M 12-24-2008 08:04 AM

In the product XML, phrases section - or in your ACP after you install it.

CPOWA 01-05-2009 12:56 PM

Excellent mod! Installed.

Thank you, Paul :)

Nita

aciurczak 01-05-2009 05:13 PM

Quote:

Originally Posted by mattcaswell (Post 1679129)
Paul,
I love the mod and use it with my RSS feeds. Is there some code I can change in the NavBar for "New Posts" that will point it to the same seach as the Unread Posts code? I blocked the RSS forums in your mod and it works great.. but when the users click on "new posts" in the navbar, they see all the RSS posts also.

I've searched all over this thread for this answer and if I missed it.. I apologize.

Thanks
matt

You can do this with a 1-line plugin:

add it to the search_getnew_start hook:

PHP Code:

$vbulletin->GPC['exclude'] .= ',22'

Change the 22 to the ID of whichever forum you want excluded from the new posts search. Add more with commas if you need more than one excluded.

BamaStangGuy 01-15-2009 09:51 PM

I just thought it might be cool to have the unread posts part (or all of it. I just use the Unread Posts) check x seconds for updates to posts. That way you can just leave the page up and people can come back and see they have new posts without reloading the page. Cyb's Forum Stats shows latest posts with ajax and its pretty cool.

As always, you can always make it optional for those that don't want to see the performance impact. Just a thought :)

ePrOmD 01-31-2009 01:42 AM

Hi Paul

Again thanks for your great work. Sorry to do a bump of a request made some time ago.

But I really think that would be very useful if your hack also alert users when new posts are made in the social groups they belong to, or comments made on their blog.

I ask again apologize for the bump, and thank you very much again for your time!

Paul M 01-31-2009 10:15 AM

Sorry, I dont use social groups or blogs, so there is little chance this will be modified.

ePrOmD 01-31-2009 10:41 AM

Thanks for your answer.
What a pity, it would really be a very useful addition for those who use social groups and blogs.

Anyway thank you and hopefully someday you can include it. Thank you very much for your hard work and time!.

greetings!

peratik 02-11-2009 03:56 AM

Doesn't show new Reputation on navbar only shows new Unread Posts. How can i show new reputation!? please help me

mariocaz 03-27-2009 05:54 AM

Hi Paul,

I want to know how can I delete(clean) all the unread posts of all my users in my forum ??, because I know that almost all my users have a lot of unread posts, so I want to clean that and start from zero today and then every 5 days the unread posts erase it automatically.

Thank you Paul!!

Mario

Paul M 03-27-2009 08:13 AM

You cant do that.

mariocaz 03-27-2009 03:53 PM

So all that unread post are a lot of memory (cache) in the server ???


All times are GMT. The time now is 04:50 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.01651 seconds
  • Memory Usage 1,819KB
  • 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
  • (1)bbcode_php_printable
  • (8)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
  • (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