Printable Version of Topic
Click here to view this topic in its original format
Code > Scripts > Custom Forum Structure


Posted by: Black September 29th, 2013, 07:00 AM
Custom Forum Structure is outdated. Use the new https://github.com/ConnorWiseman/jcink-custom-structure script instead!


Description: Provides a convenient method of rearranging a forum's HTML structure. Includes components for the board index, board statistics, user profile(both personal portal style and IPB1.3.1 default), and topic view. Very fast, no library or plugin dependencies. This is the third revision of the index component and the second revision of the others.
Requires: N/A
Target Platform: Jcink
Demonstration: This script is being used here on Code.
Installation Instructions:
Step 1: Add the following script to the document header.

CODE
<script src="http://elegantexpressions.us/black/cfs.min.js"></script>



Step 2: Wrap the <% BOARD %> wrapper tag with a <div> element with an id of #board. This id may be changed in configuration options later, if an additional #board element causes conflict within the skin. However, the <div> should contain nothing else.

It has been demonstrated that errant line breaks in the following line of HTML can sometimes cause the contents of entire forums to vanish. This devastating bug is probably related to the way the script handles forums set to be viewed as categories, and it will be transparently fixed in later editions of the script. However, until these inconsistencies are resolved, it is strongly suggested that all users use the code below exactly as it appears.

CODE
<div id="board"><% BOARD %></div>



Step 3: Initialize the components you want to use immediately after Step 2.

Code (Click to highlight)
<script>
customIndex.init({
page: "<!-- |input_act| -->",
html: ""
});
customStats.init({
html: ""
});
customProfile.init({
html: ""
});
customTopics.init({
html: ""
});
</script>



Step 4: Construct your own replacement HTML structure. Information about configuration and output values may be found http://elegantexpressions.us/black/cfs.html.

Posted by: Black October 30th, 2013, 09:22 AM
Update: The script suite has had welcome messages added to each of the components linking to Code and the script documentation. The Custom Stats module has been revised slightly so that it behaves more consistently. It was also exporting the text "[Expand][Collapse]" as part of the number of users online today, which has now been fixed.

The member legend in the board stats is on my to-do list.

Posted by: AMB Tanz November 6th, 2013, 12:41 PM
Am I supposed to see immediate results when I install this? I'm not yet at the part where I'm customizing. Trying to make it work first but so far, no luck. The notice did pop up but when I tried making changes, nothing happens.

CODE
<!DOCTYPE html>
<html>
   <head>
<title><% TITLE %></title>
<% CSS %>
<% JAVASCRIPT %>
<script src="http://elegantexpressions.us/black/cfs.min.js"></script>
<link href='http://fonts.googleapis.com/css?family=Fredericka+the+Great' rel='stylesheet' type='text/css'>
<% code-format %>
<% code-format2 %>

 </head>
   <body>

<div id="wrapper">

    <% BOARD HEADER %>
    <div id="innerwrapper">
     <div id="navi">
     <% NAVIGATION %>
     </div>
     <div id="board"><% BOARD %></div>
<script>customIndex.init({
page: "<!-- |input_act| -->",
html: "<h1>{%link}</h1>",
conf: {
 target:   "board",
 subforumSeperator: ", ",
 subforumNone:  "This forum has no subforums.",
 addBefore:  false,
 addAfter:  false,
 dateDefault:  "yo",
 titleDefault:  "----",
 authorDefault:  ""
}

});</script>
     <% COPYRIGHT %>
    </div>
</div>
   </body>
</html>


EDIT: AM I NOT SUPPOSED TO POST HERE IDK. FEEL FREE TO MOVE MY POST TO THE RIGHT FORUM.

Posted by: Black November 6th, 2013, 02:49 PM
Sorry! Didn't see your reply here until later today. No, support for a script is welcome in the script's topic, though you'd have been equally welcome to post it over in http://code.jfbs.net/index.php?showforum=7 if you had preferred. Whatever's easiest for you is what you should do. ^_^

Yes, any changes you make should be immediately reflected in your board's appearance. The notices should also only appear if the html property is blank.

Regrettably, I was unable to reproduce whatever problem you were having. I swapped out the script we're using here on Code for your call to customIndex.init() and it behaved exactly as expected- all that was visible in each forum row on our index was the forum's link in a heading tag.

What internet browser were you using when you encountered difficulties? What are the contents of <% code-format %> and <% code-format2 %>?

Posted by: AMB Tanz November 7th, 2013, 10:43 PM
Oh, those are your Code/Quote format script, one that holds the script and the other that loads it. I decided to use webpages to load them since I thought it would be easier to remember/navigate through the scripts when I slap them in the board wrappers as I intend to make the site for multiple skin display. But I'm glad you asked, because the code worked when I got rid of them xD And it also works when I put the custom forum structure's script first. I guess the two codes just sort of conflicts?

Posted by: Black November 8th, 2013, 07:19 AM
That's an interesting find. As far as I know, it shouldn't happen- at least, no changes happened on Code when I moved the script reference to the very bottom of our head element just now. But thanks for pointing it out! I'll definitely look into possible reasons for that, and post up a warning on those two scripts if it can't be resolved.

