View Full Version : Add-On Releases - Infobar On All Pages
dartho
12-11-2006, 10:00 PM
This is an modification/extension to Slapyo's "Information Bar for Guests" mod found over HERE (https://vborg.vbsupport.ru/showthread.php?t=123117)
I used his mod for advertising features or events on my site such as when a few people got together in Chat, or if I wanted to bring everyones attention to specific page or thread. I didnlt like editing the templates by hand each time I changed the text or URL, thus this install.
You can control the Text, URL and which usergroups will see the Inforbar via the AdminCP.
As of 1.0.4 you can have 2 different Infobars display to 2 different usergroups, say one for guests encouraging them to register and one for registered users informing them of a new feature or upcoming event or asking them to donate dollars....
No checking is done on this - I suggest you don't enable multiple infobars for the same usergroup!
The CSS and GIF files included are from Slapyo's add-on.
Instructions:
Upload 3 files to your forum root
Import Product File
Modify URL, Text and enable Infobar in vBulletin Options (Infobar) in your AdminCP.
Tested on 3.6.4
Version History
1.0.1 Initial Release
1.0.2 Usegroup Conditionals Added in AdminCP
1.0.3 Internal Update
1.0.4 Now supports 2 Infobars for different usergroups
Upgrade instructions, install new XML, re-enter your Infobar settings in AdminCP in required
Shazz
12-12-2006, 01:16 AM
Im using the 3.5.4 version works on my 3.6 but this looks like the exact same screen shot and easier to manipulate
good job ;)
dartho
12-12-2006, 01:35 AM
The infobar itself will look identical as it is using the same CSS file and Gif's.
It is easier to manipulate, but cut back slightly on what it does , which is perfectly useful for what I use it for!
The main addition I would like is that I would like to be able to schedule it being enabled/disabled but don;t know how :(
dartho
12-12-2006, 02:08 AM
Added UserGroup conditionals for displaying the information bar
lovelypk
12-12-2006, 03:17 AM
Was looking for something like this.
Thanks
bashy
12-12-2006, 05:13 AM
Hi
Due to using a portal (not VB in anyway), what would i need to remove from the product so that i could manually add the template codes please? I would need the code to go in the portals header template.....
dartho
12-12-2006, 07:21 AM
Check teh original version of this hack HERE (https://vborg.vbsupport.ru/showthread.php?t=123117)
to do this manually in a non-VB page, just upload the files and add the following to any web page you want to have an infobar on:
put this in your <head> </head> section
<link rel="stylesheet" href="infobar.css" type="text/css" />
and this at the top of your <body> </body> section - first line preferably
<div id="infobar">
<a href="http://google.com"><p>Click here to go to Google...</p></a></div>
Of course changing the link and text to what you require...
What portal system you using? Or is it custom?
Hornstar
12-12-2006, 08:47 AM
Nice work. Thanks.
Snake
12-12-2006, 10:31 AM
Thanks. Works good. :)
dartho
12-12-2006, 10:42 AM
Thanks - I wanted something liek this for ages - as a non-coder, it took me a while to work it out. Once I did - it was relatively easy
I'd still like help to CRON/Schedule enabling/disabling it... :D
iran.gs
12-12-2006, 11:27 AM
Excellent Work, Installed
projectego
12-12-2006, 02:11 PM
Nice work. Cheers. :)
Phooey
12-13-2006, 01:26 PM
Awesome, thanks!
/installed
smoknz28
12-13-2006, 02:24 PM
Dartho, thanks for sharing this hack with us. :banana:
BigJimTheLug
12-20-2006, 06:04 AM
Hi,
I'm interested in adding this feature to my website, but I'd like clarification on whether or not this qualifies as a violation of Adsense TOS.
Does any one know if it is?
Thanks.
dartho
01-03-2007, 10:19 AM
Did you find anything out about this, MARKETPROFITS ?
dartho
01-14-2007, 09:16 PM
**UPDATED**
Now supports 2 different infobars for different usergroups!
Phooey
01-14-2007, 09:19 PM
Awesome update, thanks!
testebr
03-27-2007, 09:39 PM
how to add an close button controled with cookies?
if user close infobar then never more will show
** edit: done, I did it with collapse tool from vbulletin
BigJimTheLug
03-27-2007, 09:52 PM
Did you find anything out about this, MARKETPROFITS ?
Yes, I did. Thanks for asking. I contacted Google about it and showed them a screen shot and they said it was within Google's TOS.
Thanks for the great product! This works like a charm!
dartho
03-28-2007, 06:59 AM
how to add an close button controled with cookies?
if user close infobar then never more will show
** edit: done, I did it with collapse tool from vbulletin
Nice touch! Are you able to share your code modifications to do this - I could add an option in the AdminCP...
testebr
03-28-2007, 06:35 PM
Sorry for my bizarre solution, but my code is:
<if condition="!$show['search_engine']"><if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')"><div id="collapseobj_infobar" style="$vbcollapse[collapseobj_infobar]">
<div id="infobar">
<a href="register.php"><p><span onclick="return toggle_collapse('infobar')" style="cursor: pointer; float: right; padding: 0px 5px 0px 5px;"><strong>x</strong></span>MY PERSONAL MESSAGE HERE, I USE ONLY FOR ASK GUEST TO REGISTER...</p></a>
</div>
</div></if></if>
I dont use your plugin, but you can get my idea to improve your product ;)
Bye
ra7al
03-28-2007, 07:27 PM
I Like it ..... Nice Work
installed
giovannicosta
03-29-2007, 07:39 PM
great, thanks.
bada_bing
03-30-2007, 12:32 AM
reserved for future install
The Bish
03-30-2007, 05:36 AM
Greatness!
Spika
04-08-2007, 08:57 PM
Great Addon!
Works fine in 3.6.5
Thanks!
ComputerVitals
04-10-2007, 03:01 AM
Very nice.
Is there a way I can have 2 links in one bar? Instead of 2 bars?
Nathan2006
04-10-2007, 08:18 PM
Thank you dartho
Install :)
dbirosel
04-10-2007, 11:07 PM
will save for future use. thanks.
dartho
04-10-2007, 11:26 PM
Very nice.
Is there a way I can have 2 links in one bar? Instead of 2 bars?
It could be done, the CSS and XML would need to be modified, and it would then be up to you to add in all the HTML code - I'll have a go when I get my test board up again, but don;t hold your breath! Whats an example or what you'd want?
nokalexander
04-11-2007, 01:52 AM
Nice job there! Installed :)
pisliq
07-24-2007, 10:37 AM
Thanks...
dartho
07-24-2007, 11:56 PM
You're welcome - Feel free to click Mark as Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=133781) ;)
Perfect. Worked better than the original. :)
WiseOne38221
08-04-2007, 03:11 PM
EXCELLENT Mod, Dartho! I only wish there were THREE infobars...one for Members, one for Mods, and one for Guests...How would I do that?
welovehiphop
08-04-2007, 09:06 PM
very nice mod!
meissenation
08-05-2007, 02:11 AM
Cool idea, have it installed but I can't get it to actually show up...
dartho
08-05-2007, 08:25 AM
@meissenation - You may need to do the template edits manually rather than the add-on trying to do it automatically. I'll throw some instructions up when I get a chance.
@wiseone38221 - I'll update and allow more infobars when I get the time.
meissenation
08-05-2007, 08:13 PM
Sounds good -- Subscribing to the thread.
dartho
08-06-2007, 01:23 AM
@ meissenation - I've looked into this and the Infobar addon is actually working on your site, but your banner is designed such that it positions itself absolutely at the top of the browser window, and as such goes over top of the Infobar...
If I make the infobar absolute, that might fix it up for you. I'll test this when I do my next release.
rayphua
08-06-2007, 01:26 AM
Yeah, I second Wiseone's thoughts. 3 infobars or even more if possible. Thanks dartho for looking into it!
meissenation
08-06-2007, 09:39 PM
Awesome, Dartho. Thanks for doing what you're doing. Wish I had the knowledge to create cool mods and share them with the community.
TrIn@dOr
08-07-2007, 02:35 PM
Installed, thanks.
nnjj.net
09-28-2007, 03:15 PM
how I can hcnge the color and the place of it?
dartho
10-01-2007, 01:31 AM
Edit the CSS file to change the colour.
Where else would you want it to appear? You'd have to either eidt the plugin "Add Infobar" plugin, which would be a bit fiddly, or disable the plugin and then manually insert the code in a template where you want it. If you going down teh manual path, you should probably check out this one: https://vborg.vbsupport.ru/showthread.php?t=123117 which is what this addon is based on.
thaki
10-01-2007, 07:49 AM
Great work, well done
nnjj.net
10-04-2007, 06:25 PM
I have vBa CMPS as my index page
the problem is that when I activate the infbar its work great in the forum but with no style
and when I try to correct the path of the style it works on vBa CMPS but I lost the style in the forum
how I can have the style worked in both?
or remove the infobar from vBa CMPS
dartho
10-04-2007, 11:00 PM
@nnjj.net - does this happen when you use this add-on 'out of the box' or when you try to use it manually?
I use it with vBa CMPS without issue 'out of the box'.. It is possible that it could clash with other add-ons or with styles that use absolute placements of header images...
nnjj.net
10-05-2007, 10:04 PM
'out of the box'
dartho
10-06-2007, 06:37 AM
OK - I just had a look at your site, and the code for the infobar is there on your portal and forum page. Paths used in this add-on assume that all required files are in the current directory. I *think* you may need to copy the css and image files to your root webspace in addition to your forum root.
xcingix
12-29-2007, 04:44 PM
I changed
#infobar a:hover {
color: #FFF;
background: #3169B6 url(warning2.gif) no-repeat fixed .3em .3em;
}
to#infobar a:hover {
color: #FFFFFF;
background: #3169B6 url(warning2.gif) no-repeat fixed .3em .3em;
}
and the hover color of the text is still black.
Any ideas?
This wouldn't have to be updated for 3.7.0 would it?
dartho
12-29-2007, 09:20 PM
I haven't tested this on any 3.7 betas yet - but would imagine any issues.
As for the text color not changing to white, The only thing I can think of is that there is another CSS declaration over-riding this one.
Do you have a link where I can look at your issue?
xcingix
12-31-2007, 02:35 PM
I haven't tested this on any 3.7 betas yet - but would imagine any issues.
As for the text color not changing to white, The only thing I can think of is that there is another CSS declaration over-riding this one.
Do you have a link where I can look at your issue?How do you suggest I try and figure out whats interfering because Im looking at all the CSS here and don't see another infobar
dartho
01-01-2008, 09:49 AM
It's got me buggered - esp since the CSS obviously works for the "background"...
I'll test it under 3.7 soon and see if there is some issue there.
dartho
01-01-2008, 10:02 AM
Just tested on a vanilla 3.7 B3 and works as expected.
Havikng a look at your site, I see that you have the infobar.css declaration as well as teh contents of the infobar.css in your regular style css (clientscript/vbulletin_css/style-d6c0460d-00215.css). I suggest you only have it declared a single time - try editing the the "Add Infobar" plugin and commenting out the 2 occurrences of
$StrTmp = '<!-- ADDINFO BAR PLUGIN -->\n<link rel=\"stylesheet\" href=\"infobar.css\" type=\"text/css\" />\n<!-- END ADDINFO BAR PLUGIN -->\n';
$vbulletin->templatecache['headinclude'] = $StrTmp . $vbulletin->templatecache['headinclude'];
Then the CSS should only be declared once
xcingix
01-01-2008, 12:26 PM
It's got me buggered - esp since the CSS obviously works for the "background"...
I'll test it under 3.7 soon and see if there is some issue there.
i commented them out and now the infobar doesn't work.
Also the infobar was doing the same thing before i added the second occurrence in the css.
i added it as a troubleshooting step.
[edit]
now i got rid of the infobar classes in my extra CSS and left the product as is and re-imported and it's still black.
please help.
Mesohu
05-12-2008, 10:11 AM
Just installed in vB 3.7 & works without problems.
Great job .
* mark as installed.
Maybe in the future you will upgrade it for vB 3.7 .
ADomoWorld
01-27-2009, 09:35 AM
Id like to see this stay at the top of the browser.. its easy in ACP controls are soo nice
enterhaken
05-10-2009, 06:16 AM
Hi there,
works this nice addon with 3.8.2?
dartho
05-10-2009, 09:09 AM
yes - fine with 3.7 + 3.8
NThomas
05-27-2009, 01:43 AM
Any way to keep it "following" a user when they scroll down the page like this site: www.that-forum.com (http://www.that-forum.com/index.php)
dartho
05-27-2009, 07:28 AM
yes - you could position it absolutely, but it would then cover up the top half inch of your site.
Edit the infobar.css file, and add
position:fixed;
left:0px;
top:0px;
z-index:10000;
immediately below:
#infobar a, #infobar a:link, #infobar a:visited, #infobar a:active {
display: block;
color: #000;
width:100%;
background: #FFFFE1 url(warning.gif) no-repeat fixed .3em .3em;
border-bottom: .16em outset;
text-decoration: none;
cursor: default;
and you'll see what I mean - depending on your sites header, it may not matter to you so much
NThomas
05-27-2009, 06:54 PM
Yeah. I just made the header logo a bit larger. Thanks!
Julian360
10-09-2009, 05:59 AM
Great! Thank you.
Shanj
01-09-2010, 10:46 AM
VB 4.0?
Also I'd want different infobars for different usergroups to run alongside one for everyone.
Ansaar Media
11-02-2010, 02:02 AM
Nice one!
Thanks
Manoel J?nior
11-02-2010, 01:34 PM
Wowwwww
Greatest!!!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.