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)

Paul M 10-05-2006 08:04 AM

Yes.

ABeautifulBrown 10-08-2006 10:31 PM

I installed it but I don't see it on the board. Am I missing something?

Paul M 10-09-2006 12:27 AM

I would guess you are using a customised style.

ABeautifulBrown 10-09-2006 02:01 AM

yea, I'm using the Blaze style. will it not work?

Paul M 10-09-2006 02:19 AM

Not automatically, the code this looks for in the navbar template is obviously missing. You are going to have to edit the template, or the plugin, or possibly both - no real way to tell as I have no idea what the blaze style looks like.

Spikeman 10-09-2006 02:50 AM

Works here fine, thanks paul :)

ABeautifulBrown 10-10-2006 11:08 PM

o ok thanks

Silver_2000_)! 10-12-2006 03:28 AM

Install went smooth
Seems to work
BUT why is the unread count on the home page different than the number of unread threads that I see when I click the link ?

Doug

attachment should show 11 posts

Paul M 10-12-2006 03:53 AM

Yes, 11 posts, not 11 threads.

In that picture (which is a bit small) you have 6 threads with 11 unread posts in them.

Martin-TMGRS 10-12-2006 01:15 PM

Quote:

Originally Posted by ABeautifulBrown
I installed it but I don't see it on the board. Am I missing something?

Like yourself, I too have installed this but dont see it on my board :alien:

Paul M 10-12-2006 09:26 PM

Do you have 'Currently Active Users Viewing This Page' turned on ? I can't see it as a guest.

Canis Firebrand 10-26-2006 12:37 PM

This is a great hack and one that is very useful. I look forward to an update in which you can edit the phrase that is displayed.

I liked the phrasing in the 3.5.x version over the one used in 3.6.x version.

I tried to look at the mod xml file to see if I could maybe change it easily myself, but was lost as to what to actually change.

Thanks again for the great addition to the vB software.

Paul M 10-26-2006 06:00 PM

:confused:

As far as I remember, the current version uses phrases identical to the old 3.5 version, are you sure you have 1.13 installed ?

Canis Firebrand 10-26-2006 06:10 PM

I'm using 1.13. These are the phrases that it put in place.

Code:

unread_posts          Standard Phrase          You Have <strong>{1} <a href="search.php?do=getnew">Unread Post{2}</a></strong>         
unread_posts_visit        Standard Phrase <strong>{1} <a
href="search.php?do=getnew">Unread Post{2}</a></strong> since your last visit.

What it was doing was showing the phrase like this in the welcome box. It looks like it is always using the phrase unread_posts_visit.

0 Unread posts since last visit.

or

# Unread post(s) since last visit.

I was able to actually fix it.

I downloaded the xml file again from above. Edited it and found the phrase, and added in a "You Have" so that it looked like this

Code:

unread_posts_visit          Standard Phrase          You Have <strong>{1} <a href="search.php?do=getnew">Unread Post{2}</a></strong> since your last visit.

Paul M 10-26-2006 06:21 PM

The 3.5 version does not have the words "You have" if you use the last visit option, nor does this.

Both versions display either ;

XX Unread Posts since your last visit

or

You Have XX Unread Posts

Depending on whether you use the last visit option.

Canis Firebrand 10-26-2006 06:25 PM

Maybe I was remembering wrong then. In either case, this is actually a very nice product.

I was just glad I was able to find the spot in the xml file to edit to change the phrasing like I thought I recalled.

If you do update it in the future and add in flexible phrasing that would be great.

But as it is, it does work very nicely.

Thanks again for the product and the replies here to not only myself, but others using this as well.

Paul M 10-26-2006 06:31 PM

Quote:

Originally Posted by Canis Firebrand
If you do update it in the future and add in flexible phrasing that would be great.

I don't understand what you mean ? - the phrase can be changed to whatever you want in the ACP phrase manager - just as any phrase can. That's a standard part of vbulletin. :smoke:

Canis Firebrand 10-26-2006 06:49 PM

That was the part I missed then. I viewed the phrase in the phrase manager, but I wasn't aware I could change it there. I'm still realitively new to vB.

Paul M 10-26-2006 07:09 PM

The you have learned something new. :)

Canis Firebrand 10-26-2006 11:15 PM

Exactly, and I thank you. :)

Though, one last question.

What exactly is the difference between the yes and no option for this setting?

Display Unread Posts Option
Set to 'yes' to use last visit date, 'no' to count all posts marked as unread.

I had it set to yes originally. Then changed my board to no. Now I'm getting reports of my members having hundreds of posts as unread. I'm not so sure I should have changed that option.

I've read that description and the one you posted in the original post for this product. I'm still a little uncertain what each choice does and which is better to use.

Paul M 10-27-2006 12:26 AM

Pretty much as it says - one displays the count of posts unread since your last visit date. The other counts all unread posts (as determined by the days setting in the database marking settings).

Speechless 11-03-2006 02:24 PM

very nice, i've installed it and it's working fine, but it appeared on the default vb template only, how can i add it to my customized template navbar ?

Tulsa 11-08-2006 09:34 AM

It would be really slick if you'd toss in an option for ajax refresh on this hack.

apiasto 11-08-2006 04:36 PM

thnx , like it

FireFish 11-08-2006 09:12 PM

Nice Mod; Quick question if anyone could help:

I'm running 3.6.2 & for some reason, it shows up in the Welcome area twice.

Example:
26 Unread Posts since your last visit.

26 Unread Posts since your last visit.

Anything I can do about this?

Paul M 11-08-2006 11:04 PM

Have you edited you navbar ?

FireFish 11-08-2006 11:17 PM

Quote:

Originally Posted by Paul M
Have you edited you navbar ?

I PM'd you

BamaStangGuy 11-09-2006 05:28 PM

I keep getting database errors like this:

Quote:

<!--
Database error in vBulletin 3.6.2:

Invalid SQL:

SELECT COUNT(post.postid) as unread
FROM post as post
INNER JOIN thread as thread ON (thread.threadid = post.threadid)
LEFT JOIN threadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = 1)
INNER JOIN forum AS forum ON (forum.forumid = thread.forumid)
LEFT JOIN forumread AS forumread ON (forumread.forumid = forum.forumid AND forumread.userid = 1)
WHERE thread.forumid IN(1, 2, 3, 28, 23, 4, 5, 6, 7, 8, 27, 14, 16, 17, 18, 19, 20, 21, 22, 9, 10, 11, 12, 13)
AND thread.sticky IN (0,1) AND thread.visible IN (0,1,2)
AND thread.lastpost &gt; IF(threadread.readtime IS NULL, , threadread.readtime)
AND thread.lastpost &gt; IF(forumread.readtime IS NULL, , forumread.readtime)
AND thread.lastpost &gt;
AND post.dateline &gt; IF(threadread.readtime IS NULL, , threadread.readtime)
AND post.dateline &gt; IF(forumread.readtime IS NULL, , forumread.readtime)
AND post.dateline &gt;;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' threadread.readtime)
AND thread.lastpost &gt; IF(forumread.readtime IS NULL, , ' at line 9
Error Number : 1064
Date : Thursday, November 9th 2006 @ 11:31:48 AM
Script : vBulletin Template Conditionals List - vBulletin Zone
Referrer : (vBSEO Article) List of Commonly Used Template Conditionals - vBulletin-Fans.com
IP Address : 24.214.88.63
Username : Brent
Classname : vB_Database
-->
I was looking through my plugins to see which deal with the threadread.readtime and this one had it.

Any suggestions on what is causing the database error?

The error happens when clicking on a link from another site to a thread on my site.

It doesn't happen everytime

ICY ICE 11-11-2006 03:58 AM

Paul got it installed in 3.6.2 and works perfectly.

Thanks!

Paul M 11-11-2006 09:59 AM

Quote:

Originally Posted by BamaStangGuy
I keep getting database errors like this:



I was looking through my plugins to see which deal with the threadread.readtime and this one had it.

Any suggestions on what is causing the database error?

The error happens when clicking on a link from another site to a thread on my site.

It doesn't happen everytime

I have no idea what that SQL query is, it's certainly nothing to do with this mod.

BamaStangGuy 11-12-2006 07:45 PM

Quote:

Originally Posted by Paul M (Post 1114686)
I have no idea what that SQL query is, it's certainly nothing to do with this mod.

Thanks then :)

Paul M 11-12-2006 08:39 PM

Actually, that reply was not intended for this thread, it was supposed to be a reply in another thread, the query you posted is from this mod. The query is missing the cutoff time.

sunnycher 11-14-2006 01:23 AM

Thank you!!!

BamaStangGuy 11-17-2006 07:10 PM

Quote:

Originally Posted by Paul M (Post 1115695)
Actually, that reply was not intended for this thread, it was supposed to be a reply in another thread, the query you posted is from this mod. The query is missing the cutoff time.

Oh well damn lol. How do I fix this?

Ntfu2 11-17-2006 07:29 PM

I've got a problem with the link.

its being added like this
Code:

http://www.alloutclicks.com/"search.php?do=getnew\"
Any way to change that?

redlabour 11-19-2006 06:37 AM

After updating this Product my navbar is not longer appearing. Any Fix ?

Old Product still works fine after deinstalling the new one and importing the old one. :confused:

Paul M 11-19-2006 09:50 AM

Have you customised the phrases ?

The only difference between the two is that the phrases are no longer run via addslashes(), instead the slashes are actually added in the phrase, so if you have customised them you will need to add backslashes infront of any quote marks.

redlabour 11-19-2006 10:33 AM

Quote:

Originally Posted by Paul M (Post 1120663)
Have you customised the phrases ?

The only difference between the two is that the phrases are no longer run via addslashes(), instead the slashes are actually added in the phrase, so if you have customised them you will need to add backslashes infront of any quote marks.

Yes - here is the Bugfix.

Uninstall old Product, delete all not longer needed Phrases via AdminCP. Install again and translate again. Works !

wiredinoc 11-20-2006 03:59 PM

Processor usage through the roof, pegged around 95-100% when I enable the plugin.

Any thoughts?

BamaStangGuy 11-23-2006 03:44 AM

Quote:

Originally Posted by BamaStangGuy (Post 1119530)
Oh well damn lol. How do I fix this?

Is this fixable? It seems to happen to me once a day atleast...


All times are GMT. The time now is 02:10 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.02464 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
  • (3)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
  • (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