Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Ultimate Navbar for vB3.7 Details »»
Ultimate Navbar for vB3.7
Version: 1.0.5, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 03-08-2008 Last Update: 03-13-2008 Installs: 171
Uses Plugins Template Edits Auto-Templates
 
No support by the author.

Ultimate Navbar for vB3.7
Version 1.0.5
(By Boofo and Pam)

What does this product do?
This product will add an ultimate greeting to the navbar set to each member's local time. You can also use the real first name of the member instead of their username if you have a real name profile field added. This will also add a row of links to the top of the navbar. You can also set the 'Remember Me' login checkbox to automatically checked.

Below is a list of times and lines for each greeting.

12:00 am - 1:59 am - Up late, aren't we, Pam?
2:00 am - 3:59 am - Having trouble sleeping, Pam?
4:00 am - 5:29 am - Still can't sleep, Pam?
5:39 am - 6:59 am - Aren't you the early bird, Pam?
7:00 am - 11:59 am - Good Morning, Pam.
12:00 pm - 12:59 pm - Enjoying your lunch break, Pam?
1: 00 pm - 4:59 pm - Good Afternoon, Pam.
5:00 pm - 5:59 pm - What's for dinner, Pam?
6:00 pm - 9:59 pm - Good Evening, Pam.
10:00 pm - 11:59 pm - Shouldn't you be going to bed soon, Pam?

These following are added to run at the specified time only for one minute.

6:15 pm = Got milk, Pam?
11:00 pm = It's 11 o'clock, do you know where your children are, Pam?

Version Information:
Version 1.0.1 --Initial release for vB3.7
Version 1.0.2 --Added 'Real Name' profile field instructions for those wanting to make this even more personal.
Version 1.0.3 --Added setting to do the automatic template replace for the Ultimate Greeting. Also added setting for links on top of navbar.
Version 1.0.4 --Added setting to do the automatic template replace to check the 'Remember Me' forumhome login box automatically.
Version 1.0.5 --Added the 'Remember Me' automatic template replace code for the STANDARD_ERROR, STANDARD_ERROR_LITE and STANDARD_ERROR_LOGIN templates.

Credits:
A big thank you goes out to Pam for co-authoring this version and keeping me in check on the added greetings.

Installation overview:
Products to install: (1)
Templates to Edit: (1) - Optional
Profile Fields to Create (1) - Optional

Installation Instructions:
Step 1: Go to your Admin CP
Scroll down to 'Plugin System'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the product-ultimate_navbar_greeting.xml file on your computer

Step 2: Go to your Admin CP
Scroll down to 'User profile Fields'
Click 'Add New User Profile Field'
Choose 'Single-Line Text Box' for Profile Field Type
Enter the following information:

Title: Real Name
Description: Your first name:
Max length of allowed user input: 25
Field Length: 25
Profile Field Type: Single-Line Text Box
Field Required: No
Field Editable by User: Yes
Private Field: No
Field Searchable on Members List: Yes
Show on Members List: Yes
Which page displays this option? Edit Your Details

NOTE: These are my settings. Your mileage may vary.

Step 3: Go to vBulletin Options -> Ultimate Navbar
--Real Name Profile Field Number: Set the profile field number of your Real Name profile field. (Example: field5 would be 5)
--Top Navbar Links: Click yes to add a row of links to the top of the navbar.
--Automatic Greeting Template Edit: Click yes to do the automatic template edit for the Ultimate Navbar Greeting.
--Check 'Remember Me' Box: Click yes to check the 'Remember Me' checkbox automatically.

NOTE: If you chose to do the Automatic Greeting Template Edit, ignore Step 4, as this will be done automatically.

NOTE: If you do not click install, you do not need support.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 03-10-2008, 12:04 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #43  
Old 03-10-2008, 12:41 PM
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Location: Sth London
Posts: 1,042
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
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

Quote:
Originally Posted by ssvp View Post
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:
Reply With Quote
  #44  
Old 03-10-2008, 12:59 PM
choccyclaire choccyclaire is offline
 
Join Date: Jan 2008
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL, this looks so much fun. I'll be installing soon, thanks!
Reply With Quote
  #45  
Old 03-10-2008, 07:11 PM
youradhere4222 youradhere4222 is offline
 
Join Date: Sep 2007
Location: Houston, TX
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
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.
Reply With Quote
  #46  
Old 03-10-2008, 07:46 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ssvp View Post
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:
Reply With Quote
  #47  
Old 03-10-2008, 08:22 PM
ivanstanchev ivanstanchev is offline
 
Join Date: Mar 2008
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can i translate this phrases,i use different language on my forums ?
Reply With Quote
  #48  
Old 03-10-2008, 09:13 PM
FLMom's Avatar
FLMom FLMom is offline
 
Join Date: Feb 2006
Location: Florida
Posts: 386
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Bob, will this work for 3.6.7?
Reply With Quote
  #49  
Old 03-10-2008, 09:43 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, Cori.
Reply With Quote
  #50  
Old 03-10-2008, 10:06 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by youradhere4222 View Post
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.
Reply With Quote
  #51  
Old 03-10-2008, 10:08 PM
FLMom's Avatar
FLMom FLMom is offline
 
Join Date: Feb 2006
Location: Florida
Posts: 386
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
Yes, Cori.

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:17 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.04607 seconds
  • Memory Usage 2,338KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete