vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - Progress BBCode (https://vborg.vbsupport.ru/showthread.php?t=262474)

TheInsaneManiac 04-21-2011 10:00 PM

Progress BBCode
 
1 Attachment(s)
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:
Code:

<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:
[progress=100]Complete[/progress]

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

Quote:

Originally Posted by wipedout (Post 2187682)
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.
[progress=100]Complete[/progress]

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

Like:
[progress=71]Complete on server migration[/progress]

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

Quote:

Originally Posted by Boofo (Post 2187839)
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

Quote:

Originally Posted by Boofo (Post 2187887)
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...


All times are GMT. The time now is 10:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01211 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete