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)

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 03:23 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01487 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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