vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Mini Mods - IE Style infobar Alert (https://vborg.vbsupport.ru/showthread.php?t=169300)

unitedpunjab 01-31-2008 10:00 PM

IE Style infobar Alert
 
IE Style infobar Alert

This little mod is very similar to this mod.
https://vborg.vbsupport.ru/showthread.php?t=120784
Just a different style.

Installation.
  1. Upload infobar.css from the attached zip to /clientscript/vbulletin_css
  2. Upload alert.png to /images
  3. Edit header template and add this code at the top.
    Code:

    <if condition="$show[guest]">
    <!-- Infobar -->
    <link rel="stylesheet" href="clientscript/vbulletin_css/infobar.css" type="text/css">
                    <div id="info"><div id="infobar" align="left"><a href="register.php">You are not registered yet. Please click here to register!</a></div></div>
    <!-- Infobar -->
    </if>


iogames 02-01-2008 12:53 AM

seen it before :(

skrazydogz 02-01-2008 05:42 AM

i cant see the picture in front of the sentence (alert.png) :(

seangworld 02-01-2008 07:22 AM

good deal.

Magnumutz 02-01-2008 02:42 PM

Thanks, looks better then other versions.

Chewitt 02-03-2008 06:44 AM

i dont get the alert pic showing up either

Chewitt 02-03-2008 06:50 AM

in the Zip file it list the template eddit as
Code:

<if condition="$show[guest]">
      <!-- Infobar -->
      <link rel="stylesheet" href="clientscript/vbulletin_css/infobar.css" type="text/css">
                      <div id="info"><div id="infobar" align="left"><a href="register.php">You are not registered yet. Please click here to register!</a></div></div>
      <!-- Infobar -->
      </if>[

when infact it should be
Code:

<if condition="$show[guest]">
      <!-- Infobar -->
      <link rel="stylesheet" href="clientscript/vbulletin_css/infobar.css" type="text/css">
                      <div id="info"><div id="infobar" align="left"><a href="register.php">You are not registered yet. Please click here to register!</a></div></div>
      <!-- Infobar -->
      </if>

due to there been a rouge [ in it your header displays wrongly, but that dont solve the alert problem

Chewitt 02-03-2008 06:55 AM

fixed it this code works and shows the alert image, hope you dont mind.
Code:

<if condition="$show[guest]">
      <!-- Infobar -->
      <link rel="stylesheet" href="clientscript/vbulletin_css/infobar.css" type="text/css">
                      <div id="info"><div id="infobar" align="left"><a href="register.php"><img src="images/alert.png" /> You are not registered yet. Please click here to register!</a></div></div>
      <!-- Infobar -->
      </if>


unitedpunjab 02-03-2008 10:07 AM

Thanks,I have corrected the error.

pericolosogr 02-04-2008 02:12 AM

what about vbadvanced cmps integration?
It doesnt show up right, css isnt workin...

unitedpunjab 02-04-2008 10:01 AM

Quote:

Originally Posted by pericolosogr (Post 1435762)
what about vbadvanced cmps integration?
It doesnt show up right, css isnt workin...

Copy the contents of the css file to bottom Additional CSS Definitions box.

admincp > style manager > styles and templates > main css.

skrazydogz 02-05-2008 01:53 PM

For this people who wanted no border around the image, please use this code:

Code:

<if condition="$show[guest]">
      <!-- Infobar -->
      <link rel="stylesheet" href="clientscript/vbulletin_css/infobar.css" type="text/css">
                      <div id="info"><div id="infobar" align="left"><a href="register.php"><img src="images/alert.png" border="none" /> You are not registered yet. Please click here to register!</a></div></div>
      <!-- Infobar -->
      </if>


and for german sites please use this code:

Code:

<if condition="$show[guest]">
      <!-- Infobar -->
      <link rel="stylesheet" href="clientscript/vbulletin_css/infobar.css" type="text/css">
                      <div id="info"><div id="infobar" align="left"><a href="register.php"><img src="images/alert.png" border="none" /> Achtung! Du bist nicht registriert, klicke bitte hier um dich schnell und kostenlos anzumelden.</a></div></div>
      <!-- Infobar -->
      </if>


Boofo 02-05-2008 06:13 PM

Quote:

Originally Posted by unitedpunjab (Post 1435230)
Thanks,I have corrected the error.

You also need to correct the code in the first post. ;)

Quote:

Originally Posted by Magnumutz (Post 1433978)
Thanks, looks better then other versions.

How is it any different?

Boofo 02-05-2008 06:17 PM

Quote:

Originally Posted by skrazydogz (Post 1436744)
For this people who wanted no border around the image, please use this code:

Code:

<if condition="$show[guest]">
      <!-- Infobar -->
      <link rel="stylesheet" href="clientscript/vbulletin_css/infobar.css" type="text/css">
                      <div id="info"><div id="infobar" align="left"><a href="register.php"><img src="images/alert.png" /> You are not registered yet. Please click here to register!</a></div></div>
      <!-- Infobar -->
      </if>


and for german sites please use this code:

Code:

<if condition="$show[guest]">
      <!-- Infobar -->
      <link rel="stylesheet" href="clientscript/vbulletin_css/infobar.css" type="text/css">
                      <div id="info"><div id="infobar" align="left"><a href="register.php"><img src="images/alert.png" border="none" /> Achtung! Du bist nicht registriert, klicke bitte hier um dich schnell und kostenlos anzumelden.</a></div></div>
      <!-- Infobar -->
      </if>


So, where is the border=0?

pericolosogr 02-05-2008 06:55 PM

So who can just make that? And of course post it over here?

skrazydogz 02-06-2008 01:12 AM

in the german code is it correct.

I have fixed the englishversion with border="none".

Code:

<img src="images/alert.png" border="none" />

Boofo 02-06-2008 01:30 AM

It should be:

Code:

<img src="images/alert.png" border="0" />

skrazydogz 02-06-2008 05:53 AM

is the same ;)

Boofo 02-06-2008 07:24 AM

But not in line with how vb or anyone else does it. ;)

Brew 02-21-2008 06:05 AM

I get this error at the top of the page:

Warning: array_merge(): Argument #2 is not an array in /index.php(539) : eval()'d code on line 202

I used this code:

Code:

<if condition="$show[guest]">
      <!-- Infobar -->
      <link rel="stylesheet" href="clientscript/vbulletin_css/infobar.css" type="text/css">
                      <div id="info"><div id="infobar" align="left"><a href="register.php"><img src="images/alert.png" /> You are not registered yet. Please click here to register!</a></div></div>
      <!-- Infobar -->
      </if>

using vb ver 3.7b5

puertoblack2003 03-08-2008 10:49 PM

all this is a simple code i like the way it looks, its better then the old ones that i ve installed...

installed ;)

mikkitine 05-12-2008 01:54 AM

This is just what I wanted. Thank you.

Darkstarproject 05-22-2008 11:57 PM

Looks like it works fine for me, with the border="none" code.

Barteh 01-08-2009 09:28 PM

Works for 3.8.0 :)

spinifex 01-24-2009 08:17 AM

and if you want a refferer for when an unregistered member clicks it and registers and you gain 1 referral per registration then use:

Code:

<if condition="$show[guest]">
      <!-- Infobar -->
      <link rel="stylesheet" href="clientscript/vbulletin_css/infobar.css" type="text/css">
                      <div id="info"><div id="infobar" align="left"><a href="register.php?referrerid=1"><img src="images/alert.png" border="none" /> You are not registered yet. Please click here to register!</a></div></div>
      <!-- Infobar -->
      </if>

where ?referrerid=1 is your user id number, 1 is usually admin!

murekhalir 02-20-2009 12:18 AM

haha so clever template mod.

I LOVE IT.

boothole 02-26-2010 12:42 AM

To "see the picture" I put a new folder called "images" where infobar.css ended up and placed the image in there.


All times are GMT. The time now is 04:29 AM.

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.01326 seconds
  • Memory Usage 1,782KB
  • 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
  • (12)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete