PDA

View Full Version : Miscellaneous Hacks - Display Unread Posts


Pages : [1] 2

Paul M
12-23-2009, 10:00 PM
As of 23 Nov 2017 this modification has been withdrawn.

This displays the actual number of posts that are still considered unread by you (and will show up in a 'getnew' search).

There is also an option to put back the members last visit date, which was removed in vb4. There is the choice to count the unread posts since your last visit, or all posts considered unread. This setting reflects where the divider in the 'getnew' search display used to be (apparently its no longer displayed).

There is also the option to disable the unread posts display or the new reputation comments display. New Reputation Comments are shown in the Notifications section.

This modifications settings are located in vBulletin Options > Display Unread Posts[/COLOR].

The unread posts functionality requires that database thread marking is active.
Please be aware that installing this will enable that system (with automatic forum marking).
Forum marking choices are located in vBulletin Options > General Settings > Thread/Forum Read Marking Type

To install this hack unzip the xml file and import it using the ACP Product Manager.


History:

v4.0.1 : 24-Dec-2009 : Initial release for vb 4.0.0 Gold.
v4.0.2 : 27-Dec-2009 : Phrase updates.
v4.0.3 : 27-Dec-2009 : Phrase and Install updates only.
v4.0.4 : 17-Feb-2010 : Updated release for vB 4.0.2 onwards (only).
v4.0.5 : 18-Feb-2010: Installer & code updates.
v4.0.6 : 12-Apr-2010: Minor alignment change.
v4.0.7 : 29-May-2010 : Fix error in upgrade section of install code.
v4.0.8 : 06-Nov-2010 : Install code updated.

v4.1.0 : 04-Dec-2010 : Updated for vBulletin 4.1.

v4.1.7.0 : 16-Oct-2011 : Updated for vBulletin 4.1.7.

v4.2.0.0 : 24-May-2012 : Updated for vBulletin 4.2.0.
v4.2.5.0 : 09-Mar-2017 : Updated version for vBulletin 4.2.5 (only).

Charlie98902
12-24-2009, 12:57 PM
Yea Thank You! Installed

Charlie98902
12-24-2009, 01:06 PM
It would be nice if possible to hook the location and add the Unread Posts (xxx) like the template edited to the admin/mod on the header. Another words have it add Unread Post (xxx) next to the notifications instead of using it.

bilgicc
12-24-2009, 01:39 PM
Thank you Paul M. Installed.

Greight
12-24-2009, 01:48 PM
The unread posts portion of this hack requires the database thread marking system.
Seems I do not have this enabled. How can I enable it ?

Paul M
12-24-2009, 01:51 PM
As it says in the main post ;

Forum marking choices are located in vBulletin Options > General Settings > Thread/Forum Read Marking Type

Charlie98902
12-24-2009, 01:55 PM
I have tried all setting and it seems it isn't displaying it. I tried all three options and no notification, but when I click what's new it shows new posts.

Paul M
12-24-2009, 02:20 PM
Did you do the template edit ?

Charlie98902
12-24-2009, 02:22 PM
OOps I had a blonde moment and overlooked it.

Charlie98902
12-24-2009, 02:33 PM
I overlooked how it was going to look as well. Is there a way to add Unread Post (xxx unread posts) as a link sitting next to notifications and remove the rest of the time etc.....

Greight
12-24-2009, 02:38 PM
As it says in the main post ;
Oh sorry. Thanks. Works perfectly

.Tim
12-24-2009, 03:12 PM
So happy to see this. This was the #1 thing my members were asking to bring back. Thanks!

Alecsmith
12-24-2009, 03:34 PM
Thanks Paul Working :)

Charlie98902
12-24-2009, 04:28 PM
This would look cleaner and I wouldn't mind doing a heavier template edit to get this if you can code it.

Welcome, username - Notifications - Unread Posts & Reputation (insert number here) - My Profile - Settings - Log Out - Admin - Mod

Paul M
12-24-2009, 05:53 PM
Actually, I played about with it on that line, and didnt like it.

It would require a (different) template edit, and changed code, so it isnt going to happen atm. I may provide it as an option in the future, but for the moment i have other mods to upgrade.

Trek
12-24-2009, 06:10 PM
Sweet! Thanks Paul!

Charlie98902
12-24-2009, 06:14 PM
Actually, I played about with it on that line, and didnt like it.

It would require a (different) template edit, and changed code, so it isnt going to happen atm. I may provide it as an option in the future, but for the moment i have other mods to upgrade.

Thanks Paul.

valendono
12-25-2009, 12:34 PM
"Database Marking is Disabled" what is that mean ?

Paul M
12-25-2009, 02:41 PM
"Database Marking is Disabled" what is that mean ?

As the main post says ;

The unread posts portion of this hack requires the database thread marking system.

Charlie98902
12-25-2009, 02:46 PM
Logged in this morning and it said no unread post but there was plenty.

Front Range 4x4
12-25-2009, 06:12 PM
Thank you Paul, my users have been asking for this.

Front Range 4x4
12-26-2009, 10:18 PM
Looks like I messed something up.

Edit: Oops, my mistake

Paul M
12-26-2009, 10:22 PM
Possibly, did you upgrade from an older version ?

Front Range 4x4
12-27-2009, 12:47 AM
I modified the header and your template edit. :o

Magz
12-27-2009, 01:38 AM
So glad to see this on vb4

Thank you Paul

BlackJacket
12-27-2009, 02:22 AM
I am running 4.0.0 gold but yet when importing it said i was running 4.0.0 release candidate 2

? Why is that?

Paul M
12-27-2009, 12:17 PM
This mod does not display what vb version you are running, maybe that was a vb message.

Magz
12-27-2009, 12:48 PM
Paul, Im getting a few members reporting this:

Invalid Announcement specified. If you followed a valid link, please notify the administrator

this only occurs when members click on the "unread posts", if they click the actual announcement in the forums, its ok.

user02934123123
12-27-2009, 12:49 PM
Paul: Can you tell me whether it is possible to adjust where contents of this mod display? Ideally I would like to customise the location -- i.e. not have it as a second line of text beneath the header links. Can this be done? Is it simply a variable I can move about in the templates?

Paul M
12-27-2009, 02:02 PM
You could try moving the phrase code, but I cant say what will happen, it designed to be where it is.

Paul M
12-27-2009, 02:04 PM
Invalid Announcement specified. If you followed a valid link, please notify the administrator
Sorry, I have no idea how you could possibly get an announcement error from clicking on Unread Posts.

You have reminded me however that the link does need updating for content type on vB 4, maybe its related to that.

SoFresh
12-27-2009, 10:24 PM
Thank you very much- just what I needed!

flapjack
12-28-2009, 01:17 AM
Thank god for this Paul. I love you. :D

Front Range
12-28-2009, 01:18 AM
I just found that clicking on "You Have No Unread Posts" gives this error:

http://www.domain.com/forums/search.php?do=getnew[ARG:2%20UNDEFINED]

merk_aus
12-28-2009, 01:33 AM
Installed and is working wonderful thanks!

Paul M
12-28-2009, 01:35 PM
I just found that clicking on "You Have No Unread Posts" gives this error:

http://www.domain.com/forums/search.php?do=getnew[ARG:2%20UNDEFINED]

You must have a customised version of the phrase dup_no_posts, you must locate and remove [or edit] that phrase.

Front Range
12-28-2009, 02:10 PM
You must have a customised version of the phrase dup_no_posts, you must locate and remove [or edit] that phrase.

Thank you, that fixed it.

Merjawy
12-28-2009, 04:07 PM
Sounds nice.. especially the last visit portion of it.. Tagged for now

Thanks

M3xital
12-29-2009, 07:28 AM
Installed and working just fine.

Bouncer222
12-29-2009, 05:54 PM
Is it possible to make the "You have X Unread posts" clickable? so that it shows you all your unread posts? If so , how?

Trek
12-29-2009, 06:34 PM
Is it possible to make the "You have X Unread posts" clickable? so that it shows you all your unread posts? If so , how?

Edit the template, create a link and point it to: http://www.yourdomain.com/search.php?do=getnew

Bouncer222
12-29-2009, 07:18 PM
What exactly do I edit and how?

Front Range 4x4
12-29-2009, 07:24 PM
Is it possible to make the "You have X Unread posts" clickable? so that it shows you all your unread posts? If so , how?

Did you try clicking on the x unread posts? It is clickable.

Trek
12-29-2009, 07:36 PM
Did you try clicking on the x unread posts? It is clickable.

There ya go! =) I only have the mod tagged currently as I haven't moved to VB4 yet, good to know.

So umm... do what this guy said. ;) Although if there's no cursor change for the link that could be a problem as most users wouldn't know it's clickable.

Paul M
12-29-2009, 07:38 PM
Is it possible to make the "You have X Unread posts" clickable? so that it shows you all your unread posts? If so , how?
The Unread Posts portion of the text *is* clickable.

EcoCav
01-01-2010, 04:13 AM
Installed!

One of my favorite mods for VB.

arena
01-02-2010, 06:47 PM
<font size="5">you are wonderful Installed.</font>

linuxututs
01-03-2010, 11:00 AM
Hey Paul,

I been playing around with the </li>,<div>,<div class, tags etc... trying to get the text to show ( highlight ) like "Welcome, linuxadmin, Notifications, No new messages, Box's etc..".
And can't get it to work.

Could you provide me with a little hint of how to achieve this.

Thanks a million,

Paul M
01-03-2010, 11:14 AM
Sorry, I dont understand what you're asking.

JFYI, My HTML and CSS knowledge is somewhat limited.

linuxututs
01-03-2010, 11:23 AM
hahaha, Mine to, but I usually figure it out, but not this time.

Naw, you see how the "Welcome,YOUR_Name, Notifications, No new messages" Show when you run your mouse over them. ( At the very top )( Above your code/hack )

I think it'd be cool to have your code do the same, if it's possible that is.

Thanks,

I managed to get the text bigger and looks nice Paul, but still not what I was aiming for.
Maybe Lynn will see this and give me/us a helping hand..:)

Here's the tags used to get different font sizes if anyones intrested.

<font size="+1"><p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p></font>

You can play with the size but I like that one.

Thanks Paul,

EcoCav
01-04-2010, 12:30 AM
Is there a way I can set this up to alert users when they get a comment in their blog posts?

Also, is there a way to change the color of the font "You have 3 unread posts" when there are unread posts, but normal when there are no unread posts?

Charlie98902
01-04-2010, 12:39 AM
I want the blog feature too and not sure but Paul is there a way to add this to the nacbar or make it a tab or overwrite the current tab to put the number of unread post by What's New? Great mod but just kind of ugly where it lays right now.

Paul M
01-04-2010, 11:28 AM
Is there a way I can set this up to alert users when they get a comment in their blog posts?
No, this is designed purely for forum posts. ATM, I have no plans to extend that. TBH, I cant see how it would be displayed either, it would stat to get quite crowded and complicated (Blogs, Social Groups, Articles ......).

Also, is there a way to change the color of the font "You have 3 unread posts" when there are unread posts, but normal when there are no unread posts?
You could edit the phrases to include color html.

FamilyCorner
01-05-2010, 01:16 PM
installed and works great, thanks!

sportsoutlaw
01-05-2010, 08:09 PM
Thanks for getting this released again.

not sure if this was by design, but adding forums to exclude in this product also seems to be excluding them from showing up when you click on the "what's new" button, which I love because now I don't have to figure out how to edit the search templates.

Paul M
01-06-2010, 12:10 AM
That is by design.

MooseMoney
01-07-2010, 05:45 AM
Installed - thank you very much! :)

princeedward
01-07-2010, 06:25 PM
Installed: Thanks Paul...one thing how can i change the time color? :p

Paul M
01-07-2010, 10:26 PM
Edit the phrase to include whatever colouring html you desire.

princeedward
01-08-2010, 04:13 PM
Edit the phrase to include whatever colouring html you desire.got it Paul.... Thanks...;):up:

RedHacker
01-09-2010, 03:51 PM
Install but i have two languages..!!! In English look fine mod but the custom language look You last visited: are the number as black and dont show...

RedHacker
01-09-2010, 05:07 PM
How to change color for the numbers news posts...?

princeedward
01-10-2010, 10:23 AM
Install but i have two languages..!!! In English look fine mod but the custom language look You last visited: are the number as black and dont show...
Search: last_visited_x_at_y

Go > Languages & Phrases > Search in Phrases > last_visited_x_at_y >Phrase Text and Phrase Variable Name> Find > Edit > Copy Deafault Text > Now Edit Or Add The Red One Below...

You Last Visited: {1} at <span class="white" "time">{2}</span>

How to change color for the numbers news posts...?
Search: dup_x_unread_posts

Go > Languages & Phrases > Search in Phrases > dup_x_unread_posts > Phrase Text and Phrase Variable Name> Find > Edit > Copy Deafault Text > Now Edit Or Add The Red One Below...

You Have <font color="White">{1}</font> <a href="{3}search.php?do=getnew&contenttype=vBForum_Post">Unread {2}</a>


:erm: hmmm...Hope it's right or correct and help you...

:p

RedHacker
01-10-2010, 11:31 AM
Thanks princeedward...

But i have one little problem...

You last visited: 01-10-2010 at 14:43 : You Have No Unread Posts

How to remove : after display hour....?

Paul M
01-11-2010, 01:28 AM
You can't, its part of the code.

Robru
01-13-2010, 07:07 AM
Is this work on 4.0.1 ?

Paul M
01-13-2010, 08:55 AM
Unless it says otherwise, yes.

Charlie98902
01-13-2010, 11:39 AM
I have just a small display issue that you or someone else may be able to help fix. The first pic shows the default and the other shows mine and all I want to do is put the text link INBOX to the left again. I am sure this is simple.

gruftiradio
01-13-2010, 01:37 PM
I have installed the Alternative Header V2. Now, the Text of your mod is away. But I still wants to see, the Count of unread Posts. How do I do this?

Paul M
01-13-2010, 01:39 PM
You need to create a seperate thread in the appropriate forum as thats unrelated to this modification. Thanks.

gruftiradio
01-13-2010, 01:46 PM
Sorry, but for me, it is related to this Mod.
I nead the header Code, that it shows again...

VonDoom
01-13-2010, 03:51 PM
I have just a small display issue that you or someone else may be able to help fix. The first pic shows the default and the other shows mine and all I want to do is put the text link INBOX to the left again. I am sure this is simple.

Same alignment issue here and have no other hacks installed in the info box i have not modified it in any way except for this product

BBR-APBT
01-13-2010, 04:15 PM
I do not have the mod installed right now but the alignment is still off I think it may be a 4.0.1 issue.

Charlie98902
01-13-2010, 05:46 PM
Actually Paul is right, I thought this mod did it but it is the 4.0.1 update that did this.

Charlie98902
01-13-2010, 06:57 PM
Here's the fix and sorry Paul not meaning to hijack this thread.

http://www.vbulletin.com/forum/showthread.php?336848-Inbox-text-out-of-line

Credit to Lynne.

VonDoom
01-14-2010, 12:40 AM
I do not have the mod installed right now but the alignment is still off I think it may be a 4.0.1 issue.

Yup my bad, board crashed last night running on Zero sleep. but on my fifth Monster BFC

RedHacker
01-14-2010, 08:16 AM
It is work for 4.0.1 Version....

princeedward
01-15-2010, 02:35 PM
revert header template at first if you modified it before and do a clean install of this one once again...coz' it works perfect to my vb 4.0.1

hope it works also to all of you...

;)

Gene Steinberg
01-15-2010, 03:18 PM
revert header template at first if you modified it before and do a clean install of this one once again...coz' it works perfect to my vb 4.0.1

hope it works also to all of you...

;)

Modified the template.

Installed the product.

Doesn't work.

Sorry.

Charlie98902
01-15-2010, 04:11 PM
Works with 4.0.1, thanks

Paul M
01-15-2010, 06:37 PM
Modified the template.

Installed the product.

Doesn't work.

Sorry.
Well, Im afraid it does, so I can only guess you have either made a mistake, or you are not using the standard style.

Gene Steinberg
01-15-2010, 06:41 PM
Well, Im afraid it does, so I can only guess you have either made a mistake, or you are not using the standard style.

I'm using the standard style with some color and text size changes.

I presume most people make at least some changes to a style, even if they're slight.

Most other mods seem to function.

Peace,
Gene

Paul M
01-15-2010, 07:19 PM
Yes, of course people make changes, thats not what i said. I mean are you using a completely custom style.

The fact remains that if you edit the header template, as instructed, and install the product, it works, as demonstrated by the fact that hundreds of forums are using it. You appear to be the only one having an issue, which rather points to something on your set-up. Sorry, but I cannot remotely guess why as i have nothing to go on.

Gene Steinberg
01-15-2010, 07:22 PM
Yes, of course people make changes, thats not what i said. I mean are you using a completely custom style.

The fact remains that if you edit the header template, as instructed, and install the product, it works, as demonstrated by the fact that hundreds of forums are using it. You appear to be the only one having an issue, which rather points to something on your set-up. Sorry, but I cannot remotely guess why as i have nothing to go on.

Well, I will try it again and see, OK?

Peace,
Gene

Gene Steinberg
01-15-2010, 07:29 PM
Well, I installed it correctly and made sure it was enabled. The template mod was done, but nothing in the source indicated it was doing anything. As I said, most of my changes consist of the following:

1. Font sizes.

2. Background color.

3. Width and depth of textareas, and space ahead of text blocks, such as post replies.

I welcome any insights.

Peace,
Gene

Paul M
01-15-2010, 07:52 PM
I cannot see how any of those things would have any effect. There is little I can tell you or look at without admin access to your forum.

Gene Steinberg
01-15-2010, 08:01 PM
I cannot see how any of those things would have any effect. There is little I can tell you or look at without admin access to your forum.

If you wish to rummage around, I'll set you up on one of the forums. Send me a private message. At worst, you'll solve nothing, and at best you'll find an answer that'll help me and others if you're game.

Peace,
Gene

Paul M
01-15-2010, 09:52 PM
I have installed it on the forum you gave me details for, and its working fine. :)

The only thing i can think of is that when installed, the unread posts part defaulted to off, so you would need to enable it in the options (not the best choice, so I have altered that in the install file). Even so, the last visit date should have displayed (and the new reputation comments if you had any).

Gene Steinberg
01-15-2010, 10:06 PM
Color me confused.

Would you now try these two with the same credentials:

www.technightowl.com/forum

www.theparacast.com/forum

The latter is where I had the issue.

Peace,
Gene

Gene Steinberg
01-15-2010, 10:17 PM
And thank you for the effort. Hopefully you'll find a reason why the last forum, which ought to have pretty much the same header code as the others except for logo links and such, isn't working with your product.

Peace,
Gene

Charlie98902
01-15-2010, 10:21 PM
I assume you took out the comment tags as needed?

Paul M
01-15-2010, 10:25 PM
Installed on both and working perfectly.

Are you sure you did the template edit correctly, because thats all I can think of.

Gene Steinberg
01-15-2010, 10:47 PM
Installed on both and working perfectly.

Are you sure you did the template edit correctly, because thats all I can think of.

No idea, but a hearty thank you for getting it to work.

Peace,
Gene

Dr.osamA
01-16-2010, 02:53 AM
installed

thanxxx
________
Amateur ++++ (http://www.++++tube.com/)

cagbaazee
01-18-2010, 03:54 PM
it donot working with 4.01, i donot find unread here in my forum. please discuss what to do. Thanks

Paul M
01-18-2010, 04:30 PM
it donot working with 4.01
Yes it does, so I would guess you have not installed it correctly - specifically not edited the template correctly.

cagbaazee
01-20-2010, 03:22 AM
Yes it does, so I would guess you have not installed it correctly - specifically not edited the template correctly.

This is the step i use . I download the unread post.xml and then use plugins & products from admincp then selct manage product the and import the mod.

Then go to vbulletin option and click display unread posts and use my setup

That is it


I use vbulletin Skin as default. But it donot show here. maybe there is something missing

Do reply. Thanks

john_robot
01-20-2010, 04:53 AM
I have 4.01 and when it says You Have 2 Unread Posts.. its showing me all new posts instead of two unread posts. any idea why?

Paul M
01-20-2010, 07:10 AM
This is the step i use . I download the unread post.xml and then use plugins & products from admincp then selct manage product the and import the mod.

Then go to vbulletin option and click display unread posts and use my setup

That is it


I use vbulletin Skin as default. But it donot show here. maybe there is something missing

Do reply. Thanks
Read the instructions in the main post. There is a template edit.


I have 4.01 and when it says You Have 2 Unread Posts.. its showing me all new posts instead of two unread posts. any idea why?
You have it set to count the unread posts since your last visit, not all unread posts.

Adam H
01-20-2010, 09:09 AM
Im getting this at the top of my forum :

You last visited: Today at 11:52 AM : You Have 2 Unread You Have Today Unread 11:52 AM


Which doesnt make sense..... how do i change that ?

Adam H
01-20-2010, 09:19 AM
I think it might be using the old mod too some how ?

Adam H
01-20-2010, 09:34 AM
I have fixed it , for some reason it was showing the older mod i had installed on 3.8 even though it wasnt installed. I have no idea why but i just rebuilt the search index and its now working as it should

Adam H
01-20-2010, 11:39 AM
Actually it didnt fix it :confused: its just come back, I thought it was to do with cache before but that isnt switched on . Any ideas ?

Paul M
01-20-2010, 11:50 AM
There is no caching involved in this.

If you correctly perform the edit, and install the mod, then it will work. Every case so far where someone has siad it isnt has turned out to be an incorrect or missing template edit. I suggest you double check what you have done.

Adam H
01-20-2010, 12:04 PM
There is no caching involved in this.

If you correctly perform the edit, and install the mod, then it will work. Every case so far where someone has siad it isnt has turned out to be an incorrect or missing template edit. I suggest you double check what you have done.

Ive deleted that part of the template (comments tag ) and uploaded the .xml file what else is there to do ? , the mod is working but its providing more info than it should. Ive attached a screen shot so you can see

cagbaazee
01-20-2010, 03:59 PM
Read the instructions in the main post. There is a template edit.



You have it set to count the unread posts since your last visit, not all unread posts.



u mean this

Find ;

<vb:comment><p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p></vb:comment>

and remove the comment tags, i.e. as below ;

<p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p>



i hv done it.. but nothing has been working... please discuss what do to.

Thanks

Paul M
01-20-2010, 05:54 PM
Ive deleted that part of the template (comments tag ) and uploaded the .xml file what else is there to do ? , the mod is working but its providing more info than it should. Ive attached a screen shot so you can see

You have an old customised version of the phrase dup_posts on your forum - you need to delete it.

Paul M
01-20-2010, 05:57 PM
u mean this

Find ;

<vb:comment><p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p></vb:comment>

and remove the comment tags, i.e. as below ;

<p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p>

Yes, I mean that.

There is nothing I can discuss. Without admin access i cannot tell you anything more.

Trek
01-23-2010, 06:36 AM
Nevermind, realized it was a config setting that defaulted differently than I wanted it.

Thanks Paul!

Charlie98902
01-25-2010, 03:35 PM
Paul is there a way to hook this mod and use the default New Posts in the navbar? That would be great if you can get it coded like that.

Just a thought/ideal.

Thanks

Eq4bits
01-27-2010, 11:20 PM
Hi Paul, I'm having a bit of a problem.
Running vB4.0.1
After installing, setting options and making the header template change this is what I have (see attached image). As you can see my 'notifications' dropdown is now 'off', and also the 'last visit/unread posts #' is not showing.

this is the code from my template:
<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>
</ul>
<p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p>Any help would be appreciated =S

Eq4bits
01-27-2010, 11:57 PM
You have an old customised version of the phrase dup_posts on your forum - you need to delete it.
I just looked in my phrases and I have:
dup_post & dup_posts
How do I delete the dup_posts one since that may be what is messing my installation up as well.

EDIT:
looking in the phrase table of my forum database I have the following:
38933 -1 dup_disabled global <strong>Error: Database Marking is Disabled</stron... paulm_dup_40 Paul M 1255000000 4.0.2 0
38930 -1 dup_no_posts global You Have No <a href="{1}search.php?do=getnew&conte... paulm_dup_40 Paul M 1255000000 4.0.2 0
38928 -1 dup_post global Post paulm_dup_40 Paul M 1255000000 4.0.2 0
38929 -1 dup_posts global Posts paulm_dup_40 Paul M 1255000000 4.0.2 0
38950 1 dup_posts global Post paulm_dup_40 Lindsay 1264644061 4.0.3 0

Paul M
01-28-2010, 07:12 AM
This uses both dup_post & dup_posts, you cannot delete either.

In your template you seem to have <li> tags around the phrase rather than <p> tags - not sure if that would mess it up.

meschiash
01-28-2010, 08:10 AM
I have another problem. When i turn on hack i don't see field with time on my last visit.
I mean that's is problem with colors in stylewars.

edit:
when i change in stylewars time_color to white then i don't see time in footer because i have there white background.

Here you have screens:

Eq4bits
01-28-2010, 10:08 AM
This uses both dup_post & dup_posts, you cannot delete either.

In your template you seem to have <li> tags around the phrase rather than <p> tags - not sure if that would mess it up.
The thing is there are TWO dup_posts phrases, note:
38929 -1 dup_posts global Posts paulm_dup_40 Paul M 1255000000 4.0.2 0
38950 1 dup_posts global Post paulm_dup_40 Lindsay 1264644061 4.0.3 0
which one do I get rid of? the 4.0.2 one or the 4.0.3 one?

One of the vB staff had previously advised me not to use <p > tags in vB4..=S.. either way I got the same result, believe me, I tried <p > first.

Paul M
01-28-2010, 10:20 AM
This is an edited version you have added ;

38950 1 dup_posts global Post paulm_dup_40 Lindsay 1264644061 4.0.3 0

This is the default ;

38929 -1 dup_posts global Posts paulm_dup_40 Paul M 1255000000 4.0.2 0

---------------------------------------------------------

One of the vB staff had previously advised me not to use <p > tags in vB4
I have no idea why anyone would tell you that, they are perfectly acceptable in vb4.

----------------------------------------------------------

JFYI, this mod will almost certainly break when 4.0.2 is released as the defunct phrase code is being removed from the template, and a template hook put in its place.

Eq4bits
01-28-2010, 10:35 AM
okay, deleted the 4.0.3 one from the d/b
changed the <li > to <p > and </li > to </p>
uninstalled mod,
reinstalled mod
still nada
this is the only mod I've installed on this new version of vB4.0.1
Do I need to make an admin acct for you to take a look? I'm going to be away from my desk for the next 2 or 3 hours, let me know and I'll set it up when I get back and pm the details to you.

Eq4bits
01-28-2010, 02:31 PM
found my problem =S I had previously 'moved' the 'remember me' box to be to the right of log in input (by copying the original that shows below, removed the <div > and </div > from the 'new one'... heh, but I forgot to get rid of the original. Once I removed the origianl 'remember me' stuff the Unread stuff shows up (part of the reason I didn't realize I had a redundant 'remember me' box was because I was logged in, so wasn't 'seeing' it *slaps forehead*... sometimes it's the simplest of things =S

Paul M
01-28-2010, 03:08 PM
Ah good, glad to see you sorted it.

nikosb
02-09-2010, 05:04 AM
If you activate the Display Unread Posts and Reputation Comments, in IE I have second navbar (see attachment) and when you press the second navbar with the mouse, with transfer to new messages.

When I'm not connected, this is not

By FF working properly

Any idea to fix it?
Thanks

.................................................. ............
EDIT
found that this happens only when there are no new posts

Paul M
02-09-2010, 11:38 AM
Sorry, I have no idea. Obviously something on your site is not quite standard.

arena
02-09-2010, 04:58 PM
In translating the word problem

original expression : You Have 10 Unread Posts

I want to be Turkish phrase 10 okunmamaış mesajın var.
But the translation does not happen. Can you help please?

Paul M
02-09-2010, 07:42 PM
What do you mean by "does not happen" ?

arena
02-09-2010, 11:03 PM
What do you mean by "does not happen" ?


Turkish translation not work

Paul M
02-10-2010, 10:26 AM
Then you need to add translated phrases to your forum (Turkish).

arena
02-10-2010, 05:00 PM
You Have <a href="{1}search.php?do=getnew&contenttype=vBForum_Post">Unread Posts</a>
Turkish translation
<a href="{1}search.php?do=getnew&contenttype=vBForum_Post">Okunmamış Mesajınız Var</a>

Translation but not work

Paul M
02-10-2010, 06:19 PM
You must translate all the phrases, not just that one.

zeroality
02-13-2010, 05:22 AM
Is this supposed to display the number of unread posts, or just "You have unread posts"?

Also, any way to remove

Search:
Type: Posts; Excluded Forums: Champion's Tower, Reports and Infractions, Contributor Forum; New Posts

I don't want people seeing the names of these forums because then they will ask questions about it.

Edit: Seems like regular users don't see that part, do they?

OK, apparently it is telling me I have unread posts when there are none. Screenshot attached.

You Have <a href="{1}search.php?do=getnew&contenttype=vBForum_Post"><span style="color:yellow">Unread Posts</span></a>

That's what I changed. I tried changing it back to the original but it does not work. I went ahead and PMed you with acp access so you can just go take a look when you have the time.

Paul M
02-13-2010, 01:07 PM
I don't want people seeing the names of these forums because then they will ask questions about it.

Edit: Seems like regular users don't see that part, do they?
This is a vbulletin feature, not this mod - however, it should only list exclustions if you have permission to view them in the first place.

OK, apparently it is telling me I have unread posts when there are none. Screenshot attached.

That's what I changed. I tried changing it back to the original but it does not work. I went ahead and PMed you with acp access so you can just go take a look when you have the time.

You problem was the combination of settings you had - you were set to display all unread posts, but you had editied the mods safety feature (Maximum Cutoff Limit) to a value lower than the forum thread marking limit - so the feature always kicked in - displaying the simple "Unread Posts" message rather than the normal message.

Ive changed it to 10 days, to match the TM limit, so you should be working normally now.

zeroality
02-13-2010, 08:57 PM
Yes, it works great now. Thank you so much.

kjpp
02-17-2010, 07:51 PM
Hi!

I have this error on my forum:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(283) : eval()'d code on line 14

Can You help me?
Regards
Krzysiek

Chaini
02-17-2010, 08:56 PM
Hi!

I have this error too :(
Please, help

pete_brady
02-17-2010, 09:00 PM
same here - upgraded to vB4.0.2 tonight, then installed the v.4.0.4 version of this mod...

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(283) : eval()'d code on line 21

trying to modify the options results in

Fatal error: Call to undefined function fetch_options_duppost() in /home/thumped/public_html/bbs/includes/adminfunctions_options.php(230) : eval()'d code on line 1


temporarily disabled

pete_brady
02-17-2010, 09:22 PM
uninstall & reinstall fixed the problem

Charlie98902
02-17-2010, 09:28 PM
Error and I did put the back in as it should be since you said the template edit isn't needed now.=

<vb:comment><p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p></vb:comment>

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(283) : eval()'d code on line 54

Charlie98902
02-17-2010, 09:31 PM
uninstall & reinstall fixed the problem

Thanks worked for me too.

Paul M
02-17-2010, 09:49 PM
Hmmm, its not converted one of the options correctly on install.

I think I know why, so I'll update the installer slightly.

Also, the options wont work if the mod is disabled - not normally much of an issue, but still not something I considered, and not good, needs to be fixed as well.

Charlie98902
02-17-2010, 10:01 PM
Thanks Paul Hope the others with issues sees that an uninstall then a reinstall works till then.

Paul M
02-17-2010, 11:05 PM
Should be ok now anyway, Ive uploaded an updated version.

relaxiha
02-17-2010, 11:27 PM
problem.... i can't update overwrite
The following dependencies were not met:4.0.2
<version>4.0.5</version>
<dependencies>
<dependency dependencytype="vbulletin" minversion="4.0.2" maxversion="4.0.99" />
</dependencies>

maf1973
02-18-2010, 07:39 AM
<span style="text-decoration: line-through">I uninstalled the previous version and installed the v4.0.5, but after that i don't see anything?</span>

I restore the original Header Template and now it works.

Paul M
02-18-2010, 09:52 AM
problem.... i can't update overwrite
The following dependencies were not met:4.0.2
<version>4.0.5</version>
<dependencies>
<dependency dependencytype="vbulletin" minversion="4.0.2" maxversion="4.0.99" />
</dependencies>

Please read the main post ;

** This is not compatible with vBulletin 4.0.0 or 4.0.1 **

kjpp
02-18-2010, 10:18 AM
Hi!

I have problem when I setup:
Count All Posts Marked as Unread script show me always only You have unreaded Post without any number.
On Use Last Visit Date works correct.
Where is the problem?

Regards
Krzysztof

Paul M
02-18-2010, 11:16 AM
Your problem will almost certainly be that you have set the mods safety feature (Maximum Cutoff Limit) to a value lower than your forums Thread Marking Limit - so the feature will always kick in - displaying the simple "Unread Posts" message rather than the normal message

kjpp
02-18-2010, 12:02 PM
Your problem will almost certainly be that you have set the mods safety feature (Maximum Cutoff Limit) to a value lower than your forums Thread Marking Limit - so the feature will always kick in - displaying the simple "Unread Posts" message rather than the normal message

Yes it Was my problom. Thanks for help.

testbot
02-18-2010, 02:40 PM
what was the original head template edit. i don't remember where that was to remove it.

testbot
02-18-2010, 03:23 PM
found it. header

Greight
02-18-2010, 08:13 PM
Hey Paul, check the history :
v4.0.5 : 18-Feb-2009 : Installer & code updates. :D

relaxiha
02-18-2010, 09:48 PM
Please read the main post ;

Hello .. This is interesting. Because the previous version was very comfortable and compatible to work without any problem! The new version is not compatible! You must be to test all new versions. This way is better.

Paul M
02-19-2010, 01:07 AM
Hey Paul, check the history :
v4.0.5 : 18-Feb-2009 : Installer & code updates. :D
Oops :D

hollosch
02-24-2010, 08:26 AM
** This is not compatible with vBulletin 4.0.0 or 4.0.1 **

Are you planning a version for vB 4.0.2 ???

Paul M
02-24-2010, 10:52 AM
Um.... This is the version for 4.0.2 (onwards).

Drache
02-24-2010, 12:17 PM
this hack uses huge resource? because as soon as i enable it I get 500 error.

Paul M
02-24-2010, 01:44 PM
No, it doesnt.

CORSO
02-27-2010, 09:04 AM
I have this problem

https://vborg.vbsupport.ru/external/2010/02/6.jpg

Any idea how to solve?

Vbulletin 4.0.2 Patch Level 1

archet1337
02-27-2010, 10:57 AM
I'm getting this error message:

https://vborg.vbsupport.ru/

Paul M
02-27-2010, 11:36 AM
The answer to both of these is in the main post, please read it.

I have this problem

https://vborg.vbsupport.ru/external/2010/02/6.jpg

Any idea how to solve?

Vbulletin 4.0.2 Patch Level 1

This no longer needs the previously required template edit - a template hook is now provided in the Header template. If you install this version on a previously modified forum you must revert that edit if you have applied it. You must also make sure the template hook (header_userinfo) is present.


I'm getting this error message:

http://digi-tech.org/images/diverse/testing4.png

The unread posts portion of this hack requires the database thread marking to be active.
..
Forum marking choices are located in vBulletin Options > General Settings > Thread/Forum Read Marking Type

archet1337
02-27-2010, 12:00 PM
Oh, I'm really sorry. How embarrasing.

Working like a charm. A+ Mod. Thanks :)

masterross
03-01-2010, 07:19 PM
This hack overloading mysqld!

kNeeLy
03-01-2010, 08:27 PM
just installed/upgraded to 4.0.2 and this is the first hack/mod to run. Works like a charm..

thanks paul..this should be a default vb feature...

Paul M
03-01-2010, 09:11 PM
This hack overloading mysqld!
Interesting comment from someone who hasnt even downloaded it. Its wrong as well btw.

SuperGLS
03-02-2010, 10:32 PM
Paul, you are my hero! One of the last things I've been missing from vB3. I will send you money now.

Working great on 4.0.2.

zeroality
03-03-2010, 01:08 AM
Just upgraded to 4.0.2 and updated this MOD. Works just fine except now regular users (or others who do not have permissions to view) can see the excluded "staff" forums when pulling up the new posts search.

Type: Posts; Excluded Forums: Champion's Tower, Forum Games, Reports and Infractions, Contributor Forum; New Posts

The account I tested this on does have permission to view Forum Games, but not the others. Minor nitpick but still would like a fix. Thanks. :)

Paul M
03-03-2010, 10:52 AM
I cannot do anything about that - its standard vb functionality. If you think it doesnt work properly then you need to log a bug at vb.com.

masterross
03-03-2010, 02:48 PM
Interesting comment from someone who hasnt even downloaded it. Its wrong as well btw.

Really?

So how you can explain this:

w/o hack:

113491

2min after enabled:

113492

6min after enabled:

113493

If remain active for 1 hour load goes to 90-100


Of-course will work on baby boards with small numbers of members online but did you tried on board with 2000 users online ;)

Paul M
03-03-2010, 07:04 PM
Really?
Yes, Really.

So how you can explain this:
I dont explain how other peoples servers are configured.

What I do know is how this works, specifically one, fully indexed select. The average vb4 page uses about 15 such queries per page. Your links show that you are already running high loads in the before screen - if adding one more indexed query to a page is having that sort of dramatic effect then your server is already on the edge of collapse.

I would suggest that you make sure that your server actually created the dateline index (which btw, is done on install, and would take a while on 2 million posts).

Of-course will work on baby boards with small numbers of members online but did you tried on board with 2000 users online ;)Dont patronise me just because you have a busy forum. Im well aware of whats involved in busy set-ups. I have had this working on high traffic forums, and indeed, added the cutoff feature at the request of one to help control high load queries that would have involved counting 1,000's of posts. You would also do well to remember that this only works on logged in members, not users, from observing your forum tonight, I would guess its more like 800 members online, not 2000 (and I cant tell what you cookie timeout is either).

zeroality
03-04-2010, 05:15 AM
I cannot do anything about that - its standard vb functionality. If you think it doesnt work properly then you need to log a bug at vb.com.
Ah, I see. Well thank you for your great hack and I'm sorry others are being jerks. :)

Will go report as bug (http://www.vbulletin.com/forum/project.php?issueid=36726) right now.

malas2007
03-05-2010, 12:21 PM
Installed

www.bonsaifreinds.com/vb

CoZmicShReddeR
03-05-2010, 02:30 PM
Wow really nice feature!

SuperGLS
03-05-2010, 09:10 PM
After upgrading to 4.0.2 my forum was using database thread marking and this mod was working great. However I didn't want database thread marking (for many other reasons and had never had the site set to this previous of the upgrade... why the upgrade changed it I don't know) so now this mod isn't quite as exciting as it was.

Paul, do you ever see this working with the Inactivity/Cookie Based option rather than the database thread marking option?

Paul M
03-05-2010, 10:23 PM
Paul, do you ever see this working with the Inactivity/Cookie Based option rather than the database thread marking option?
Nope.

I cant imagine why anyone would want to use that, its hopeless.

SuperGLS
03-06-2010, 12:54 PM
You mean the cookie based marking system? All of the users (myself included) prefer this way, which might be because we've been using it for so long. Oh well.

Paul M
03-06-2010, 02:04 PM
You mean the cookie based marking system?

Yes, I did.


All of the users (myself included) prefer this way

Then Im afraid you cannot use the unread part of this mod.

War.Frog
03-06-2010, 03:08 PM
How on earth is cookie based marking preferable? It's almost never correct!

SuperGLS
03-06-2010, 08:44 PM
Perhaps it was a problem with some other setting/variable/installation but on my site we were getting 5 days of posts coming up as What's New/New Posts even when members had already looked at them. The inactivity/cookie based system is easy as it shows only what has been posted since your last visit. Seems simple to me. I don't know, I think it's strange that people would want it the other way, hah.

No problem Paul. I thought this would be my replacement for the "Welcome box" module that we used to have on vB3 with vBadvanced. That's ok though.

Tauhid
03-15-2010, 03:13 PM
Hey Paul,

Back in vb 3.8, this hack used to show

"Unread posts since your last visit" on a different background, with a text saying these are posts unread from your last visit. Beforre in vb 3.8, there was a division between posts unread in the last 24 hours and another division for all other random unread posts.

While now, there is no text showing on the top before each unread thread listings. All the unread posts just shows up. I have all the recommended options turned on.

Automatic Database thread marking
Use Last Visit Date

Paul M
03-15-2010, 07:27 PM
That was a feature of vbulletin, not this mod. It does not exist in vb4.

sticky
03-26-2010, 09:00 AM
This is one of my favorite mods but a new style I installed seemed to eliminate it showing in the upper right corner.

I'm not sure how to make this work with my new style, it works on all the others, suggestions?

Paul M
03-26-2010, 11:41 AM
Have you read the bold brown note in the main post ?

sticky
03-26-2010, 01:38 PM
Have you read the bold brown note in the main post ?
Yep, and I don't understand it.

So, do I reinstall this thing or what? I'm running 4.0.5

I never made a template edit, do I need to revert? I don't know.

Paul M
03-26-2010, 06:03 PM
I would guess this is the relevant bit for you ;

You must also make sure the template hook (header_userinfo) is present.

You new style is probably missing it.

sticky
03-26-2010, 07:03 PM
I would guess this is the relevant bit for you ;



You new style is probably missing it.
Ah I see!

So, I apologize if this sounds stupid, but how do I add the template hook?

Paul M
03-26-2010, 09:33 PM
Its a line of code in the template that looks like this ;

{vb:raw template_hook.header_userinfo}

You need to compare the default header with your custom style header to find where to insert it.

sticky
03-26-2010, 11:02 PM
Its a line of code in the template that looks like this ;

{vb:raw template_hook.header_userinfo}

You need to compare the default header with your custom style header to find where to insert it.
Managed to do it, thanks.

The full code would have been much more helpful ;)

Paul M
03-27-2010, 09:28 AM
How could I know the code in your style ?

sticky
03-27-2010, 10:02 AM
How could I know the code in your style ?
I guess you couldn't?

Regardless, thanks :) Oh, and how do you add a space in the template? The style added a search box directly underneath where your mod shows and everything works perfect except for guests who have overlap with the search box and remember me box.

Paul M
03-27-2010, 12:30 PM
Not exactly sure what you mean as guests dont have unread posts, but everything is build from phrases, so edit them as you need.

robbiefritz
04-05-2010, 01:56 PM
Please see image below. If I only have an unread post, everything shows fine. When I get an unread reputation as well as a post I get this garbled mess. Any ideas? Thanks.

https://vborg.vbsupport.ru/external/2010/04/71.jpg

If it is only 1 unread post, it seems ok. See image.

https://vborg.vbsupport.ru/external/2010/04/72.jpg

Paul M
04-05-2010, 09:42 PM
You have old customised phrases in there somewhere, you need to remove them.

youngaussie
04-07-2010, 10:16 PM
thanx heaps :D

robbiefritz
04-08-2010, 05:03 PM
Paul M, it appears that folks using vbadvanced CMPS are experiencing a problem with their welcome block. See image below.

https://vborg.vbsupport.ru/external/2010/04/74.png
and
https://vborg.vbsupport.ru/external/2010/04/54.jpg

This is the error that occurs once your hack is installed. The folks at vbadvanced are aware of this also and as I asked there, who needs to do what to rectify this? Thanks.

Paul M
04-08-2010, 07:39 PM
The block is using and old vb phrase (last_visited_x_at_y) - this phrase is no longer used by vb4, and will get removed at some point. They need to use their own custom phrase.

robbiefritz
04-09-2010, 11:57 AM
The block is using and old vb phrase (last_visited_x_at_y) - this phrase is no longer used by vb4, and will get removed at some point. They need to use their own custom phrase.

Thanks Paul

EcoCav
04-11-2010, 07:03 PM
I installed 4.0.3 last night, and now the "unread posts" is forced to the side of the page.

How can I fix this?

https://vborg.vbsupport.ru/external/2010/04/59.png

Paul M
04-11-2010, 08:44 PM
No idea. Have you customised some header css ?

EcoCav
04-11-2010, 11:11 PM
Ive done nothing at all to the forum. Stock style, no template edits of any kind.

I'll try re installing it.

furst
04-11-2010, 11:29 PM
My users have their reputation displayed in their profiles, is there a way that when the notifications show a rep received, when you click it can it redirect to show the rep in the profile instead of showing the thread in user settings? is this possible?

I have a reputation tab in profile.

EcoCav
04-11-2010, 11:37 PM
Installed Display Unread Posts and Reputation Comments v4.0.6, and the alignment issue is fixed.

Paul M
04-12-2010, 02:14 PM
My users have their reputation displayed in their profiles, is there a way that when the notifications show a rep received, when you click it can it redirect to show the rep in the profile instead of showing the thread in user settings? is this possible?

I have a reputation tab in profile.

Not really, no. Default vB does not have a reputation tab in the profile, you only have that because you have another mod (of mine ?) installed.

furst
04-12-2010, 11:09 PM
yeah its a mod installed that shows rep in profile.

Antonio Pereira
04-13-2010, 06:00 AM
My users have their reputation displayed in their profiles, is there a way that when the notifications show a rep received, when you click it can it redirect to show the rep in the profile instead of showing the thread in user settings? is this possible?

I have a reputation tab in profile.

Not really, no. Default vB does not have a reputation tab in the profile, you only have that because you have another mod (of mine ?) installed.

And make an option who have your good mod, can opt to redirect to profile tab?

I like your mods ;)

Best Regards

Paul M
04-13-2010, 01:22 PM
Sorry, thats unlikely to happen. I dont even know if you can re-direct to a specific tab on the profile page, but either way, its not something I plan to add.

zeroality
04-13-2010, 06:09 PM
Not sure whether you can or not, but the "Template Edits" should be removed from the area with the checkboxes (Supported, Uses Plugins, etc).

Just upgraded to 4.0.3 and was re-checking MODs to see which ones did require template edits and this one states it does when it doesn't - because you fixed it.

Paul M
04-13-2010, 06:19 PM
True, updated the settings.

CvP
04-16-2010, 03:52 AM
Sorry, thats unlikely to happen. I dont even know if you can re-direct to a specific tab on the profile page, but either way, its not something I plan to add.
redirecting to something like this might help:
http://site.com/forums/member.php?53-CvP#reputation

SliceofLife
05-17-2010, 03:54 AM
Hi. Does this work with 4.0.3?

SliceofLife
05-17-2010, 07:38 AM
Is there any way of hiding which forums are excluded? Because they show up in a 'New Posts' search.

Paul M
05-17-2010, 10:42 AM
Hi. Does this work with 4.0.3?
Yes.

Is there any way of hiding which forums are excluded? Because they show up in a 'New Posts' search.
Dont really understand what you mean - excluded forums will not show up in New Posts, thats the point of them being excluded ....

Eq4bits
05-24-2010, 11:56 PM
This is one of my *must have* mods, but having a bit of an issue...
running vBSuite 4.0.3
on Win7 Pro 64bit
happens in SeaMonkey 2.0.4, Firefox 3.6.2, IE 8.0.7600.16385
I have installed, uninstalled, re-installed, allowed overwrite, checked the header template and the {vb:raw template_hook.header_userinfo} is there yet the info does NOT show up below the Welcome X/Notifications/My Profile/Settings/Log Out links - above the 'search box area'
the hook shows in both default AND custom header template
here is that section of code from my header template:</ul>
{vb:raw template_hook.header_userinfo}
<vb:comment><p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p></vb:comment>
<vb:else />Is there a fix?

Eq4bits
05-25-2010, 01:05 AM
I checked again and it DOES show in the default style, just not my custom style. Any ideas? I can post the complete code but don't want to bore anyone ;)

Paul M
05-25-2010, 03:33 PM
If the hook is there it should show. I cannot guess at why it doesnt.

Eq4bits
05-26-2010, 11:51 PM
Weird. On my custom template, if I add the hook a SECOND time it displays... not exactly 'where' I wanted it too (below 'Welcome Xyz & above search box/tab area) but it does show, but there is also displayed an 'error message' (see pic)
https://vborg.vbsupport.ru/external/2010/05/12.png

I also moved the first hook to be after the 'welcome' section but before the < /li> that preceeds the facebook connect code.
Then the second placement is right after the second < /vb:if> code after the 2nd facebook connect code (near end of template)

Eq4bits
05-27-2010, 01:33 AM
Been working on the hook placement in my customized style
It's in the right location now at least... if I could just get that Error: Header Template is Customised to go away!
https://vborg.vbsupport.ru/external/2010/05/11.png

I moved the hook to near the bottom of my header template like so:
</script>
</li>
<vb:if condition="$vboptions['enablefacebookconnect']">
{vb:raw facebook_header}
</vb:if>
</ul>
</vb:if>
</div>
<div class="ad_global_header">
{vb:raw ad_location.global_header1}
{vb:raw ad_location.global_header2}
</div>
<div align="right">{vb:raw template_hook.header_userinfo}{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</div>
<hr />
{vb:raw ad_location.ad_header_end}

</div><br>

texasteamplayer
05-28-2010, 12:36 AM
installed without a hitch. Good mod.

Been looking for a mod that can be added as a link to the top of every forum category, so users can choose on the forum index to show unread posts only for that category. Sure...it's possible to set up a search to do this every time, but that's not convenient.

such a feature makes it easier for mods and admins in a hurry to select the admin forum category unread posts, and sort through only those, rather than the entire forum index of unread posts.

if someone has one, or can make one, pm me.

texasteamplayer
05-28-2010, 12:49 AM
yeah yeah....I actually brought up this mod along with vSA's. just installed this one first.

but what's the "# l #" for? I assume it means x posts in y categories...perhaps?

doesn't seem necessary, and would like to disable it, and just have the drop down.

really great function that was super needed on big boards with too many posts for mods to deal with globally.

this goes along nicely with it, since it provides a clean drop down, and customization for which categories go in the drop down.

see it on teamplayergaming.com

thanks

chanvl
05-29-2010, 05:36 PM
tks Paul M. Installed! :)

dondino
05-30-2010, 09:47 AM
How can you make the text in the header look better? its just a plain text but anyone has some snippet to put it more in evidence?
How can I change its colour and font properties?

Paul M
05-30-2010, 11:48 AM
Been working on the hook placement in my customized style
It's in the right location now at least... if I could just get that Error: Header Template is Customised to go away!
Thats caused by having the last_visited_x_at_y phrase in your header - you dont need that, remove it.

KURTZ
06-22-2010, 11:13 AM
hi Paul, just installed onto a 4.0.4 board and got this error:


Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

any fix?

ps. i've tried to disable your hack and the error is gone ...

Paul M
06-22-2010, 09:11 PM
Sorry, I cannot replicate that on any of my 4.0.4 forums.

KURTZ
06-23-2010, 08:19 AM
same thing like the other product ... just reinstalled and all runs correctly ... :)

Paul M
06-23-2010, 12:53 PM
Hmm, so just to be clear, you upgraded from the 3.8 version before ?

KURTZ
06-23-2010, 05:15 PM
Hmm, so just to be clear, you upgraded from the 3.8 version before ?

yes, what i've done is this:

upgraded the board from 3.8.5 to 4.0.4 (disabled the plug-in by the config.php file), then upgraded your products and enabled the plug-in system ... and found the errors ... so i uninstalled all your products and reintalled them ...

Paul M
06-24-2010, 01:10 PM
Ok thanks. I need to look at the upgrade function then.

robbiefritz
06-27-2010, 11:23 AM
Thats caused by having the last_visited_x_at_y phrase in your header - you dont need that, remove it.

Paul, I went into the header template and remove >{vb:rawphrase last_visited_x_at_y, and still have the error. Any suggestions? Did I not remove it correctly? Thanks.

Gero50
07-02-2010, 12:31 AM
Looks like a ok mod. I have tagged it for latter.

goran424
07-02-2010, 07:15 PM
Paul, can you take a look at this:

https://vborg.vbsupport.ru/showthread.php?p=2063368#post2063368

There is a conflict between your mod and "Avatar in Header" by Seven Skins.

Paul M
07-03-2010, 09:37 PM
TBH, I dont understand your issue - the screenshot you posted still shows the mod display.

goran424
07-04-2010, 05:12 AM
TBH, I dont understand your issue - the screenshot you posted still shows the mod display.

Yes, but it doesn't show number of unread posts even though they are out there.
Anyway, did some random maintenance via ACP and problem is gone. No idea what I've done but who cares.....it works OK now.

RWerksman
07-25-2010, 05:04 AM
Hi Paul,

Used the prior version of this, and loved them. Installed this version, and it installed without a hitch. I am getting some odd behavior in the link however, specifically when there are no new posts. It looks like:

.../search.php?do=getnew[ARG:2%20UNDEFINED]

Looked in the thread, with no joy. Any ideas?

Paul M
07-25-2010, 01:50 PM
You have an old copy of a phrase - most likely you copied it into your local language.

jimnyc
08-05-2010, 09:19 PM
Please excuse me if this has been answered before, but I searched and couldn't find anything.

Here is the text of what I have at the top of my forum:

You last visited: Today at 04:39 PM : You Have 17 Unread Posts

I changed the font color of all the text on that line to BLACK, but the part that states "Unread Posts" remains in white. Even the "You have 17" is now black. The only thing I can think of is because the "Unread Posts" is a link, but I'm lost.

Any way to change the words "Unread Posts" to BLACK?

Thanks!

Adam H
08-06-2010, 05:10 AM
I done it by placing div's around the hook location which this mod attaches its self too and then just a CSS to colour the link. Also handy for moving the mod away from the normal location under the toplinks which is highly annoying

jimnyc
08-06-2010, 12:12 PM
I done it by placing div's around the hook location which this mod attaches its self too and then just a CSS to colour the link. Also handy for moving the mod away from the normal location under the toplinks which is highly annoying

I'm a bit of a "newbie" when it comes to code and their locations. Would you mind giving me somewhat specific directions to do this? I would be very grateful if you could!

-Jim

Canis Firebrand
09-10-2010, 01:55 PM
Love this mod and many others you have created Paul.

One quick question. I'm using a custom template that isn't too heavily modified from the stock template. So, the Unread post count is automatically inserted right under the top nav bar where it shows "Welcome, user"

The issue I have is that the Unread post text gets placed right on a line separating that nav bar from my header box. I found the code in the xml file that sets the phrase. I added in an extra <br /> it and re-imported the product. When I refreshed my page, the phrase did move down a line like I wanted, but the 1 Unread Post part was no longer clickable like it should be.

Viewing the source, I do see that the html tag is still there.
When I import the default xml file you provided, the link is back where it originally was and is clickable.

I'm stumped as to why moving it down one line stopped it from being clickable.

This is what I changed

<phrase name="dup_posts" date="1255000000" username="Paul M" version="4.0.2"><![CDATA[Posts]]></phrase>
<phrase name="dup_no_posts" date="1255000000" username="Paul M" version="4.0.2"><![CDATA[<br />You Have No <a href="{1}search.php?do=getnew&contenttype=vBForum_Post">Unread Posts</a>]]></phrase>
<phrase name="dup_unread_posts" date="1255000000" username="Paul M" version="4.0.2"><![CDATA[<br />You Have <a href="{1}search.php?do=getnew&contenttype=vBForum_Post">Unread Posts</a>]]></phrase>
<phrase name="dup_x_unread_posts" date="1255000000" username="Paul M" version="4.0.2"><![CDATA[<br />You Have {1} <a href="{3}search.php?do=getnew&contenttype=vBForum_Post">Unread {2}</a>]]></phrase>

Paul M
09-10-2010, 02:46 PM
I cant see anything obviously wrong with what you have done.

Canis Firebrand
09-10-2010, 03:16 PM
I cant see anything obviously wrong with what you have done.

That was why I was confused too. And I am even more stumped now.

I have 5 skins total. The default and 2 other skins that have 2 color choices each one.

With the link moved down using the edit I posted above, in the default and one of the skins in both colors works.

In the other skin, in both colors it does not.

here is the html generated in a skin that works.

<br /><div style="margin: 14px"><br />You Have 3 <a href="search.php?do=getnew&contenttype=vBForum_Post">Unread Posts</a></div>

And here is the html code generated in the skin that does not work.
<br /><div style="margin: 14px"><br />You Have 3 <a href="search.php?do=getnew&contenttype=vBForum_Post">Unread Posts</a></div>


They look exactly the same to me.

Both the two custom skins are from the same author and are pretty similar in structure/layout. So it is even more odd that one worked with my change above and the other didn't.

I might just have to leave it in the default location. It really isn't a major issue, just more of a nitpicky thing with some of my users.

Thanks though for the reply.

Paul M
09-11-2010, 12:14 PM
I would guess its something to do with the properties of the elements containing the code, but Im afraid my CSS & HTML is very limited, so I cannot help you.

OurCouponHome
10-24-2010, 12:18 PM
Thanks!!!

SolarTalk
10-24-2010, 04:19 PM
installed on 4.0.8. this doesn't separate the new posts with "older" new posts like before.

am i the only one with this issue?

Paul M
10-24-2010, 08:54 PM
vBulletin 4 does not do that.

goshalim
10-25-2010, 04:59 AM
Hi

What ever i do i have this o the table.

If the language is in English , there is no problem. When i turn this to greek it looks like on the picture.

How can i correct this. Iam using 4.0.8

Paul M
10-25-2010, 10:26 AM
You appear to have old customised greek phrases which need to be deleted and re-translated.

goshalim
10-25-2010, 11:44 AM
Exeellent , corrected , Thanks Paul

Mark.B
10-31-2010, 02:05 AM
Thanks Paul, working perfectly (4.0.8). As always.

Paul M
10-31-2010, 11:32 AM
Thanks Paul, working perfectly (4.0.8). As always.
LOL, this one survived 4.0.8, unlike many. :)

Mellow
12-31-2010, 11:01 AM
Paul, this works great!

One issue with another mod that I was wondering if you could help with.

The Selective Forum Filter mod, which is obviously shown as only a 3.8 version.
https://vborg.vbsupport.ru/showthread.php?t=215001

There is a xml file to get it to work w/4.1
https://vborg.vbsupport.ru/showpost.php?p=2046926&postcount=88

One of the steps in that is to edit each search.php and add an exclude parm to the url. Works great for the base VB stuff but not with your mod.

Someone did post they got theirs working:
https://vborg.vbsupport.ru/showpost.php?p=2064210&postcount=91

But, doesn't look like it is working, you use a phrase within the plug in and I'm not sure how to modify that to work correctly.

I know that isn't your mod and possibly not the solution you'd provide but can you shed light on how the phrase/plug in should be changed to get yours to work?

If you don't feel like spending time on this I understand.
Thanks

Paul M
12-31-2010, 01:54 PM
As the description says ;

This version does not currently support forums excluded if you have the "Get New/Get Daily Opt Out Modification" (by Andreas) or the "Selective Forum Filter Modification" (by Psionic Vision) - as no vb4 versions of these modifications currently exist.

Granted thats a year old now, and I havent checked if vb4 versions now exist. If they do, I'll look at adding the support back in (sometime in early 2011). Until then try what Trek posted, it looks reasonable, but i havenet actually checked it will work.

Mellow
12-31-2010, 03:11 PM
As the description says ;



Granted thats a year old now, and I havent checked if vb4 versions now exist. If they do, I'll look at adding the support back in (sometime in early 2011). Until then try what Trek posted, it looks reasonable, but i havenet actually checked it will work.

Thank you sir, Trek's mod looks good but doesn't address the phrases so that's the only part that doesn't work and the part that is displayed on the screen.

Thanks for the quick reply.

Paul M
01-01-2011, 02:56 PM
Phrases ? Not really sure what you mean.