News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Need of progress/meter bar in the body of a topic

Started by @ngel, December 10, 2006, 04:36:30 AM

Previous topic - Next topic

@ngel

Hi,

Is it possible to add a progress/meter bar in the body of a topic ?

function : [meter=(start,stop,current)]message[/meter]

exemple 1 : [meter=(1, 100, 70)]current status : 70%[/meter]
exemple 2 : [meter=(-50, 50, 0)]current level : 0[/meter]

Thanks a lot
@ngel

Daniel15

#1
If you're an admin, you could try something with the  [ html ] tags...

[html]
<div style="width: 500px; background-color: #000000; border: 1px solid #FF0000;">
  <span style="background-color: #006600; width: 70%; float: left;">&nbsp;</span>
  &nbsp;
</div>
[/html]


Or, alternatively:

[html]
<div style="width: 500px; background-color: #000000; border: 1px solid #FF0000;">
  <span style="background-color: #006600; width: 70%; float: left; text-align: center; color: #FFFFFF;">70% Complete!</span>
  &nbsp;
</div>
[/html]

Which shows the text '70% Complete' inside the progress bar
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

@ngel

The second works great.

So maybe is't possible to create a new BB code ;-)

@ngel

I created my first mod to display a meter bar

You can try it in the download section -> Browse the mods -> BBC -> Meter Tag only if approuved

Advertisement: