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-08-2008 10:00 PM

Ultimate Navbar for vB3.7
 
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.

shadowevil 03-09-2008 03:06 AM

Can you upload demo or screenshot ??

Boofo 03-09-2008 03:09 AM

Pic uploaded.

Brandon Sheley 03-09-2008 03:17 AM

yeah! another fun one :)

Thanks Bofo

[high]* Brandon Sheley clicks install[/high]

Boofo 03-09-2008 03:23 AM

You're every welcome, sir. ;)

TomJames 03-09-2008 03:47 AM

Looks very nice... I might just add this.

Boofo 03-09-2008 03:51 AM

Make sure to click install if you do in case it is updated.

slmoney 03-09-2008 04:12 AM

I like this! Is there anyway to edit what gets said? Like if I wanted to add..."Are we addicted?..or something else?

slmoney 03-09-2008 04:15 AM

NM..looked at the XML its time specified. Still..great little mod. Thanks!

ChurchMedia 03-09-2008 04:34 AM

Cool! I'll be replacing the one I have with this one. :)

Pamela 03-09-2008 04:43 AM

Boofo, you gave me much too much credit...but it was fun to help out!

*clicks install*

:D

Boofo 03-09-2008 05:38 AM

Quote:

Originally Posted by slmoney (Post 1460474)
NM..looked at the XML its time specified. Still..great little mod. Thanks!

You can edit the xml to add your own lines and times. ;)

Boofo 03-09-2008 05:39 AM

Quote:

Originally Posted by Pamela (Post 1460498)
Boofo, you gave me much too much credit...but it was fun to help out!

*clicks install*

:D

If it wasn't for you, I might have gotten strung up for some of the lines I wanted to put in there. ;)

Hasann 03-09-2008 10:20 AM

vauuww you are crazy man I love youu :D:up:

TheProphet 03-09-2008 10:23 AM

This is realy fun to have it on.... thx Boofo, your the man m8.

KURTZ 03-09-2008 11:01 AM

Quote:

Originally Posted by Hasann (Post 1460604)
vauuww you are crazy man I love youu :D:up:

[sarcasm]absolutely agreed!!! :D[/sarcasm]

LOL!

iogames 03-09-2008 11:44 AM

Let's say I got 50 fun facts about my site... how can I ramdomly display them with your system?

btw... great mod :D

valdet 03-09-2008 01:01 PM

Great mod. You have made some great work Boofo.

TTG 03-09-2008 01:07 PM

Thanks Boofo .. great idea .. clicked install
Always knew you'd be useful one day :D

Boofo 03-09-2008 01:12 PM

Quote:

Originally Posted by TTG (Post 1460700)
Thanks Boofo .. great idea .. clicked install
Always knew you'd be useful one day :D

I sure hope that day gets here soon. :(

You're very welcome, but don't forget to thank Pam. ;)

jerx 03-09-2008 01:48 PM

I was wondering why this was replied to so often and why this "boring" (by looking at the thread title only) mod received good ratings. Now I know. Great mod!

Boofo 03-09-2008 01:54 PM

Sometimes it's the simple things that are the best. ;)

shaynehammy 03-09-2008 07:53 PM

Would this work on 3.6.4?

youradhere4222 03-09-2008 10:18 PM

This is great, but one question.

I'd rather have three greetings -- Good morning, Chase., Good afternoon, Chase., and Good evening, Chase.

I'd rather have something a bit more professional. Would this be hard to do?

youradhere4222 03-09-2008 10:33 PM

Boofo,

I know nothing about coding, but I took a shot at editing the .xml file. Can you tell me if I'm going to experience any problems using the attached code? It's the same, except I removed every statement besides the one I previously mentioned and the "if" statements.

Thank you. :)

KingPin6 03-09-2008 11:55 PM

very nice :) thank you.

TTG 03-10-2008 12:29 AM

Code change seems to remove the "Number of unread posts" since last visit. had to remove this hack as my members like to click the unread posts link to check new posts.

Romeos Tune 03-10-2008 01:38 AM

hmmm Didn't do that on mine.

Ohiosweetheart 03-10-2008 02:23 AM

I love love love it!!

Boofo 03-10-2008 02:30 AM

Quote:

Originally Posted by TTG (Post 1461122)
Code change seems to remove the "Number of unread posts" since last visit. had to remove this hack as my members like to click the unread posts link to check new posts.

Then you messed up the template edit as there is no possible way this touches anything esle but that one line. Check your edits.

Boofo 03-10-2008 02:36 AM

Quote:

Originally Posted by youradhere4222 (Post 1461067)
Boofo,

I know nothing about coding, but I took a shot at editing the .xml file. Can you tell me if I'm going to experience any problems using the attached code? It's the same, except I removed every statement besides the one I previously mentioned and the "if" statements.

Thank you. :)

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.

Boofo 03-10-2008 02:41 AM

Quote:

Originally Posted by Romeos Tune (Post 1461140)
hmmm Didn't do that on mine.

And it won't as he made a mistake in the template edit and replaced the wrong line. ;)

Quote:

Originally Posted by Ohiosweetheart (Post 1461160)
I love love love it!!

Why do I have the feeling that I just gave you a loaded gun? ;)

ssvp 03-10-2008 03:06 AM

Quote:

Originally Posted by TTG (Post 1461122)
Code change seems to remove the "Number of unread posts" since last visit. had to remove this hack as my members like to click the unread posts link to check new posts.

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>';


ssvp 03-10-2008 03:07 AM

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.

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

Boofo 03-10-2008 03:26 AM

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. I added the link to your post with the changes in the fisrt post. ;)

Ohiosweetheart 03-10-2008 03:30 AM

Quote:

Originally Posted by Boofo (Post 1461170)
.... Why do I have the feeling that I just gave you a loaded gun? ;)

Becuz you know me way too well.............. ?? ;)

Boofo 03-10-2008 03:50 AM

That I do. I figured it anyone would pick up on it, you would. Have fun with it as I know only you can. ;)

Ohiosweetheart 03-10-2008 06:14 AM

Oh I shall babe, I definitely shall ;)

Boofo 03-10-2008 06:25 AM

You crack me up! LOL

Ohiosweetheart 03-10-2008 12:01 PM

heheh - how many new "sayings" will this thing hold, and can more be added? If so, where?


All times are GMT. The time now is 05:31 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.01730 seconds
  • Memory Usage 1,818KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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