PDA

View Full Version : Mini Mods - IE Style infobar Alert


unitedpunjab
01-31-2008, 10:00 PM
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.

Upload infobar.css from the attached zip to /clientscript/vbulletin_css
Upload alert.png to /images
Edit header template and add this code at the top.<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
<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
<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.
<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
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:

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

<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
Thanks,I have corrected the error.

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

Thanks, looks better then other versions.

How is it any different?

Boofo
02-05-2008, 06:17 PM
For this people who wanted no border around the image, please use this 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:

<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".

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

Boofo
02-06-2008, 01:30 AM
It should be:

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


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

<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.