PDA

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


Paul M
27 Jun 2005, 01:08
This modification is no longer supported.
It will remain available for download and use, but the thread is no longer monitored.

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
27 Jun 2005, 01:18
Woohoo!

Paul M
27 Jun 2005, 01:21
Woohoo!Why thank you. :)

Roxie
27 Jun 2005, 01:33
This is a great addition!

Gary King
10 Jul 2005, 03:59
Screenshot is not enlargeable?

Paul M
10 Jul 2005, 12:37
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
17 Jul 2005, 16:03
Nice hack, I just installed it :)

slank
21 Jul 2005, 18:32
will give it a go, sounds like a great navbar addition

bing11
17 Aug 2005, 06:31
can not see it at Navbar

Paul M
20 Aug 2005, 19:41
can not see it at NavbarHuh ?

wtrk
21 Sep 2005, 02:37
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
21 Sep 2005, 04:30
Hmm, yes, they have changed $session[sessionurl] to $session[sessionurl_q] in it. Instructions updated.

wtrk
27 Sep 2005, 11:07
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
27 Sep 2005, 22:13
I suggest you PM me a copy of your navbar template then.

AdamN
27 Sep 2005, 22:33
Thanks :D

csidlernet
05 Oct 2005, 04:07
/me installs

TygerTyger
05 Oct 2005, 11:43
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
05 Oct 2005, 18:06
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
05 Oct 2005, 18:23
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
05 Oct 2005, 18:42
ALTER TABLE user ADD lastrepcheck INT(10) UNSIGNED NOT NULL ;I can't see anything wrong with that for any version of mySQL.

dutchbb
12 Oct 2005, 19:57
Does this hack add an extra query on forumhome or other places?

Paul M
12 Oct 2005, 20:03
Naturally - it would be impossible otherwise.

rb290
13 Oct 2005, 05:25
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
13 Oct 2005, 08:46
. 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
15 Oct 2005, 20:10
This displays on my forum pages, but not on my vbAdvanced page(s). It runs the same code block in navbar. Ideas?

Paul M
17 Oct 2005, 04:45
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
17 Oct 2005, 09:53
there is some error it gives me db error when I have installed the plugin :(

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

version2
18 Oct 2005, 01:25
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
18 Oct 2005, 12:16
Have you edited all your custom navbar templates ? Is your plugin system active ?

Crow
19 Oct 2005, 02:56
Anyway to get this to show on vBadvanced CMPS? :ermm:

jugo
19 Oct 2005, 03:08
Roxie is a hottie.

Oh and nice hack paulM...

TygerTyger
19 Oct 2005, 08:49
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
19 Oct 2005, 10:48
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
19 Oct 2005, 10:56
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
19 Oct 2005, 10:59
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
01 Nov 2005, 17:21
Paul M any way to get this to work with vBadvanced CMPS v2.0

Paul M
01 Nov 2005, 17:40
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
07 Nov 2005, 21:26
Is there a way to exclude ceratin forums from showing up in the post count for this?

Paul M
07 Nov 2005, 22:58
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
07 Nov 2005, 23:32
does anyone know how to get this to work with vBadvanced CMPS v2.0

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

Matt_270581
09 Nov 2005, 11:13
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
09 Nov 2005, 18:15
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
12 Nov 2005, 01:33
This product will not install with 3.51 - I click on upload and get a blank page in the product manager.

Paul M
12 Nov 2005, 13:09
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
20 Nov 2005, 15:56
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
20 Nov 2005, 16:42
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
20 Nov 2005, 16:49
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
20 Nov 2005, 16:55
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
20 Nov 2005, 17:24
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 ;



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

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

Matt_270581
22 Nov 2005, 06:57
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
15 Dec 2005, 16:54
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
15 Dec 2005, 17:25
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
15 Dec 2005, 17:35
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
15 Dec 2005, 17:50
In the plugin manager, just untick the "active" box for the relevant plugin and click save.

ryuji
12 Jan 2006, 07:02
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
12 Jan 2006, 13:05
thanks just what i have been looking for cheers

jilly
13 Jan 2006, 04:38
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
13 Jan 2006, 05:02
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
13 Jan 2006, 15:09
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
13 Jan 2006, 16:48
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
14 Jan 2006, 04:37
LOL - old lady brain - i forgot that I already asked..lol

HO3R
15 Jan 2006, 14:47
Nice little addon !!

Installing this
Tnx a lot bro

Greetz

hendri
18 Jan 2006, 12:38
awesome ! installed !

vissa
19 Jan 2006, 00:59
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

vissa
19 Jan 2006, 01:07
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
19 Jan 2006, 01:11
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
19 Jan 2006, 02:47
Any way to make it work with vba cmps?

Paul M
19 Jan 2006, 03:25
Any way to make it work with vba cmps?What do you mean exactly ?

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

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

MB Dreamz
19 Jan 2006, 03:53
I just tried that, with and without "$", but neither worked. :(

Paul M
19 Jan 2006, 03:59
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
19 Jan 2006, 04:21
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
19 Jan 2006, 05:58
Ah good, I just came back to post that I tried it and it worked, but I see you're okay now. :)

vissa
19 Jan 2006, 06:22
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
19 Jan 2006, 08:11
Thanks -vissaNP - Feel free to click install :)

vissa
20 Jan 2006, 03:10
Clicked! (this is the only mod of about 20 that I forgot to click!)

-vissa

NP - Feel free to click install :)

bashy
21 Jan 2006, 19:09
Hi

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

Paul M
21 Jan 2006, 19:25
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
01 Feb 2006, 21:47
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 Feb 2006, 03:40
thanks alot

jilly
06 Feb 2006, 01:45
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
06 Feb 2006, 02:08
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
04 Mar 2006, 17:43
Way beyond Sweet!!! Thanks, mate.

poprulz
05 Mar 2006, 12:40
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


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Add Below


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



[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
05 Mar 2006, 12:55
I guess Paul doesn't have any problem with this small change.Nope. :up:

oz_moses
06 Mar 2006, 22:44
PaulM is the King. Another simple and effective mod. Thanks Tiger ;)

senkin
07 Mar 2006, 05:21
Needless to say I installed and am using this fine peice of work. Very nice paul.

oz_moses
08 Mar 2006, 02:55
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
08 Mar 2006, 15:16
Thank you this is really good because most people never check their rep in the user cp :)

Install*

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

Paul M
17 Mar 2006, 05:14
Check you did the template edit correctly.

serhat_kk
19 Mar 2006, 20:38
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
19 Mar 2006, 20:51
As I recall, you can't without editing files - it's an oddity in the error message system.

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

Paul M
19 Mar 2006, 23:14
I just answered you, read the posts please.

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

silly rabbit
21 Mar 2006, 16:55
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
21 Mar 2006, 17:13
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
23 Mar 2006, 05:00
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
11 Apr 2006, 19:14
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
11 Apr 2006, 19:15
i had to look in forumhome because i have a customized skin..

ultrAtolga
12 Apr 2006, 14:04
this is great thank you very much i was looking for this...

ultrAtolga
12 Apr 2006, 14:28
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
12 Apr 2006, 20:27
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
13 Apr 2006, 16:54
i thought i posted this?....i said this works fine for me...

scabbed
08 May 2006, 16:06
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 : http://www.vbulletin.org/forum/showthread.php?t=96462

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

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

Paul M
10 May 2006, 23:24
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
10 May 2006, 23:26
nope... all installed correctly... and rep is turned on

Paul M
10 May 2006, 23:36
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
11 May 2006, 06:40
Installs - Works perfect!

Smiry Kin's
11 May 2006, 06:43
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
11 May 2006, 09:29
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
11 May 2006, 19:49
As I mentioned in my post. :)
oh didnt read that! lol sorry :(

looks nice tho

Evil X
12 May 2006, 01:45
As I mentioned in my post. :)

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

Paul M
12 May 2006, 02:17
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
12 May 2006, 18:59
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
12 May 2006, 20:13
oh ight thanks man... for all of your help... I turned my view on

mano1.com
13 May 2006, 04:32
installed... thanks!

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

mano1.com
15 May 2006, 04:16
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
20 May 2006, 00:29
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
20 May 2006, 00:51
Ohh I love this!! Thank You very much. :D

Sincerely,
Gehanna

Paul M
20 May 2006, 02:19
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
20 May 2006, 03:10
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
20 May 2006, 03:26
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
20 May 2006, 03:53
You have mail Paul :) good luck...you'll have better (and faster) luck than I did i'm sure :p

Paul M
20 May 2006, 08:30
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
20 May 2006, 13:51
Thanks Paul I appreciate it :)

MThornback
26 May 2006, 15:50
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
26 May 2006, 20:15
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
27 May 2006, 00:02
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
27 May 2006, 00:46
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 (http://www.vbulletin.org/forum/showthread.php?t=96522).

FLMom
27 May 2006, 02:19
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
27 May 2006, 02:25
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
27 May 2006, 02:26
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
27 May 2006, 02:27
Yes, that was my mistake...still learning all this hehe

Thanks :D

wii
14 Jun 2006, 21:30
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
15 Jun 2006, 08:04
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
15 Jun 2006, 11:05
$pcount & $rcount probably need to be declared as global in the arcade script (arcade.php ?).

wii
15 Jun 2006, 21:42
Paul, how to I add just the counter next to New Posts ?

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

wii
15 Jun 2006, 22:22
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
15 Jun 2006, 22:28
Not without changes to the plugin, and your navbar template.

ubblite
16 Jun 2006, 09:09
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
16 Jun 2006, 09:12
See post #144

ubblite
16 Jun 2006, 09:39
$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
16 Jun 2006, 09:50
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
17 Jun 2006, 08:04
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
20 Jun 2006, 00:18
3.6.0 beta 2 good working :)

Gudrune
20 Jun 2006, 19:17
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
20 Jun 2006, 19:24
Sorry, I don't support CMPS, I would suggest you ask in thier forums.

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

Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



In the list of functions that follows:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



That should work.

Paul M
20 Jun 2006, 23:45
Thanks Mark.

ubblite
21 Jun 2006, 01:32
In /arcade/functions/functions.php.

Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



In the list of functions that follows:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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

Mark.B
21 Jun 2006, 07:35
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:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


and actually hard code the full URL in like this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


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
21 Jun 2006, 07:39
UPDATE: Or perhaps this? Should make it start from the root domain:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

ubblite
20 Jul 2006, 04:12
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
20 Jul 2006, 09:51
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
27 Jul 2006, 02:40
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
28 Jul 2006, 15:36
You would have to edit several lines in the plugin code itself.

Jack Black
06 Aug 2006, 13:46
Has this mod been done for 3.6 yet?

Paul M
06 Aug 2006, 16:02
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
16 Aug 2006, 02:56
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
16 Aug 2006, 04:45
Please post general vb questions in the appropiate forum, not a modifications support thread. :)

Chicago_VLNU_4s
09 Sep 2006, 07:11
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
10 Sep 2006, 03:27
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
10 Sep 2006, 13:29
madd respect if you update it for 3.6 :knockedout:It was done about 4 weeks ago.

http://www.vbulletin.org/forum/showthread.php?t=123931