Advertisement:

Author Topic: Floating Bar Mod  (Read 31747 times)

Offline live627

  • SMF Hero
  • ******
  • Posts: 3,322
  • Gender: Male
  • A light for our dream which is worth everything we could envision today and more tomorrow
    • live627 on Facebook
    • @live627 on Twitter
    • livemods
Floating Bar Mod
« on: October 07, 2008, 10:16:43 PM »
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
« Last Edit: January 15, 2010, 06:29:44 PM by live627 »
See a list of my mods

I don't accept support PMs. Ever! Your query will be answered much quicker in the public boards. Why don't I want any PMs asking for support?

Offline Anthony`

  • Sophist Member
  • *****
  • Posts: 1,344
  • Gender: Male
  • Formerly Project Evolution
Re: Floating Bar Mod
« Reply #1 on: October 07, 2008, 10:23:50 PM »
Very nice! Well done on this.  :D

Offline Nibogo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,433
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Floating Bar Mod
« Reply #2 on: October 07, 2008, 10:33:30 PM »
Very nice! Well done on this.  :D

Thanks for the comments.

I am making a little tutorial for customize the bar

Offline genieuk

  • Sr. Member
  • ****
  • Posts: 779
  • Gender: Male
Re: Floating Bar Mod
« Reply #3 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:

Code: [Select]

Replace With:

Code: [Select]
#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.

Offline katib

  • Jr. Member
  • **
  • Posts: 112
    • منتدى الحِجاج
Re: Floating Bar Mod
« Reply #4 on: October 08, 2008, 09:03:25 AM »
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

Offline Nibogo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,433
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Floating Bar Mod
« Reply #5 on: October 08, 2008, 05:28:42 PM »
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:

Code: [Select]

Replace With:

Code: [Select]
#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

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

Offline aED

  • Sr. Member
  • ****
  • Posts: 986
  • Gender: Male
    • Free internet UBT/FBT - Opera Mini
Re: Floating Bar Mod
« Reply #6 on: October 09, 2008, 02:47:22 AM »
Nice bro ill try to add this to my forum....


Thanks

Offline geo32101

  • Jr. Member
  • **
  • Posts: 173
Re: Floating Bar Mod
« Reply #7 on: October 11, 2008, 08:30:17 PM »
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.

Offline Nibogo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,433
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Floating Bar Mod
« Reply #8 on: October 11, 2008, 08:40:00 PM »
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.

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1449;attach=71390;smf_version=1.1.6

Do the manual edit

Offline geo32101

  • Jr. Member
  • **
  • Posts: 173
Re: Floating Bar Mod
« Reply #9 on: October 11, 2008, 08:51:52 PM »
Do I just have to do the theme edits? Or all?

Offline Nibogo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,433
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Floating Bar Mod
« Reply #10 on: October 11, 2008, 09:06:13 PM »
Do I just have to do the theme edits? Or all?

Theme edits , the index.template and the style.css modifications

Offline Costa

  • SMF Hero
  • ******
  • Posts: 2,974
  • Gender: Male
    • hmfscosta on Facebook
    • Costa Web
Re: Floating Bar Mod
« Reply #11 on: October 17, 2008, 06:19:23 PM »
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
Estou disponível para trabalhos remunerados!
Costa Web | Todos os meus pensamentos e truques sobre SMF.

Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora. - Vê aqui a razão

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

Offline wilsond

  • Semi-Newbie
  • *
  • Posts: 15
    • Work From Home Online Forum
Re: Floating Bar Mod
« Reply #12 on: November 04, 2008, 09:52:24 AM »
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
« Last Edit: November 04, 2008, 09:59:39 AM by wilsond »

Offline Nibogo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,433
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Floating Bar Mod
« Reply #13 on: November 04, 2008, 06:04:19 PM »
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

Features & Options in the admin panel

Offline pooya

  • Jr. Member
  • **
  • Posts: 113
Re: Floating Bar Mod
« Reply #14 on: November 18, 2008, 02:15:46 PM »
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 ...
« Last Edit: November 18, 2008, 02:17:17 PM by pooya »

Offline pooya

  • Jr. Member
  • **
  • Posts: 113
Re: Floating Bar Mod
« Reply #15 on: November 19, 2008, 08:13:37 AM »
Anyone, or any alternative.

Offline Nibogo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,433
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Floating Bar Mod
« Reply #16 on: November 19, 2008, 11:13:16 AM »
Anyone, or any alternative.

Try yourself using css

Offline Nibogo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,433
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Floating Bar Mod
« Reply #17 on: November 20, 2008, 07:57:23 PM »
1.0 - 20 November 2008



o Added Spanish/utf8 and Brazilian/utf8 Support.

Offline Nibogo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,433
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Floating Bar Mod
« Reply #18 on: November 20, 2008, 08:00:21 PM »
How to Change the Position to the bottom:

Open the /Themes/default/floating-bar.js

Search:

Code: [Select]
var verticalpos="fromtop"
Replace With:

Code: [Select]
var verticalpos="frombottom"

Offline Nibogo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,433
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Floating Bar Mod
« Reply #19 on: November 20, 2008, 08:05:39 PM »
How to Add a Background Image:

Open your theme style.css:

Search:

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

Replace WIth:

Code: [Select]
#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.