vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Information Bar for Guests (https://vborg.vbsupport.ru/showthread.php?t=123117)

Slapyo 08-04-2006 10:00 PM

Information Bar for Guests
 
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.

Posof 08-05-2006 03:07 PM

:)


Nice just what i need..


Thanks

project-Buckfas 08-05-2006 03:54 PM

Reserved.

Snake 08-05-2006 04:39 PM

Thank you! :)

rmxs 08-05-2006 08:56 PM

I ask beffore in the old version byt nothing..

I try again here Its poosible the bar follow the screen??

Slapyo 08-06-2006 07:35 AM

I'm sure there is a way but I haven't looked into it. The last time I did it would work in 1 browser but not the other. I couldn't get it working the same in both. If anyone can, post the code and I'll include it.

PersianImmortal 08-06-2006 10:59 AM

Looks good.

Just a question before I install - does this allow you to set the usergroup for which the bar appears?

In my case, I'd prefer for the bar to appear for new registrants, prompting them to read the forum rules first before posting.

So I guess it might be a different mod, but if you could do the same thing so that all Registered Members see this popup until they click to go to the relevant link (forum rules in my case), and after that it doesn't appear again. I think something along those lines would be in even greater demand :)

Slapyo 08-06-2006 02:55 PM

You could probably set something up ... just change the IF statement around. Right now it looks for guests.

tpzone 08-07-2006 05:07 AM

installed, very nice. thank you.

one question. using CMPS with it on vB3.6 and the 'home' page it just shows up as a link and not with the fancypants box around it. is there a way to get it to display on the main portal page as well? i don't mind the plain text link asking people to register but the box version that's on all the other pages does look nicer.

thanks!

Slapyo 08-07-2006 12:39 PM

You will need to adjust the style sheet and where it points to for images ... maybe point the sheet to http://www.domain.com/forums/infobar.css and then open that up and point the images to the same ... include the full url to the image.

tpzone 08-07-2006 02:30 PM

Slapyo,

Thanks bro, I edited the css and the headerinclude with the full links and everything works like a charm now!!

iran.gs 08-07-2006 03:46 PM

thanks so much, l was looking for this for a long time..

ghostsoft 08-13-2006 06:43 PM

i think if u but the php code that show the forum name
eg " register in (forum name )

thank u

Triggerhappy 08-14-2006 02:54 AM

Nice little hack thanks

SaN-DeeP 08-30-2006 12:42 AM

thanks for the addon, i was searching for this for all prior versions never knew it was there ;)

Kuimera 08-31-2006 04:31 AM

Seems to have a prob with Opera, it gives a uge spaca beetween the bar and the logo... Any ideas? Im using a costum theme.

lanc3lot 09-01-2006 03:20 AM

Nice Addon, i remember that back in 3.5.4, it had an addon to appear the same bar, for users that havent post a thread since a while and also for users that havent any post at all...Can u please add them here too?

Ty in advance

Slapyo 09-03-2006 05:18 AM

Code:

condition="$bbuserinfo[posts]<1"
Just add that into the conditional statement.

https://vborg.vbsupport.ru/showthrea...t=97150&page=2

The last few posts on that page talk about this. Should be the same.

TCB 09-03-2006 03:13 PM

it may be a bit annoying for people that it keeps popping, but it's a real nice looking feature. Thanks :D

Slapyo 09-15-2006 04:31 AM

Updated to 3.6.1 and it works just fine.

Slapyo 10-08-2006 01:28 PM

Updated to 3.6.2 and it works just fine.

Mecho 10-08-2006 07:04 PM

tnx .. installed .

great and work fine :)

AdmiralSpock 10-12-2006 09:09 PM

Quote:

Originally Posted by Kuimera
Seems to have a prob with Opera, it gives a uge spaca beetween the bar and the logo... Any ideas? Im using a costum theme.

A search in the 3.5.x version thread said that removing the embed code from the hack will take out that space. I am also an Opera user, and I know that would have bothered me. :)

So this is what I put in my header template:

Code:

<if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')">
<div id="infobar"><a href="<my site url>/register.php?referrerid=1"><p>It appears you have not yet registered with our community. To register please click here...</p></a></div>
</if>

And it works fantastically.

*installed*

Red Matrix 10-16-2006 07:43 AM

Aak, this looks like a virus message. Uninstalls.

Avensen 10-16-2006 03:23 PM

Cool hack. Thank you!

imported_infitech 11-16-2006 08:30 PM

i get some weird clear box on the top left, a large gap and something asking me about a plugin in forefox and internet explorer.... i will attach the screenshots.

i will also post the code to my header and navbar

header
Code:

<script type="text/javascript">
<!--
function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
        if (confirm('$vbphrase[sure_you_want_to_log_out]'))
        {
                return true;
        }
        else
        {
                ht[0].style.filter = "";
                return false;
        }
}
//-->
</script>
<if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')">
<div id="infobar"><a href="$vboptions[bburl]/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>
<!-- right_column_hack -->
<a name="top"></a>
<table valign="top" border="0" width="950px" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td valign="top">
<!-- /right_column_hack -->
<!-- logo -->
<a name="top"></a>
<table valign="top" border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td width="160" valign="top" class="page" align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$vboptions[bburl]/images/misc/inf_sin_logo.jpg" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td height="39px" class="page" align="$stylevar[left]">
                <br /><ul id="maintab" class="shadetabs">
