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

pooya

Seriously no luck with anyone knowing this ?

P.S : nibogo you site uses alot of addons, if possible could u list out which ones? *Nice theme though and no float bar mod ? lol

darkkurama

Well, hi, i'm trying to use this mod, but, in my template, i can't find the "<body>';". All the "body" tags that are in my index.template.php in my particular theme, is a <body> and a </body></html>, that's all; Where should i put the

   //Show the floating bar only if the use is a guest , is not registering or login and the mod is activated
     if ($context['user']['is_guest'] && !empty($modSettings['floating_mode']) && $context['current_action'] != 'login' && $context['current_action'] != 'register')
     {
echo '<div id="topbar">
<a href="javascript:void(0);" onClick="closebar(); return false"><img src="', $settings['images_url'], '/close-bar.gif" border="0" alt="" /></a>
', (empty($modSettings['floating_text'])) ? $txt['floating_bar_text'] : $modSettings['floating_text'], '
</div>';
}"

?

Thanks!

Darkkurama

Nibogo

replace the <body> with:

<body>';

//Show the floating bar only if the use is a guest , is not registering or login and the mod is activated
     if ($context['user']['is_guest'] && !empty($modSettings['floating_mode']) && $context['current_action'] != 'login' && $context['current_action'] != 'register')
     {   
      echo '<div id="topbar">
<a href="javascript:void(0);" onClick="closebar(); return false"><img src="', $settings['images_url'], '/close-bar.gif" border="0" alt="" /></a>
', (empty($modSettings['floating_text'])) ? $txt['floating_bar_text'] : $modSettings['floating_text'], '
</div>';
}

echo '

darkkurama

You sir, are a god...

Gracias xD

-edit-

I got another issue: I have set my floating bar, but i want to put an URL in the entire image (i used the mini-tutorial on how to replace the floating bar for an image), is there a way to put a URL to the registration form? (you should understand it more seeing THIS)

Thank you, andI hope not to bother you =P

Darkkurama

Nibogo

Quote from: darkkurama on December 19, 2008, 09:30:36 PM
You sir, are a god...

Gracias xD

-edit-

I got another issue: I have set my floating bar, but i want to put an URL in the entire image (i used the mini-tutorial on how to replace the floating bar for an image), is there a way to put a URL to the registration form? (you should understand it more seeing THIS)

Thank you, andI hope not to bother you =P

Darkkurama

Just find:

echo '<div id="topbar">
<a href="javascript:void(0);" onClick="closebar(); return false"><img src="', $settings['images_url'], '/close-bar.gif" border="0" alt="" /></a>
', (empty($modSettings['floating_text'])) ? $txt['floating_bar_text'] : $modSettings['floating_text'], '
</div>';


Replace with:

echo '<a href="your_link.php"><div id="topbar">
<a href="javascript:void(0);" onClick="closebar(); return false"><img src="', $settings['images_url'], '/close-bar.gif" border="0" alt="" /></a>
', (empty($modSettings['floating_text'])) ? $txt['floating_bar_text'] : $modSettings['floating_text'], '
</div></a>';

darkkurama

Sorry, but the url must be in a special way? because it don't work =(

I have tried:

http://www.dkanimesite.es/foros/index.php?action=register
www.dkanimesite.es/foros/index.php?action=register
/foros/index.php?action=register
index.php?action=register

And my imagen don't have any link =(

Darkkurama

Nibogo

echo '<a href="javascript:void(0);" onClick="closebar(); return false"><img src="', $settings['images_url'], '/close-bar.gif" border="0" alt="" /></a><a href="your_link.php"><div id="topbar">
', (empty($modSettings['floating_text'])) ? $txt['floating_bar_text'] : $modSettings['floating_text'], '
</div></a>';


Try that code

darkkurama

that work'd, but now the "close" button is not in his possition xD



Darkkurama


darkkurama

Muchisimas gracias entonces! All hail NIBOGO

Darkkurama

apadong.net

Indonesian translate :D
$txt['floating_bar_text'] = 'Selamat datang, silahkan <a href="'. $scripturl .'index.php?action=login"><b>masuk</b></a> atau <a href="'. $scripturl .'index.php?action=register"><b>daftar</b></a>';
$txt['floating_mode'] = 'Aktifkan Floating Bar Mod?';
$txt['floating_text'] = 'Tulis teks bebas untuk tamu pada Floating Bar';



Thx for this great mod! ;)

(ARS)

mash-e1

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



where do i out the in .css

Nibogo

Quote from: apadong.net on January 21, 2009, 08:33:13 PM
Indonesian translate :D
$txt['floating_bar_text'] = 'Selamat datang, silahkan <a href="'. $scripturl .'index.php?action=login"><b>masuk</b></a> atau <a href="'. $scripturl .'index.php?action=register"><b>daftar</b></a>';
$txt['floating_mode'] = 'Aktifkan Floating Bar Mod?';
$txt['floating_text'] = 'Tulis teks bebas untuk tamu pada Floating Bar';



Thx for this great mod! ;)

(ARS)

Thanks for your help ;)

aED

Quote from: mash-e1 on January 26, 2009, 03:48:54 PM
#topbar
{
   position:absolute;
   border: 1px solid black;
   padding: 2px;
   background-color: lightyellow;
   width: 620px;
   visibility: hidden;
   z-index: 100;
}



where do i out the in .css

It should be in style.css


Dzonny

Hello there,
I'm using this mod for a few months and i just have to say it is great....
Well i actually have one question. Is there way to 'remove' floating bar at some pages? For example i dont want floating bar to display in sitemap page...?

Regards.

dkinser

Ok, I am at a loss here.  Am running 1.1.10, Custom Theme is WOW-DK.  I have performed the custom mods per your instructions, moved the two files.  The option to turn this mod on and off appear in the Admin as they should along with the box to put in the custom text.

But....no floating box ever shows up.   Any suggestions?   And I did have the same problem listed earlier about <body>';   I followed those instructions too, still no floating box.

The -L-

Is this working on SMF 2.0 RC1-1???


Dzonny

Quote from: Dzonny on June 09, 2009, 02:57:30 PM
Well i actually have one question. Is there way to 'remove' floating bar at some pages? For example i dont want floating bar to display in sitemap page...?
Just bumpping this... :)

Advertisement: