vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Infobar On All Pages (https://vborg.vbsupport.ru/showthread.php?t=133781)

dartho 12-11-2006 10:00 PM

Infobar On All Pages
 
This is an modification/extension to Slapyo's "Information Bar for Guests" mod found over HERE

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

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
HTML Code:

<link rel="stylesheet" href="infobar.css" type="text/css" />
and this at the top of your <body> </body> section - first line preferably
HTML Code:

<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


All times are GMT. The time now is 11:51 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.01221 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_html_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