Log in

View Full Version : BB Code Enhancements - Progress BBCode


TheInsaneManiac
04-21-2011, 10:00 PM
This will show your progress in your posts on anything you would like.

Installation:
1.) Upload the files to your VBulletin root.


2.) Go to your AdminCP -> Custom BB Codes -> Add New BB Code

Title:
Progress

BB Code Tag Name:
percentage

Replacement:
<div style='background:url(images/progress/progress_incomplete.png) repeat-x; background-color: #cccccc; border: 1px solid black; width:95%; margin-top: 2px;'><div style='background:url(images/progress/progress_complete.png) repeat-x;background-color: #008040; color: white; font-weight:bold; max-width:100%; width:{option}%; height:18px;'>&nbsp;&nbsp;&nbsp;{option}% {param}</div></div>

Example:
Complete

Use Option:
Yes

Button Image:
images/progress/progress.png

Remove Tag If Empty:
No

Disable BB Code Within This BB Code:
Yes

Disable Smilies Within This BB Code:
Yes

Disable Word Wrapping Within This BB Code:
Yes

Disable Automatic Link Parsing Within This BB Code:
Yes


3.) Save and you are ready to go.


4.) Marked Installed. =]


*Replace progress_complete.png and progress_incomplete.png with your own images to change the way the progress bar looks

TheInsaneManiac
04-22-2011, 09:31 PM
<a href="http://www.consolediscussions.com/forum/forum.php" target="_blank">Demo</a>

Welshy2008
04-22-2011, 10:57 PM
*tagged*

wipedout
04-23-2011, 07:05 AM
Yeah, this isnt bbcode at all. this is just progressbars that havent yet been made into bbcode...

TheInsaneManiac
04-23-2011, 05:22 PM
Yeah, this isnt bbcode at all. this is just progressbars that havent yet been made into bbcode...
You're statement contradicts itself. You have to make the BBCode by setting it up in the AdminCP. Once you do, add this code to your posts and you will have a progress bar.
Complete

*Where the complete is, you can replace with your own text related to the progress bar.

Like:
Complete on server migration

Boofo
04-23-2011, 05:54 PM
TheInsaneManiac, your replacement code need {param} in it instead of the text. That is why it isn't working properly.

TheInsaneManiac
04-23-2011, 08:09 PM
TheInsaneManiac, your replacement code need {param} in it instead of the text. That is why it isn't working properly.
Hehe, my bad. I updated it with the proper {param} and {option} codes.

Boofo
04-23-2011, 08:15 PM
Did you update the file also?

TheInsaneManiac
04-23-2011, 08:32 PM
Did you update the file also?
I'm having a derp moment. Thanks, and yes I just updated it.

Freeborne
04-25-2011, 02:49 AM
Needs some fixing I think.

If you do a low percentage "such as 2%", and write a long line of text between the open and close tags, it displays on the next line.

For example I did Percentage=1. Then I wrote 'something very long like this' and it put all the text in a column that only spans the width of 0-1% (ie the green section of the progress bar). This equates to about 2 letters per line...

sulasno
04-25-2011, 10:54 AM
tagged and thanks

should be useful for posting very long posts

matrixmark
04-25-2011, 12:14 PM
Needs some fixing I think.

If you do a low percentage "such as 2%", and write a long line of text between the open and close tags, it displays on the next line.

For example I did Percentage=1. Then I wrote 'something very long like this' and it put all the text in a column that only spans the width of 0-1% (ie the green section of the progress bar). This equates to about 2 letters per line...


Pretty much what I was going to post :D

johkalhaups
04-25-2011, 06:40 PM
Just installed this today and when you post anything 17% or lower for your progress, the Complete text shows below the progress bar.

Its still bolded and all, just not inside the bar.

Vick98
04-27-2011, 05:12 AM
Just installed this today and when you post anything 17% or lower for your progress, the Complete text shows below the progress bar.

Its still bolded and all, just not inside the bar.

I am having the same issue.

TheInsaneManiac
04-30-2011, 10:52 PM
You can't expect something to fit in a 7% size bar. Just remove complete altogether and just show the percentage if the word Complete is getting removed.

Popa Andrei
08-13-2012, 10:49 PM
Nice,thank you and installed it and works perfect.