News:

Wondering if this will always be free?  See why free is better.

Main Menu

Floating Bar Mod

Started by live627, October 07, 2008, 10:16:43 PM

Previous topic - Next topic

live627

Link to Mod

Floating Bar Mod

This mod adds a bar at the top of the forum pages asking guests to register, login, or both. It will NOT show on register or login screens. Logged in users do not see it.

The site administrator can change the display text via the admin backend (Features and Options)

Tips to request help
When posting for help, please include:

  • SMF version
  • Mod version, if skipped, latest version is assumed
  • Theme in use, very important
  • How the install went, any errors, or none
  • Which page the error is on, if any, not required
  • How to reproduce the error, if any

ascaland

Very nice! Well done on this.  :D


genieuk

Very Nice,

Again I wanted something like this.

Noticed a error i think thou in manual install Instructions.

./Themes/default/style.css

It says:

Find:



Replace With:

#topbar { position:absolute; border: 1px solid black; padding: 2px; background-color: lightyellow; width: 620px; visibility: hidden; z-index: 100; }

As you can see the find has nothing in it?

Very Nice, will install later.

katib

Quote from: NIBOGO on October 07, 2008, 10:33:30 PM
I am making a little tutorial for customize the bar
Thanks man
I will be waiting for such tutorial
could you include instruction on how to add a "register" and a "login" buttons with relevant input fields !?
منتدى الحجاج ... منتدى للقراءة والكتاب
http://www.hijaj.net

Nibogo

Quote from: genieuk on October 08, 2008, 08:14:39 AM
Very Nice,

Again I wanted something like this.

Noticed a error i think thou in manual install Instructions.

./Themes/default/style.css

It says:

Find:



Replace With:

#topbar { position:absolute; border: 1px solid black; padding: 2px; background-color: lightyellow; width: 620px; visibility: hidden; z-index: 100; }

As you can see the find has nothing in it?

Very Nice, will install later.

Just add the code on the end of the file

Quote from: katib on October 08, 2008, 09:03:25 AM
Quote from: NIBOGO on October 07, 2008, 10:33:30 PM
I am making a little tutorial for customize the bar
Thanks man
I will be waiting for such tutorial
could you include instruction on how to add a "register" and a "login" buttons with relevant input fields !?

I will try to do it ;) , if I have the time of course

aED

Nice bro ill try to add this to my forum....


Thanks

geo32101

How do I add it to a costume theme, I did the edit to the default theme but I dont want it for that one.


geo32101

Do I just have to do the theme edits? Or all?


Costa

Translation to Brazilian

Code (Modifications.brazilian.php) Select

$txt['floating_bar_text'] = 'Bem-vindo visitante! Por favor, faça o <a href="'. $scripturl.'index.php?action=login"><b>login</b></a> ou o <a href="'. $scripturl 'index.php?action=register"><b>registo</b></a>';

$txt['floating_mode'] = 'Permitir o Mod Floating Bar?';

$txt['floating_text'] = 'Escreva um texto personalizado para os visitantes na Floating Bar';


Congrats for the mod
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

wilsond

#12
I just installed this script but where do you to go to add your message? and to make it active?

it installed with no errors. I am using default theme


pooya

#14
Could anyone make it look like the windows xp bar we get ?

WOuld be awsome .. please.

Oh and i cant click on it :( did on 4 beta ...

pooya

Anyone, or any alternative.




Nibogo

How to Add a Background Image:

Open your theme style.css:

Search:

#topbar
{
   position:absolute;
   border: 1px solid black;
   padding: 2px;
   background-color: lightyellow;
   width: 620px;
   visibility: hidden;
   z-index: 100;
}


Replace WIth:

#topbar
{
   position:absolute;
   border: 1px solid black;
   padding: 2px;
   background-image:url(images/background.png);
   width: 620px;
   visibility: hidden;
   z-index: 100;
}


Upload the background.png image to [your_theme]/images

NOTE: You have to replace the background.png with your own image.

Advertisement: