PDA

View Full Version : New Reputation Comments (and Posts) Since Your Last Visit.


Paul M
06-26-2005, 10:00 PM
This modification is no longer available or supported.

The 3.5 port of this simple hack;

This displays the number of new posts since your last visit & the number of new reputation comments since you last checked your usercp - both are displayed in the welcome panel - either can be turned off by de-activating the relevant plugin.


History:

v3.01 : Initial vb3.5 release.
v3.02 : Updated install code.
v3.03 : Minor changes, no update necessary.

.Tim
06-27-2005, 12:18 AM
Woohoo!

Paul M
06-27-2005, 12:21 AM
Woohoo!Why thank you. :)

Roxie
06-27-2005, 12:33 AM
This is a great addition!

Gary King
07-10-2005, 02:59 AM
Screenshot is not enlargeable?

Paul M
07-10-2005, 11:37 AM
Screenshot is not enlargeable?Doh ! - Fixed - it's copied from the 3.0.7 thread, but I uploaded the thumbnail instead of the full picture ..... :dunce:

Milesian
07-17-2005, 03:03 PM
Nice hack, I just installed it :)

slank
07-21-2005, 05:32 PM
will give it a go, sounds like a great navbar addition

bing11
08-17-2005, 05:31 AM
can not see it at Navbar

Paul M
08-20-2005, 06:41 PM
can not see it at NavbarHuh ?

wtrk
09-21-2005, 01:37 AM
i cant find that code that needs to be replaces in the navbar template in 3.5 RC3, can you help point me to where to add it so it will work? thanks!

Paul M
09-21-2005, 03:30 AM
Hmm, yes, they have changed $session[sessionurl] to $session[sessionurl_q] in it. Instructions updated.

wtrk
09-27-2005, 10:07 AM
Hmm, yes, they have changed $session[sessionurl] to $session[sessionurl_q] in it. Instructions updated.

i still cant find that code in the navbar.

Paul M
09-27-2005, 09:13 PM
I suggest you PM me a copy of your navbar template then.

AdamN
09-27-2005, 09:33 PM
Thanks :D

csidlernet
10-05-2005, 03:07 AM
/me installs

TygerTyger
10-05-2005, 10:43 AM
3.5 Gold:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'xxxxxxxx_co_uk_-_forum.post' doesn't exist

Hm.....

Paul M
10-05-2005, 05:06 PM
I would guess you use a table prefix, you will need to add that to the table names in the query(s). It's a minor irritation that will cease to be a problem when I convert this to a "product".

TygerTyger
10-05-2005, 05:23 PM
Quite right, should have thought of that. Thank you. This line:

ALTER TABLE user ADD lastrepcheck INT(10) UNSIGNED NOT NULL ;

is pulling an error about syntax, presumably it's an SQL version thing. I'm running 4.0.20. I won't bother you for help again, that's just an FYI for future releases should you need it.

Paul M
10-05-2005, 05:42 PM
ALTER TABLE user ADD lastrepcheck INT(10) UNSIGNED NOT NULL ;I can't see anything wrong with that for any version of mySQL.

dutchbb
10-12-2005, 06:57 PM
Does this hack add an extra query on forumhome or other places?

Paul M
10-12-2005, 07:03 PM
Naturally - it would be impossible otherwise.

rb290
10-13-2005, 04:25 AM
Am kinda a newbie so I dont understand Step 1 in the installation.
Where do you go and what do you do ?
some help please!

Paul M
10-13-2005, 07:46 AM
. o O (I really must upgrade this .....)

My suggestion is to wait a few days until I change this from a plugin to a product, the database steps will then be performed automatically. :)

wacodep
10-15-2005, 07:10 PM
This displays on my forum pages, but not on my vbAdvanced page(s). It runs the same code block in navbar. Ideas?

Paul M
10-17-2005, 03:45 AM
My suggestion is to wait a few days until I change this from a plugin to a product, the database steps will then be performed automatically. :)This has now been converted to a Product.

This displays on my forum pages, but not on my vbAdvanced page(s). It runs the same code block in navbar. Ideas?Sorry, I don't know anything about vbAdvanced.

secret1980
10-17-2005, 08:53 AM
there is some error it gives me db error when I have installed the plugin :(

Paul M
10-17-2005, 11:48 AM
there is some error it gives me db error when I have installed the plugin :(Well some clue as to what might help ......

version2
10-18-2005, 12:25 AM
This has now been converted to a Product.

Sorry, I don't know anything about vbAdvanced.

I installed and performed the required template edit and I don't see anything.

Paul M
10-18-2005, 11:16 AM
Have you edited all your custom navbar templates ? Is your plugin system active ?

Crow
10-19-2005, 01:56 AM
Anyway to get this to show on vBadvanced CMPS? :ermm:

jugo
10-19-2005, 02:08 AM
Roxie is a hottie.

Oh and nice hack paulM...

TygerTyger
10-19-2005, 07:49 AM
Hm. Product installation went fine but the Unread posts total only goes up. It never goes down when you've read any of the new posts. Could this be something to do with the fact that I installed the plugin version, removed it and then installed the product?

Paul M
10-19-2005, 09:48 AM
This hack does not display unread posts, it is a count of new posts, it won't go down when you read them. You are, perhaps, confusing it with my unread posts hack ?

TygerTyger
10-19-2005, 09:56 AM
No, I was just phrasing it badly. I mean that I arrive, view the posts, leave again, come back and it still says the same number of posts are unread. The total goes up with each new post, but neither reading them nor leaving makes the total go down. Just keeps going up.

I've just worked out what it is anyway. If you have 'Remember Me' checked then it doesn't count you as having visited/revisited until you log out and log back in again.

Paul M
10-19-2005, 09:59 AM
I've just worked out what it is anyway. If you have 'Remember Me' checked then it doesn't count you as having visited/revisited until you log out and log back in again.Correct, that's default vb behaviour. You can also clear it by clicking on the "Mark Forums Read" in Quicklinks.

divided_by_fear
11-01-2005, 04:21 PM
Paul M any way to get this to work with vBadvanced CMPS v2.0

Paul M
11-01-2005, 04:40 PM
Paul M any way to get this to work with vBadvanced CMPS v2.0I'm sure someone can. I would try their support forums. I don't use cmps.

dfdems
11-07-2005, 08:26 PM
Is there a way to exclude ceratin forums from showing up in the post count for this?

Paul M
11-07-2005, 09:58 PM
Is there a way to exclude ceratin forums from showing up in the post count for this?Not without re-writing the SQL, why do you want to exclude some forums ?

divided_by_fear
11-07-2005, 10:32 PM
does anyone know how to get this to work with vBadvanced CMPS v2.0

Matt_270581
11-09-2005, 09:45 AM
After installing this on 3.51 I just receive a blank page after uploading the file via product manager. Any ideas?

Matt_270581
11-09-2005, 10:13 AM
The one you had for 3.5 Beta where it was necessary to run the queries on the tables before installing works on another site I have. Just this one doesn't work on 3.51.

Paul M
11-09-2005, 05:15 PM
After installing this on 3.51 I just receive a blank page after uploading the file via product manager. Any ideas?Did you do the template edits ?

sHORTYWZ
11-12-2005, 12:33 AM
This product will not install with 3.51 - I click on upload and get a blank page in the product manager.

Paul M
11-12-2005, 12:09 PM
I think this is a bit of poor feedback from the vb product install system.

This hacks install code adds an index to the post table. If you have a lot of posts, this can take time, during which nothing is displayed. Just leave it to install and it should be okay.

Matt_270581
11-20-2005, 02:56 PM
It fully hoses my server, Memory & CPU when trying to import this, even though it just shows a blank page it's obviously trying to do something.

Threads: 37,696, Posts: 525,031
PHP 5
MYSQL 5

Edit: Hoses the server when running just SQL statement too. Guess there is too many posts to alter the table.

Paul M
11-20-2005, 03:42 PM
It fully hoses my server, Memory & CPU when trying to import this, even though it just shows a blank page it's obviously trying to do something.

Threads: 37,696, Posts: 525,031
PHP 5
MYSQL 5This hacks install code adds an index to the post table. If you have a lot of posts, this can take time, during which nothing is displayed.Check your mysql process list while it's importing, what do they show ?.

Matt_270581
11-20-2005, 03:49 PM
Just blows out the Memory of MYSQL and you know what this can do when memory is up near maximum level.

Tried running ALTER TABLE post ADD INDEX (dateline) from MYSQL Control Centre. Same thing.

Worked fine on my board with 9000 posts.

Matt_270581
11-20-2005, 03:55 PM
I should really take my forum offline and try lol. Will take it offline later and try it and see what happens.

One question though, if I run the queries:

1. ALTER TABLE post ADD INDEX (dateline) ; - This will speed up the new posts query.

2. ALTER TABLE user ADD lastrepcheck INT(10) UNSIGNED NOT NULL ; - Required for new reputation check.

3. UPDATE user SET lastrepcheck = lastvisit ; - Initilise the new field above.

Then I import the new XML file will it try to rebuild the index? or will it just check and skip that part?

Paul M
11-20-2005, 04:24 PM
Then I import the new XML file will it try to rebuild the index? or will it just check and skip that part?It will try again. It actually deletes any existing index and re-adds a new one.

To prevent it you will need to edit the xml and remove these lines ;


$db->query_write("ALTER TABLE " . TABLE_PREFIX . "post DROP INDEX dateline");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "post ADD INDEX dateline (dateline)");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD lastrepcheck INT(10) UNSIGNED NOT NULL");
$db->query_write("UPDATE " . TABLE_PREFIX . "user SET lastrepcheck = lastvisit");

Matt_270581
11-22-2005, 04:33 AM
Cheers Paul. Will give it a go and let you know how I go. Keep up the good work :)

Matt_270581
11-22-2005, 05:57 AM
Worked well when forum was offline. 425 secs to Alter the posts table :)

Imported the new Modified XML file and it worked like a dream.

Cheers.

Mark.B
12-15-2005, 03:54 PM
Only thing I've found with this on my test board is that if doing a getnew or getdaily search, if the search returns no results, the hack doesn't appear. It's fine if there ARE results though.

Paul M
12-15-2005, 04:25 PM
Yes - I blame vB for that ;) - the variables values are not carried over into the error page, I expect a global statement in the right place would cure it.

Mark.B
12-15-2005, 04:35 PM
Yes - I blame vB for that ;) - the variables values are not carried over into the error page, I expect a global statement in the right place would cure it.
Thanks Paul.

You mentioned in the original post being able to switch off the new posts bit and just have the rep...I'd quite like to do this as, certainly on my main board (which is still on 3.0.10 while I work on a test board for upgrading), I have always found the new posts thing a bit too intensive on the server.

However, I'm still new to the whole plugin thing, where do I turn that bit off, or would I need to edit the code out of the XML file and re-import it?

Paul M
12-15-2005, 04:50 PM
In the plugin manager, just untick the "active" box for the relevant plugin and click save.

ryuji
01-12-2006, 06:02 AM
great mod, makes it much easier to keep tabs on what has happened without looking at the dates/times of all the threads(and still miss some)

apollooooooo
01-12-2006, 12:05 PM
thanks just what i have been looking for cheers

jilly
01-13-2006, 03:38 AM
I would like to see a modification where that message shows up only if they HAVE rec;'d new reputation - if nothing new has been given, then no message would appear.

Paul M
01-13-2006, 04:02 AM
I would like to see a modification where that message shows up only if they HAVE rec;'d new reputation - if nothing new has been given, then no message would appear.
Just set the phrase "no_new_reputation" to nothing.

jilly
01-13-2006, 02:09 PM
would it be possible to display only if there are new comments? So that people don't see the 'no new reputation comments'. It will only show up if there ARE new ones..

Paul M
01-13-2006, 03:48 PM
would it be possible to display only if there are new comments? So that people don't see the 'no new reputation comments'. It will only show up if there ARE new ones..Erm, I just told you how to do that in the post above. :)

jilly
01-14-2006, 03:37 AM
LOL - old lady brain - i forgot that I already asked..lol

HO3R
01-15-2006, 01:47 PM
Nice little addon !!

Installing this
Tnx a lot bro

Greetz

hendri
01-18-2006, 11:38 AM
awesome ! installed !

lazytown
01-18-2006, 11:59 PM
Just set the phrase "no_new_reputation" to nothing.

You can't set a phrase replacement to "nothing." It has to at least have one character in it (space is ok I guess). however, it still ads in the newline <br> which causes the box to be one line larger than necessary.

-vissa

lazytown
01-19-2006, 12:07 AM
If you have enabled true post read detection (not on by default) where VB remembers all new posts you've read and ones you haven't, then will the "new rep" count still be accurate since the last visit?

-vissa

Paul M
01-19-2006, 12:11 AM
The new reputation comments has nothing to do with read posts (or actually, with your last visit). It's new reputation comments since you last viewed them in the usercp - and new posts since your last visit.

MB Dreamz
01-19-2006, 01:47 AM
Any way to make it work with vba cmps?

Paul M
01-19-2006, 02:25 AM
Any way to make it work with vba cmps?What do you mean exactly ?

MB Dreamz
01-19-2006, 02:39 AM
Everything works perfectly in the forums. But in my homepage (CMPS), the new posts count dissappears.

Paul M
01-19-2006, 02:48 AM
Try adding $pcount and $rcount to the CMPS global variables list (in it's settings).

MB Dreamz
01-19-2006, 02:53 AM
I just tried that, with and without "$", but neither worked. :(

Paul M
01-19-2006, 02:59 AM
Dunno atm then.

One forum I'm an Admin on has recently install CMPS so if I get time I'll have a look.

MB Dreamz
01-19-2006, 03:21 AM
Found this thread:
http://www.vbadvanced.com/forum/showthread.php?t=12593

Now everything works! I'm not sure why it didn't work for me the 1st time.

Paul M
01-19-2006, 04:58 AM
Ah good, I just came back to post that I tried it and it worked, but I see you're okay now. :)

lazytown
01-19-2006, 05:22 AM
The new reputation comments has nothing to do with read posts (or actually, with your last visit). It's new reputation comments since you last viewed them in the usercp - and new posts since your last visit.

Ah ok thanks for clearing that up. Since I'm only using the rep part, it would appear to work perfectly.

Thanks -vissa

Paul M
01-19-2006, 07:11 AM
Thanks -vissaNP - Feel free to click install :)

lazytown
01-20-2006, 02:10 AM
Clicked! (this is the only mod of about 20 that I forgot to click!)

-vissa

NP - Feel free to click install :)

bashy
01-21-2006, 06:09 PM
Hi

I have to click the rep link twicce to mark as read/viewed, any ideas please?

Paul M
01-21-2006, 06:25 PM
When you click on the link (and get taken to the usercp) the page is built before the database is updated, so it won't appear updated until you refresh the page, or go to another page.

S@NL - BlackBik
02-01-2006, 08:47 PM
Installed flawless, nice feature :)

May uninstall when the welcome panel also displays this information.
And always nice to see coders take the time to phrase their hacks :)

vbreal
02-02-2006, 02:40 AM
thanks alot

jilly
02-06-2006, 12:45 AM
Mine doesn't seem to act right - I have it set to use cookie/inactivity based marking.
Cookie timeout is one hour.

I didnt log in for about 8 hours - it told me I had 74 new posts since my last visit - however when I click 'view new posts', 569 posts come up in my list. Why the discrepancy?

Paul M
02-06-2006, 01:08 AM
I would guess because the vb search [getnew] did something very odd. How many of those 569 were actually posted since your last visit date/time - I strongly suspect the answer is 74, and the rest were older.

G_Man
03-04-2006, 04:43 PM
Way beyond Sweet!!! Thanks, mate.

poprulz
03-05-2006, 11:40 AM
great plugin. always wanted the members to give some attention to reputations.

A small addition for vBa users. vBa already shows up the no. of new posts since ur last visit in portal welcome block. Add the new reputation comments along like in the attached pic.

step 1:
In ur vBadvanced templates. Find template adv_portal_welcomeblock.

Find
<a href="$vboptions[bburl]/search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts]</a>: $newposts<br />

Add Below
<br /><if condition="$rcount != ''">$rcount<br /></if>

[there are 2 instances of new posts in the template, add the code below for each of the instances, as one is for mods and the other for normal users]

Step 2:
Do as Paul mentioned in the text file, upload the product.

step 3:
The hack is capable of showing both new posts n reps seperately, So its better to delete the plugin new post(under hook location global-start) and just make sure New Reputation Comments plugin is active. Disabling the pluign still makes vbulletin to process it and vBa users just need the reputation plugin.

PS:In the product file the link for the reputation is given as "usercp.php". So for users whose vBa is in root/ and forums in root/forums/ edit the product(xml) file and change "usercp.php" to "forums/usercp.php"

I guess Paul doesn't have any problem with this small change.

Paul M
03-05-2006, 11:55 AM
I guess Paul doesn't have any problem with this small change.Nope. :up:

oz_moses
03-06-2006, 09:44 PM
PaulM is the King. Another simple and effective mod. Thanks Tiger ;)

senkin
03-07-2006, 04:21 AM
Needless to say I installed and am using this fine peice of work. Very nice paul.

oz_moses
03-08-2006, 01:55 AM
anyone using vbAdvanced CMPS and noticing the navbar changes are not shown on the CMPS page should check out this link:

http://www.vbadvanced.com/forum/showthread.php?t=12593&highlight=%24pcount

Nathan2006
03-08-2006, 02:16 PM
Thank you this is really good because most people never check their rep in the user cp :)

Install*

Evil X
03-17-2006, 02:08 AM
it doesnt show the new rep... only the new post is showing ???

Paul M
03-17-2006, 04:14 AM
Check you did the template edit correctly.

serhat_kk
03-19-2006, 07:38 PM
It works but when i search something and when i get "Sorry - no matches. Please try some different terms." navbar shows like an old.(without New posts and rep comments" hack). how do i fix it ?

Paul M
03-19-2006, 07:51 PM
As I recall, you can't without editing files - it's an oddity in the error message system.

serhat_kk
03-19-2006, 08:12 PM
All page's navbar same but if i get error at searching navbar looks like default.
How & where do i fix?

Paul M
03-19-2006, 10:14 PM
I just answered you, read the posts please.

serhat_kk
03-21-2006, 01:30 PM
I just answered you, read the posts please.
Thanks i've read but where can i fix this? Which template ?

silly rabbit
03-21-2006, 03:55 PM
Used this for a while now - WORKS GREAT and very POPULAR - just clicked *neglected* INSTALL!!!!
Thanks i've read but where can i fix this? Which template ?
serhat_kk, apparently it's in the 'oddity in the error message' template???

Paul M
03-21-2006, 04:13 PM
No it's an oddity in the code.

you can't without editing files - it's an oddity in the error message system.

G_Man
03-23-2006, 04:00 AM
anyone using vbAdvanced CMPS and noticing the navbar changes are not shown on the CMPS page should check out this link:

http://www.vbadvanced.com/forum/showthread.php?t=12593&highlight=%24pcount


damn that was EASY!!!:banana:

Thanks for the tip!!!

ShadowOne
04-11-2006, 06:14 PM
Paul M, Always A Pleasure To See A New Hack Of Yours Come Out... i Always Expect The Best...This The First Time Ive Seen This One, But Nice Hack...

ShadowOne
04-11-2006, 06:15 PM
i had to look in forumhome because i have a customized skin..

ultrAtolga
04-12-2006, 01:04 PM
this is great thank you very much i was looking for this...

ultrAtolga
04-12-2006, 01:28 PM
Parse error: parse error, unexpected '<' in /home/forumlar/public_html/forum/index.php(63) : eval()'d code on line 1

i am given this error what do i do...

i think the xml file may have an error init...can someone help please

Paul M
04-12-2006, 07:27 PM
I've downloaded the file, unzipped it and installed it okay - so you must have a corrupted copy or something, i suggest you download it again and re-unzip it.

ShadowOne
04-13-2006, 03:54 PM
i thought i posted this?....i said this works fine for me...

scabbed
05-08-2006, 03:06 PM
hello, i have a question, maybe someone can help me. I would like to know how to do like this hack

but instead of showing new post and new reputation comment, showing new journals and new journals entry

i have nothing which announce new entry, so people must look journal everyday so see if there is an update and its a bit boring

thx

here is the journal topic : https://vborg.vbsupport.ru/showthread.php?t=96462

i ask the question in two topic, because i dont know where to ask that question

Evil X
05-10-2006, 10:18 PM
I can only get the new post number to show... the new rep comments isnt showing...

Paul M
05-10-2006, 10:24 PM
It won't show for guests, or if you have show reputation turned off in your usercp. Other than that, a mistake in installing it is the most likely reason.

Evil X
05-10-2006, 10:26 PM
nope... all installed correctly... and rep is turned on

Paul M
05-10-2006, 10:36 PM
Then there is a problem with your forum.

Being a guest or rep turned off are the only things that can legitimately stop it being displayed.

Smiry Kin's
05-11-2006, 05:40 AM
Installs - Works perfect!

Smiry Kin's
05-11-2006, 05:43 AM
nope... all installed correctly... and rep is turned on
Check its turned on in your profile aswell ( had to enable that for it to work )

Paul M
05-11-2006, 08:29 AM
Check its turned on in your profile aswell ( had to enable that for it to work )As I mentioned in my post. :)

