Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Information Bar for Guests Details »»
Information Bar for Guests
Version: 1.05, by Slapyo Slapyo is offline
Developer Last Online: Apr 2013 Show Printable Version Email this Page

Version: 3.6.6 Rating:
Released: 08-04-2006 Last Update: Never Installs: 198
Template Edits
Additional Files  
No support by the author.

https://vborg.vbsupport.ru/showthread.php?t=72279 - Original hack for 3.0.x
https://vborg.vbsupport.ru/showthread.php?t=97150 - Hack for 3.5.x

What is this?
This will display an information bar across the top of the browser window that appears to be like the Information Bar that is from Windows XP SP2. When the user clicks it they will be sent to the registration page for your forums. This is not a popup.

If the user is logged in then this will not display at all. This only appears on the page for people who are not logged in.

http://www.veteransresources.org/forums/index.php? - Example Site

How many changes?
  • Uploads: 4
    • infobar.css
    • infobar.wav (optional)
    • warning.gif
    • warning2.gif
  • File edits: 0
  • Template edits: 2
    • headinclude
    • header
  • New templates: 0
  • Queries: 0

Version History
  • 1.05
    • fix for Firefox (Bytecon)
  • 1.04
    • added info bar sound (Lionel)
  • 1.03
    • no javascript required now
    • works in Firefox
  • 1.02
    • removed information bar any browser other than IE
  • 1.01
    • removed information bar from login and registration pages (Lionel)
  • 1.00
    • initial release

Screenshots
Guest on forums
Guest hovering over info bar

Please click Install this Modification if you like it.

Show Your Support

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

Comments
  #52  
Old 09-24-2007, 03:45 PM
nnjj.net nnjj.net is offline
 
Join Date: Dec 2002
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this mod. work on 3.6.8?
Reply With Quote
  #53  
Old 09-24-2007, 07:01 PM
Khashayar581 Khashayar581 is offline
 
Join Date: Sep 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, it works fine on 3.6.8
Reply With Quote
  #54  
Old 09-24-2007, 09:34 PM
Khashayar581 Khashayar581 is offline
 
Join Date: Sep 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Khashayar581 View Post
great idea. i installed and it works fine...
... but i want to make the whole things right aligned, would u please help me how???
so, where's the support??
Reply With Quote
  #55  
Old 09-25-2007, 12:08 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Khashayar581 View Post
so, where's the support??
you can't expect coders to be on 24 hour call - that is wrong.

Try this in your header template (instead of the code indicated in the install info) to align it to the right:
Quote:
<if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')">
<div id="infobar" align="right"><a href="$vboptions[bburl]/forum/register.php?referrerid=1"><p>It appears you have not yet registered with our community. To register please click here...</p></a><embed src="infobar.wav" autostart="true" loop="0" hidden="true"></embed></div>
</if>
the above assumes that your forum is in the "forum" directory - if it is not then change the URL accordingly.
Reply With Quote
  #56  
Old 09-25-2007, 08:49 AM
Khashayar581 Khashayar581 is offline
 
Join Date: Sep 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')">
<div id="infobar" align="right"><a href="http://www.forum.persianfinance.net/register.php?referrerid=1"><p>
content goes here</p></a></div>
</if>
as u see, i add the align="right" to the div, but just my texts goes to right, what should i do to make the info icon to right too???!!!
Reply With Quote
  #57  
Old 09-28-2007, 08:41 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Khashayar581 View Post
Code:
<if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')">
<div id="infobar" align="right"><a href="http://www.forum.persianfinance.net/register.php?referrerid=1"><p>
content goes here</p></a></div>
</if>
as u see, i add the align="right" to the div, but just my texts goes to right, what should i do to make the info icon to right too???!!!
that is defined in the CSS - off the top of my head, without testing it try this:

Quote:
body {
margin: 0 !important;
padding: 0 !important;
}

/* A fake IE information bar */
#infobar {
font: message-box;
}

/* Please adjust the values if the infobar is not looking good */
#infobar a, #infobar a:link, #infobar a:visited, #infobar a:active {
display: block;
color: #000;
width:100%;
background: #FFFFE1 url(warning.gif) no-repeat right top .3em .3em;
border-bottom: .16em outset;
text-decoration: none;
cursor: default;
}

#infobar a:hover {
color: #FFF;
background: #3169B6 url(warning2.gif) no-repeat right top .3em .3em;
}

#infobar p{
margin:0px;
padding: .45em 0em .45em 22px;
font-size:11px;
}
Reply With Quote
  #58  
Old 09-29-2007, 02:37 PM
HeRmAn'S HeRmAn'S is offline
 
Join Date: Apr 2006
Location: ThE FaR EnD Of tHe wOrLd
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, :up: very nice.:erm:
Reply With Quote
  #59  
Old 10-07-2007, 01:17 PM
Pete C's Avatar
Pete C Pete C is offline
 
Join Date: Aug 2005
Location: South coast, England
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Installed* This is an excellent little hack. I've changed the wording a bit, and added a custom .wav file. This will either improve the registration rate, or annoy the heck out of those who can't be bothered LOL

Thank you, just what my site needed!

Incidentally, the sound plays in both Firefox & IE, which is more than I'd hoped for. A great job, keep up the good work. :up:
Reply With Quote
  #60  
Old 10-07-2007, 02:33 PM
Pete C's Avatar
Pete C Pete C is offline
 
Join Date: Aug 2005
Location: South coast, England
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<i>For anyone who may have concerns that the "warning" image gives the false impression of a security risk, you might like to use these instead (see attached). They're just a simple letter "i" in a circle, which I'm sure most folks would interpret as an information logo.</i>
Reply With Quote
  #61  
Old 10-30-2007, 01:47 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One of the pitfalls of this hack that has been pointed out is that the first thing a search engine sees is this...
HTML Code:
<!-- ADDINFO BAR PLUGIN -->
<div id="infobar"><a href="http://www.example.com/forums/register.php"><img style="vertical-align:middle;margin:3px 5px;border:none;float:left;" src="http://www.example.com/forums/images/misc/warning.gif" alt="" /><span>Welcome to <strong>Greatest Forum</strong> - please click here to register. If you are already a member, please log in.</span></a></div>
<!-- END ADDINFO BAR PLUGIN -->
And as a result, many times when you see a site with a welcome message indexed in the search engines with a listing like...

The Greatest Forum
Welcome to Greatest Forum - please click here to register. If you are already a member, please log in.

Not very informative.

So anyway, here's a suggestion.

in the CSS file find:
HTML Code:
/* A fake IE information bar */
#infobar {
	font: message-box;
}
Change to:
HTML Code:
/* A fake IE information bar */
#infobar {
	font: message-box;
	position:fixed;
	left:0px;
	top:0px;
}
If you have this mod installed, remove the header edit and install this in the footer instead. This goes at the end of the footer template.
HTML Code:
<if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')">
<div id="infobar"><a href="http://www.example.com/forums/register.php?referrerid=1"><p>It appears you have not yet registered with our community. To register please click here...</p></a><embed src="infobar.wav" autostart="true" loop="0" hidden="true"></embed></div>
</if>
Now the first thing a guest sees is still your welcome message. But the SEs parse the code and the message is the last thing they see before the closing body tag. You'll also notice that the infobar stays at the top even when the member scrolls.

Of course your mileage may vary with the CSS positioning settings thus requiring you to make some adjustments. This can cover stuff up depending on your style. But this is tested on IE and FF and appears to work on a validated XHTML page.
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 11:10 AM.


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.05507 seconds
  • Memory Usage 2,325KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_html
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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_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