inherit
169267
0
Nov 29, 2024 7:30:04 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on May 25, 2015 8:54:22 GMT -8
BrianI have this for loop that shorty helped me with, it works for the theme but now I'm trying to select a board. Here's my code for board: var head=pb.plugin.get('thread_billboard').settings.billboard; for(p=0;p<head.length;p++) { var board=head.choose_board; if(board.length > 0){ for(r=0;r<board.length;r++){ if(pb.data('user').board_name==board[r]){ bc=head.b_color; breakloop = true; break; } } } if(breakloop) break; }
Can anybody help me with this?
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on May 26, 2015 11:44:10 GMT -8
pb.data('page').board.name
|
|
inherit
169267
0
Nov 29, 2024 7:30:04 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on May 27, 2015 5:14:10 GMT -8
WormopolisI changed it it shows up on all my boards. I only want it on one board.
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on May 27, 2015 12:08:45 GMT -8
BrianI have this for loop that shorty helped me with, it works for the theme but now I'm trying to select a board. Here's my code for board: var head=pb.plugin.get('thread_billboard').settings.billboard; for(p=0;p<head.length;p++) { var board=head.choose_board; if(board.length > 0){ for(r=0;r<board.length;r++){ if(pb.data('user').board_name==board[r]){ bc=head.b_color; breakloop = true; break; } } } if(breakloop) break; }
Can anybody help me with this?
I think what wormo was saying should work if you have it like this: var head=pb.plugin.get('thread_billboard').settings.billboard; for(p=0;p<head.length;p++) { var board=head.choose_board; var breakloop = false if(board.length > 0){ for(r=0;r<board.length;r++){ if(pb.data('page').board.name==board[r]){ bc=head.b_color; breakloop = true; break; } } } if(breakloop) break; }
I also defined breakloop inside the first and outside the second loop
|
|
inherit
169267
0
Nov 29, 2024 7:30:04 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on May 27, 2015 12:21:17 GMT -8
|
|
inherit
169267
0
Nov 29, 2024 7:30:04 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on May 27, 2015 12:36:20 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓No it's not working right The billboard is only displayed on the board or boards selected. It shows on the one selected but also shows on everyother board as well. the ones not selected have undefined on the bill boards. Take look at my test site and yo will see what I mean. riccettstestsite
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on May 27, 2015 18:41:45 GMT -8
It would help to know if you were se;ecting boards from within a plugin or this is just some h/f code.
|
|
inherit
169267
0
Nov 29, 2024 7:30:04 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on May 27, 2015 19:07:25 GMT -8
|
|
inherit
169267
0
Nov 29, 2024 7:30:04 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on May 28, 2015 7:12:56 GMT -8
|
|