Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Ultimate Header Greeting for vB 4 Details »»
Ultimate Header Greeting for vB 4
Version: 1.0.7, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.0.x Rating:
Released: 06-13-2010 Last Update: 05-17-2012 Installs: 128
Uses Plugins Auto-Templates
 
No support by the author.

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

Download Now

File Type: zip Ultimate_Header_Greeting_vb4.zip (5.2 KB, 211 views)

Screenshots

File Type: png ultimate_header_greeting.png (3.2 KB, 0 views)
File Type: png birthday.png (4.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
4 благодарности(ей) от:
BCP Hung, elsa23, Hugh_P, Schoelle

Comments
  #82  
Old 05-17-2012, 01:52 PM
CharlieDelta CharlieDelta is offline
 
Join Date: Apr 2010
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Boofo nice to see you working and improving your mods.

I use your mod here in conjuction with this one.
It worked well for me with my usergroup html markups.

Will your new additions affect the markup and the profile links? Maybe you could incorporate those other features then I only need one mod. :up:
Reply With Quote
  #83  
Old 05-17-2012, 02:25 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It will only affect the greeting and username. None of the other stuff in that line is touched, as far as color goes. I added the option to remove the "My Profile" link to this but you can enable/disable that in the settings.
Reply With Quote
Благодарность от:
CharlieDelta
  #84  
Old 05-18-2012, 01:24 AM
BaanFarsang's Avatar
BaanFarsang BaanFarsang is offline
 
Join Date: Jan 2010
Location: Thailand
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"My Profile" is not remove after clicked yes to remove the "My Profile" link in header.
Reply With Quote
  #85  
Old 05-18-2012, 01:34 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I guess that means either this mod is garbage, or you are using a custom style. Which one is it?
Reply With Quote
  #86  
Old 05-18-2012, 02:27 AM
BaanFarsang's Avatar
BaanFarsang BaanFarsang is offline
 
Join Date: Jan 2010
Location: Thailand
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I'm used 2 styles of RoyalFlush and TwistedDarkBlue from CompleteVB. These styles are not removed My Profile. But default style is removed My Profile.
Reply With Quote
  #87  
Old 05-18-2012, 02:34 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All my mods are done using the default style. It would be more trouble than it is worth to try and catch it on every custom style. You are going to have to go in and see where the line for that are (in which template) and what they are exactly (are they using the default line like in the defulat stysle?). Maybe then we can figure out how to add that.
Reply With Quote
  #88  
Old 05-18-2012, 02:39 AM
BaanFarsang's Avatar
BaanFarsang BaanFarsang is offline
 
Join Date: Jan 2010
Location: Thailand
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know how to fix what template.
Reply With Quote
  #89  
Old 05-18-2012, 02:42 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, find out which template it is in for each style and I will tell you.
Reply With Quote
  #90  
Old 05-18-2012, 03:33 AM
BaanFarsang's Avatar
BaanFarsang BaanFarsang is offline
 
Join Date: Jan 2010
Location: Thailand
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found and removed code of navbar template in RoyalFlush style.

Code:
<li><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></li>
Reply With Quote
  #91  
Old 05-18-2012, 04:18 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will get another version out so the setting works for those custom styles that have that line in the navbar template instead of where it really belongs. Why the designers do stuff like that is beyond me.
Reply With Quote
Благодарность от:
BaanFarsang
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 07:20 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05875 seconds
  • Memory Usage 2,351KB
  • Queries Executed 28 (?)
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
  • (2)bbcode_code
  • (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
  • (11)post_thanks_box
  • (6)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete