vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Ultimate Navbar for vB3.7 (https://vborg.vbsupport.ru/showthread.php?t=172507)

Boofo 03-10-2008 12:04 PM

How much time you got? It can hold as many as you want. 60 and hour and times that by 24 hours and you get 1440, but I don't think I'd stretch it that far. Too much change can be as bad as not enough change. ;)

TTG 03-10-2008 12:41 PM

Quote:

Originally Posted by Boofo (Post 1461165)
Then you messed up the template edit as there is no possible way this touches anything esle but that one line. Check your edits.

I'm not as stupid as I look .. edits were quite simple. Mmmm, reminds me of my ex :D

Quote:

Originally Posted by ssvp (Post 1461180)
Just edit Unread Posts and Reputation (2) in your plugin manager.

Code:


$vbphrase['welcome_x_link_y'] .= '</strong><br />'.$unread.'<strong>';

with this
Code:


$vbphrase['ung_greeting'] .= '</strong><br />'.$unread.'<strong>';


Thanks ssvp .. that solved the problem :up:

choccyclaire 03-10-2008 12:59 PM

LOL, this looks so much fun. :D I'll be installing soon, thanks!

youradhere4222 03-10-2008 07:11 PM

Quote:

Originally Posted by Boofo (Post 1461167)
Yes, that will work, but you will have it saying good morning from 10 PM tp 12 Noon. Change the 22:00 to 24:00 and that should correct it. ;)

I would have just commented out what you didn't want in case you wanted to change or re-add it later on.

From what I understand, it's like military time. Correct me if I'm wrong.

Anyways, I made it this:

PHP Code:

if ($navbar_localtime '24:00') {
$vbphrase[ung_line] = $vbphrase[ung_morning];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];
} elseif (
$navbar_localtime '12:00') {
$vbphrase[ung_line] = $vbphrase[ung_afternoon];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];
} elseif (
$navbar_localtime '18:00') {
$vbphrase[ung_line] = $vbphrase[ung_evening];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];


I did those changes, uploaded/overwrote my previous file, and like the previous time, I now have no name in the navbar after doing the template edits. It simply shows this:

Code:

                         
                                                                                             
                        You last visited: Yesterday at 11:46 PM                                                          Private Messages: Unread 0, Total 143.


Brandon Sheley 03-10-2008 07:46 PM

Quote:

Originally Posted by ssvp (Post 1461181)
Actually if your using PaulM's script.. It injects on the [welcome_x_link_y] and you'll need to change to [ung_greeting] in the plugin manager for his Unread post mod..

thanks for this :)
I was wondering what happen to those..lol :erm:

ivanstanchev 03-10-2008 08:22 PM

How can i translate this phrases,i use different language on my forums ?

FLMom 03-10-2008 09:13 PM

Hey Bob, will this work for 3.6.7? :)

Boofo 03-10-2008 09:43 PM

Yes, Cori. ;)

Boofo 03-10-2008 10:06 PM

Quote:

Originally Posted by youradhere4222 (Post 1461710)
From what I understand, it's like military time. Correct me if I'm wrong.

Anyways, I made it this:

PHP Code:

if ($navbar_localtime '24:00') {
$vbphrase[ung_line] = $vbphrase[ung_morning];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];
} elseif (
$navbar_localtime '12:00') {
$vbphrase[ung_line] = $vbphrase[ung_afternoon];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];
} elseif (
$navbar_localtime '18:00') {
$vbphrase[ung_line] = $vbphrase[ung_evening];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];


I did those changes, uploaded/overwrote my previous file, and like the previous time, I now have no name in the navbar after doing the template edits. It simply shows this:

Code:


 
            You last visited: Yesterday at 11:46 PM                              Private Messages: Unread 0, Total 143.


Use this as you had the times wrong.

Quote:

if ($navbar_localtime < '12:00') {
$vbphrase[ung_line] = $vbphrase[ung_morning];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];
} elseif ($navbar_localtime < '18:00') {
$vbphrase[ung_line] = $vbphrase[ung_afternoon];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];
} elseif ($navbar_localtime < '24:00') {
$vbphrase[ung_line] = $vbphrase[ung_evening];
$vbphrase[ung_punctuation] = $vbphrase[ung_period];
}
Are you running Paul M's Unread Posts and Reputation hack? Is so, the first post has the fix for it at the bottom.

FLMom 03-10-2008 10:08 PM

Quote:

Originally Posted by Boofo (Post 1461818)
Yes, Cori. ;)


YAY! Thanks Bob! I think my members will really like this!


All times are GMT. The time now is 07:51 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.02360 seconds
  • Memory Usage 1,758KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (7)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