It won't show for guests, or if you have show reputation turned off in your usercp. Other than that, a mistake in installing it is the most likely reason.

Smiry Kin's
05-11-2006, 06:49 PM
As I mentioned in my post. :)
oh didnt read that! lol sorry :(

looks nice tho

Evil X
05-12-2006, 12:45 AM
As I mentioned in my post. :)

WELL PAUL... DO YOU HAVE ANY IDEAS ON HOW I CAN GET IT TO WORK :banana:

Paul M
05-12-2006, 01:17 AM
How about you ;

1. Fix your permanant caps.
2. Click install.

Then 3. You PM me (admin) access details to your forum.

Without those three steps, no, there is nothing I can do.

Paul M
05-12-2006, 05:59 PM
Okay, it seems you have not understood what has been said.

I have your PM, and when I login, I see it working fine. When I check your profile, I see you have Display Reputation turned off. You must turn this option on in your usercp.

(note, your usergroup must also have "Can Hide Reputation from Others" enabled to actually see the option in your usercp).

Evil X
05-12-2006, 07:13 PM
oh ight thanks man... for all of your help... I turned my view on

mano1.com
05-13-2006, 03:32 AM
installed... thanks!

Amaranth
05-13-2006, 10:29 AM
Flawless victory! *INSTALL*
One of those things that just makes life a little easier. :)

mano1.com
05-15-2006, 03:16 AM
Ahh too bad...

Sorry but I had MAJOR performance problems due to this plug-in...

Maybe it is because of the "new posts" query?

Not sure... Uninstalling it made my forums much faster again.

MThornback
05-19-2006, 11:29 PM
I can't get this to show either posts or rep...I tried disabling other hacks and even renaming the pcount variable incase it was a variable conflict....no change....as vauge a question as this is....can you think of anything that would cause this? or do you know of any hacks that specifically won't work with it off the top of your head?

Gehanna
05-19-2006, 11:51 PM
Ohh I love this!! Thank You very much. :D

Sincerely,
Gehanna

Paul M
05-20-2006, 01:19 AM
I can't get this to show either posts or rep...I tried disabling other hacks and even renaming the pcount variable incase it was a variable conflict....no change....as vauge a question as this is....can you think of anything that would cause this? or do you know of any hacks that specifically won't work with it off the top of your head?Are you using vba ? - it doesn't work on the homepage of that without a tweak to vba's settings. Other than that no.

(you did do the template edit ? in all styles ?)

MThornback
05-20-2006, 02:10 AM
I am using VBA, I made the changes....(all I needed to do was add the variables to the global in the settings right?) and all the changes are made in the template...I have 1 main style with 4 child styles so the change is automatic to the child styles.

It used to work....which is why i'm at a loss....it just decided to stop working....like a month or more ago....and I couldn't figure it out on my own.

Paul M
05-20-2006, 02:26 AM
Well things never just stop working without a reason, but there is nothing I can do without access to your plugins, feel free to PM me admin access if you want me to have a look.

MThornback
05-20-2006, 02:53 AM
You have mail Paul :) good luck...you'll have better (and faster) luck than I did i'm sure :p

Paul M
05-20-2006, 07:30 AM
The following hack was the cause ;

Multiple IPs Detection

This only has one plugin, linked to the global_start hook - that plugin is faulty, causing other hacks using that hook to fail. I have disabled it.

MThornback
05-20-2006, 12:51 PM
Thanks Paul I appreciate it :)

MThornback
05-26-2006, 02:50 PM
Paul, has anyone reported the post count not decreasing after viewing? Cause its started to happen to me today...It increases for every post (my own included) and doesn't go down for anything except marking all forums read....could another plugin conflict be doing this? or is it an all new headache for me?

Thanks Paul for all your help :)

Paul M
05-26-2006, 07:15 PM
It's never decreased, it's not designed to - it's the number of new posts since your last visit, not the number of unread posts. :)

MThornback
05-26-2006, 11:02 PM
I realize that :p but when I view a post...and return to the forumhome the count doesn't decrese, yet I click the link again and I get the "no new posts" with the link to posts made within last 24 hrs.

Paul M
05-26-2006, 11:46 PM
The count is the number of new posts since your last visit, and links the the vbulletin GetNew search. In vb3.5, if you have database thread marking enabled, then GetNew only shows unread posts, not all new posts. It's all working correctly (tho not maybe as you would expect). This change in vb is one of the reasons I wrote this (https://vborg.vbsupport.ru/showthread.php?t=96522).

FLMom
05-27-2006, 01:19 AM
Hi Paul! First off, thank you so much for this! It's awesome :banana:

I have a question though, I need to turn off the new posts part and only want to use the rep comments. In the instructions, it says that they are seperate in the plug-in area, but on mine they are together. How would I go about getting rid of the new posts?

Thanks for your help! :)

FLMom
05-27-2006, 01:25 AM
Oops! Never mind Paul, I figured it out, I was looking in the wrong area :surprised:

It looks great! Thanks again for all of your hard work :banana:

Paul M
05-27-2006, 01:26 AM
I think you are looking at the product list, not the plugin list.

Edit: Oh, which I see you just figured out. :)

Feel free to click on install(ed) ;)

FLMom
05-27-2006, 01:27 AM
Yes, that was my mistake...still learning all this hehe

Thanks :D

wii
06-14-2006, 08:30 PM
How do I add this to the navigation right next to the "New Posts" link - like this:

New Posts (32)

I guess it should be around here in the header:

<a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a>

Neo_obs
06-15-2006, 07:04 AM
just checking does this use any global phrases?

for some reason it doesnt show up in the ibporarcade.

Also can you list the ones it uses. i want to inform another user who is having problems

Paul M
06-15-2006, 10:05 AM
$pcount & $rcount probably need to be declared as global in the arcade script (arcade.php ?).

wii
06-15-2006, 08:42 PM
Paul, how to I add just the counter next to New Posts ?

Paul M
06-15-2006, 08:54 PM
Paul, how to I add just the counter next to New Posts ?I'm not sure I understand the question.

wii
06-15-2006, 09:22 PM
Well, it seems the hack adds an entire line and not just the count.

Can I add just a counter up in the main navigation of the forums? In the "New Posts" between the "Calendar" and the "Search".

Thanks

Paul M
06-15-2006, 09:28 PM
Not without changes to the plugin, and your navbar template.

ubblite
06-16-2006, 08:09 AM
I figured it was worth a shot asking this question here, possibly someone might know:

Is there a way to incorporate this hack into ibproarcade? For some reason, ibproarcade doesn't grab this hacks setting in the navbar, so it's completely missing.

Thanks

Paul M
06-16-2006, 08:12 AM
See post #144

ubblite
06-16-2006, 08:39 AM
$pcount & $rcount probably need to be declared as global in the arcade script (arcade.php ?).
Thanks for the response, Paul. Now I just have to figure out how to do this. ;)

Paul M
06-16-2006, 08:50 AM
There is a support forum for it in the premuim section, that's probably the best place to ask. I don't run that arcade so I can't really say. :)

wii
06-17-2006, 07:04 AM
Yeah, I know.

so where do I change the code in the plugin and navbar to show only a counter next to New Posts?

Thanks a lot

Not without changes to the plugin, and your navbar template.

AHMUDEM
06-19-2006, 11:18 PM
3.6.0 beta 2 good working :)

Gudrune
06-20-2006, 06:17 PM
CPMS problem.

ON the link for new posts under CPMS it doesnt have correct link.

CPMS home page looks like this

http://www.mysite.com/search.php?do=getnew

Under my forums its correct

http://www.mysite.com/forums/search.php?do=getnew

So if people click on new posts on welcome bar from CPMS main page get a 404 error.

Paul M
06-20-2006, 06:24 PM
Sorry, I don't support CMPS, I would suggest you ask in thier forums.

Mark.B
06-20-2006, 06:53 PM
Thanks for the response, Paul. Now I just have to figure out how to do this. ;)
In /arcade/functions/functions.php.

Find:
function do_output($output_array)

In the list of functions that follows:
global $header, $vbphrase, $vboptions,

Almost at the end of the long line, immediately before the semicolon (;) add:
, $rcount, $pcount

That should work.

Paul M
06-20-2006, 10:45 PM
Thanks Mark.

ubblite
06-21-2006, 12:32 AM
In /arcade/functions/functions.php.

Find:
function do_output($output_array)

In the list of functions that follows:
global $header, $vbphrase, $vboptions,

Almost at the end of the long line, immediately before the semicolon (;) add:
, $rcount, $pcount

That should work.
Thank you so much Mark - that worked perfectly.

Mark.B
06-21-2006, 06:35 AM
CPMS problem.

ON the link for new posts under CPMS it doesnt have correct link.


CPMS home page looks like this

http://www.mysite.com/search.php?do=getnew

Under my forums its correct

http://www.mysite.com/forums/search.php?do=getnew


So if people click on new posts on welcome bar from CPMS main page get a 404 error.
Hmmm. I run vBAdvanced and it worked ok on there so this has me a bit baffled.

A rather dirty workaround might be to edit the plugin code. Find this line:
$pcount = "<a href='search.php?do=getnew'><b>" . $pcount . "</b></a> ".$vbphrase['since_last_visit'];
}
and actually hard code the full URL in like this:
$pcount = "<a href='http://www.allbuffs.com/forums/search.php?do=getnew'><b>" . $pcount . "</b></a> ".$vbphrase['since_last_visit'];
}
I don't know if that will work as I haven't tried it. Make a text copy of the original plugin code first so you can easily restore it without reinstalling.

I am sure there is a cleaner fix than this though. I think yours fails because your portal is actually at your root domain whereas mine simply redirects from the root domain to /forum/cmps_index.php.

Mark.B
06-21-2006, 06:39 AM
UPDATE: Or perhaps this? Should make it start from the root domain:
$pcount = "<a href='../forums/search.php?do=getnew'><b>" . $pcount . "</b></a> ".$vbphrase['since_last_visit'];
}

ubblite
07-20-2006, 03:12 AM
When you click on 'New Posts' and the forum has no new posts , this hack does not show up for me.
It does work if my forum contains new posts.
When this hack does not show up, here is a link example:yoursite.com/search.php?do=getnew

Navbar is fine but again, this hack 'New Reputation Comments (and Posts) Since Your Last Visit' does not show up when no new posts are detected.

Perhaps this problem is similar where this hack wouldn't show up with ibProArcade - Mark.B provided a solution for that in this thread.

Edit: I found that Mark discovered this same issue in post #54, and Paul responded in #55... just wondering if there might be a solution for this since it's been a while.

Thanks

Paul M
07-20-2006, 08:51 AM
Edit: I found that Mark discovered this same issue in post #54, and Paul responded in #55... just wondering if there might be a solution for this since it's been a while.

ThanksNope, that has never been fixed, and won't be in this version. If I upgrade/port this to 3.6 it will get fixed then.

The-Ensemble
07-27-2006, 01:40 AM
Ok how would i edit the post count thing?
I can't find it in phrase manager.
i want to change it so it says
View New Posts ( _ )
- = number

Paul M
07-28-2006, 02:36 PM
You would have to edit several lines in the plugin code itself.

Jack Black
08-06-2006, 12:46 PM
Has this mod been done for 3.6 yet?

Paul M
08-06-2006, 03:02 PM
No, It's not one I actually use myself anymore so I haven't got round to updating it. I expect I will though.

aky
08-16-2006, 01:56 AM
when i make a post to a new thread, how do i get that thread to stay on the 'new posts', and not disappear from the list? maybe to have it there, but not bolded?

Paul M
08-16-2006, 03:45 AM
Please post general vb questions in the appropiate forum, not a modifications support thread. :)

Chicago_VLNU_4s
09-09-2006, 06:11 AM
i've had this for some time, how come i and maybe a few other members can see the rep count sence we last visited, but other members can't see?

tazB.ca
09-10-2006, 02:27 AM
No, It's not one I actually use myself anymore so I haven't got round to updating it. I expect I will though.

madd respect if you update it for 3.6 :knockedout:

Paul M
09-10-2006, 12:29 PM
madd respect if you update it for 3.6 :knockedout:It was done about 4 weeks ago.

https://vborg.vbsupport.ru/showthread.php?t=123931