PDA

View Full Version : Mini Mods - IE Style infobar Alert


unitedpunjab
01 Feb 2008, 01:15
IE Style infobar Alert

This little mod is very similar to this mod.
http://www.vbulletin.org/forum/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
01 Feb 2008, 02:53
seen it before :(

skrazydogz
01 Feb 2008, 07:42
i cant see the picture in front of the sentence (alert.png) :(

seangworld
01 Feb 2008, 09:22
good deal.

Magnumutz
01 Feb 2008, 16:42
Thanks, looks better then other versions.

Chewitt
03 Feb 2008, 08:44
i dont get the alert pic showing up either

Chewitt
03 Feb 2008, 08:50
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
03 Feb 2008, 08:55
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
03 Feb 2008, 12:07
Thanks,I have corrected the error.

pericolosogr
04 Feb 2008, 04:12
what about vbadvanced cmps integration?
It doesnt show up right, css isnt workin...

unitedpunjab
04 Feb 2008, 12:01
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
05 Feb 2008, 15:53
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
05 Feb 2008, 20:13
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
05 Feb 2008, 20:17
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
05 Feb 2008, 20:55
So who can just make that? And of course post it over here?

skrazydogz
06 Feb 2008, 03:12
in the german code is it correct.

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

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

Boofo
06 Feb 2008, 03:30
It should be:

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

skrazydogz
06 Feb 2008, 07:53
is the same ;)

Boofo
06 Feb 2008, 09:24
But not in line with how vb or anyone else does it. ;)

Brew
21 Feb 2008, 08:05
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
09 Mar 2008, 00:49
all this is a simple code i like the way it looks, its better then the old ones that i ve installed...

installed ;)

mikkitine
12 May 2008, 03:54
This is just what I wanted. Thank you.

Darkstarproject
23 May 2008, 01:57
Looks like it works fine for me, with the border="none" code.

Barteh
08 Jan 2009, 23:28
Works for 3.8.0 :)

spinifex
24 Jan 2009, 10:17
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
20 Feb 2009, 02:18
haha so clever template mod.


I LOVE IT.

boothole
26 Feb 2010, 02:42
To "see the picture" I put a new folder called "images" where infobar.css ended up and placed the image in there.