Edit: I don't suppose you accidentally forgot to close a script tag in the second one there, did you? I reviewed the source of my two scripts and can't find any reason why there should be any conflict at all, especially since the quote/code reformat script only executes when you look at a topic, and that's one of the few times the custom forum structure script doesn't do anything at all(other than check to see if it should do something and realize that no, no it shouldn't).

Posted by: northwest November 12th, 2013, 12:18 PM
I had a very similar problem earlier this week--installed, took out, and put back in several times and it just never showed up. I have two other bits of jquery in the code, and I assume it was conflicting with that? I am a horribly messy coder, but I know I didn't have any script tags left open.

I've used your old code in the past w/ great success and I'll definitely try this one again going forward--I ended up taking it out just 'cuz I got lazy and it was probably too much on one page anyway, but it was very strange. It just wasn't affecting the forums at all.

Posted by: Black November 12th, 2013, 05:38 PM
Well then! Thanks for the post, northwest. This is apparently an issue, though I can't imagine why. The only other thing I can possibly imagine could be causing conflict is the presence of the $ character, which is an alias with a special meaning in jQuery(and several other JavaScript libraries). The thing is, my script doesn't use it at all.

If anyone else is experiencing this problem please don't take it down- come here and report it! For this problem, I think I need to see things in action to understand why it could be misbehaving.

Posted by: nancy November 15th, 2013, 05:39 PM
I'm also having the same problem as Tanz, I think. I believe I have everything set up right? But I'm not even sure about that nwn. The notifications popped up for me when I first put the code in because I didn't do anything, and they disappeared when I started playing around with the code and started? doing the correct stuff with it? I think? Anyway, even after I started playing with it nothing seemed to be happening to the boards? There seemed to be no changes to anything, and I don't know if it's just me, or if it's the code?

CODE
<!DOCTYPE html>
<html>
   <head>
<title><% TITLE %></title>
<% CSS %>
<% JAVASCRIPT %>
<script src="http://elegantexpressions.us/black/cfs.min.js"></script>
<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed:400italic,400' rel='stylesheet' type='text/css'>
   </head>
   <body>
<div id="wrapper">
    <% BOARD HEADER %>
    <div id="innerwrapper">
     <div id="navi">
     <% NAVIGATION %>
     </div>
     <div id="board"><% BOARD %></div>
<script>
customIndex.init({
page: "<!-- |input_act| -->",
html: "{%link}<br />{%description}"
conf: {
 target:   "board",
 subforumSeperator: ", ",
 subforumNone:  "no subforums",
 addBefore:  false,
 addAfter:  false,
 dateDefault:  "--",
 titleDefault:  "----",
 authorDefault:  ""
}
});
customStats.init({
html: ""
});
customProfile.init({
html: ""
});
customTopics.init({
html: ""
});
</script>
 <div id="skin_selector">
         <% SKIN_SELECTOR %>
     </div>
     <% COPYRIGHT %>
     <script>$('#logo a img[src="style_images/1/spacer.gif"]').replaceWith('<!-- |board_name| -->');</script>
    </div>
</div>
   </body>
</html>

Posted by: Black November 15th, 2013, 06:03 PM
Here we go, something to work with!

There's actually a minor syntax error in the wrapper set that you provided just now. In JavaScript, an object (and this is a rough definition, mind you) is a set of values, properties, and related functions, methods, denoted by property: value (or method: function() { ... }), in a comma-separated list. Because html is a property of the object being passed to customIndex.init() but not the last property of that object, it must have a comma after it. Otherwise, JavaScript doesn't know what to do with the next property in the set, which in this case is conf. In lieu of a viable workaround, JavaScript goes into a tailspin and enters full-on fail mode, stopping all script progression (until the next <script> tag, at least).

Because it's the first module invoked and it results in a fatal error, everything after it will cease to function, too. This explains why the help messages for the other three modules have stopped appearing.

In brief: add a comma after "{%link}<br />{%description}".

Fixing this tiny mistake results in a working script, as near as I can see. It's not the greatest of previews but you can see the fix in action http://code.jfbs.net/index.php?s=&skinid=2.

@AMB Tanz & northwest: if you'd be kind enough to check that this isn't also the problem you were encountering, I would be very appreciative. I'm really certain what you've experienced isn't due to a conflict with anything else, but I can't say I'm 100% certain. Thanks, nancy!

Posted by: nancy November 16th, 2013, 08:18 AM
haha!! I kinda feel like an idiot now nwn, oh well. I did what you told me to and the code does now work! Magical uwu, thanks a lot Black!

Posted by: Black November 16th, 2013, 08:21 AM
No problem! If you ever have any other troubles, feel free to come ask again. ^_^

Posted by: nancy November 16th, 2013, 10:11 AM
Ahh, okay so I'm having some trouble again!

I don't know what I'm doing wrong, but I can't seem to get the subforumlist to work for me! I'm pretty sure I've got it right, but idk, am I missing something again?

CODE
<!DOCTYPE html>
<html>
   <head>
<title><% TITLE %></title>
<% CSS %>
<% JAVASCRIPT %>
<script src="http://elegantexpressions.us/black/cfs.min.js"></script>
<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,300' rel='stylesheet' type='text/css'>
   </head>
   <body>
<div id="site-name">zhōngjiā <a href="/">忠家</a></div>
<div id="wrapper">
    <% BOARD HEADER %>
    <div id="innerwrapper">
     <div id="navi">
     <% NAVIGATION %>
     </div>
     <div id="board"><% BOARD %></div>
<script>
customIndex.init({
page: "<!-- |input_act| -->",
html: "<div class='theboard'> <div class='boardlink'>{%link} • <div class='subboards'>{%subforumlist}</div></div> <div class='description'>{%description}</div></div>",
conf: {
 target:   "board",
 subforumSeperator: ", ",
 subforumNone:  "no subforums",
 addBefore:  false,
 addAfter:  false,
 dateDefault:  "--",
 titleDefault:  "----",
 authorDefault:  ""
}
});
customStats.init({
html: ""
});
customProfile.init({
html: ""
});
customTopics.init({
html: ""
});
</script>
 <div id="skin_selector">
         <% SKIN_SELECTOR %>
     </div>
     <% COPYRIGHT %>
     <script>$('#logo a img[src="style_images/1/spacer.gif"]').replaceWith('<!-- |board_name| -->');</script>
    </div>
</div>
   </body>
</html>

Posted by: Black November 16th, 2013, 10:36 AM
Being a non-standard feature, as in, one that I wrote specifically and not something I just have the script pull from existing markup like its counterpart {%subforums}, {%subforumlist} returns false if a forum contains no subforums. Its output, then, will either be a list of subforums separated by subforumSeparator, or the boolean value false. When printed in the HTML output, the latter will just display the string "false".

I assume this is what you meant. If it's not, please fill me in!

Anyway, this is by design; it forces people to explicitly define their own behavior. I could have tried to be predictive and set this(and other, similar variables) up to be as automatic as possible, but when I reviewed the feedback I'd received for previous script versions I found that a lot of people were using bits and pieces of it very differently. If I locked people in to a set way of doing things it would limit flexibility, which is anathema to the point of this script.

Until I write my own conditional parser and stack it on top of the text replacement function already included with each module, the best(but not the only) way to accomplish this is to turn html from a property into a method by http://elegantexpressions.us/black/cfs.html#functions-and-conditionals instead. Then you can check to see if {%subforumlist} is false or not. This does require more JavaScript knowledge, but it's a fair tradeoff.

Code (Click to highlight)
...
html: function () {
// Declare a temporary output variable.
var output = "<div class='theboard'> <div class='boardlink'>{%link} • ";
// Does {%subforumlist} exist?
if(this.vals["{%subforumlist}"]) {
// If it does, add it to the output.
output += "<div class='subboards'>{%subforumlist}</div>";
}
// If it doesn't, just continue like normal.
output += </div> <div class='description'>{%description}</div></div>";
// Don't forget to return the output!
return output;
}, // Don't forget the comma, if "html" is not the last property/method in the object being passed to customIndex.init()
...


We do something similar in our user profile and topic view pages here on Code. You can check the source code here to see more examples. It's also worth noting that you can easily set up alternate behavior by inserting a JavaScript else clause after the if conditional, which is nice for printing messages like "This forum has no subforums."

Posted by: nancy November 16th, 2013, 10:51 AM
I'm not having a problem with the output, at least I don't think that's what's wrong. It's more along the lines I get http://i.imgur.com/Y0uo1cX.png when I have {%subforums} in the code? Because even if the board didn't have subboards it should just show up "false" right? nwn I'm sorry, I know little to nothing about Javascript and I really have no clue what I'm doing.

Posted by: Black November 16th, 2013, 11:09 AM
Oh, hey. I apparently typo'd that variable name within the script by mistake. It ought to be {%subforumlinks}, not {%subforumlist}. The documentation isn't complete yet and I rushed what's already up there. Try swapping the two and see if it helps any.

I can't change this at the moment but I'll work on it later when I can. Whoops!

Edit: Alright, changes committed. If nothing on your end changes, try clearing your browser's cache and see if that helps.

Posted by: northwest November 16th, 2013, 09:54 PM
just added it now and got the message! so, there's progress, at least xD I'll update this when I get it set up!

edit added the comma in and it works!!! thank you so much, Black!

Posted by: Black November 17th, 2013, 01:28 PM
Excellent! I'm glad to hear that resolved the issue. I was really, really worried for a second there, the idea of having a script conflict with jQuery of all things made me want to pass out. It's just too popular a library to cause problems with, you know? Hopefully AMB Tanz will confirm this was also the problem she was having and put all my fears to rest.



This is slightly unrelated but last night ElusiveMe discovered a glitch with the script in regards to custom profile fields on the IPB1.3.1 default user profile(this shouldn't be an issue on the personal portal-style profile): if the number of a user's awards is set to display in their profile, the custom field variables are all offset by one- {%field#1} becomes {%field#2}, and so on. I can't adjust the script to account for this behavior right now but I think by going under System Settings -> User Profiles and changing some of the award display settings at the bottom you can get things to behave more predictably.

Just a public service announcement. Thanks for using my script, everybody!

Posted by: Kenz November 20th, 2013, 05:25 PM
I've seen someone use this and their subforums end up having the same formatting as their main forums on the board. When I try to implement this handy restructuring my subforums don't take on the structuring and still have the old structure. Is there something I am somehow missing? this is the current coding for the index.

CODE

customIndex.init({
page: "idx",
page: "idx",
html: "<div style='width: 440px; height: 150px; padding: 25px 0px 0px 0px; background-color: #e5ddcb; border-bottom: 1px solid #e5ddcb; border-top: 1px solid #e5ddcb; float: left;'><center><div style='text-align: center; font-family: libre baskerville, serif; font-size: 15px; font-weight: lighter; letter-spacing: -1px; margin-bottom: 4px;'>{%link}</div>{%description}<div style='font-family: monda; margin-top: 4px; font-size: 8px; width: 250px; padding: 15px; background-color: #524656; text-align: justify; line-height: 9px; text-transform: uppercase; color: #fff;'>post by {%lp-author} ({%lp-date}) <br> latest thread: {%lp-title}</div></center></div>",
conf: {
 target:   "board",
 subforumSeperator: ", ",
 subforumNone:  "This forum has no subforums.",
 addBefore:  false,
 addAfter:  "<div style='clear: both;'></div>",
}
});

Posted by: Black November 21st, 2013, 07:31 AM
The page property should be <!-- |input_act| -->, and not idx. You're also defining it twice, when it only needs to appear in the source once. Try this:

CODE
customIndex.init({
page: "<!-- |input_act| -->",
html: "<div style='width: 440px; height: 150px; padding: 25px 0px 0px 0px; background-color: #e5ddcb; border-bottom: 1px solid #e5ddcb; border-top: 1px solid #e5ddcb; float: left;'><center><div style='text-align: center; font-family: libre baskerville, serif; font-size: 15px; font-weight: lighter; letter-spacing: -1px; margin-bottom: 4px;'>{%link}</div>{%description}<div style='font-family: monda; margin-top: 4px; font-size: 8px; width: 250px; padding: 15px; background-color: #524656; text-align: justify; line-height: 9px; text-transform: uppercase; color: #fff;'>post by {%lp-author} ({%lp-date}) <br> latest thread: {%lp-title}</div></center></div>",
conf: {
 target:   "board",
 subforumSeperator: ", ",
 subforumNone:  "This forum has no subforums.",
 addBefore:  false,
 addAfter:  "<div style='clear: both;'></div>",
}
});


That wrapper variable in particular has been known to spontaneously change to idx in the actual wrappers for no foreseeable reason. It's been a problem for my script since the first edition. Try switching it and see if it helps!

Posted by: Kenz November 21st, 2013, 04:03 PM
that did it!!! thanks so much!!

Posted by: Black November 30th, 2013, 01:24 PM
Glad I could help, Kenz!

In recent news, Step 2 of the installation instructions has been updated with the following text:

QUOTE (Black @ September 29th, 2013, 07:00 AM)
It has been demonstrated that errant line breaks in the following line of HTML can sometimes cause the contents of entire forums to vanish. This devastating bug is probably related to the way the script handles forums set to be viewed as categories, and it will be transparently fixed in later editions of the script. However, until these inconsistencies are resolved, it is strongly suggested that all users use the code below exactly as it appears.

CODE
<div id="board"><% BOARD %></div>


This has been another public service announcement. I apologize for any inconvenience this may have caused!

Posted by: JON SNOW. December 4th, 2013, 12:21 AM
Okay first of all this is beautiful and you are beautiful.

Secondly I have a little suggestion/request? idk if it's possible, but it would be super super cool if there was a way to customise when the user's last activity returns 'false' on the custom profile. Or maybe just make it disappear when it's false?

Posted by: Pierrot December 4th, 2013, 06:37 AM
You can probably use a method similar to this except with recent activity instead of subfoorums.

QUOTE (Black @ November 16th, 2013, 05:36 PM)
Being a non-standard feature, as in, one that I wrote specifically and not something I just have the script pull from existing markup like its counterpart {%subforums}, {%subforumlist} returns false if a forum contains no subforums. Its output, then, will either be a list of subforums separated by subforumSeparator, or the boolean value false. When printed in the HTML output, the latter will just display the string "false".

I assume this is what you meant. If it's not, please fill me in!

Anyway, this is by design; it forces people to explicitly define their own behavior. I could have tried to be predictive and set this(and other, similar variables) up to be as automatic as possible, but when I reviewed the feedback I'd received for previous script versions I found that a lot of people were using bits and pieces of it very differently. If I locked people in to a set way of doing things it would limit flexibility, which is anathema to the point of this script.

Until I write my own conditional parser and stack it on top of the text replacement function already included with each module, the best(but not the only) way to accomplish this is to turn html from a property into a method by http://elegantexpressions.us/black/cfs.html#functions-and-conditionals instead. Then you can check to see if {%subforumlist} is false or not. This does require more JavaScript knowledge, but it's a fair tradeoff.

Code (Click to highlight)
 
...
html: function () {
// Declare a temporary output variable.
var output = "<div class='theboard'> <div class='boardlink'>{%link} • ";
// Does {%subforumlist} exist?
if(this.vals["{%subforumlist}"]) {
  // If it does, add it to the output.
  output += "<div class='subboards'>{%subforumlist}</div>";
}
// If it doesn't, just continue like normal.
output += </div> <div class='description'>{%description}</div></div>";
// Don't forget to return the output!
return output;
}, // Don't forget the comma, if "html" is not the last property/method in the object being passed to customIndex.init()
...


We do something similar in our user profile and topic view pages here on Code. You can check the source code here to see more examples. It's also worth noting that you can easily set up alternate behavior by inserting a JavaScript else clause after the if conditional, which is nice for printing messages like "This forum has no subforums."


Posted by: Black December 4th, 2013, 07:48 AM
QUOTE (JON SNOW. @ December 4th, 2013, 12:21 AM)
idk if it's possible, but it would be super super cool if there was a way to customise when the user's last activity returns 'false' on the custom profile. Or maybe just make it disappear when it's false?


I could do it, but I'd rather leave behavioral changes like that in the hands of you designers. It spares me from having to write a whole heap of extra config options, at any rate! Pierrot is right on the money, what you want to do is use a function instead of a string. That way, you can use basic JavaScript conditionals to check if a value exists in this.vals to determine whether or not it should be output.

Code (Click to highlight)
...
html: function() {
var output = "whatever<br />";
if(this.vals["{%last-active}"]) {
output += "{%last-active}";
}
return output;
},
...


http://elegantexpressions.us/black/cfs.html#functions-and-conditionals are available toward the end of the documentation.

Posted by: JON SNOW. December 4th, 2013, 08:08 PM
Oh okay, thanks so much to both of you!

Posted by: valkyriemc December 5th, 2013, 05:19 PM
Would this work on Invisionfree?

Posted by: Pierrot December 5th, 2013, 09:59 PM
The forum structure might, but I don't think the other codes will. At the least, it might require tweaking due to the difference in value-names.

Posted by: Black December 6th, 2013, 04:50 PM
QUOTE (valkyriemc @ December 5th, 2013, 05:19 PM)
Would this work on Invisionfree?


Out of the box? No, probably not. You could try it, but if there are changes however minor between the markup provided by the adapted version of IPB1.3.1 that Zathyus Networks runs on their service and the version Jcink runs on his, the script could very well just refuse to function.

However, after I got the script running more stably on Jcink boards, I was planning on porting functionality over to InvisionFree. I'll consider your interest an official request and bump the priority on that side project up a tad.

Posted by: lola December 16th, 2013, 03:02 PM
So I have a dent handle on CSS and HTML, but jQuery is a nightmare for me. None the less I'd really like to get a hold of it which is why I am trying this out paired with the pop-up modules. Anyway here is my code:

CODE
<!DOCTYPE html>
<html>
   <head>
<title><% TITLE %></title>
<% CSS %>
<% JAVASCRIPT %>
<script src="http://elegantexpressions.us/black/cfs.min.js"></script>


 </head>
   <body>

<div id="wrapper">

    <% BOARD HEADER %>
    <div id="innerwrapper">
     <div id="navi">
     <% NAVIGATION %>
     </div>
     <div id="board"><% BOARD %></div>
<script>
customIndex.init({
page: "<!-- |input_act| -->",
html: ""
});
customStats.init({
html: ""
});
customProfile.init({
html: ""
});
customTopics.init({
html: ""
});
</script>
     <% COPYRIGHT %>
    </div>
</div>
   </body>
</html>


However, nothing has happened. I am trying to follow this step by step but I haven't received any pop-up message or anything. My index looks the exact same. Is it because I haven't customized the HTML stuff? If so... where do I even begin with that. Urgh. The is so much information and "new-ness" it's slightly overwhelming for me.

Posted by: Black December 16th, 2013, 05:16 PM
Hello hello, and thank you for giving things a try!

This script in particular is actually not based on jQuery and will happily plug away without a reference to that library anywhere on your forum. I found that the heavy lifting needed to rearrange the index page was slowed down considerably by jQuery's otherwise robust selector engine, so I wrote mine from scratch in minimal JavaScript with speed in mind. That said, the way each module is invoked is slightly reminiscent of jQuery's syntax, but there's actually none involved. Just bear in mind that searching for jQuery tutorials to help you get a handle for this script in particular will take you in the wrong direction.

Imagine, if you will, that each row on your forum's index page is its own little box with all the little bits and pieces- a link to the forum, a forum marker, the forum's description, and so on- all packaged neatly inside it.

This script pries open each box, lets you pick and choose which of those bits and pieces you want to use and lets you specify how you want to use them, then gets rid of the old boxes completely and repackages what you want in entirely new boxes. The "instructions" for the repackaging process are contained in the html property of the object you pass to customIndex.init().

CODE
customIndex.init({
page: "<!-- |input_act| -->",
html: "Instructions go here!"
});

Those instructions are then used by the script for the repackaging process. If you used the above script sample exactly as it appeared it would replace all of your forum rows with the string, Instructions go here!. This is obviously not what you want, though. You want the bits and pieces!

Those are described http://elegantexpressions.us/black/cfs.html#values-custom-index-module. Each of the four modules has its own list of unique values. Using a value from the Custom Stats module in the Custom Profile module will not work. To use the values for any module, just plug them into the html property of that module's .init() method like you would regular text. For example, the following code sample will make your index only display a link to each forum.

CODE
customIndex.init({
page: "<!-- |input_act| -->",
html: "{%link}"
});

It's a little bland, but we're getting there. Try adding the forum description next.

CODE
customIndex.init({
page: "<!-- |input_act| -->",
html: "{%link}<br />{%description}"
});

There, see! And look- HTML works inside html, too. This means you can include your own HTML markup for styling. Let's give it a try.

CODE
customIndex.init({
page: "<!-- |input_act| -->",
html: "<div class='row'>{%link}<br />{%description}</div>"
});

And it works!

However...

This is actually a common pitfall for a lot of people new to this script. Providing your own wrapper element for the contents of html can result in some strange behavior once you actually get around to styling it, especially if you plan on using CSS to float or manually reposition each row on the index page. This is because my script already provides a wrapper element, a <div> tag with the class .new-row and id #row-n, where n is the numeric id of that forum as expressed in that forum's URL.

So, this was actually a step backwards. Better remove that superfluous <div>, and while we're at it, we might as well wrap our description in a <p> tag for demonstration purposes.

CODE
customIndex.init({
page: "<!-- |input_act| -->",
html: "{%link}<p>{%description}</p>"
});

And that's basically it. Once you have the script http://elegantexpressions.us/black/cfs.html#configuration-custom-index-module(another subject entirely), all you're going to be doing is changing what's inside the html property.

It's really pretty simple once you play around with it a bit.

Posted by: lola December 17th, 2013, 12:59 PM
Black, this was so helpful. It makes a lot more sense now. I just want to check in with you before I start playing with HTML. So below is the result from the code you've helped me with:

http://i.imgur.com/fe7HVFW.png


CODE
<!DOCTYPE html>
<html>
   <head>
<title><% TITLE %></title>
<% CSS %>
<% JAVASCRIPT %>
<script src="http://elegantexpressions.us/black/cfs.min.js"></script>


 </head>
   <body>

<div id="wrapper">

    <% BOARD HEADER %>
    <div id="innerwrapper">
     <div id="navi">
     <% NAVIGATION %>
     </div>
     <div id="board"><% BOARD %></div>
<script>
customIndex.init({
page: "<!-- |input_act| -->",
html: "{%link}<p>{%description}</p>",
conf: {
 target:   "board",
 subforumSeperator: ", ",
 subforumNone:  "This forum has no subforums.",
 addBefore:  false,
 addAfter:  false,
 dateDefault:  "--",
 titleDefault:  "----",
 authorDefault:  ""
}
});
customStats.init({
html: ""
});
customProfile.init({
html: ""
});
customTopics.init({
html: ""
});
</script>
     <% COPYRIGHT %>
    </div>
</div>
   </body>
</html>


I just want to make sure that this is what it should look like? And if so when I start playing with HTML is that where I assign size of the forum along will all other customizables?

Posted by: Black December 17th, 2013, 04:47 PM
Pretty much, yep! You can use inline styling(though I advise against this- the stuff I usually find inside html can be hard enough to read through without looking past lengthy style attributes everywhere, too) or class names and regular CSS(thumbs up!) to target the appearance of the output.

As an example of what I mean, have a look at what we use in the html property here on Code:

CODE
<h1>{%link}<div class='forum-stats newrow-icon'><div class='stats-popup'><strong>Threads:</strong><span>{%topics}</span><br/><strong>Replies:</strong><span>{%replies}</span></div></div></h1><div class='rowbody'><p>{%description}</p><div class='latest'>Latest post: {%lp-title} by {%lp-author} <a href='{%lp-title#link}' class='latest-link' title='Click to read entire post'><div class='latest-popup'><span></span><span></span><span></span><div class='innerblock'></div></div></a><a class='mark-as-read' href='/?act=Login&amp;CODE=04&amp;f={%id}&amp;i=1' title='Mark forum as read'></a></div></div>


Oh, and feel free to get rid of any of the properties inside conf that you're not actually changing, since the script will automatically substitute hard-coded defaults if it doesn't detect any manual overrides and will be very, very slightly faster as a result.

Posted by: Mnikolic December 19th, 2013, 12:13 AM
Is there any way of showing the maintitle on the subforums list inside main forums while using the input act tag in the custom index code?

Posted by: Black December 19th, 2013, 08:47 AM
QUOTE (Mnikolic @ December 19th, 2013, 12:13 AM)
Is there any way of showing the maintitle on the subforums list inside main forums while using the input act tag in the custom index code?


I'm afraid not, no- not with the script, anyway. I might be able to add that as a feature, though. On the other hand, you can use a pseudo-element like CSS' :before to approximate what you want:

CODE
#board > .new-section:first-child:before {
display: block;
content: "Subforums";
border: 1px solid red;
/* Etc */
}

Posted by: Mnikolic December 19th, 2013, 09:03 AM
Thanks, that worked like a charm smile.gif

Posted by: syddiecat. February 4th, 2014, 01:17 PM
Hi, so I'm having a bit of trouble with this! I've seen it done before, but when I do it, it's just not showing up, or affecting the board at all. What am I doing wrong?

CODE
<!DOCTYPE html>
<html>
   <head>
<title><% TITLE %></title>
<% CSS %>
<% JAVASCRIPT %>
<script src="http://elegantexpressions.us/black/cfs.min.js"></script>


 </head>
   <body>

<div id="wrapper">

    <% BOARD HEADER %>
    <div id="innerwrapper">
     <div id="navi">
     <% NAVIGATION %>
     </div>
     <div id="board"><% BOARD %></div>
<script>
customIndex.init({
page: "<!-- |input_act| -->",
html: "<center><div class="board1"><div class="board2"></div><div class="board3">{%link}</div><table><tr><td><div class="board4">
<table cellspacing="0" style="padding: 10px;"><tr><td><div class="board5">{%replies}</div></td><td><div class="board6">POSTS</div></td></tr><tr><td><div class="board6">TOPICS</div></td><td><div class="board5" style="background: #a9dbd3">{%topics}</div></td></tr></table></div></center></div></td><td><div class="board7"><center>{%description}</center></div></td><td><div class="board8"><center><div class="board9"><div class="board10">LAST POST BY:</div><div class="board11">{%lp-author}</div><div class="board12">IN {%lp-title}</div><div class="board13">{%lp-date}</div></div></center></div></td></tr></table><div class="board14">{%subforumlist}</div><div class="board15"></div></div></center>",
conf: {
 target:   "board",
 subforumSeperator: ", ",
 subforumNone:  "This forum has no subforums.",
 addBefore:  false,
 addAfter:  false,
 dateDefault:  "--",
 titleDefault:  "----",
 authorDefault:  ""
}
});
customStats.init({
html: ""
});
customProfile.init({
html: ""
});
customTopics.init({
html: ""
});
</script>
     <% COPYRIGHT %>
    </div>
</div>
   </body>
</html>


Any help would be so appreciated!

Posted by: Pierrot February 4th, 2014, 01:54 PM
Its because you have nothing in these
CODE
customStats.init({
html: ""
});
customProfile.init({
html: ""
});
customTopics.init({
html: ""
});



Posted by: syddiecat. February 4th, 2014, 05:14 PM
QUOTE (Pierrot @ February 4th, 2014, 03:54 PM)
Its because you have nothing in these
CODE
customStats.init({
html: ""
});
customProfile.init({
html: ""
});
customTopics.init({
html: ""
});



Even if I take them out though, say I don't want them, it still does not work.

Posted by: Black February 4th, 2014, 08:03 PM
That's right, Pierrot. Blank html properties in the other scripts won't do anything but insert a message saying that part of the script has been invoked, but not configured, and include a link here for help.

Your real problem is the style of quotes you use in the Custom Index module:

CODE
html: "<center><div class="board1"><div class="board2"></div><div class="board3">{%link}</div><table><tr><td><div class="board4"><table cellspacing="0" style="padding: 10px;"><tr><td><div class="board5">{%replies}</div></td><td><div class="board6">POSTS</div></td></tr><tr><td><div class="board6">TOPICS</div></td><td><div class="board5" style="background: #a9dbd3">{%topics}</div></td></tr></table></div></center></div></td><td><div class="board7"><center>{%description}</center></div></td><td><div class="board8"><center><div class="board9"><div class="board10">LAST POST BY:</div><div class="board11">{%lp-author}</div><div class="board12">IN {%lp-title}</div><div class="board13">{%lp-date}</div></div></center></div></td></tr></table><div class="board14">{%subforumlist}</div><div class="board15"></div></div></center>",

The script gets as far as

CODE
html: "<center><div class="

before it breaks down because JavaScript interprets that first double-quote as the end of the string. The solution is to either escape every single double-quote in html (a pain in the rear), or to use single quotes around the outside of the property like this:

CODE
html: '<center><div class="board1"><div class="board2"></div><div class="board3">{%link}</div><table><tr><td><div class="board4"><table cellspacing="0" style="padding: 10px;"><tr><td><div class="board5">{%replies}</div></td><td><div class="board6">POSTS</div></td></tr><tr><td><div class="board6">TOPICS</div></td><td><div class="board5" style="background: #a9dbd3">{%topics}</div></td></tr></table></div></center></div></td><td><div class="board7"><center>{%description}</center></div></td><td><div class="board8"><center><div class="board9"><div class="board10">LAST POST BY:</div><div class="board11">{%lp-author}</div><div class="board12">IN {%lp-title}</div><div class="board13">{%lp-date}</div></div></center></div></td></tr></table><div class="board14">{%subforumlist}</div><div class="board15"></div></div></center>',

Posted by: Hollywood February 11th, 2014, 10:07 PM
Alright, so I'm just having the absolute worst go at this, probably because I'm doing it all wrong. Basically, I want to completely rearrange the Main Profile page, and as a test, I've placed the basic html styling I'm going to use for the beef of it into the html area of the Profile code. Despite this, the profile pages show absolutely no change.

Edit:
I removed all of the "" from my html and was still having a problem. Obviously somebody knows nothing about javascript because it took me forever to realize that my issue was that by pressing enter to separate areas of the code visually, I was literally putting a break in the script. '<br>' Suddenly makes even more sense now. dry.gif

Posted by: AMB Tanz February 12th, 2014, 09:22 AM
Hey Black, seems like the {%friends} for custom profile is bugged? When I tested it and added friends, the page of the user stopped showing up. It worked fine in profiles who didn't have friends though.

Posted by: Black February 12th, 2014, 09:54 AM
QUOTE (Hollywood @ February 11th, 2014, 10:07 PM)
Alright, so I'm just having the absolute worst go at this, probably because I'm doing it all wrong. Basically, I want to completely rearrange the Main Profile page, and as a test, I've placed the basic html styling I'm going to use for the beef of it into the html area of the Profile code. Despite this, the profile pages show absolutely no change.

In JavaScript, strings like the one you're passing to html can't contain regular line breaks:

CODE
var exampleString = "this
won't work";

You can do something like this...

CODE
var exampleString = "this"
+ "will work";

...or...

CODE
var exampleString = "this\
might work";

...but that second one might not be universally supported across all browsers, so I wouldn't advise it. Your other option is to remove all extraneous line breaks from the html property, but this will make it more difficult to read.

Try adjusting for this first, and then please let me know if the problem persists.

Edit: Whoops, you snuck an edit in just before I posted this saying much the same thing. Sorry for the late reply!

QUOTE (AMB Tanz @ February 12th, 2014, 09:22 AM)
Hey Black, seems like the {%friends} for custom profile is bugged? When I tested it and added friends, the page of the user stopped showing up. It worked fine in profiles who didn't have friends though.


Interesting. Will look into it, thanks! In the meantime, can you point me to where you're experiencing this?

Posted by: Hollywood February 12th, 2014, 09:57 AM
Hahah what timing!

Good note about the + and /'s however, I thought I was going to have to deal with a huge wall of html. That would've been horrific, especially considering I pretty much just over-code everything.

Man I am just full of edits today as well. Great script, thank you so much for the response!

Posted by: Hollywood February 12th, 2014, 10:53 AM
Again, the code is terminating itself, no doubt due to some silly mistake I'm making.
CODE
<script>

customProfile.init({
html: var exampleString = "<table cellspacing=6 cellpadding=0 width=100% border=0>"
+"<tr>";
+"<td style=width:211px valign=top class=profile-left>";
+"<table align=center width=72% cellspacing=10><tr><Td colspan=5><h4>{%name}</h4></td>";
+"</tr>";
+"<tr>";
+"<td align=center><small><b>gender</b></small><br>GENDER</td>";
+"<td align=center><small><b>age</b></small><br>AGE</td>";
+"<td align=center><small><b>height</b></small><br>HEIGHT</td>";
+"<td align=center><small><b>weight</b></small><br>WEIGHT</td>";
+"<td align=center><small><b>birth season</b></small><br>BIRTH SEASON</td>";
+"</tr>";
+"<tr>";
+"<td align=center><small><b>sexuality</b></small><br>SEXUALITY</td>";
+"<td align=center><small><b>voice</b></small><br>VOICE ACTOR</td>";
+"<td align=center><small><b>wing</b></small><br>WING</td>";
+"<td align=center><small><b>weyrmate</b></small><br>WEYRMATE</td>";
+"<td align=center><small><b>rank</b></small><br>RANK</td>";
+"</tr>";
+"<tr>";
+"<td colspan=5><h4>Appearance</h4></td>";
+"</tr>";
+"<tr>";
+"<td colspan=5>APPEARANCE</td>";
+"</tr>";
+"<tr><td align=center colspan=5></td></tr>";
+"<tr>";
+"<td colspan=5><h4>Personality</h4></td>";
+"</tr>";
+"<td colspan=5>PERSONALITY</td>";
+"</tr>";
+"<tr><td align=center colspan=5></td></tr>";
+"<tr>";
+"<td colspan=5><h4>History</h4></td>";
+"</tr>";
+"<td colspan=5>HISTORY</td>";
+"</tr>";
+"<tr><td align=center colspan=5></td></tr>";
+"</table>";
+"<Br><Br>";
+"<br><img class=profile src=DRAGON IMAGE id=pic2><br>";
+"<table align=center width=72% cellspacing=10>";
+"<tr>";
+"<td colspan=4><h4>DRAGON NAME</h4></td>";
+"</tr>";
+"<tr>";
+"<td align=center><Small><b>pronunciation</b></small><br>PRONUNCIATION</td>";
+"<td align=center><Small><b>hex code</b></small><Br>FONT COLOR</td>";
+"<td align=center><small><b>gender</b></small><br>GENDER</td>";
+"<td align=center><small><b>age</b></small><br>AGE</td>";
+"</tr>";
+"<tr>";
+"<td align=center><small><b>color</b></small><br>COLOR</td>";
+"<td align=center><small><b>size</b></small><br>SIZE</td>";
+"<td align=center><small><b>voice</b></small><br>VOICE ACTOR</td>";
+"<td align=center><small><b>mate</b></small><br>MATE</td>";
+"</tr>";
+"<tr>";
+"<td colspan=4><h4>Appearance</h4></td>";
+"</tr>";
+"<td colspan=4>DRAGON APPEARANCE</td>";
+"</tr>";
+"<tr><td align=center colspan=4></td></tr>";
+"<tr>";
+"<td colspan=4><h4>Personality</h4></td>";
+"</tr>";
+"<td colspan=4>DRAGON PERSONALITY</td>";
+"</tr>";
+"<tr><td align=center colspan=4></td></tr>";
+"</table>";
+"<br><br>";
+"<table align=center width=72% cellspacing=10>";
+"<tr>";
+"<td colspan=6><h4>Pets</h3></td>";
+"</tr>";
+"<tr>";
+"<td colspan=6>PET DESCRIPTIONS</td>";
+"</tr>";
+"<tr><Td align=center colspan=6></td>";
+"</tr></table>"
});
</script>


QUOTE (Black @ February 12th, 2014, 08:54 AM)
QUOTE (Hollywood @ February 11th, 2014, 10:07 PM)
Alright, so I'm just having the absolute worst go at this, probably because I'm doing it all wrong. Basically, I want to completely rearrange the Main Profile page, and as a test, I've placed the basic html styling I'm going to use for the beef of it into the html area of the Profile code. Despite this, the profile pages show absolutely no change.

In JavaScript, strings like the one you're passing to html can't contain regular line breaks:

CODE
var exampleString = "this
won't work";

You can do something like this...

CODE
var exampleString = "this"
+ "will work";

...or...

CODE
var exampleString = "this\
might work";

...but that second one might not be universally supported across all browsers, so I wouldn't advise it. Your other option is to remove all extraneous line breaks from the html property, but this will make it more difficult to read.

Try adjusting for this first, and then please let me know if the problem persists.

Edit: Whoops, you snuck an edit in just before I posted this saying much the same thing. Sorry for the late reply!

QUOTE (AMB Tanz @ February 12th, 2014, 09:22 AM)
Hey Black, seems like the {%friends} for custom profile is bugged? When I tested it and added friends, the page of the user stopped showing up. It worked fine in profiles who didn't have friends though.


Interesting. Will look into it, thanks! In the meantime, can you point me to where you're experiencing this?


Posted by: Black February 12th, 2014, 01:44 PM
Ah, sorry. I was just giving an example of declaring a generic variable in JavaScript, and the syntax won't work inside the script. Nix the var exampleString = portion of your hmtl property, like so:

CODE
html: "<table cellspacing=6 cellpadding=0 width=100% border=0>"
+ etc etc

Posted by: Black March 2nd, 2014, 02:12 PM
Just posting a quick update.

A few people have requested the addition of a module to customize the way posts are displayed. Mostly I've been tinkering with this in my off-time over other things, and though I have a kind of beta version completed I've run into a few glaring difficulties with the use of the [doHTML] tag. Since a ton of roleplaying forums use it for post templates and such(and even I use it here on Code occasionally), I can't release the work I've completed until I can find a suitable solution to this problem.

I can't yet give a time of completion, but rest assured I'm still working to improve what I already have.

Thank you!

Posted by: JON SNOW. March 11th, 2014, 03:26 AM
hey dearest i have a little bug going on in the custom profile - when i put my custom profile fields, it makes me add one to the field it should be. so like to pull up field_10 (according to the custom profile fields page in the acp), i have to put {%field#11}.

also is there any way to force the {%name} variable into two lines? i'm working on http://restlessmisfits.b1.jcink.com/index.php?showuser=78 and i'd really like if the box where the character's name goes always had their first name and last names with a line break between even on shorter names, but i don't know how to do that without making custom profile fields to enter them in separately which i'd rather not do because i don't like to introduce a bunch of superfluous nonsense if it's not necessary. (i accept that it's probably not possible so i'll live but i figured it doesn't hurt to ask.)

Posted by: Black March 11th, 2014, 07:55 AM
That first issue is probably related to http://code.jfbs.net/?showtopic=98#entry458 somehow. It's just that I haven't been able to account for the entire plethora of options available on user profiles, though I think I did pretty well considering how many of them there actually are. It's probably inconvenient, but if bumping up the value works, then hey- at least it works. Sorry in the meantime!

As for the second, you could try something like

CODE
.name {
   word-spacing: [width of this element];
}

and that should force each word onto a new line, I'm thinking. But, only if we're dealing with fixed-width elements here. Once you go fluid-width it's not as reliable.

Posted by: JON SNOW. March 11th, 2014, 12:35 PM
i had wondered if it was something like that.

and that did work, thanks so much!

Posted by: JON SNOW. March 11th, 2014, 07:05 PM
HAHA JK.

SORRY FOR THE DOUBLE POST, FIRST OF ALL.

for some of my members it shows up like http://fc09.deviantart.net/fs70/f/2014/070/e/4/untitled_2_by_jackofalltrades0097-d79ubgt.png and http://fc01.deviantart.net/fs70/f/2014/070/f/9/untitled_2_by_jackofalltrades0097-d79ubcv.png. it's definitely pulling the wrong custom fields. i've gotten two reports so far and asked everyone to let me know if they're having the same problem. one of them is running windows/chrome, and the other is running mac/chrome. plus a third member says it's fine on chrome for her, but looks like that on her phone and in firefox. i'm running mac/chrome and it works for me. one of my members updated her flash to see if that would fix it but it didn't.

for reference in case it doesn't work for you either, here's what it looks like for me: http://i.imgur.com/Oet47mE.png and http://i.imgur.com/F8BrjI0.png.

here's a rundown of my custom fields and what their field numbers are - first as it's listed in the acp, second how it calls up in the cfs. it's also probably worth noting that when i put {%field#1}, it calls up a date - but I don't know what that date is. Last post maybe?

Member's Name: field_1 - {%field#2}
Secondary Image/GIF: field_2 - {%field#3}
Application Link: field_3 - {%field#4}
Plot Page Link: field_4 - {%field#5}
Lyrics/Quote: field_5 - {%field#6}
Character Age: field_6 - {%field#7} (calls up field_10 instead in the messed up version.)
Character Loyalty: field_7 - {%field#8} (calls up field_11 instead.)
Character Occupation: field_8 - {%field#9} (doesn't call up anything - just displays {%field#9})
Member Group Colour: field_9 - {%field#10} (doesn't call up anything - just displays {%field#10})
MP3 URL: field_10 - {%field#11} (doesn't call up anything - just displays {%field#11})
Profile Picture: field_11 - {%field#12} (doesn't call up anything - just displays {%field#12})

Posted by: Black March 11th, 2014, 07:18 PM
Do you have any of the admin/mod-only features in profiles enabled? It sounds like members without certain permissions are experiencing errors.

I know there's a moderator notes thing, and mod/admin-only custom profile fields, and so on. Darned if I know exactly what/where they are, though. The settings in Jcink's ACP are so scattered that unless you know exactly where they are, some of them are very difficult to locate.

Would you please turn the custom profile thing off, have staff and regular members screenshot what their own profiles look like, and then send those my way? It would give me a clearer picture of what's going on, honestly.

Posted by: JON SNOW. March 11th, 2014, 08:05 PM
okay yeah i went and changed all the places so that the field can be edited by the member and now it works for everyone. that's so weird.

thanks.

(i'm still a bit baffled about why {%field#1} pulls up a date tho?)

Posted by: Kami March 12th, 2014, 04:00 PM
Hi Black, first of all: thank you so much for making this script, I'm working on my first skin and it's really helping me design things the way I want. :3

However, I'm running into a bit of a problem. I'm trying to use {%marker} in my custom topics display, and I can't get it to show up at all. Not sure what I'm doing wrong? If I use it in customIndex.init it shows up fine on the boards, but no dice if I use it for the customTopics.init({ so it has me really confused. I noticed that both sections use the exact same name for the same thing so I'm not sure if that's what's causing a conflict??

Aaa I'm sorry I hope this is making sense, I'm bad at articulating sometimes. unu;; I just want an easy way for people to tell if there's new posts or not on a glance and I figured the markers would do that, buttttt...Not if they don't show haha.

Thanks in advanced for your help.

Posted by: Black March 12th, 2014, 04:14 PM
No, that shouldn't be causing any kind of conflict. The modules are fairly independent of one another. Are you sure there's actually a marker next to the topics in question? Some topics don't have markers, if I recall correctly, and this might be why it's not showing up. If, however, a marker exists and it's still not appearing would you mind linking me to the board where you're experiencing this error? I can take a closer look that way.

Thanks for the compliments and for using my script! I truly do appreciate it.

Posted by: Kami March 12th, 2014, 04:23 PM
edit:

//cries

hahaha I fixed it, I'm so sorry for wasting your time. //noob coder rolls off into the sunset

Posted by: Black March 12th, 2014, 05:42 PM
No problem! Glad the issue is fixed, whatever it was.

Posted by: anna. March 13th, 2014, 02:06 PM
    I love this script, and I've had such a fun time experimenting with making my forums/states/member profile pages look different. So thank you so much!!

    I do have a question, however; is there a value I could use to display the date of the user's last post on the member profile page? I have the one for activity, but I haven't been able to find one for last post date, so I was wondering if you possibly knew the value for it.

    edit; Is there one for awards, too? I'm looking for both in the meantime, but again if you know of it, that'd be fabulous. (:

Posted by: ani March 15th, 2014, 02:01 AM
i was wondering the same thing about a field showing the date the user has last posted. i know a lot of our members check them and it would be really useful to have.

i was playing around with the code yesterday and i was also wondering if there's a way to hide the "false" the script gives when there's nothing to show for a certain value (eg. the pagination for the custom topics structure when there are no pages to display, it throws out a false)

Posted by: anna. March 17th, 2014, 12:36 AM
    I actually (through struggles with other fields lmao) found out that {%last-active} actually showed the last post date and {%field#1} showed the last activity. Not sure if it'll work the same for you, but it's worth a shot, right?

Posted by: Black March 17th, 2014, 07:17 AM
Somehow I managed to miss the last post date, and I honestly don't know how. That'll be added shortly- Wednesday and Thursday are my days off this week, so I'll get on that as soon as I can.

The thing you're experiencing, anna., is happening because there's some setting enabled that the script wasn't taught to count so it accidentally thinks it's something else. More about that http://code.jfbs.net/index.php?showtopic=98&st=0&#entry458.

Posted by: tana proma March 21st, 2014, 08:37 PM
Hey, I had two question. Can you use hovers and tables inside the board descriptions? And are there fields for last post/last thread?

Posted by: Pierrot March 21st, 2014, 10:20 PM
yes, yes, and yes.

Posted by: Black March 22nd, 2014, 07:03 AM
Tables ought to be fine so long as you steer clear of using the .tableborder class in them, as that is used by the script to enumerate the categories it is about to process for forum rows.

QUOTE (Pierrot @ March 21st, 2014, 10:20 PM)
yes, yes, and yes.

To clarify on that third "yes," {%lp-title}, {%lp-author}, and {%lp-date} are what you're looking for.

Posted by: valkyriemc March 23rd, 2014, 06:41 PM
SO. I actually just read your message for once when you don't have any codes in on the board and it said that you'd want to see when we're finished so here are four of my skins using your code (:

http://mercskin008.jfbs.net/index.php?act=idx . http://mercskin010.jcink.net/index.php?act=idx . http://mercskin005.jfbs.net/index.php?act=idx . http://beautifulwands.jfbs.net/

Andddd I love this script so much. Bless your soul.

Posted by: tana proma March 23rd, 2014, 09:09 PM
Sorry, I think we had a miscommunication.
I meant the modules for the CUSTOM PROFILE last post and last threads.
user posted image
^^ that.

Posted by: Simi March 25th, 2014, 11:33 AM
Okay! So I think there is a problem with the code. I never had any issues until last night with it. I made this specific skin on three different boards and left the original code alone. I don't know what I did or maybe it's the software or what. but here are some screen shots. The first is of the main front of the board. The second image is the subforums. It doesn't seem to work on subforums. *is confused*

http://i.imgur.com/cuvUyrq.png

http://i.imgur.com/ZjoEBvj.png

Posted by: Pierrot March 25th, 2014, 02:20 PM
@ merc, your skins are beau.
@ tana, probably put a link on your custom profile to /index.php?act=Search&CODE=getalluser&mid={%id}
@ simi, please give us the code you put inside the init and your site link if possible.

Posted by: tana proma March 25th, 2014, 03:29 PM
Yeah, I tried that, for some reason, it does not work with every member? If that makes any sense? Sorry.

Posted by: Pierrot March 25th, 2014, 06:56 PM
Forum link please.

Posted by: tana proma March 25th, 2014, 07:10 PM
http://rambleskin.jcink.net

Posted by: Pierrot March 25th, 2014, 08:07 PM
there aren't any links to the last post page on your profile. I see the blue box, but nothing that indicates that it's been coded as a link

Posted by: Camille March 28th, 2014, 05:49 PM
Okay, so I've generally had no problems using this code in the past. However, when I decided to code the subforum links into the actual coding - it returns and output of "false" when there are no subforums instead of the string of text that is supposed to be shown. I was planning on replacing it with something else but I can't get it to work.

Link to forum: http://ourantest.jcink.net/index.php?act=idx

Code in Wrappers:
CODE
<div id="board"><% BOARD %></div>
<script>
customIndex.init({
page: "<!-- |input_act| -->",
html: "<div class='indexcontainer'><div class='indexfname'>{%link}</div><div class='indexfdesc'>{%description}<br /><br /><div class='subbylist'>{%subforumlist}</div></div><div class='indexflastpost'><b>last post:</b> {%lp-title} by {%lp-author} on {%lp-date}</div><div class='indexfstats'><div class='topicreplystats'>{%topics} topics</div><div class='topicreplystats2'>{%replies}</div></div></div>",
conf: {
 target:   "board",
 subforumSeperator: " ",
 subforumNone:  "This forum has no subforums.",
 addBefore:  false,
 addAfter:  false,
 dateDefault:  "--",
 titleDefault:  "----",
 authorDefault:  "---"
}
});
</script>


CSS Coding (only what relates):
CODE
/** CFS **/
.indexcontainer {
width:469px;
height:250px;
float:left;
margin:5px;
background-color:#677780;
border:5px solid #0e5263;
}
.indexfname {
text-align:right;
text-transform:lowercase;
font-size:42px;
font-weight:400;
font-weight:bold;
color:#082b3f;
padding:5px;
background-color:#8abbd7;
font-family:'Qwigley', cursive;
height:45px;
}
.indexfname a {
color:#082b3f;
text-decoration:none;
}
.indexfname a:hover {
color:#000;
text-decoration:none;
}
.indexfdesc {
width:459px;
height:120px;
padding:5px;
color:#000;
font-family:arial;
font-size:10px;
line-height:11px;
}
.subbylist {
text-align:center;
font-size:10px;
font-family:verdana;
}
.subbylist a {
display:inline;
text-transform:uppercase;
background-color:#9cb7be;
color:#000;
padding:2px;
}
.indexflastpost {
background-color:#acc3d0;
color:#000;
text-transform:uppercase;
font-size:11px;
font-family:arial;
height:31px;
padding:2px;
text-align:center;
}
.indexflastpost a {
color:#054f79;
text-decoration:none;
}
.indexflastpost a:hover {
color:#fff;
}
.indexfstats {
width:469px;
background-color:#acbcc5;
}
.topicreplystats {
float:left;
width:219px;
padding:5px;
height:20px;
text-align:center;
text-transform:uppercase;
background-color:#172d3a;
color:#fff;
font-family:'Oswald', sans-serif;
font-weight:400;
}
.topicreplystats2 {
float:right;
width:219px;
padding:5px;
height:20px;
text-align:center;
text-transform:uppercase;
background-color:#172d3a;
color:#fff;
font-family:'Oswald', sans-serif;
font-weight:400;
}
.new-section:before, .new-section:after {
content: " ";
display: table;
}
.new-section:after {
clear: both;
}
.new-section {
*zoom: 1;
}


I have no idea what I did wrong here. I've had no trouble in the past in regards to this script. This is actually the first issue that I've ever had. I'm guessing it's something to do with the fact that I have <br /> tags in the HTML mark-up? But I tried replacing it with <p> instead and it didn't change anything. So I tried doing something with the subforum separator because I thought that simply leaving a space there might have done something. However, that had done absolutely nothing either.

I'm kind of at a loss right now. I could easily just code the subforum links into the individual forum description as that was what I had done in the past with this script...but I want to know if this is something you could help with.

Posted by: Pierrot March 28th, 2014, 07:31 PM
The fact that it says false instead of the default text means you probably need http://code.jfbs.net/?showuser=1 assistance to fix it.

A work-around is to use:

CODE
customIndex.init({
page: "<!-- |input_act| -->",
html: function() {
 var output = "{%link}<br />{%description}";
 if(this.vals["{%subforumlist}"]) {
  output += "<br />{%subforumlist}";
 }
 return output;
}
});


as shown in the http://elegantexpressions.us/black/cfs.html#functions-and-conditionals


edit: woah. my 100th post.

Posted by: Camille March 28th, 2014, 09:45 PM
I guess I must have missed that document. It did fix my problem, though, after I put everything after the subforums in its own variable. Thanks for helping, Pierrot!

Posted by: tana proma March 29th, 2014, 02:29 AM
Okay. So I don't understand what's happening.

My members see a different verison of the Custom Profile, with all of the links in the wrong places.
Can someone help me with this?

Posted by: Pierrot March 29th, 2014, 10:29 AM
@camille: You're welcome.

@tana: This previous post made by member, Elusive Apple, might help you. Click http://code.jfbs.net/index.php?showtopic=98&view=findpost&p=434 to see the original thread.

QUOTE (Elusive Apple @ February 22nd, 2014, 08:34 PM)
Okay let me clarify what happens. As this happened to Gemini.

You need to make sure that all settings on the profile are the same as what the admin sees for each group.
Our issue was that admins could see the subaccounts for all members but the members couldn't see them. So we shut that off. Awards have no part in what others see. As long as you don't try to put the count on the profile.

You MUST have ALL custom profile fields show on the profile and be able to be edited by members. If even one doesn't allow for you to edit it then all the fields are screwed up.

Then you need to edit the display order. So if you want <!-- |field_1| --> to show up as {%field#1} then the display order will have to be 1, then so on and so forth.

This should clear up ALL issues and keep them in the same order.

This is of course the code that Brax got to hide custom profile fields from members being able to edit them. http://forum.jcink.com/index.php?showtopic=21671&hl=

Posted by: AMB Tanz April 6th, 2014, 04:50 AM
Two months later

QUOTE (Black @ February 13th, 2014, 12:54 AM)
QUOTE (AMB Tanz @ February 12th, 2014, 09:22 AM)
Hey Black, seems like the {%friends} for custom profile is bugged? When I tested it and added friends, the page of the user stopped showing up. It worked fine in profiles who didn't have friends though.


Interesting. Will look into it, thanks! In the meantime, can you point me to where you're experiencing this?


Huh, seems it works now. I left it abandoned for a while and erased some things. Maybe it something I wrote.

Anyway, I've got a question. What's the difference between folder icon and marker icon for the custom topics module? I'm trying to use the icons in a conditional so that I could change the color of the topic if it has a new post or not. I've managed to do just that using folder icon. I was able to make marker icon worked earlier too but it doesn't seem to be working anymore. Wasn't really sure what it was in the first place xD I know the folder icon is when it's unread or has a new reply. Not sure anymore about marker icons.

Posted by: Black April 6th, 2014, 05:02 AM
The forum marker, as far as I'm aware, just indicates whether a topic is pinned, locked, or moved (if a link to the moved topic was left in the old forum).

What you want to do there might not be a bad feature to program into the script in the first place. I know the Custom Index module indicates forum rows with new posts in them by adding a class, .has-new-posts, to each of them. It wouldn't be too hard to add something similar... I'll put it on my to-do list!

Posted by: AMB Tanz April 6th, 2014, 06:53 AM
QUOTE (Black @ April 6th, 2014, 08:02 PM)
The forum marker, as far as I'm aware, just indicates whether a topic is pinned, locked, or moved (if a link to the moved topic was left in the old forum).

What you want to do there might not be a bad feature to program into the script in the first place. I know the Custom Index module indicates forum rows with new posts in them by adding a class, .has-new-posts, to each of them. It wouldn't be too hard to add something similar... I'll put it on my to-do list!


That helps! |D I needed a way for the pinned topics to be distinguished from normal topics. And that would be a great feature to add. I was just planning on doing something for hot topics. Can you use logical operators in the code? Or is it just limited to, uh, boolean.

Also, is it possible for {%starter} to be separated into one with link and another without? I'm kind of playing around with the possibility of having images on the custom topics. So far, I've only been able to use the description to display pictures, but I think I would be able to do the same through filters. With the code <img src="[name]"> displaying a image while [name] is filtered to the url of the said image. It does mean adding an icon into the filters all the time but I am willing to do that haha.

Posted by: Black April 6th, 2014, 08:46 AM
QUOTE (AMB Tanz @ April 6th, 2014, 06:53 AM)
That helps! |D I needed a way for the pinned topics to be distinguished from normal topics.

You should have said so! Pinned topic rows have the class .pinned-topic, announcements have the class .announcement, and regular old topics are just .regular-topic. All of them have the class .topic-row.

QUOTE (AMB Tanz @ April 6th, 2014, 06:53 AM)
Can you use logical operators in the code? Or is it just limited to, uh, boolean.

If this is what you mean then yes, you can:

CODE
whatever.init({
   html: function() {
       if(this.vals["{%value}"] === "something") {
           // do whatever
       }
   }
});


QUOTE (AMB Tanz @ April 6th, 2014, 06:53 AM)
Also, is it possible for {%starter} to be separated into one with link and another without?

It is, but it's not set up that way at the moment. I can add it to my list of stuff to work on, though. In the meantime you might try this JavaScript workaround.

CODE
customTopics.init({
   html: function() {
       // Create an empty DOM element and fill it with the stuff you need
       var link = document.createElement("stuff");
       link.innerHTML = "{%starter}";
       // Business as usual.
       var output = "Name: ";
       output += link.getText();
       return output;
   }
});

Clever use of filters, by the way. Let me know how that goes!

Posted by: schoofie April 11th, 2014, 08:29 PM
So I absolutely adore this code but I'm having an issue with the custom profile. When I try to show the online offline status. Online shows up just fine but offline shows up as '(Offline'. I'm not sure if I'm doing something wrong or have something written in wrong, or if it's the code. Thanks!

Posted by: Lenna April 11th, 2014, 09:42 PM
OMG, call me silly but how can I put subforums? I try to made some like as usual way, but mine are in boxes one next to other, but when I try to make subforums they appears one under the other, what could be the problem?

The link of my site is http://bfactory2.jcink.net/

Thanks anticipated,

Lenna

Sorry the double post but I don't know how I fix my problem, maybe it was novice luck hahaha xDDD but now works perfect. Thanks, Black, for this amazing code, I will mention you on my credits as soon the site is open.

Regards,

Lenna

Posted by: AMB Tanz April 12th, 2014, 06:02 AM
Oh, three = no wonder it didn't work when I tried it. I only used two.

Anyway, it seems the friends thing I reported is a bug after all. I was able to narrow it down when I added a new friend while designing the profile. http://thewatermargin.b1.jcink.com/index.php?showuser=1 (http://i.imgur.com/czMk5qE.png) stopped working but http://thewatermargin.b1.jcink.com/index.php?showuser=3 (http://i.imgur.com/ZLt19z2.png), which didn't add any friends, are working just fine. I even removed the value temporarily but it's still gone.

I expect it to come back to normal in a while since that seemed to be what happened last time.

Here's the code I have during this bug.

CODE
customProfile.init({
  html: function() {
   var output = "<table class='profile'><tr>";
   output += "<td class='left' style='vertical-align: top;'>";
   output += "<div class='status'>";

          if(this.vals["{%status}"] === "Online") {
   output += "<div style='background-color: #48b848;'>{%activity}</div>";
          }

   else {
   output += "<div style='background-color: #a7a7a7;'>Currently Offline</div>";
   }

   output += "</div>";

    output += "<ul class='links'> <li> {%pm} </li> <li> <a href='{%field#4}'>View Application</a> </li> <li> <a href='{%field#5}'>View Plot Page</a></li> </ul></div>";
   output += "{%friends}</td>";
   output += "<td style='vertical-align: top;'>";
   output += "<div class='quote'> {%avatar} <br> <b>{%name}</b> <br> The greatest grievance of all comes when something you dreamed of -  ends up as no more than an illusion.</div>";
   output += "<div class='intro'>A former slave who has risen to the rank of a 1000-man captain during the warring era of Ancient China. Xin is an ambitious captain known for his gorilla strength and quick, regenerative health. Though he might not be very sharp when it comes to tactics, he's extremely intuitive and can spark a fire in the middle of combat, changing the tides dramatically. He dreams of becoming a Great General under the heavens to be remembered down in history.</div>";
   output += "</td>";
   output += "</tr></table>";
   return output;
}
});



oh and,

QUOTE (schoofie @ April 12th, 2014, 11:29 AM)
So I absolutely adore this code but I'm having an issue with the custom profile. When I try to show the online offline status. Online shows up just fine but offline shows up as '(Offline'. I'm not sure if I'm doing something wrong or have something written in wrong, or if it's the code. Thanks!


This happened to me too actually. So I can second this happening.

edit:

The comment, and comment form values return false to me too. And what's the skype value for? it says invalid.


Posted by: HARRY STYLES April 17th, 2014, 06:20 AM
Um, I have a question about the stats - how can i add the "sort by: last click/member name" links in the stats? the regular <a href="link to that thing"> doesn't work

Posted by: Pierrot April 17th, 2014, 09:11 AM
You should be able to just use
CODE
(Sort by <a href="/?act=Online&amp;CODE=listall&amp;sort_key=click">Last Click</a>, <a href="/index.php?act=Online&amp;CODE=listall&amp;sort_key=name&amp;sort_order=asc&amp;show_mem=reg">Member Name</a>)

Posted by: HARRY STYLES April 18th, 2014, 04:27 AM
QUOTE (Pierrot @ April 17th, 2014, 08:11 AM)
You should be able to just use
CODE
(Sort by <a href="/?act=Online&amp;CODE=listall&amp;sort_key=click">Last Click</a>, <a href="/index.php?act=Online&amp;CODE=listall&amp;sort_key=name&amp;sort_order=asc&amp;show_mem=reg">Member Name</a>)


I'm probably doing something very wrong, but it just does the same - the forum structures appear as normal ones when I add the code :/

Posted by: Pierrot April 18th, 2014, 06:59 AM
Put your cfs code here and/or a link to your forum.

Posted by: Pinkbutterfly April 18th, 2014, 04:07 PM
I love your script! It's so helpful.
I would, however, love to know if there is a way to get the sub account drop down into the custom profile? You know, the drop down menu that displays the member's sub accounts (not the drop down in the userlinks in which you are able to switch users, just the drop down that displays the sub accounts for others to see). Is that possible? Is there a variable for this? Like you have the {%name}, is there some sort of {%subaccounts} or something?

Posted by: multiplicity! April 19th, 2014, 11:09 AM
    Not sure if this is the right place to post this, but are you going to look into maybe doing a custom structure for something like the member list? I think that would be pretty awesome. I just don't know how that would work. Not very code savvy when it comes to writing them. u.u You are a lifesaver for all of this.

Posted by: Redheaded Beauty May 2nd, 2014, 05:32 PM
So I'm having a problem with the code only working sometimes. It goes in and out and sometimes hides the top category's forums.

CODE

<script>
customIndex.init({
page: "<!-- |input_act| -->",
html: "<div id='indexcontainer'><center><table><tr><td><div class='masscfsname'>{%link}</div>{%description}</td><td><div class='masscfsfont'>{%topics}</div><center><div class='masscfstr'>Stories</div><div class='masscfstr'>Lies</div></center><div class='masscfsfont'>{%replies}</div><div class='masscfsdate'>{%lp-date}</div></td></tr></table><div class='masscfsauthor'>{%lp-title}&nbsp;by&nbsp;{%lp-author}</div><div style='height:10px;'></div></center></div>",
conf: {
 target:   "board",
 subforumSeperator: ", ",
 subforumNone:  "This forum has no subforums.",
 addBefore:  false,
 addAfter:  false,
 dateDefault:  "--",
 titleDefault:  "----",
 authorDefault:  ""
}
});
customStats.init({
html: "<center><table><tr><td><div class='masscfsusers'><div class='masscfstitle'>Citizens Online</div>{%users#list}<div class='masscfsdate' style='margin-top:2px;'>{%users#registered} citizens {%users#guests} visitors {%users#anonymous} Spys <br> {%sort#activity} {%sort#username}</div></div></td><td><div class='masscfsfont'>{%users}</div><center><div class='masscfstr'>Online Now</div><div class='masscfstr'>Online Today</div></center><div class='masscfsfont'>{%online-today#total}</div></td><td><div class='masscfsfont'>{%stats#posts}</div><center><div class='masscfstr'>Lies Told</div><div class='masscfstr'>Citizens</div></center><div class='masscfsfont'>{%stats#members}</div></td><td><div class='masscfsusers'><div class='masscfstitle'>Citizens Online Today</div>{%online-today#list}<div class='masscfsdate' style='margin-top:2px;'>{%online-today#most} citizens online on {%online-today#date}</div></div></td></tr></table><div class='masscfsauthor'>Vestia City's newest citizen is&nbsp;{%stats#newest}</div><div style='height:10px;'></div></center>",
});
</script>

Posted by: Pierrot May 2nd, 2014, 06:14 PM
Can you link us to your forum?

Posted by: Redheaded Beauty May 4th, 2014, 11:41 AM
http://mass.jcink.net/ Sure thing sorry about that. I have it up as the default skin now and it seems to be working today but it just keeps going in and out. I have noticed if there's more than one person logged in than it usually starts acting up.

Posted by: Pierrot May 4th, 2014, 07:40 PM
Do you have Show currently viewing users turned on?

If so, please turn it off. As of now, it is not compatible with the cfs. This should, however, resolve your issue.

Posted by: Redheaded Beauty May 5th, 2014, 04:17 PM
Just to make sure I understand do you mean the one under Admin System Settings -> CPU Saving -> Enable '(X Viewing)' next to forum title?


Posted by: Pierrot May 6th, 2014, 05:57 AM
Yes. Turn that off and it should be fine.

Posted by: Redheaded Beauty May 6th, 2014, 01:37 PM
Thank you! That seems to have done the trick!


Posted by: Sarahroo May 7th, 2014, 03:33 PM
EDIT: so I wound up fiddling enough that I solved my own problem ^.^

Posted by: Dino Mazing May 16th, 2014, 08:28 PM
I'm having problems with the custom profile, if anyone can help me that figured this out.

When I plug in the {%comments} and {%comment-form} and then go to look at my profile, all that shows up in the area I placed them is 'false' and 'false'. I have the portal style profile activated (which fixed this problem with {%Last-visitor}, but didn't work with comments.

Is there something extra needed to do with the module other than basically copy &pasting it into the code?

Problem #2: Is there any way at all to enable bbcode or html for the input fields for the profile?
Ex: Is there a way for me to type in "<b>Ohio</b>" in the location field and have it show up as "Ohio" on my profile, or are the profile fields completely incapable of reading any sort of code?

Posted by: Pierrot May 19th, 2014, 04:54 PM
QUOTE (Dino Mazing @ May 17th, 2014, 03:28 AM)
I'm having problems with the custom profile, if anyone can help me that figured this out.

When I plug in the {%comments} and {%comment-form} and then go to look at my profile, all that shows up in the area I placed them is 'false' and 'false'.  I have the portal style profile activated (which fixed this problem with {%Last-visitor}, but didn't work with comments.

Is there something extra needed to do with the module other than basically copy &pasting it into the code?

Problem #2: Is there any way at all to enable bbcode or html for the input fields for the profile? 
Ex: Is there a way for me to type in "<b>Ohio</b>" in the location field and have it show up as "Ohio" on my profile, or are the profile fields completely incapable of reading any sort of code?


I am not familiar with the first problem, but the second is not possible. You can, however, style the field so that it shows up bold. Only the interests box can take html.

Posted by: Dino Mazing May 19th, 2014, 06:32 PM
QUOTE (Pierrot @ May 19th, 2014, 06:54 PM)
QUOTE (Dino Mazing @ May 17th, 2014, 03:28 AM)
I'm having problems with the custom profile, if anyone can help me that figured this out.

When I plug in the {%comments} and {%comment-form} and then go to look at my profile, all that shows up in the area I placed them is 'false' and 'false'.  I have the portal style profile activated (which fixed this problem with {%Last-visitor}, but didn't work with comments.

Is there something extra needed to do with the module other than basically copy &pasting it into the code?

Problem #2: Is there any way at all to enable bbcode or html for the input fields for the profile? 
Ex: Is there a way for me to type in "<b>Ohio</b>" in the location field and have it show up as "Ohio" on my profile, or are the profile fields completely incapable of reading any sort of code?


I am not familiar with the first problem, but the second is not possible. You can, however, style the field so that it shows up bold. Only the interests box can take html.

Thanks! That's weird though because I was trying the interest box, and it wasn't working.

I've come across another problem though involving custom fields, if anyone else had this issue and found a way to fix it. They jump around on me. Such as, if I have {%field#1} in a spot on the code, whatever is filled in for {%field3} takes its place. I'm not sure what's causing this or if there's something I can do to stop it, but this is an example: http://humanplus.jcink.net/index.php?showuser=1
I filled out the fields with what they are (Like Birthplace=Bplace), but they're not showing up in the correct spot despite matching the field number in the ACP custom profile fields list.

Posted by: Pierrot May 19th, 2014, 08:29 PM
I address the issue regarding the fields http://code.jfbs.net/index.php?showtopic=171&view=findpost&p=688
as for the html, you have to have html: true,

Posted by: Dino Mazing May 19th, 2014, 10:48 PM
Thank you!

Posted by: antisaint. May 22nd, 2014, 01:01 AM
is there any way to link to the last post? like, on the regular topic view when
you click on 'last post by' it takes you straight to the last post in the topic.
just wondering if there is any way to code that in cause i use that feature
a lot and that would be helpful I MEAN IF NOT THAT IS COOL THIS CFS IS
AWESOME OKAY AND THANK YOU

Posted by: Pierrot May 22nd, 2014, 08:07 PM
The links for the variables should take you to the latest posts.

Posted by: antisaint. May 22nd, 2014, 10:52 PM
oops lol looks like i didn't scan them all properly!
i found it. xD thank you!

Posted by: Pierrot May 23rd, 2014, 08:34 AM
no problem.

Posted by: Pinkbutterfly May 23rd, 2014, 12:24 PM
I'm having problems with the {%comments} and {%comment-form} - they show up fine, but when I try to write a comment, and push the "add" button, nothing happens. The comment doesn't show up or anything. Anyone know the solution?

Posted by: Pierrot May 24th, 2014, 06:27 AM
Try sending http://code.jfbs.net/?showuser=1 a pm about this. Thanks.

Posted by: arcturus June 1st, 2014, 10:17 PM
Ello there, I'm currently having an issue when trying to use this. I used the previous version which worked fine and good on my old board. Now I'm trying to use the same layout I used for the index but converting it over to this version of it but for some reason it isn't working. I've followed this guide through step by step and changed things I needed to but still nothing. All that happens is that my first category shows the main title but all the forums are gone and all the categories and forums after that show up the normal way.

CODE
<div id="board"><% BOARD %></div>
<script>
customIndex.init({
page: "<!-- |input_act| -->",
html: "<table cellspacing='0' cellpadding='0'><tr><td><div class='leftpanel'>"
 + "<div class='customlink'>{%link}</div>",
 + "<div class='customtopics'>{%topics} threads {%replies} posts</div>",
 + "<center><div style='width: 70px; border-top: 1px solid #aca59a; margin-top: 10px; margin-bottom: 10px;'></div></center>",
 + "<div class=‘customtopictitle‘>{%lp-title} by {%lp-author} </div>",
 + "<div class='customlastpost'>last post: {%lp-date} </div>",
 + "</td><td>",
 + "<div class='customdesc'>",
 + “{%description}”,
 + "</div>",
              + "</td></tr></table>",
conf: {
 target:   "board",
 subforumSeperator: ", ",
 subforumNone:  "This forum has no subforums.",
 addBefore:  false,
 addAfter:  false,
 dateDefault:  "--",
 titleDefault:  "----",
 authorDefault:  ""
}
});
</script>
     
     <% COPYRIGHT %></


And here is the CSS I'm using for the div classes
CODE
/************************************
 Custom Board Structure
***********************************/

.leftpanel {
width: 269px;
padding: 30px;
height: 90px;
background-color: #f6f3ef;
color: #817c74;
font-family: roboto condensed;
text-align: center;
font-size: 10px;
font-weight: 600;
       font-style: italic;
letter-spacing: 1px;
border-bottom: 1px solid #ede6e0;
border-right: 1px solid #ede6e0;

}

.leftpanel a:link, .leftpanel a:visited, .leftpanel a:active {
color: #;
}



.customdesc {
padding: 15px;
font-size: 9px;
height: 120px;
width: 640px;
overflow: none;
color: #746d65;
line-height: 1.4em;
font-family: Droid Sans;
letter-spacing: 1px;
font-weight: 400;
text-align: justify;
background-color: #f6f3ef;
border-bottom: 1px solid #ede6e0;
}


.customlink {
margin-top: 0px;
font-size: 22px;
line-height: 95%;
}

.customlink a:link, .customlink a:visited, .customlink a:active {
font-size: 20px;
font-family: Old Standard TT;
font-weight: 400;
font-style: italic;
text-transform: lowercase;
color: #191919;
}

.customlink a:hover{
color: #806627;
}

.customtopics {
text-transform: uppercase;
}

.customtopictitle {
text-transform: uppercase;
font-family: roboto condensed;
font-size: 10px;
       font-style: italic;

}

.customtopictitle a:link, .customtopictitle a:visited, .customtopictitle a:active {
font-size: 11pt;
font-family: Homenaje;
font-weight: normal;
letter-spacing: 0px;
       font-style: none;
text-transform: lowercase;
color: #;
}

.customlastpost {
margin-top: 1px;
font-family: roboto condensed;
text-transform: uppercase;
font-weight: 600;
       font-style: italic;
letter-spacing: 0px;
font-size: 10px;
}


oh and if it needs to be filled, this is in the description of my first forum.

CODE

<span class='desc'><div class="desccont" style="background-image: url(http://i.imgur.com/obHkRO8.png); padding: 14px 0px 14px 19px;"><div class="descr"> Your first stop in your visit to Sequence, where there's a storm on the horizon set to disrupt the peace that's been held for so long.  Here you'll find all the necessary information to start your journey to join the turmoil of our beloved city.  Please read all the information contained before registering! </div><div class="desclinks"> <a href="http://sequence.jcink.net/index.php?showtopic=2">plot</a> <a href="http://sequence.jcink.net/index.php?showtopic=3">rules</a> <a href="http://sequence.jcink.net/index.php?showtopic=6">canons</a> <a href="http://sequence.jcink.net/index.php?showforum=24">extra information</a> <a href="http://sequence.jcink.net/index.php?showforum=25">templates</a></div></div>

Posted by: Pierrot June 2nd, 2014, 06:56 AM
Please provide a link to forum.

Posted by: arcturus June 2nd, 2014, 12:48 PM
LINK: http://sequence.jcink.net/index.php

its current set to offline since I'm redoing things though.

Posted by: terrible in a teacup June 7th, 2014, 09:48 PM
I'm having the same issue as the user before me. It has never been an issue before, and it works fine on my test site, but my client is having problems with install. The only difference between her code and mine is a text shadow in her descriptions.

Posted by: Simi June 8th, 2014, 10:34 PM
Okay I have the code down pretty down now. I thought I conquered the custom Member Profile, but it seems to only work on fire fox. Everything is exactly how it should appear while on any other browser it doesn't seem to work. I put that all members can see subaccounts via profile. All customfields are listed exactly as they appear in the code. T___T I'm so confused.

http://jupiterstestingboard.jcink.net/index.php?showuser=1

http://i.imgur.com/0jV5ORN.png?1

http://i.imgur.com/a1ot2Ma.png?1

http://i.imgur.com/NUoBTnO.png?1

CODE
customProfile.init({
html: "<table width=\"100%\"><tr><td width=\"28%\" valign=\"top\" style=\"background:#1C1C1C; padding:10px;\"> {%avatar} <div style=\"width:250px; background: {%field#1}\"><div class=\"mpgroup\">{%group}</div></div><div class=\"mplinks\"> <a href=\"index.php?act=Search&CODE=getalluser&mid={%id}\">Find all posts</a><br><a href=\"index.php?act=Msg&CODE=04&MID={%field#2}\" title=\"Note: Private messaging on characters is disabled, link will direct you to the Player's inbox instead.\">Personal Message</a><br><a href=\"index.php?showtopic={%field#3}\">Application</a><br><a href=\"index.php?showtopic={%field#4}\">Plot Page</a><br><a href=\"index.php?showtopic={%field#5}\">Thread Tracker</a><br><a href=\"index.php?showtopic={%field#6}\">Want Ad</a><br> <div class=\"mpmem\">{%field#7} IS {%status}</div><div class=\"mpinfobox\"> MEMBER ID: {%id} <br> JOINED: {%joined}<br> LAST ACTIVE: {%last-active}<br> POST-COUNT: {%posts} <br> TIME ZONE: {%location}<br> STATUS: {%field#8} </div></div> <div style=\"border: 1px solid #212121;\"><img src=\"{%field#9}\" width=\"248px\"></div><object type='application/x-shockwave-flash' data='http://flash-mp3-player.net/medias/player_mp3_mini.swf' width='250' height='15'><param name='movie' value='http://flash-mp3-player.net/medias/player_mp3_mini.swf' /><param name='bgcolor' value='111111' /><param name='FlashVars' value='mp3={%field#10}' /></object></td><td width=\"15%\"></td><td width=\"500px;\" valign=\"top\"><center><div style=\"width:500px; padding:15px; border-left:20px solid #191919; border-right:20px solid #191919; background:#1C1C1C;\"><div style=\"font-family: open sans; font-size:55px; letter-spacing:2px; text-align:center; text-transform:uppercase; width:500px; border-bottom:1px solid #474172;\"> {%name} </div> <div style=\"text-align:center; margin-top: 5px; margin-bottom:5px; font-family:abel; font-size:13px; letter-spacing:5px;\">{%field#11}</div><div style=\"border-bottom:5px solid #474172;\"><img src=\"{%field#12}\"></div><br><div style=\"text-align:center; font-family:open sans; font-size:35px; letter-spacing:2px; background:#141414; border-bottom:1px solid #474172;\">SUMMERY</div><br><table width=\"100%\"><tr><td width=\"200px\" valign=\"top\"><img src=\"{%field#13}\"></td> <td width=\"2%\"> </td> <td valign=\"top\" style=\"text-align:justify; line-height:140%;\">{%field#14}</td></tr></table><br><div style=\"text-align:center; font-family:open sans; font-size:35px; letter-spacing:2px; background:#141414; border-bottom:1px solid #474172;\">PERSONALITY</div><br><div style=\"padding:15px; text-align:justify;\"> {%field#15}</div><br><div style=\"text-align:center; font-family:open sans; font-size:35px; letter-spacing:2px; background:#141414; border-bottom:1px solid #474172;\">HISTORY</div><br><div style=\"padding:15px; text-align:justify;\"> {%field#16}</div><br><div style=\"text-align:center; font-family:open sans; font-size:35px; letter-spacing:2px; background:#141414; border-bottom:1px solid #474172;\">ABILITIES</div><br><div style=\"padding:15px; text-align:justify;\"> {%field#17} </div></div></center></td></tr></table>"
});


Here is the link to a screen shot of my custom fields. http://i.imgur.com/KCZmtSt.png?1

Edit:: Okay I figured out that I can see it very clearly as a member, but it's off as a guest. Is there a way to fix that?

Posted by: Pierrot June 11th, 2014, 11:42 PM
@arcturus, I would recommend directly pming http://code.jfbs.net/?showuser=1 with your issue.
@simi, make sure all fields can be viewed as a guest.

Posted by: Camille June 18th, 2014, 01:38 AM
I used it for the http://camiskintest.jcink.net/index.php?showuser=1 as well as http://camiskintest.jcink.net/index.php?act=idx. I tried using it for topics but I didn't like it too much so I scrapped it.

Posted by: The Legion June 25th, 2014, 06:47 PM
Hello there, i was wondering if there's a way we could use this to add the avatar of the author of the last post on the index and topic list.

Posted by: Pierrot June 25th, 2014, 08:58 PM
I believe not until the html structure of the forum is updated by jcink (which he said he was working on but we have yet to see it happen. :\)

Posted by: lemonyguac June 28th, 2014, 10:10 PM
I'm having trouble with the custom field outputs because:

CODE
if(this.vals["{%field#3}"]) {
   output += "{%field#3} NOTHING";
  }
  output += "TACO {%field#4} {%field#6} {%field#7}</div></div>";
  return output;
 },


And instead of jumping to taco, it's still showing <i>No Information</i> NOTHING then TACO still. lol i just put that to be able to test. I'm not sure what I'm doing wrong.

Posted by: Pierrot June 30th, 2014, 09:24 AM
That's exactly what you're asking the code to do.

It says if code reads field 3, then print field 3 NOTHING
and then TACO field 4 etc.


What do you want it to say?

Posted by: lemonyguac July 2nd, 2014, 07:34 PM
ooo i thought if there was no info it would continue on. well that's ok I can change that.
however, i noticed for whatever reason as the members and guests (member group)
field 1 = field 1 etc. etc. however as other member groups including admins and just other member groups
even based on the member's group, field 1 = field 2 and field 1 = current date.

Is there somehow to fix this bug? or am I SOL.

Posted by: Pierrot July 7th, 2014, 09:24 AM
Please read what I posted http://code.jfbs.net/index.php?showtopic=163&view=findpost&p=633

Posted by: tana proma July 7th, 2014, 05:53 PM
Hey guys. I'm having a little trouble configuring this code.

CODE
<center><div style='width: 320px; height: 120px; background-image: url(http://placehold.it/320x120)'><div id='mncbdesc'><div class='mncbdescb'><div class='mncbd1'><table cellpadding='0' cellspacing='0'><tr><td><img src='http://placehold.it/40x40' class='mncimg1'></img></td><td><div style='width: 10px;'></div></td><td><div style='width: 220px;'> <div class='sublinks'> <a href='LINK GOES HERE'>contests</a> ● <a href='LINK GOES HERE'>face claims</a> ● <a href='LINK GOES HERE'>directory</a> ● <a href='LINK GOES HERE'>other shit</a> ● <a href='LINK GOES HERE'>last</a></div><div class='mncdesc1'>  the description goes here. hi thurr. omfg. yay. we're gonna celebrate. the description goes here. hi thurr. omfg. yay. we're gonna celebrate.  the description goes here. hi thurr. omfg. </div></div></td></tr></table></div></div></div></div></center>


That is my board description, however, whenever I add it to the board, it messes the board up entirely. I know that I'm not missing any end tags... can someone look it over for me?

http://cosmoskin10.jcink.net/

Posted by: Pierrot July 7th, 2014, 09:26 PM
Please describe your problem with more detail.

Posted by: RR of DD July 9th, 2014, 02:46 PM
Hey there, one of your scripts for some reason is causing a problem on http://fangtasiashreveport.b1.jcink.com/index.php. I have been sent here after receiving help from jcink http://forum.jcink.com/index.php?showtopic=22532&st=0&#entry171120... The skin is called, jcink hosting blue and it should be visible to guests/members. If not please let me know so i can send you the information needed to one of our npc accounts. thank you!

The issue is that custom design only works in our first category (the staff category) please ignore the colour scheme, I have been tweaking it and kind of given up with it for now.

Posted by: Pierrot July 9th, 2014, 03:56 PM
I can't actually see it but a common issue is having (X Users Viewing...) turned on under CPU Saving. Please check that this is not turned on and then I will look into it further.

Posted by: RR of DD July 10th, 2014, 05:10 AM
Hey there, one of your scripts for some reason is causing a problem on http://fangtasiashreveport.b1.jcink.com/index.php. I have been sent here after receiving help from jcink http://forum.jcink.com/index.php?showtopic=22532&st=0&#entry171120... The skin is called, jcink hosting blue and it should be visible to guests/members. If not please let me know so i can send you the information needed to one of our npc accounts. thank you!

The issue is that custom design only works in our first category (the staff category) please ignore the colour scheme, I have been tweaking it and kind of given up with it for now.

I've done everything that Jcink suggested and was sent here from there. Everything is in the post that's linked above from jcink, he provided a screenshot and said he was unable to fix this issue and that black would need to figure out if its possible to fix or not. Which is why i'm here.

user posted image

this is the screen shot, that jcink provided in the help topic on jcink forums. hopefully you can see this now.

Posted by: Pierrot July 10th, 2014, 11:19 AM
Please send http://code.jfbs.net/?showuser=1 a PM.

Posted by: RR of DD July 12th, 2014, 05:57 AM
ok thanks, i've sent the PM and waiting a response.

Posted by: RR of DD July 14th, 2014, 02:50 AM
Sorry for the double post, but is there anyone else who could help with the script errors that's shown in the image above?

Posted by: Pierrot July 14th, 2014, 02:28 PM
I'd try the Help board. People check there more often to answer questions.

Posted by: xb7 July 18th, 2014, 09:55 PM
Hi! Just like to say, first off, that these scripts are great and thank you so much for making them.

If I may, I'd like to request that the following additions to the Custom Topics Module be considered when and if you make future updates:

1) Would it be possible to have the custom topics module work on the Active Topics List, and (maybe) in the UCP Subscribed Topics lists?

and

2) Would it be possible to add a class to the topic-row DIV when that topic has new posts? So you'd have .topic-row.regular-topic.new-posts or whatever.

I achieved the look I wanted on my board by using the {%folder} macros as classes on a wrapper element, but on the active topics list and in the UCP subscribed topics list, it just shows my class names (macro_topic_new and macro_topic_old). :/

Having either those pages styled, OR having a class automatically generated, would solve this problem for me completely; in the former case, these pages'll look bangin, and in the latter it'll free up my folder macros so I can set up "normal" ones to display in those places and leave them out of my custom structure.

Thanks so much for your time!

Posted by: Pierrot July 21st, 2014, 08:59 AM
I recommend posting this under "Requests".

Posted by: xb7 July 21st, 2014, 03:55 PM
Will do, thanks!

Posted by: Redheaded Beauty July 31st, 2014, 02:48 PM
So I seem to be having a problem with the Custom Stats it will not work if Number of topics to show in 'Recent Topic Activity' display? is enabled. Does anyone know a way to have the stats code work and have the recent topics on? Thanks.

Posted by: evy August 15th, 2014, 12:36 PM
I have a quick question, and I am sorry if its already been asked!

With this custom forum structure code, is there a way to target individual categories? Like have each category look different? Let me explain more... take my RPG, http://horsesofaramore.jcink.net/index.php? I want to make the first two categories (commonplace and in character) to look one way, then the other categories (roaming lands, lights, darks, neutral, afterlife) to look another way. Does that make sense?

Posted by: Mnikolic August 15th, 2014, 03:53 PM
You mean like a custom category structure - perhaps something like this?

CATEGORY 1 - CATEGORY 2
CATEGORY 3
CATEGORY 4
CATEGORY 5
CATEGORY 6
CATEGORY 7
CATEGORY 8

If that's possible (or if it will be), then I could make some amazing skins too. biggrin.gif

Posted by: evy August 16th, 2014, 05:16 AM
QUOTE (Mnikolic @ August 15th, 2014, 05:53 PM)
You mean like a custom category structure - perhaps something like this?

CATEGORY 1  -  CATEGORY 2
            CATEGORY 3
            CATEGORY 4
            CATEGORY 5
            CATEGORY 6
            CATEGORY 7
            CATEGORY 8

If that's possible (or if it will be), then I could make some amazing skins too. biggrin.gif



YES! Thats right! Custom Category Structure!

Posted by: hannibal. September 1st, 2014, 12:07 AM
Oy. So, I can only get the code to show up on the index page. It works fine, but when I open the forum, the sub forums inside don't show up. It's very frustrating because I love the cfs, but I need to see my stuff, y'know?

Help?

Posted by: Pierrot September 2nd, 2014, 12:19 AM
QUOTE (hannibal. @ September 1st, 2014, 07:07 AM)
Oy. So, I can only get the code to show up on the index page. It works fine, but when I open the forum, the sub forums inside don't show up.  It's very frustrating because I love the cfs, but I need to see my stuff, y'know?

Help?


I recommend posting in the Help Me! board with a link to your forum so that I can assist you better.

Posted by: impossibot September 28th, 2014, 08:53 PM
hi! i'm having an issue that was mentioned earlier in the thread but i can't see a response to it.

when i try to include the offline/online status on the customised profile page, online always renders as (online rather than online. i've had the issue both times i've used the code (completely different skins).

is it something i'm doing wrong? if not, is there a fix?

thanks!

(hopefully i'm okay to post this here!)

Posted by: Pierrot September 29th, 2014, 12:31 PM
Please see http://code.jfbs.net/index.php?showtopic=212 thread.

Posted by: Pierrot September 29th, 2014, 12:32 PM
QUOTE (evy @ August 16th, 2014, 12:16 PM)
QUOTE (Mnikolic @ August 15th, 2014, 05:53 PM)
You mean like a custom category structure - perhaps something like this?

CATEGORY 1  -  CATEGORY 2
             CATEGORY 3
             CATEGORY 4
             CATEGORY 5
             CATEGORY 6
             CATEGORY 7
             CATEGORY 8

If that's possible (or if it will be), then I could make some amazing skins too. biggrin.gif



YES! Thats right! Custom Category Structure!


Please post these in the Requests board.

Posted by: this pandemonium. October 22nd, 2014, 07:09 PM
i'm not sure if this would be better suited to the request forum, so if it is, i apologise.

however, i was wondering if it's possible to have two sets of cfs, one for the index and one for the subforums? i've tried everything i can think of and none of it seems to work, unfortunately. is it just not something you can do at this stage or am i missing something?

Posted by: Pierrot October 23rd, 2014, 12:48 AM
CODE

customIndex.init({
page: "<!-- |input_act| -->",
html: ""
});


change page:"<!-- |input_act|-->" to idx, and then make another set for page:showforum, i believe.... idk, you'll have to play around with it.

I haven't tested it but it should work.

Posted by: this pandemonium. October 23rd, 2014, 10:16 PM
thanks for the quick response!

so i just tried that, and while it kind of works (and doesn't eat my forum's contents like my previous attempts) i can't seem to get page: showforum to work? it just displays the jcink default setup, as if the cfs code didn't exist at all and i'm not quite sure what to do? i also tried page: sf because i know that's the body class, but that wouldn't work either.

Posted by: Pierrot October 25th, 2014, 11:32 AM
Did you capitalize it?

Posted by: this pandemonium. October 25th, 2014, 09:29 PM
capitalizing SF worked, it's now working on the subforums! but now I have another problem, the first forum of each category has just... disappeared??

Posted by: Pierrot October 29th, 2014, 12:07 AM
Please post in the Help me! forum. haha. I think you need a specific topic so I can inspect everything.

Posted by: turtle November 8th, 2014, 11:29 PM
I've been using the custom index code for a while already, but when I tried adding custom stats, the entire thing disappeared. Assuming there's some kind of error in the code, but cannot find it.

http://i.imgur.com/feLEh5H.png

Here's the code:

CODE
<script>

 customIndex.init({
  page: "<!-- |input_act| -->",
  html: function() {
   var output = "<div class='forum'>";
   output += "<div id='left'> <div id='shout'>{%link}</div> <br> <div class='forumlast'> <b>{%lp-title}</b> by {%lp-author} <br> on {%lp-date}</div></div>";
   output += "<div id='middle'> <div class='forumdesc'><justify> {%description} </justify></div></div>";
    if(this.vals["{%subforumlist}"]) {
     output += "<div id='right'> <div class='forumetc'> {%subforumlist} </div></div> ";
     }
   output += "</div></div>";
    return output;
   }});
customStats.init({
html: "{%users} members currently online"
});
</script>

Posted by: turtle November 12th, 2014, 12:02 AM
read the FAQ, and no, I don't have "x amount viewing" enabled. Even after starting the skin from scratch I still have this problem. :x

the index/topics/profile work but not stats. I can link the board if you need me to.

Posted by: Pierrot November 12th, 2014, 11:56 AM
Please post in the help me! forum.

Posted by: lemonyguac November 20th, 2014, 01:27 PM
I'm not sure what occurred but the output if, has ceased to work for me:

CODE
output +="{%topics} <span class='untopic{%id}'>topics</span>";
if(this.vals["{%topics}"] === '1') {output += "<style type='text/css'>.untopic{%id} {display: none}</style>topic ";}


It HAD worked and then this week it is not. Was there any sort of code update?

I notice that it now renders as <span class="untopic{forum#} alt="forumname">

which is now making the span class all wonky because the source views it as:
untopic{forum#}".alt=forumname

Posted by: Pierrot November 21st, 2014, 02:19 PM
We haven't updated our code but maybe Jcink has updated his which is what is causing the problems.

Posted by: Pinkbutterfly November 22nd, 2014, 12:15 PM
I'm using the custom profile with a lot of custom profile fields. I basically use it for my RPG-site and use the profile for a sort of character-application. Anywho, the problem is, when people are filling out the text-areas of the custom profile fields the text wont show on the profile if they use a colon :
So far I don't know if this happens for other things, but I tried ! ; . , and those characters work just fine. Is there a reason the text disappears when using : ?
It looks something like this

What's in the profile field:
Before colon:
After colon

What is shown:
Before colon

So only the text up till the point of the : displays. Is there a fix for this? I checked and when removing the custom profile the problem disappears so I don't think it's a problem on jcink.

Posted by: Pierrot November 22nd, 2014, 02:10 PM
I tested this problem on our custom profiles and it did not effect it.

Posted by: Pinkbutterfly November 23rd, 2014, 03:11 PM
I just tested it again, and it still messes with me. Can it have something to do with my specific custom-profile coding then? The HTML or something? I really don't get it.

Posted by: Pierrot November 24th, 2014, 12:53 AM
This issue has been reported before and it had to do with the coding, i'm pretty sure, because colons can be used in other custom profile structures without issues.

Posted by: midnightfire November 29th, 2014, 05:50 PM
So, we're using this code on our site. It's working beautifully except for a small bit. We have the custom profile code in. But if an admin is logged in, they can only see other admin profiles. Member accounts are able to see most every account. We have a few accounts that won't show either. I can't seem to find anything that's causing this! Any help would be greatly appreciated!

Posted by: Pierrot December 1st, 2014, 01:01 PM
have you consulted the http://code.jfbs.net/index.php?showtopic=243?

Posted by: midnightfire December 6th, 2014, 03:38 AM
I did. And I've managed to get it so that everyone can see them....mostly.

We have a few random members that no one can see their profile. They're all in different groups. Members have access to all the fields, everyone can see sub accounts, and the (X viewing) is turned off.

Posted by: katherine May 25th, 2016, 07:15 AM
does this mean we can now have passwords?

'
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)