News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Rant On Guests [ROG MOD]

Started by !Hachi!, April 07, 2008, 10:35:27 PM

Previous topic - Next topic

!Hachi!

Link to Mod

This Mod will add floating bar at every page of the forum to remind guests to login/register.you can add any text to display in Admin>Features and Options>ROG MOD .you can use simple html to show. example code is
Looks like you are not registered with us<br>please <a href="?action=login"><font color="red"><b>Login</b></font></a> | <a href="?action=register"><font color="blue"><b>Register</b></font></a>
          working fine on 1.1.4.
i will add more features on request say like login bar in floating bar etc.
happy SMF.

edit-forget to attach .js file added now please uninstall previous version and reinstall it.
Happy Ramadan

ApplianceJunk

Nice,

Mod installs ok, but the box is to limited to put all that code in.

<table align="center" bgcolor="tan" border="1">
<tr>
  <td>
Welcome Guest, Looks like you are not registered with us please <a href="http://www.frigidaireforum.com/index.php?action=login">Login</a> or <a href="http://www.frigidaireforum.com/index.php?action=register">Register</a>
  </td>
</tr>
</table>

ApplianceJunk

Oh wait, I use your example and it fits. :)

Looks like you are not registered with us<br>please <a href="?action=login"><font color="red"><b>Login</b></font></a> | <a href="?action=register"><font color="blue"><b>Register</b></font></a>

Apllicmz

thank you work fine in 1.x

translate portuguese..pt_PT/pt_BR

<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin rant on gustes
$txt['rog_settings'] = 'MOD Registo';
$txt['rog_title'] = 'Código/Texto para Bara flutuante ';
$txt['rog_post'] = 'Código/Texto para Registo em Threads';

]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin rant on gustes
$txt['rog_settings'] = 'MOD Registo';
$txt['rog_title'] = 'Código/Texto para Bara flutuante ';
$txt['rog_post'] = 'Código/Texto para Registo em Threads';

]]></add>
</operation>
</file>




rancitis

Any version for SMF 2.0 Beta 3?

!Hachi!

i will give it a shot if you need it.but i am afriad i have re code it for smf 2 branch but hope to do it asap
Happy Ramadan

rancitis

Thanks Hassan!. I hope the update  :)

Manu.G

Nice mod, thanks for it.

I had to change something at it.
In our forum I have add the gobalopper.location mod and the pins in the map
need the script.js, without this script.js the pins wont be at the places they should
be. We have a board in our forum were guests can post, but after the install of
your mod, guest weren't able to use the smilies, cause the script.js was missing.

Wouldn't it be better to add the script for the rog mod in the script.js instead of
an own .js?

I set back the code in the index.template.php and added the script for your mod,
in the script.js. Now everything is working perfect for our forum. ;)
Version SMF 2.0.8
SimplePortal 2.3.5

!Hachi!

Manu i will take a note of this and will arrange it as you said.actually i am thinking to call this only for guests so it will be loaded for guests only when some one in login it will not load again so one less file to worried about.
Happy Ramadan

Greyskull

It doesent work right with firefox, is there a way to make it look how it does in IE?

!Hachi!

screenshot are taken from firefox.i used it from stable to every beta version and its just fine.what type of error?make sure you have rog.js in default theme.
Happy Ramadan

!Hachi!

reinstall mod will fix his problem.let me know if you need further assistance.
Happy Ramadan

!Hachi!

there is no change but i am afraid rog.js is missing in you default theme folder.please add your site link and about PM read my sig!
Happy Ramadan

Advertisement: