vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Display Unread Posts (https://vborg.vbsupport.ru/showthread.php?t=231060)

Antonio Pereira 04-13-2010 06:00 AM

Quote:

Originally Posted by furst (Post 2019687)
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.

Quote:

Originally Posted by Paul M (Post 2019956)
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

Quote:

Originally Posted by Paul M (Post 2020531)
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

Quote:

Originally Posted by SliceofLife (Post 2038310)
Hi. Does this work with 4.0.3?

Yes.

Quote:

Originally Posted by SliceofLife (Post 2038366)
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:
PHP Code:

</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:
PHP Code:

</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.

Quote:

Originally Posted by texasteamplayer (Post 2044376)
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

Quote:

Originally Posted by Eq4bits (Post 2043870)
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:

Code:

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

Quote:

Originally Posted by Paul M (Post 2058115)
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

Quote:

Originally Posted by Paul M (Post 2045474)
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
Code:

>{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/showthrea...68#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

Quote:

Originally Posted by Paul M (Post 2064056)
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:

Quote:

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

Quote:

Originally Posted by riverwire (Post 2079922)
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

Code:

<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

Quote:

Originally Posted by Paul M (Post 2096273)
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.

Code:

<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.
Code:

<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?


All times are GMT. The time now is 11:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01741 seconds
  • Memory Usage 1,868KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete