vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Ultimate Header Greeting for vB 4 (https://vborg.vbsupport.ru/showthread.php?t=244573)

Boofo 06-13-2010 10:00 PM

Ultimate Header Greeting for vB 4
 
1 Attachment(s)
Ultimate Header Greeting for vB 4
Version 1.0.7
(By Boofo)

What does this product do?
This product adds an Ultimate Greeting to the header set to each member's local time, instead of the server time, as well as showing the user's real name, if one is available, in the header and the postbit. It also adds the options to automatically check the 'Register Rules Agree' and 'Remember Me' checkboxes.

Version Information:
Version 1.0.0 --Initial release for vB 4
Version 1.0.1 --Added "Ultimate Header Greeting Font Color" setting and made greeting text bold so it matches the line better.
Version 1.0.2 --Added "New User Profile Field" instructions for the real name to the install file. The Real name will now show both in the header and the postbit, if it is available.
Version 1.0.3 --Added option to check "Register Rules Agree" checkboxes separately from the "Remember Me" checkboxes. Added STANDARD_ERROR templates "Remember Me" checkboxes automatic templates edits.
Version 1.0.4 --Fixed issue with phrases and real name not showing properly for some language translations if you had more than one language installed. Added "Sunday brunch" greeting for Sunday at 11:00 am. The lunch greeting will not be shown on Sunday, but will show on all the other days.
Version 1.0.5 --Removed font color setting and added Style Variable setting for the Ultimate Header Greeting Font Color, so it can be set for each style separately.
Version 1.0.6 --Added CSS code so the username is now in the same color as the welcome greeting. Added setting to remove the "My Profile" link from the header, since clicking on the username/real name in the welcome greeting will already take you to your profile. Added birthday greeting that will show all day on each member's birthday. Added setting to turn the birthday greeting on/off.
Version 1.0.7 --Expanded setting to remove the "My Profile" link from the header and/or navbar templates since some designers insist on moving the link to places it shouldn't be moved to. Hopefully, this will allow more custom styles to be able to use this setting without having to manually edit the templates.

Credits:
A big thank you goes out to Dragonsys for supplying me with a backup of my "Ultimate Navbar for vB3.7" mod, on which this is based.

Installation overview:
-------------------------------
1 Product XML (3 Plugins, 30 phrases, 6 settings and 1 Style Variable)

-------------------------------
Installation Instructions:
-------------------------------
1. Add the following code to the bottom of the additional.css template:

.boofo_uhg_fontcolor, .boofo_uhg_fontcolor a, .boofo_uhg_fontcolor a:link, .boofo_uhg_fontcolor a:visited {
font-weight: bold !important;
color: {vb:stylevar boofo_uhg_fontcolor} !important;
}

2. 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-boofo_ultimate_header.xml file on your computer

[OPTIONAL]
3. 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: Enter your real name here.

Profile Field Type: Single-Line Text Box
Field Required: No
Field Editable by User: Yes
Private Field: No
Field Searchable on Members List: No
Show on Members List: No
Which page displays this option? Edit Profile

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


4. Go to your Admin CP -> vBulletin Options -> "Ultimate Header Greeting" and set the following options:
--Enable the Ultimate Header Greeting: Click Yes to enable the "Ultimate Header Greeting". (Default is 'No')
--Real Name Profile Field Number: Enter the profile field number for the Real Name, if you have one. Otherwise, leave this option set at 0. (Default is '0')
--Remove My Profile Link in Header: Click Yes to remove the "My Profile" link in header. (Default is 'No')
--Check Remember Me Boxes: Click Yes to check the "Remember Me" boxes automatically. (Default is 'No')
--Check Register Rules Agree Boxes: Click Yes to check the "Register Rules Agree" boxes automatically. (Default is 'No')
--Show Birthday Greeting: Click Yes to show the birthday greeting all day to each member on their birthday. (Default is 'No')

5. Go to your Admin CP -> Styles & Templates -> Style Manager -> StyleVars (In the All Style Options drop-down) -> Boofo -> boofo_uhg_fontcolor
Enter the color code of the font color that you want the greeting to show up in. -- Default is #FFF099 (Because I'm too lazy to remember the default color for my own site.)

NOTE: You will need to do this for all styles.
-------------------------------

Done!
Enjoy!


Code:

if ($mark_as_installed != 'clicked')
{
        $you_get = 'squat';
}
else
{
        $you_get = 'support';
}


Charlie98902 06-14-2010 09:21 AM

Thanks tagged and will use later today.

your24hourstore 06-14-2010 11:56 AM

can you make this change the color of the messege boofo the color never works with my header for WELCOME

put a option for #000000 in it ?

Boofo 06-14-2010 01:12 PM

It uses the default header. Whatever the message color is before you install it is the same color it should be after you install it. The color doesn't get touched, just the wording. Were you able to see the word Welcome before?

your24hourstore 06-14-2010 02:03 PM

Quote:

Originally Posted by Boofo (Post 2053442)
It uses the default header. Whatever the message color is before you install it is the same color it should be after you install it. The color doesn't get touched, just the wording. Were you able to see the word Welcome before?

I could see its just kind of camouflaged, would like to set it to a new color how bout a mod to do just that LOL

Charlie98902 06-14-2010 02:32 PM

Go into stylvars and change the color of that text is what he just said. You can't change just that color alone bu the whole text area up there.

your24hourstore 06-14-2010 06:20 PM

the rest is fine its white the welcome is a grey color so its not if it was white also it would be ok , so .. ive changed what i can

your24hourstore 06-14-2010 06:23 PM

Quote:

Originally Posted by Boofo (Post 2053442)
It uses the default header. Whatever the message color is before you install it is the same color it should be after you install it. The color doesn't get touched, just the wording. Were you able to see the word Welcome before?

the mod didnt change a thing other than the greeting :>
so its fine
was just saying what i would like

Charlie98902 06-14-2010 07:36 PM

Go into the header and manually edit the color then? I didn't experience what you are mine stayed whit along with the rest of my text links up there.

Front Range 06-14-2010 07:43 PM

Nice Boofo, installed.


All times are GMT. The time now is 03:06 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.01245 seconds
  • Memory Usage 1,753KB
  • 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
  • (1)bbcode_code_printable
  • (2)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
  • (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