<li <if condition="THIS_SCRIPT == 'index'">class="selected"<else /></if>><a href="index.php" rel="ajaxcontentarea">Home</a></li>
<li <if condition="THIS_SCRIPT == 'faq'">class="selected"<else /></if>><a href="$vboptions[bburl]/faq.php" rel="ajaxcontentarea">FAQ</a></li>
<li <if condition="THIS_SCRIPT == 'memberlist'">class="selected"<else /></if>><a href="$vboptions[bburl]/memberlist.php" rel="ajaxcontentarea">Member List</a></li>
<li <if condition="THIS_SCRIPT == 'ppindex'">class="selected"<else /></if>><a href="$vboptions[bburl]/gallery/" rel="ajaxcontentarea">Gallery</a></li>
<li <if condition="ALTSEARCH == 'true'">class="selected"<else /></if>><a href="$vboptions[bburl]/search.php?do=getnew" rel="ajaxcontentarea" rel="ajaxcontentarea">New Posts</a></li>
<li <if condition="ALTSEARCH == 'true'">class="selected"<else /></if>><a href="$vboptions[bburl]/search.php" rel="ajaxcontentarea">Search</a></li>
<if condition="$show['member']">
<li><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onClick="return log_out()"  rel="ajaxcontentarea">Logout</a></li><else />
<li <if condition="THIS_SCRIPT == 'register'">class="selected"<else /></if>><a href="register.php$session[sessionurl_q]" rel="ajaxcontentarea">Register</a></li></if>
<li <if condition="THIS_SCRIPT == 'calendar'">class="selected"<else /></if>><a href="$vboptions[bburl]/calendar.php"  rel="ajaxcontentarea" rev="content.css, content.js">Calendar</a></li>
</ul>
<br />

       
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

navbar
Code:

<if condition="is_array($navbits)">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>$phpAds_raw3[html]</td>
  </tr>
</table><br />
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]&nbsp;><a href="$scriptpath"></a>
                        <strong><span class="smallfont>">$navbits[lastelement]</span></strong></td>
  </tr>
</table>

                                                                <br />                       
                <else />
                       
                </if>


imported_infitech 11-17-2006 06:06 PM

anyone?

Smoothie 11-18-2006 02:45 AM

Just checked your site and it displays fine for me.

firefox100 11-22-2006 11:01 AM

Installed, very nice.

Hanks. ;)

Terminatoronly 11-25-2006 10:10 AM

nice hack installed ;)

taydu 11-25-2006 04:03 PM

Imported Infitech,

I looked at your screen shots and saw that you have a give away running on your forum. If you don't mind, what mod are you using.

Thanks

Slapyo 11-27-2006 01:33 PM

Updated to 3.6.4 and it works just fine.

mlotziii 12-08-2006 02:41 AM

thanks! This is a great mod for boards with high traffic!

imported_infitech 12-09-2006 01:44 PM

Quote:

Originally Posted by taydu (Post 1124905)
Imported Infitech,

I looked at your screen shots and saw that you have a give away running on your forum. If you don't mind, what mod are you using.

Thanks

It's probably because you had the plugins installed.
I'm sure anyone else installing this mod that is on a freshly installed OS will get the same problem.

Has anyone heard of this before?

djlotus 12-19-2006 02:46 AM

This hack is prerfiect for my site. Subtle, yet blends into the browser. Thank you.

Dead End Society 12-27-2006 08:28 PM

Quote:

Originally Posted by Slapyo (Post 1046631)
You will need to adjust the style sheet and where it points to for images ... maybe point the sheet to http://www.domain.com/forums/infobar.css and then open that up and point the images to the same ... include the full url to the image.

Quote:

Originally Posted by tpzone (Post 1046709)
Slapyo,

Thanks bro, I edited the css and the headerinclude with the full links and everything works like a charm now!!

I have the same problem but need someone to be a little more clear for me as to what to do. Sounds like an easy fix.

-----

I got it taken care of, thanks.

adonfun 12-27-2006 10:39 PM

Thank you, I was looking for this one :)

Installed it

mrkhm 01-24-2007 04:46 PM

sweet *installed

Chris 96 WS6 01-27-2007 10:11 PM

I installed this yesterday. I usually average about 5 new members/day. Yesterday I had only 1 from 12AM to 5:30PM when I installed this hack. From 5:30pm to midnight I got 9 new members.

I'll let everyone know if the trend continues, but I think this definitely gets guests' attention.

The only drawback is I have a couple of people that are members that insist on logging in/out every visit, and they are annoyed by the popup. I don't think there is any way to help them.

Chris 96 WS6 01-31-2007 11:06 AM

Just a quick update. I've had this installed for 5 days now, and received 53 new members in that time. For the 5 days preceeding I had 36. This modification increased visitor-to-member conversion about 33% on my board.


All times are GMT. The time now is 06: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.01431 seconds
  • Memory Usage 1,828KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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