vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Unread Posts and Reputation Comments (welcome box) (https://vborg.vbsupport.ru/showthread.php?t=123886)

ForumDog 09-21-2006 02:45 PM

Is there a reason that the hyperlink used in the mod's new posts link doesn't include the sessionurl add like the default link for new posts search does?

Paul M 09-21-2006 04:10 PM

Because I never added it, and in two years, no one has ever complained. :)

I've never actually come across anyone who doesn't use cookies.

ForumDog 09-21-2006 04:20 PM

Nope, me neither. Can't do any harm in a particularly non-essential way though. :)

Paul M 09-21-2006 04:33 PM

Well i've added it to the todo list, so it will get done at some point in the future.

Paul M 09-23-2006 07:54 AM

In fact, phrases altered to make them more flexible, also changed them to be more like previous versions.

Smoothie 09-23-2006 10:24 PM

Quote:

Originally Posted by Paul M
In fact, phrases altered to make them more flexible, also changed them to be more like previous versions.

what exactly is different in this version than the previous one?

Paul M 09-23-2006 10:38 PM

The displayed messages.

Masiello 09-24-2006 06:26 AM

Thanks Paul

Hey Paul, I've translated the phrase like that:

Quote:

<strong>{1} <a href="search.php?do=getnew">Messaggi da leggere{2}</a></strong> dalla tua ultima visita.
But the message show with the "s" at the end of the "leggere" it show "leggeres", how to fix?

I believe the issue is inside this code:

Quote:

$plural = 's';
if ($postcount['unread'] == 1) $plural = '';

if ($vbulletin->options['unreadlv'])
{
$unread = addslashes(construct_phrase($vbphrase['unread_posts_visit'],$postcount['unread'],$plural)).'<br />';
}
else
{
$unread = addslashes(construct_phrase($vbphrase['unread_posts'],$postcount['unread'],$plural)).'<br />';
}
How to fix it with the word "Messaggi" if is plural, if not is "Messaggio"

Below is the snapshot

ForumDog 09-24-2006 08:55 AM

For some reason this mod doesn't show the unread count for me on SHOWTHREAD - and only that template as far as I can tell - running 3.6.1.

I tried disabling all other plugins, changing the execution order, minutely examining my templates, could find no obvious cause or make any difference. It's a heavily customised forum so I can't really say for sure it's not something I've done that's breaking it but the reason I mention it as an FYI is because the 3.5 version of this plugin does not have the same issue, works perfectly.

Paul M 09-24-2006 10:48 AM

Quote:

Originally Posted by Masiello
How to fix it with the word "Messaggi" if is plural, if not is "Messaggio"

Below is the snapshot

Hmm, that bit wasn't really designed with translations in mind, but I think you could do it by changing

Code:

$plural = 's';
if ($postcount['unread'] == 1) $plural = '';

to
Code:

$plural = '';
if ($postcount['unread'] == 1) $plural = 'o';

and putting Messaggi{2} in the template.


All times are GMT. The time now is 01:42 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.01361 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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