vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Progress bar for posting ranks - View Topic (Page 2 of 2)Page: 1 2
Topic Rating: *****
Printable View
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 31
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Progress bar for posting ranks (26th Apr 10 at 11:10pm UTC)
Only half of the output is working, the tr and td are there but I don't see the 2 div's

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Progress bar for posting ranks (26th Apr 10 at 11:31pm UTC)
The Divs are being outputted... look into your html for the divs. {Smile}
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 31
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Progress bar for posting ranks (27th Apr 10 at 1:11am UTC)
Then what is the problem?

Also I want it to work for only regular posting ranks and certain member groups

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Progress bar for posting ranks (27th Apr 10 at 1:24am UTC)
Well why don't you tell me what you want it to do, and I will then code it up for you {Smile}
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 31
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Progress bar for posting ranks (27th Apr 10 at 1:51am UTC)
It is a bar that appears below the post count as a progress bar to the next posting rank

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Progress bar for posting ranks (27th Apr 10 at 3:54am UTC)
Global Header:
<script type = 'text/javascript'>
/* Post bar to next rank - Wrighty */
var r = [0, 20, 50, 100, 250, 500];

function postBar(x){
     for(i = r.length-1; i >= 0; i--)
          if(x >= r[i]){
               document.write('<tr><td class="window2" colspan="2"><div style="width:98px; height:18px; background-color:#000;"><div style="float:left; width:' + ((x-r[i])/(r[i+1]-r[i]))*98 + 'px; height:16px; background-color:#FF0;"></div></div></td></tr>');
               break;
          }
}
</script>


Alter the red to be a list of the number of posts for each rank, making sure that they are incrementing {Smile}

In Mini Profile Template:
<script type = 'text/javascript'>
postBar({posts});
</script>

Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 31
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Progress bar for posting ranks (27th Apr 10 at 4:43am UTC)
It's not showing up at all

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Progress bar for posting ranks (27th Apr 10 at 4:51am UTC)
I updated my code in my previous post, (the first section only), please recopy.
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 31
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Progress bar for posting ranks (27th Apr 10 at 5:27am UTC)
I see a problem with your code, you are missing a pair of braces for the for()

But even fixing that problem it still isn't working

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Progress bar for posting ranks (27th Apr 10 at 10:26pm UTC)
the for doesn't require them. Try adding quotes around the digits .... eg:

"5", "10", "50" etc...
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 31
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Progress bar for posting ranks (27th Apr 10 at 10:36pm UTC)
Nope, still not working

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Progress bar for posting ranks (27th Apr 10 at 10:50pm UTC)
The code works flawlessly on my forum (as posted in my last post)... you have this in your headers:

<script>SetDisLink(Guest);</script>

(might be in the Welcome Table Template) .. remove it, as it's returning an errror.
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 31
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Progress bar for posting ranks (27th Apr 10 at 11:12pm UTC)
I removed that but the code still isn't working

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Progress bar for posting ranks (27th Apr 10 at 11:14pm UTC)
Is it at the bottom of your global header?
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 31
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Progress bar for posting ranks (27th Apr 10 at 11:56pm UTC)
Yeah

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
 Printable View
Page: 1 2

All times are GMT+0 :: The current time is 4:11am
Page generated in 2.129 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums