Add ReplyNew Thread

 FAQ, Please check if your question is here.
Pierrot
 Posted: November 9th, 2014, 02:25 PM
Quote
you are not your skin.
Posts:498Group:StaffJoined:August 28th, 2013
Send Message


NEW VERSION FAQ:
UPDATED: 09/09/15


Q: How do I make my fields disappear if there's nothing in them?
There's many ways of achieving this. The simplest is to surround each profile field in a span class called remove, and then use this code:

CODE
<script>
$('.remove:contains("N/A")').remove();
</script>

Troubleshooting for this can be found here.

Those who want to remove linked images, go here.
Otherwise, just read this part of the new documentation.

Q: How do I make the cfs only show up on the index?
Insert Answer

Q: How do I make my variable print custom text if it does not exist?
Sample variable: {%birthdays#list} from the custom stats structure. Replace {%birthdays#list} with your variable.

CODE

html: function() {
 var output = "<b>Birthdays:</b> ";
 if(this.vals["{%birthdays#list}"]) {
  output += "{%birthdays#list}";
 }
 else {
  // Optional message
  output += "no birthdays.";
 }
 output += "<br />Some more stuff here.";
 return output;
}



Q: Why don't tables work?
Black: Unlike JAWN's script, tables are really the one thing my script does not handle well because the whole thing is output in <div> elements from start to finish- there's just no opportunity to declare <table> at the beginning, </table> at the end, and any required <tr> elements in between. It's not just you, there's simply no way to do it(although you can have each row become its own table, if you wanted). For better or worse, this behavior is hard-coded into the script. I could draft a version that uses tables instead and provide that as an alternative, but I'd rather only do that if I absolutely have to. It'd be a fair amount of extra work, is all.

Q: How do I apply a margin to only every other board? (To make them look better in-line?)
Try
CODE
.new-row { display: inline-block; vertical-align: top; }
.new-row:nth-of-type(odd) { margin-right: 50px; }


Q: I'm trying to float my boards but they are coming up horizontally. What is happening?
Please read this.

Q: When I float my boards, the categories won't align up. What do I do?
This has been answered here.

Q: How do I get a hover member legend for the custom stats?
Refer to this thread.

Q: How do I put my avatar in my wrappers?
CODE
<div><!-- |avatar| --></div>


Q: How do I change how the last post date is displayed on the index?
Explanation here.

Q: My cbox isn't working in my JQuery Model Pop-up. Why?
It won't work. Explanation here.

Q: Can I put the latest poster's avatar on the custom index, like proboards?
Until Jcink updates the variables and we release a new version here on CODE, no.

Q: My custom profile isn't working for one group. What's happened?
Make sure all member groups have access to all custom fields etc. Make sure all groups are able to view sub-accounts, too.

Q: why won't my sub board title show up?
Depending on how you quite your cfs, if you use those quotes in the forum description or titles, it might break it. answer here

Q: My custom profile doesn't work for guests.
Try reading the advice here.

Q: What does a basic custom profile look like?
here is something basic.
Email
Pierrot
 Posted: September 9th, 2015, 04:08 PM
Quote
you are not your skin.
Posts:498Group:StaffJoined:August 28th, 2013
Send Message


OLD VERSION FAQ:
( this will no longer be updated )


Q: Why is my category/thread/cfs disappearing?
Please make sure that (X Viewing) in CPU saving is turned off. This will always kill your cfs because the current version does not support it.
You can read the troubleshooting here, if you would like more information.

Q: How do I make my fields disappear if there's nothing in them?
There's many ways of achieving this. The simplest is to surround each profile field in a span class called remove, and then use this code:

CODE
<script>
$('.remove:contains("N/A")').remove();
</script>


Those who want to remove linked images, go here.
Otherwise, just read this part of the documentation. That should solve your issues.

Q: How do I make the cfs only show up on the index?
Instead of page: "<!-- |input_act| -->", put page: "idx",

Q: Two of my fields have random brackets. What do I do?
Try wrapping the field with a span id = crop and then use the following code
CODE

<script>
$(document).ready(function() {
   if($("#crop").val() == 'False'){
       return; }
   else {$('#crop').text(function (_,txt) {
   return txt.slice(0, -1);});
    }
   }
});
</script>


Q: How do I make my variable print custom text if it does not exist?
Sample variable: {%birthdays#list} from the custom stats structure. Replace {%birthdays#list} with your variable.

CODE

html: function() {
 var output = "<b>Birthdays:</b> ";
 if(this.vals["{%birthdays#list}"]) {
  output += "{%birthdays#list}";
 }
 else {
  // Optional message
  output += "no birthdays.";
 }
 output += "<br />Some more stuff here.";
 return output;
}


Or simply (using pagination as an example):
CODE
customTopics.init({
html: function() {
var output = "EVERYTHING BEFORE THE PAGE LIST";
if(this.vals["{%pagination}"])
{
output += "{%pagination}";
}
output += "EVERYTHING ELSE";
return output;
},



Q: Why don't tables work?
Black: Unlike JAWN's script, tables are really the one thing my script does not handle well because the whole thing is output in <div> elements from start to finish- there's just no opportunity to declare <table> at the beginning, </table> at the end, and any required <tr> elements in between. It's not just you, there's simply no way to do it(although you can have each row become its own table, if you wanted). For better or worse, this behavior is hard-coded into the script. I could draft a version that uses tables instead and provide that as an alternative, but I'd rather only do that if I absolutely have to. It'd be a fair amount of extra work, is all.

Q: When all of the code below is plugged in, you can view the index page just fine; whenever you click on a forum, however, it just shows the header and the very bottom bit of the footer (basically, the credits). Everything else - i.e., all the important stuff - is gone. What is going on?
Please check to make sure your wrappers don't have
CODE
<div id="board">
<% BOARD %></div>

and replace it with
CODE
<div id="board"><% BOARD %></div>
.

Q: How do I apply a margin to only every other board? (To make them look better in-line?)
Try
CODE
.new-row { display: inline-block; vertical-align: top; }
.new-row:nth-of-type(odd) { margin-right: 50px; }


Q: I'm trying to float my boards but they are coming up horizontally. What is happening?
Please read this.

Q: How do I get a hover member legend for the custom stats?
Refer to this thread.

Q: How do I put my avatar in my wrappers?
CODE
<div><!-- |avatar| --></div>


Q: How do I change how the last post date is displayed on the index?
Explanation here.

Q: My cbox isn't working in my JQuery Model Pop-up. Why?
It won't work. Explanation here.

Q: Can I put the latest poster's avatar on the custom index, like proboards?
Until Jcink updates the variables and we release a new version here on CODE, no.

Q: I know my custom stats works, but its not showing up. What do I do?
Check that "Show board totals" is turned on in CPU saving. Additionally, make sure the recent topics feature is also turned off. Additionally, the custom stats do not support store totals and that will break the code too. This can be found under CPU saving, too.

Q: My custom profile isn't working for one group. What's happened?
Make sure all member groups have access to all custom fields etc. Make sure all groups are able to view sub-accounts, too.

Q: My custom profile isn't working for one person. What's wrong?
Please please please make sure that portal style profile isn't enabled. Although, sometimes the colon symbol ":" screws up profiles for some reason. Sometimes it doesn't. Additionally, please make sure you don't have any friends added.

Q: Why don't I see the welcome message?
Are you on Safari? If yes, you won't see it. I'm not sure why. Here is a copy of the welcome message for those of you who want to see it.

QUOTE
Thank you for installing my Custom Forum Structure script suite. The reason you're seeing this message is because output for the Custom Index module has not yet been configured. This is a temporary notice that will disappear when the module is given HTML markup to work with. Additional information regarding setting up the script may be found on this documentation page. Free support is provided at Code, a coding and scripting resource forum.

I'd love to see how you use my script to achieve your design, so please stop by and show me when you're finished.

Black


Q: why won't my sub board title show up?
Depending on how you quite your cfs, if you use those quotes in the forum description or titles, it might break it. answer here


Q: My custom profile doesn't work for guests.
Try reading the advice here.
Email

Topic Options Add ReplyNew Thread


 


 

   Chatbox
's reputation